How to remove elements from the game?

Lib.Spi't

Overlord of the Wasteland
Joined
Feb 12, 2009
Messages
3,708
Location
UK
Hi everyone

I've been hunting through the tutorials for a while and haven't found something that fully helps me.

I want to start removing things from the game, units and leaders etc.

I want to 'clean up' the game including the civilopedia for a mod so that it isn't cluttered with leaders and units that aren't a part of it.

I have successfully done the civilizations and I know thats the easy bit.

Do I have to delete the units etc. from the relevant xml files or are there other ways.

if deleting is the only or easiet ways could someone provide me with the relevant files that need to be 'cleaned up' and information deleted from.

I don't mind having to wade through a number of files to do it but it would be helpful to know which ones to go through.

For now I just want to successfully do the units and leaders I'll worry about techs and other stuff later.

Thanks in advance to anyone who can help
Cheers
P.S. sorry if this in in the wrong place but i think i got it right??
 
Hi there! Welcome to CFC!

Just to check something quickly, are you editing the core files? If so, I don't recommend carrying on. Instead, copy the files you want to change into a mod folder. Of course, I'm sure you've already figured that out.

The only way to remove elements is by deleting them, I'm afraid, but so long as you're working in a mod, that shouldn't be a problem. To remove units, you'll want:
  • XML/Units/CIV4UnitInfos.xml
  • XML/Units/CIV4UnitClassInfos.xml
  • XML/Art/CIV4ArtDefinesUnit.xml
I think that's all. For leaders it's:
  • XML/Civilizations/CIV4LeaderheadInfos.xml
  • XML/Art/CIV4ArtDefinesUnit.xml
  • XML/Gameinfo/CIV4DiplomacyInfos.xml
Any questions?
 
Hi i've come across a problem,

I've deleted most of the missionaries and the warrior, (among a host of others) but i am getting error messages about the class info being incorrect, it seems to be relating to the religioninfos.xml and the goodyinfos.xml.

I found those and copied them into a gamesinfo folder in my mod/assets/xml folder and deleted the references from the files but the problem persists I also deleted the whole offending religions from the file but still no joy. am i missing something else??

thanks in advance
 
Most units end up in CI due to someone having a UU, or something about the barbarian civ.


Errrr... use windows search (from the file manager, don't know about "windows desktop search") then. It does work for .xml files.

The main problem with windows search/windows desktop search/google desktop search is that they only "know about" certain file types. So for example windows search doesn't know about python files (.py), so you'll never get any hits from using it to search in them!

grep OTOH will search in everything, and can print out the matching line(s), unlike windows search which only lists the filenames that matched (ie a subset of the functionality).

Any of these will work for .xml. For binary files (eg pdf) GDS or WDS are usually good. Most interesting things in modding are text files though, like the xml, python, and SDK files.
 
The religion info error probably results because later religions grant a missionary.
 
right ok guys I will explore the CI file and I might have a look for that search program.

Also any ideas where I might go (what file) to fix the free missionary issue, like i said i went into the religioninfos.xml section and deleted the right religions from there. Is there another file that i need to find to get rid of the free spawn issue.

Cheers in advance
 
My tip, make a copy of the Defense mod and start from there as it has almost everything removed in the first place so you only have to work with two civs, two leaders and a handful of units :)
 
Interesting, I'll take a look at that is that the one that comes in the BtS expansion or is it one off of the forum?

I'll take a look and see what i come up with.

Does that mod have religions in it? cause I would like to have just two religions to use one for each side, but changed to represent something else. also i would like to be able to use the corporations system as well but again modified to give different bonuses.

would these elements have to be added back into the defense mod?

Anyway thanks for the suggestion, sounds like a good way to go I will have a look and see what i need to do.

cheers.
 
Back
Top Bottom