Men of War: Assault Squad 2

Men of War: Assault Squad 2

30 evaluări
FloraForge: Wildscape Generator
   
Premiază
Adaugă la preferate
Preferat
Elimină din preferate
Mod
Dimensiunea fișierului
Postat
11.050 KB
5 dec. la 8:49
1 jurnal de actualizare ( vizionare )

Abonează-te pentru a descărca
FloraForge: Wildscape Generator

Descriere
FloraForge: Wildscape Generator

A small mod that allows map creators to generate object spawns, including trees, rocks, stamps, and more.
By default, it includes a set of vanilla objects and stamps, but in the file:
x_floraforge\resource\set\interaction_entity\map_obj_generator.inc
you can specify your own objects.

Generation is done by placing the "flora_gen_obj" object at the desired point.
The generation depends on the terrain, specifically blocking roads for generation.
It is impossible to generate on buildings, other objects, or anything else—only on the landscape.
Currently, the generation allows for randomization of texture mods (defined in map_obj_generator.inc) and object sizes.

For random rotation of objects during spawning, you need to connect the file auto_rotation.inc to the necessary properties file (e.g., bush.inc / tree.inc / stone_small.inc) in:
x_floraforge\resource\properties
by including the following line:
(include "auto_rotation.inc")
You can temporarily use property files from your mod or from the game’s vanilla archive, gamelogic.
!Don’t forget to disable auto-rotation in the file after completing the generation (objects with such a property will spawn randomly on already finished maps)!

You can also adjust the number of spawn variations when placing an object by editing the file:
x_floraforge\resource\entity_obj_generator\flora_gen_obj.def

Line 63 - {totalparticles 45} - Number of spawn variations
Line 65 - {radius 75 75} - Spawn radius
Line 80 - {offset 0 0 500} - Spawn height

This tool might be difficult to connect or edit if you're not familiar with interaction_entity, so feel free to ask questions if you need help.

This generator was used to create some maps in Vietnam at War, significantly saving time.


You can use it without any attribution, but if you integrate it into a mod, please give credit to preserve the authorship of these humble 600 lines of code.
17 comentarii
Fent1050 12 dec. la 5:49 
This is the list: Forest: Bushes:pla01/bush10b(skin1)/fern_bush/cane3

Conifer:pine_small/pine/fir_small/fir_bush/fir/new_fir2

Trees:new_birch/tree_oak/new_tree3

Forest_Trash:dried2/dried3/stub_tree (the jungle is still coming its gonna take a little longer)
Fent1050 12 dec. la 5:33 
@rick ill try to make a list as fast as possible
👌
Rick  [autor] 11 dec. la 11:56 
@SocioS
This is only possible if I make a pat file that you can put into the mod, load the map, then save it. Then this pat file will need to be deleted so that the placement of trees becomes available. There is no simpler procedure. If this is interesting, then I can make one and upload it to the disk. Just clarify then, only trees or bushes should be demolished too?

@giorgibob152
It's all the magic of a thousand year old elf girl
SocioS 10 dec. la 13:18 
I have a potato pc, can you add an option to remove all the trees from the vanilla maps? :V
giorgibob152 10 dec. la 1:38 
how dose this work? is there a special unit that dose this or you like do the typing most of the time?
Rick  [autor] 8 dec. la 9:40 
@Damp, thank you)) I don't know why this wasn't done before
Damp 8 dec. la 9:23 
Rick showing again why he is one of the best modders out there! Awesome stuff!
Rick  [autor] 7 dec. la 11:32 
@Fent1050
If you want, I'll make for you additional presets and update mod. Just write a list here for it with the names of trees, bushes or stones.
Fent1050 7 dec. la 10:29 
can you maybe add a option for forest or jungle for terrain yk to make a jungle or a like forest with pines and stuff
Fent1050 7 dec. la 10:13 
so how does this mod even work bc i just downloaded do you just place the like uh terrains or do you need to go into the files and change things?