Author Topic: Glest Structure  (Read 2778 times)

GendoIkari

  • Guest
Glest Structure
« on: 17 May 2007, 21:04:38 »
I've some problem to understand completely Glest Structure.
Plz correct me if i do wrong.

If i wanna make a mod i've to change:
1) tileset
2) techs
3) maps
right?

But the xml structure is quite obscure.
Is there a comprehensive doc about xmls files?

Tnks for help.
« Last Edit: 1 January 1970, 00:00:00 by GendoIkari »

jbr

  • Guest
(No subject)
« Reply #1 on: 17 May 2007, 21:17:55 »
Ahhh... I was just about to ask that! I need the xml structure details too! In particular, can someone detail the particle system specifics...
« Last Edit: 1 January 1970, 00:00:00 by jbr »

firedeathbot

  • Draco Rider
  • *****
  • Posts: 264
    • View Profile
(No subject)
« Reply #2 on: 17 May 2007, 23:13:06 »
i'll email an explanation to anyone

and you wanna youse any of the g3d files i've made??
« Last Edit: 18 May 2007, 00:45:34 by firedeathbot »
Back to glest after a few years inactivity.

firedeathbot

  • Draco Rider
  • *****
  • Posts: 264
    • View Profile
(No subject)
« Reply #3 on: 17 May 2007, 23:17:50 »
unit files are like

<?xml version="1.0" standalone="no"?>

