MegaGlest Forum
Modding and game content creation => Mods => Topic started by: TrasheR on 8 December 2004, 15:12:08
-
If i make a new resorce, like coal or something along those lines, how do I put it on maps?
I have all the models for the resorce done but I have no clue how to put it into the maps.... Is it possible?
Also, how do I put in different trees? So far the maps have 2 kinds of trees. I created models for more trees, but I have no clue on how to put them into the engine so that on a map more then 2 types of trees show up.
Also, is it possible to make a farm-field that is famrable by workers? I have a model for that, but I dont know if tis possible to make workers build the building then walk on top of it and farm it.
-
Hi,
I paste here the gold and wood xml file to explain myself .
<image path="images/gold.bmp"/>
<type value="tech">
<model path="models/gold.g3d"/>
<default-amount value="2000"/>
<resource-number value="1"/>
</type>
</resource>
<resource>
<image path="images/wood.bmp"/>
<type value="tileset">
<default-amount value="200"/>
<tileset-object value="1"/>
</type>
</resource>
If i make a new resorce, like coal or something along those lines, how do I put it on maps?
In "tech" resources (like gold), the "resource-number" value indicates what resource number you have to put on your maps for this resource.
In "tileset" resources (like wood), the resource is taken from a tileset object indicated by the "tileset-object" value.
Also, how do I put in different trees? So far the maps have 2 kinds of trees. I created models for more trees, but I have no clue on how to put them into the engine so that on a map more then 2 types of trees show up.
You can make more types of trees using objects from 5 to 10 (place them in the tileset xml file). The only problem is that different types of trees are considered diferen types of resources.
Also, is it possible to make a farm-field that is famrable by workers? I have a model for that, but I dont know if tis possible to make workers build the building then walk on top of it and farm it.
No it's not possible :(