Creating Buildings

Morred

Warlord
Joined
Dec 19, 2005
Messages
207
Location
Melbourne, Australia
I have been trying to make some new buildings (well one) in a Mod I'm working on, and I'm not sure what I'm doing wrong.
The Mod loads fine (so it's not a XML error) but the building doesn't show up in the city screen.

Which files are needed to create a new building?

Thanks,
Morred.
 
Morred said:
I have been trying to make some new buildings (well one) in a Mod I'm working on, and I'm not sure what I'm doing wrong.
The Mod loads fine (so it's not a XML error) but the building doesn't show up in the city screen.

Which files are needed to create a new building?

Thanks,
Morred.

CIV4BuildingInfos.xml and CIV4BuildingClassInfos.xml are whats needed. It sounds like your games isn't seeing your changes if you don't get any errors when it loads and you don't see your new building listed in your pedia. What files did you change and where did you change them?
 
As I didnt do earlier, it is obvious

Clear the cache so the new files are loaded. Took me two days to get that right LOL..

Dont know if that will help you but I hope it solves the problem.
 
oh, this must explain why any mods I have been making POST patch 1.52 haven't been working. Thanks for that guys ;)!

Yours,
Aussie_Lurker.
 
Kael said:
CIV4BuildingInfos.xml and CIV4BuildingClassInfos.xml are whats needed. It sounds like your games isn't seeing your changes if you don't get any errors when it loads and you don't see your new building listed in your pedia. What files did you change and where did you change them?

I've created a new mod file, and I added in those two files, I just c/p a 'vanilla building' and changed it the name and settings.

Maybe I do have to clear the cache, I'll try that.
 
Morred said:
I've created a new mod file, and I added in those two files, I just c/p a 'vanilla building' and changed it the name and settings.

Maybe I do have to clear the cache, I'll try that.

Did you create a Mods/(Modname)/Assets/Buildings/ directory and put it in there?

Some people forget to put in the Assets directory and that will cause your files to be ignored.
 
Morred said:
Assets/XML/Buildings/Both the Files.

I also have a few Art files, but I don't think that should affect it.

Oops, I forgot the XML directory, I'm glad you didn't. And you are going into the advanced menu and loading. After the mod reloads does it have the name of your mod in the upper right hand corner.

The only other thing I can think of is everytime I do it I have a Mods\(Mod name)\(Mod name).ini file too. I don't know if that is needed or not.

You may want to try copying your 2 files into the ..\My Documents\My Games\Sid Meier's Civilization 4\CustomAssets\xml\buildings directory and see if they work just from a normal load of the game. That way you can figure out if you are having a problem loading it as a Mod or if the problem is in your files.
 
Back
Top Bottom