<unit>

   <!-- *** parameters *** -->

   <parameters>
      <size value="1"/>(unit map size)
      <height value="2"/>
      <max-hp value="145" regeneration="0"/>
      <max-ep value="50" regeneration="1"/>
      <armor value="0"/>   
      <armor-type value="chitin"/>            
      <sight value="9"/>
      <time value="50"/>   
      <multi-selection value="true"/>   
      <cellmap value="false"/>
      <levels/>
      <fields>
         <field value="land"/>
      </fields>   
      <properties/>
      <light enabled="false"/>
      <unit-requirements/>
      <upgrade-requirements/>
      <resource-requirements>
         <resource name="gold" amount="30"/>      
      </resource-requirements>
      <resources-stored/>
      <image path="images/initiate.bmp"/>
      <image-cancel path="../fire_ant/images/magic_cancel.bmp"/>
      <meeting-point value="false"/>
      <selection-sounds enabled="true">
      </selection-sounds>
      <command-sounds enabled="true">
      </command-sounds>
   </parameters>


   <!-- *** skills *** --> ( these are what the unit can do)

   <skills>
   
      <skill>
         <type value="stop"/>
         <name value="stop_skill"/>      
         <ep-cost value="0"/>
         <speed value="1000"/>
         <anim-speed value="70"/>
         <animation path="models/ant.g3d"/>
         <sound enabled="false"/>
      </skill>

      <skill>
         <type value="stop"/>
         <name value="stop_loaded_skill"/>      
         <ep-cost value="0"/>
         <speed value="70"/>
         <anim-speed value="60"/>
         <animation path="models/ant.g3d"/>
         <sound enabled="false"/>
      </skill>

      <skill>
         <type value="stop"/>
         <name value="stop_loaded_wood_skill"/>      
         <ep-cost value="0"/>
         <speed value="70"/>
         <anim-speed value="60"/>
         <animation path="models/ant.g3d"/>
         <sound enabled="false"/>
      </skill>

      <skill>
         <type value="move"/>
         <name value="move_skill"/>      
         <ep-cost value="0"/>
         <speed value="150"/>
         <anim-speed value="130"/>
         <animation path="models/ant.g3d"/>
         <sound enabled="false"/>
      </skill>

      <skill>
         <type value="move"/>
         <name value="move_loaded_skill"/>      
         <ep-cost value="0"/>
         <speed value="130"/>
         <anim-speed value="120"/>
         <animation path="models/ant.g3d"/>
         <sound enabled="false"/>
      </skill>

      <skill>
         <type value="move"/>
         <name value="move_loaded_wood_skill"/>      
         <ep-cost value="0"/>
         <speed value="130"/>
         <anim-speed value="120"/>
         <animation path="models/ant.g3d"/>
         <sound enabled="false"/>
      </skill>

      <skill>
         <type value="harvest"/>
         <name value="harvest_skill"/>      
         <ep-cost value="0"/>
         <speed value="200"/>
         <anim-speed value="80"/>
         <animation path="models/ant.g3d"/>
         <sound enabled="true" start-time="0">
         </sound>
      </skill>

      <skill>
         <type value="morph"/>
         <name value="morph_skill"/>      
         <ep-cost value="0"/>
         <speed value="700"/>
         <anim-speed value="80"/>
         <animation path="models/ant.g3d"/>
         <sound enabled="false"/>
      </skill>

      <skill>
         <type value="attack"/>
         <name value="attack_skill"/>      
         <ep-cost value="0"/>
         <speed value="300"/>
         <anim-speed value="40"/>
         <animation path="models/ant.g3d"/>
         <sound enabled="true" start-time="0.2">
         </sound>
         <attack-strenght value="20"/>
         <attack-var value="25"/>
         <attack-range value="1"/>
         <attack-type value="blade"/>
         <attack-fields>
            <field value="land"/>
         </attack-fields>
         <attack-start-time value="0.45"/>
         <projectile value="true">
            <particle value="true" path="particle_proj.xml"/>
            <sound enabled="true">
         </sound>
         </projectile>
         <splash value="false"/>
      </skill>   

      <skill>
         <type value="die"/>
         <name value="die_skill"/>      
         <ep-cost value="0"/>
         <speed value="150"/>
         <anim-speed value="150"/>
         <animation path="models/ant.g3d"/>
         <sound enabled="true" start-time="0">
         </sound>         
         <fade value="false"/>
      </skill>

   </skills>

   <!-- *** commands *** --> ( this is what the unit does
   
   <commands>
      
      <command>
         <type value="stop"/>
         <name value="stop"/>
         <image path="../fire_ant/images/magic_stop.bmp"/>
         <unit-requirements/>
         <upgrade-requirements/>
         <stop-skill value="stop_skill"/>
      </command>

      <command>
         <type value= "move"/>
         <name value="move"/>
         <image path="../fire_ant/images/magic_move.bmp"/>
         <unit-requirements/>
         <upgrade-requirements/>
         <move-skill value="move_skill"/>
      </command>

      <command>
         <type value="attack"/>
         <name value="attack"/>
         <image path="images/initiate_attack.bmp"/>
         <unit-requirements/>
         <upgrade-requirements/>
         <move-skill value="move_skill"/>
         <attack-skill value="attack_skill"/>
      </command>

      <command>
         <type value="harvest"/>
         <name value="mine"/>
         <image path="images/initiate_harvest.bmp"/>
         <unit-requirements/>
         <upgrade-requirements/>
         <move-skill value="move_skill"/>
         <harvest-skill value="harvest_skill"/>
         <stop-loaded-skill value="stop_loaded_skill"/>
         <move-loaded-skill value="move_loaded_skill"/>
         <harvested-resources>
            <resource name="gold"/>   
            <resource name="stone"/>                                       
         </harvested-resources>
         <max-load value="8"/>
         <hits-per-unit value="1"/>            
      </command>

      <command>
         <type value="harvest"/>
         <name value="harvest"/>
         <image path="images/initiate_harvest_wood.bmp"/>
         <unit-requirements/>
         <upgrade-requirements/>
         <move-skill value="move_skill"/>
         <harvest-skill value="harvest_skill"/>
         <stop-loaded-skill value="stop_loaded_wood_skill"/>
         <move-loaded-skill value="move_loaded_wood_skill"/>
         <harvested-resources>                                 
            <resource name="wood"/>         
         </harvested-resources>
         <max-load value="8"/>
         <hits-per-unit value="1"/>            
      </command>


      <command>
         <type value="morph"/> ( transform skill)
         <name value="become_fire_ant"/>
         <image path="../fire_ant/images/archmage.bmp"/>
         <unit-requirements/>
         <upgrade-requirements/>
         <morph-skill value="morph_skill"/>
         <morph-unit name= "fire_ant"/>
         <discount value="0"/>
      </command>   
   </commands>
</unit>







projectory



<?xml version="1.0" standalone="yes"?>
<projectile-particle-system>
       <texture value="true" path="images/initiate_particle.bmp" (image path)

luminance="true"/>( does the missile glow or not?
       <model value="false"/> ( is there a g3d for it)
   <primitive value="quad"/>
   <offset x="0" y="0" z="0"/>
   <color red="1.0" green="1.0" blue="1.0" alpha="0.8" /> (color slplash value)
   <color-no-energy red="1.0" green="1.0" blue="0.0" alpha="0.2" />( color added value
       <size value="0.6" />
       <size-no-energy value="0.1" /> (extra particle
       <speed value="15.0" />
   <gravity value="0.2"/>
       <emission-rate value="20" />
       <energy-max value="10" />
       <energy-var value="2" />
   
   <trajectory type="linear">
      <speed value="10.0"/>
   </trajectory>
</projectile-particle-system>
« Last Edit: 1 January 1970, 00:00:00 by firedeathbot »
Back to glest after a few years inactivity.

GendoIkari

  • Guest
(No subject)
« Reply #4 on: 18 May 2007, 11:17:30 »
In qhich xml do i define "types" like "type value" or "attack-type value" etc...?
« Last Edit: 1 January 1970, 00:00:00 by GendoIkari »

firedeathbot

  • Draco Rider
  • *****
  • Posts: 264
    • View Profile
(No subject)
« Reply #5 on: 18 May 2007, 11:59:53 »
this contain the unit attack particle files damage, attack speed and sounds

<skill>
<type value="attack"/>
<name value="attack_skill"/>
<ep-cost value="0"/>
<speed value="300"/>
<anim-speed value="40"/>
<animation path="models/ant.g3d"/>
<sound enabled="true" start-time="0.2">
</sound>
<attack-strenght value="20"/>
<attack-var value="25"/>
<attack-range value="1"/>
<attack-type value="blade"/>
<attack-fields>
<field value="land"/>
</attack-fields>
<attack-start-time value="0.45"/>
<projectile value="true">
<particle value="true" path="particle_proj.xml"/>
<sound enabled="true">
</sound>
</projectile>
<splash value="false"/>
</skill>


and this for if you want the creature to have an attack button, if not you can attack by side clicking the enemy but the cpu wont use it.

<command>
<type value="attack"/>
<name value="attack"/>
<image path="images/initiate_attack.bmp"/>
<unit-requirements/>
<upgrade-requirements/>
<move-skill value="move_skill"/>
<attack-skill value="attack_skill"/>
</command>
« Last Edit: 1 January 1970, 00:00:00 by firedeathbot »
Back to glest after a few years inactivity.

 

anything