Tutorial: Adding extra units to your scenario
  • << previous
  • 1
  • next >>
said on Aug 18, 2010 at 09:05 AM

I will post here a quick manual for you guys who want to add a completely new unit to your scenario.

That's all the help you will get from me: I won't be answering questions about it (this is here to help you, not to give me more trouble). I spent several days to get this working (back in the times of Deadlock) and I had none to help me. So, put your heads to work and prepare yourselves - it won't be an easy ride.

_________________
MODS: Deadlock: making-history.com/asset/1317 ; TCBTS: making-history.com/asset/384091 ; Zombie Apocalypse: making-history.com/asset/368403 ; Onslaught: making-history.com/asset/418213
said on Aug 18, 2010 at 09:16 AM

I won't be extremely specific because it's a very try and error process, but here we go:

1- create a new unit. You can use the editor for this, though I made it manually in Deadlock, editing the sharedDataFactories.xml, sharedDataUnitTemplates.xml, etc. The unit will have the basic infantry model and no decal.

2- copy all "DisplayLibraries" folder from my Zombie Apocalypse. These are all the files you need for putting a proper model and decal for the unit. Choose a similar unit to duplicate (I choose the Partisan when making my zombies) and copy all entries about it, renaming for your new unit.

3- you can make several different 3D models for the different countries (editing the MKDTableCountryAliasesLand.xml and another file, I don't remember which by now).

4- here is the most important thing. The last item in the "scenario.xml" must be like this:

So you are telling the game to load your DisplayLibraries files. Without it, the game will ignore them. You can't imagine how hard it was to figure out this one.

5- you can add the 2D sprites for the unit by editing the files in the "ui" folder (FactoryOutputIconTable.xml, MediaPack.xml, etc. - look in the Deadlock mod for the right files).

That's it. It's a very extenuating process. Use the debugview to find which files are with errors when loading the game. Believe me, you will get errors.

Just a remind: don't ask me anything about this. If you are a total nooby, get back in a few years.

_________________
MODS: Deadlock: making-history.com/asset/1317 ; TCBTS: making-history.com/asset/384091 ; Zombie Apocalypse: making-history.com/asset/368403 ; Onslaught: making-history.com/asset/418213
said on Aug 20, 2010 at 10:26 AM

Thanks, helps alot!

  • nickbeker
  • location: Belgium
  • joined: Jul 19, 2010
  • posts: 201
said on Aug 22, 2010 at 06:45 AM

Odanan said

I won't be extremely specific because it's a very try and error process, but here we go:

1- create a new unit. You can use the editor for this, though I made it manually in Deadlock, editing the sharedDataFactories.xml, sharedDataUnitTemplates.xml, etc. The unit will have the basic infantry model and no decal.

2- copy all "DisplayLibraries" folder from my Zombie Apocalypse. These are all the files you need for putting a proper model and decal for the unit. Choose a similar unit to duplicate (I choose the Partisan when making my zombies) and copy all entries about it, renaming for your new unit.

3- you can make several different 3D models for the different countries (editing the MKDTableCountryAliasesLand.xml and another file, I don't remember which by now).

4- here is the most important thing. The last item in the "scenario.xml" must be like this:

So you are telling the game to load your DisplayLibraries files. Without it, the game will ignore them. You can't imagine how hard it was to figure out this one.

5- you can add the 2D sprites for the unit by editing the files in the "ui" folder (FactoryOutputIconTable.xml, MediaPack.xml, etc. - look in the Deadlock mod for the right files).

That's it. It's a very extenuating process. Use the debugview to find which files are with errors when loading the game. Believe me, you will get errors.

Just a remind: don't ask me anything about this. If you are a total nooby, get back in a few years.

Is it the same for MH vanilla?

_________________
СС - Славянский Союз
said on Aug 22, 2010 at 09:33 AM

I'm not sure, I don't have vanilla. But I suppose it's the same.

_________________
MODS: Deadlock: making-history.com/asset/1317 ; TCBTS: making-history.com/asset/384091 ; Zombie Apocalypse: making-history.com/asset/368403 ; Onslaught: making-history.com/asset/418213
said on Aug 22, 2010 at 10:24 AM

Odanan said

I'm not sure, I don't have vanilla. But I suppose it's the same.

Yeah, I tried it and it's (almost) the same!

_________________
СС - Славянский Союз
  • << previous
  • 1
  • next >>