Flora Kinds (help needed with random plants strings on random scenes)

正在查看此主题的用户

Kabs

Sergeant at Arms
Hey Guys,

i am working on the flora_kinds.py with thoose module_data file.

at the moment i am trying to add specific kinds of plants/bushes to random maps. But i still have the problem that the system will take only plants that are in the same py string for sure. what i want is to let the system spawn all of the strings (wich have different spawn densitys) for the random maps and not just 2 of 6 strings i made.


at the moment it looks like system chooses for itself like this:

1 random map:

1 string busches
4  string busches

2. random map

3 string busches
5 string busches
2 string busches


so everytime its totally random wich strings will be added into the map...

first i thought the "fkf_guarantee" will make sure it spawns every time but it dont seems so...

hope someone knows help for me.

greetz

kabs aka Fahausi

 
See this:

http://forums.taleworlds.com/index.php/topic,166281.0.html

Basically, you cannot guarantee anything but fkf_grass; if you have something you need guaranteed, you need to put it with fkf_grass|fkf_guarantee, and it must use the grass material, which in turn uses the grass texture- these things are hardcoded.

Within that flora entry, you can include a few extra copies of things to give higher chances for them to be chosen at random.
 
hmm yep i know how to use the grass meshes and textures. for sure i dont want to replace it with other plants to spawn more often. but thanks for answering mate.

i also written one thing i tried into your thread.

greetz

kabs
 
Does anyone know how to compile flora_kinds?
I tried just dropping it into source folder, but the compiler doesn't automatically "grab" it.
 
Leonion 说:
Does anyone know how to compile flora_kinds?
I tried just dropping it into source folder, but the compiler doesn't automatically "grab" it.
Edit build_module
 
That I figured, but how?
The file's gibberish to me.
Simply adding
插入代码块:
copy ".\ID_*.py" ".\ID\" >> nul
python Flora_kinds.py
didn't update the compiled file.

P.S. NVM, the compiled file just appears in the source folder rather than destination folder.
 
后退
顶部 底部