PDA

View Full Version : Questions on modding descr_formations.txt



KarstenChu
03-12-2007, 06:50
Ok, so I am working on modding Darth's formations for my own personal use. Here's an excerpt of the code for the first line of his quincunx formation.


; Screen of missile inf
begin_block 0
max_units 3
unit_type missile infantry 0.9
unit_type elephants 1.0
unit_type heavy_chariots 1.0
block_formation line
block_relative_pos 0 0.0 0.0
inter_unit_spacing 0.2
priority 1.0
end_block

Questions :
Where do I find the unit type? Some people said look in export_descr_units.txt but I cant find anything that matches "missile infantry." So I figured that missile and infantry might be from two different fields...any help?

Here is the second line...

;; First line of infantry
begin_block 1
min_units 3
unit_type light_pilum_infantry 0.9
unit_type heavy_pilum_infantry 0.7
unit_type heavy infantry 0.0
;unit_density close
max_unit_width 20
block_formation line
block_relative_pos 0 0.0 -6.0
inter_unit_spacing 25.0
priority 1.0
end_block

Questions :
Ok, again, how do I find what EB defines as "light_pilum_infantry."
What's the purpose of heavy infantry 0.0?

I'll come up with more questions later :)

Oleo
03-12-2007, 14:13
Where do I find the unit type? Some people said look in export_descr_units.txt but I cant find anything that matches "missile infantry." So I figured that missile and infantry might be from two different fields...any help?)


In EDU infantry is a category, missile is a class.

copypaste from the top of edu:

; category infantry, cavalry, siege, handler, ship or non_combatant
; class light, heavy, missile or spearmen


My guess would be that light_pilum_infantry is all light infantry that carries a pilum. All units with pilum have pilum in stat_pri in EDU.