adding a unit

Please post here for questions and discussion about scenario, art and sound modding.

Moderator: doomtrader

Post Reply
User avatar
battlevonwar
Posts: 1233
Joined: Thu Dec 22, 2011 3:17 am

adding a unit

Post by battlevonwar »

Looked through a few of the modding guides, didn't find this one. Can someone point me to adding units into a scenario guide? If this is available?
User avatar
doomtrader
Posts: 5319
Joined: Tue Jul 22, 2008 5:21 am
Location: Poland
Contact:

RE: adding a unit

Post by doomtrader »

@battlevonwar, there are couple of ways to add a unit into the scenario.
Would you like to add them at the very beginning, to the saved game, or maybe as a result of some event during your game (ie when Paris falls)?
User avatar
JLPOWELL
Posts: 411
Joined: Wed May 04, 2011 11:38 pm
Location: Pacific Time Zone

RE: adding a unit

Post by JLPOWELL »

To add to the initial order of battle you can just edit the land_units.csv (or air or naval units files as appropriate. I may take some time to publish a 'how to' as there are quite a few fields to deal with to set the unit characteristics. One key (at least for me) is to pull the file into Excel and convert it into columns (it is semicolon delimited)
"Don’t you think that if I were wrong, I’d know it?"
User avatar
JLPOWELL
Posts: 411
Joined: Wed May 04, 2011 11:38 pm
Location: Pacific Time Zone

RE: adding a unit

Post by JLPOWELL »

Adding units using events is a bit trickier as they are in XML instructions so you need to invoke some 'methods' which I have not seen documented, but appear to be reverse engineerable by finding and existing event and copying the 'method'. There are parameters involved however and at present I don't see exactly how you set the characteristics of units created in this way..
"Don’t you think that if I were wrong, I’d know it?"
User avatar
battlevonwar
Posts: 1233
Joined: Thu Dec 22, 2011 3:17 am

RE: adding a unit

Post by battlevonwar »

Sounds a little complicated and easy to mess up? I guess why it's not often done?
User avatar
doomtrader
Posts: 5319
Joined: Tue Jul 22, 2008 5:21 am
Location: Poland
Contact:

RE: adding a unit

Post by doomtrader »

It is really easy, just write what you want to do and I will lead you. ;)
Post Reply

Return to “Design and Modding”