View Full Version : Edit units in Worldbuilder


Reffie2
Jan 03, 2008, 07:29 AM
When I rename a unit in the worldbuilder and then reload/play my custom scenario, all the names are changed back to their original(Warrior/Musketman etc.) How can I 'fix' this?

I want to change ONE warrior's strength to 20. Not all the warriors, just one and just in one scenario not forever. Is there a utility or something that can help me do this?
Should I create special promotions? I don't want the AI to use this crazy kind of promotions. I want to build a scenario with some super units.
I am not a hacker/programmer, I just want to create a custom scenario.

When I'm attacked in a normal game with normal settings, the camera zooms in, and the units are fighting. You can see the animation.
When the AI is fighting and I can SEE their armies, the camera doesn't zoom in and that battle is just played fastforward.
Can someone give me a mod or a part of a mod so that I can enjoy every battle I see in the game? Seeing includes zooming in.
I heard that the 'Total Realism' mod haves this feature but I don't want the entire mod, just the option.

BTS is running slow on my pc, but the regular CIV IV is running fine. I have all the expansions, can I play the regular CIV IV and still have all the new leaders?

How do I change the colors of the Civs? I posted this in another topic:
http://forums.civfanatics.com/showthread.php?t=256978

Is there a mod that changes the gameplay just barely but increases the overall gamespeed. I'm having lagging issues with Beyond The Sword.

EDIT: When I'm zooming in on a nation, the main music is changed to the nation's theme music, can I remove this so I can hear the regular music all the time. Even when in battle or when zooming out?

Reffie2
Jan 10, 2008, 10:26 AM
*Bump* Anyone?

Gen. Maximus
Jan 11, 2008, 07:18 AM
For unit naming, i think you gotta change it in \Assets\XML\Text\CIV4GameTextInfos_Objects.xml.

Wessel V1
Jan 11, 2008, 10:15 AM
The superunit: I think you have to copy the warrior text in the XML files, to a new MOD map. You then have 2 warriors, one original warrior and one super warrior, which you can give strenght 20. Now I don't know what kind of a scenario this will be, but you can give a civ a unit when you discover a tech, e.g. a great scientist after discovering Physics.

The leaderheads: I'm not very sure of this, but I think you can simply copy the XML, art etc. files of BTS to Vanilla. I haven't tried this out, but it might work.

Civ colors: C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Assets\XML\Interface CIV4ColorVals.xml
The color vals are shown here, I think you can edit them all, but I don't know what the results will be. Never tried these things.

Good luck with it!

frekk
Jan 12, 2008, 11:33 AM
When I rename a unit in the worldbuilder and then reload/play my custom scenario, all the names are changed back to their original(Warrior/Musketman etc.) How can I 'fix' this?

I think you would need to create a new unit altogether, and give it its own name, or define a list of unique names for that unit.

I want to change ONE warrior's strength to 20. Not all the warriors, just one and just in one scenario not forever. Is there a utility or something that can help me do this?

Again you would need to create a new unit.

I am not a hacker/programmer, I just want to create a custom scenario.

You don't have to be. Creating new units is really easy, especially if they're just using the same graphics. If they're using the same graphics as an existing unit, you only need to work with a single file - civ4unitinfos.xml. It's just a matter of copy and paste in notepad and change a few things.

To get a new warrior unit with a 20 strength and a different name, you would just find the warrior in civ4unitinfos.xml (using notepad). Copy the entire entry from <unitinfo> to </unitinfo>. Paste it at the bottom of the file, after the last </unitinfo> and before </unitinfos>.

The things you need to change:

<Description>TXT_KEY_UNIT_WARRIOR<Description> would become:
<Description>Hercules</Description> (or whatever name you want)

<iCombat>2</iCombat> you would change the 2 to a 20

That's all!!

If you find the unit entries too long and difficult to understand, I would suggest downloading one of the modular units somewhere. It will have its own unitinfos.xml that details just that unit, and will be less confusing if you just want to see how the entry for a single unit works.

BTS is running slow on my pc, but the regular CIV IV is running fine. I have all the expansions, can I play the regular CIV IV and still have all the new leaders?

Technically, yes. You would need to do three things:

First, grab the art folder for the new leader from bts/assets/art/leaderheads and make a copy in the civ4/assets/art/leaderheads directory.

Second, open up civ4leaderheadinfos.xml in the civ4 directory. Copy the whole entry for some leader, basically the same thing as with the warrior unit. Change the <Description> to the name you want (don't use TXT_KEY_etc etc, just write it in plain writing) - the same as we did with the warrior. Change the <ArtDefineLeader> tag to something like ART_DEF_LEADER_RAGNAR or ART_DEF_LEADER_BTS_IMPORT_LDR_ONE or whatever. Remember what you used, you'll need it for the next part.

Third, go into the BTS directories now. So far all the files you've been working on should have been in the civ4/assets, now we are going to the civ4/bts/assets. In there go to xml/art and open up CIV4ArtDefines_Leaderhead.xml. Find the entry for the leaderhead you want. Copy it, just like with the warrior. Close that up. Go back to the civ4 directories, back to civ4/assets/xml, and open up the CIV4ArtDefines_Leaderhead.xml file that's in there. After the last entry, paste your new entry. If the thing at the top is not the same as what you used in the second part (the ART_DEF_LEADERHEAD thing), change it to whatever you used.

Done.

EDIT: WAIT!! Oops, forgot one thing.

Don't modify any of the files that came with the game. Copy them. Create a new folder, and put them in there. Put them in the same paths as you found them in the civ4 directory, i.e. create a folder called "assets" inside the new folder, and whatever other folders are required to duplicate the path. Name the folder "mymod" or something and stick it into the mods folder in the civ4 directory.