Removing a unit

Zebul

Chieftain
Joined
Sep 1, 2006
Messages
9
Sorry if this has been asked before...

I've just started a modest :D modding career, and it didn't take me long to run into some problems.

What I'm trying to do is to remove some of the units in the game, like for example the Galley. But when loading my mod it pauses with a dialog frame at the part where it says "Initializing XML (uncached)". What the dialog says I can't say since it's graphics doesn't seem to be updated.

I'm pretty confident that I've either forgot to edit some xml-files, or that I've deleted something that I shouldn't have.

I have removed all references to the galley in the following files: Civ4FormationInfos.xml, CIV4UnitClassInfos.xml and CIV4UnitInfos.xml.

Did I miss a file? If so which one? Is there a log where I can see the error that I get when loading the mod?

I would greatly appreciate a small guide about how to completely remove a unit from the game. I've tried to search for one but haven't had any success.

P.s. The mod is for Warlords but I assume the procedure for removing units are the same? D.s.
 
Zebul said:
Sorry if this has been asked before...

I've just started a modest :D modding career, and it didn't take me long to run into some problems.

What I'm trying to do is to remove some of the units in the game, like for example the Galley. But when loading my mod it pauses with a dialog frame at the part where it says "Initializing XML (uncached)". What the dialog says I can't say since it's graphics doesn't seem to be updated.

I'm pretty confident that I've either forgot to edit some xml-files, or that I've deleted something that I shouldn't have.

I have removed all references to the galley in the following files: Civ4FormationInfos.xml, CIV4UnitClassInfos.xml and CIV4UnitInfos.xml.

Did I miss a file? If so which one? Is there a log where I can see the error that I get when loading the mod?

I would greatly appreciate a small guide about how to completely remove a unit from the game. I've tried to search for one but haven't had any success.

P.s. The mod is for Warlords but I assume the procedure for removing units are the same? D.s.


here are two ideas that should work instead of removing all those tagline datas from those files...

1) why not just change all the gallery's settings to 0 in the CIV4ClassInfos.xml

this way no one can make them...

or another possible answer is to:

2) change the cost in the CIV4UnitInfos.xml for the galley to -1

I believe that also stops anyone from making it...


of course test out the changes...to verify :crazyeye:

but I think one of them will work :goodjob:

hope that helps ;)
 
I tried your first suggestion and it seems to work great. Much easier and no errors (at least not that I've noticed).

Thanks for your help!
 
Zebul said:
I tried your first suggestion and it seems to work great. Much easier and no errors (at least not that I've noticed).

Thanks for your help!


cool :goodjob:

keep me posted if you have any other problems... and I'll try to help ya some more :crazyeye:

good luck;)
 
Back
Top Bottom