Problem Modding Next War

Ultraman

Warlord
Joined
Feb 27, 2002
Messages
137
Location
Singapore
Hi! I'm trying to mod Next War to allow my Modern Armor to upgrade to Assault Mechs and Dreadnoughts when they become available. Made the change in Unitsinfo.xml, as below:

<UnitClassUpgrades>
<UnitClassUpgrade>
<UnitClassUpgradeType>UNITCLASS_ASSAULT_MECH</UnitClassUpgradeType>
<bUnitClassUpgrade>1</bUnitClassUpgrade>
</UnitClassUpgrade>
<UnitClassUpgrade>
<UnitClassUpgradeType>UNITCLASS_DREADNOUGHT</UnitClassUpgradeType>
<bUnitClassUpgrade>1</bUnitClassUpgrade>
</UnitClassUpgrade>
</UnitClassUpgrades>

But nothing happens. Did I miss something, please? Is there another xml file I need to edit? Please help. Thanks!
 
check your CIV4UnitClassInfos.xml to ensure that there is a UNITCLASS_ASSAULT_MECH and a UNITCLASS_DREADNOUGHT and they are done correctly, and also that there is at least 1 unit for each unitclass. i.e. look in your CIV4UnitInfos.xml and ensure that there is UNIT_ASSAULT_MECH and UNIT_DREADNOUGHT and they are in the correct unitclasses and that everything is spelled 100% perfectly. 1 mistype can mess it up.

Also you should always use notepad++ to edit XML. It kinda lets you know when you mess stuff up.
 
Thanks for that. Yes, those two units are present. Have not changed those from the Next War mod, so that shouldn't be an issue.I have reached the stage of the game when I can get an Assault Mech by building it, so definitely it's OK, but the upgrade option isn't working.
 
Could it possibly be caused by the unit limit on the Mech and Dreadnought? Try removing those.
 
HA! Found the problem. Nothing wrong with the XML. It's stupid VISTA! Protects all files under Progamme Files from any amendments. Once I copied the file out to anotyher folder, made the changes I wanted and copied it back to replace the unitsinfo file in Next War, it worked perfectly!
 
I hated that Vista feature at first but it is keeping me working neat. I used to make shortcuts into the mods folder and all the places I cut stuff from and have dozens of files open and be all copying and pasting stuff from place to place in these insane spagetti loops. Now I have to make a copy of the mod on my desktop, get it right, then copy it (or the changed part of it) into the version in the mods folder. I open and close stuff and navigate to it. Strangely, when I started trying to mess with the tga, it was resistant to updating, so some things have to be cut and then pasted in--they don't replace. Same thing recently happened with the era movies. Vista didn't recognize a change and just made "Copy of Era8-Future2_.dds" And of course when I've changed many things I just paste the whole mod in there and check the block to "do this with all 1097 items." At first I literally clicked through them with the mouse with a fanning motion like an 1850s gunslinger.
 
Hi Tholis, thanks for your long mail. Have been using the same workaround, I still find it irritating. I was trying to include the zombie unit into Next War, thought it would be cool to have a cheap unit available with Biological Warfare ... made the changes, then when I loaded, BTS crashed, some error with unitclass. That's fine. Loaded up unitinfo again, and BLOODY VISTA HAD REMOVED ALL THE CHANGES. so instead of fixing the error, I have to redo the whole unit entry. Bloody hell. Vista is so smart it's stupid.
 
As far as I know, it never saved them in the first place. I used to have this problem with modding Battle for Wesnoth. It kept saying I cannot save the modified file. (I have administrator rights you dumbass! I can save what I want!) I had to copy the files to the desktop edit them and then copy them over the originals.

However since I installed Civ4 in D drive, I have not encountered this issue.
 
As far as I know, it never saved them in the first place. I used to have this problem with modding Battle for Wesnoth. It kept saying I cannot save the modified file. (I have administrator rights you dumbass! I can save what I want!) I had to copy the files to the desktop edit them and then copy them over the originals.

However since I installed Civ4 in D drive, I have not encountered this issue.

Those isssues only occur if you install the game in your C:/Program Files directory. If you create a new folder outside of that then you'll be good to go, Vista's security measures don't go past Program Files. It's foolish dumping everything on your C:/ drive anyway, that should only be used for your OS and any program that doesn't give you a choice. Everything thing else needs to go a seperate partition so if your OS fails, you don't end up losing all your data as well.
 
Back
Top Bottom