View Full Version : Does anyone know how to add units to Civ 4 Warlords for Mac?


Flintlock1415
Mar 08, 2008, 09:45 PM
I have searched through the creation and customization forums many times, yet I still cant find a way to add a unit.

Has anyone figured this Out?

AlanH
Mar 10, 2008, 05:59 AM
Hello, welcome :wavey:

1. I'll assume you want to add someone else's unit, not try to create your own. If you want to create your own then there are several problems:
- There isn't a Mac equivalent to PakBuild to unpack the Art0.fpk file.
- You'll need to edit graphics files, and I don't know how good the Mac apps are at doing the various file formats involved.

2. The main tricks to adding an existing unit are to add the correct XML references in CIV4UnitInfos.xml, CIV4UnitClassInfos.xml and CIV4ArtDefines_Units.xml. Part 2 of the Guide describes that. You should use a copy of these files. Any text editor should work, not a word processor like Word or Pages. Then copy the unit graphics file - xxx.dds - into /Art/Interface/Buttons/Units/

I've never tried it, but it looks do-able.

Flintlock1415
Mar 10, 2008, 06:41 PM
I have tried using the add a unit mod by sovarn shown here (http://forums.civfanatics.com/showthread.php?t=139721)

I wrote the xmls in with a customassets folder and making a mod
I used the humvee (http://forums.civfanatics.com/showthread.php?p=4084983) by sanfusmith for both

any ideas?

Flintlock1415
Mar 10, 2008, 09:00 PM
I have my CustomAssets folder if anyone wants to take a look

AlanH
Mar 11, 2008, 05:25 AM
Are you loading up any other mod at the same time? I think a mod with custom unit files takes priority over anything in the CustomAssets folder.

Flintlock1415
Mar 11, 2008, 05:23 PM
no, I tried the mod and the customassets separately, but niether seemed to work

AlanH
Mar 11, 2008, 05:26 PM
I'll have a look at it when I get a moment.

Have you looked in the xml.log file in ~/Documents/Civ4/?

How do you know that the unit isn't working? What are the symptoms?

Flintlock1415
Mar 11, 2008, 07:38 PM
Have you looked in the xml.log file in ~/Documents/Civ4/?

How do you know that the unit isn't working? What are the symptoms?
I can load the game w/out any xml errors, but if i look at the unit in the civilopedia or under worldbuilder, it wont show up and the game crashes.

also...

In the tutorial I used one must unpak a file to use a unit. There is currently no unpaking utility for mac.
I found a site that claims to change the windows GP32 unpaking application with some coding.
The problem with this is that I have no idea how to follow the directions. If anyone would fix this for me it would be greatly appreciated! I have the link to the site here (http://www.cs.helsinki.fi/u/jikorhon/gp32/gp32mac.html)
and the GP32 file.