Deleting items when modding

Rob (R8XFT)

Ancient Briton
Retired Moderator
Joined
Aug 11, 2002
Messages
10,866
Location
Leeds (UK)
Is there any advice/tutorial on actually removing things from BTS? I know how to disable techs so that they won't be available in-game and neither will the units/buildings etc that are available when they're researched - but I don't want them to appear in the civilopedia either.

I've kind of worked out what I need to do, but seem to end up with a crashable version of BTS ;). Is there a mod template with no techs, civs etc - or very few of them? I was going to use the Charlemagne scenario as a starting point, but I don't want the advanced ruleset, so again, if someone can show me how to delete those rules, that will be a good enough answer for me.
 
I‘m not an expert on it, but I could tell you some of my experience.

Deleting the entries of techs and buildings in XML normally will not cause crash. Those techs and buildings will not appear in the Civilpedia if you delete them in the XML. However, deleting units, especially missionaries and navy/airplanes always lead to a crash after playing a couple of turns. I don't know why, so I just keep those units in the XML and make them unbuildable. To make units unbuildable, you could set their costs to -1.

As to the gameset (such as advanced start), you could simply open the .WBsave file with .txt tools and mod the content in the "option"

Hope my experience could help solve your problem.
 
There is not much to tutorial about... Deleting is quite easy ;)
The hard part is to remove (or re-direct) all the possible references to the deleted entity from all the other files. If you got them all, there will be no crashes.

Try Civchecker to hunt down loose ends.
http://forums.civfanatics.com/downloads.php?do=file&id=9535
 
The hard part is to remove (or re-direct) all the possible references to the deleted entity from all the other files. If you got them all, there will be no crashes.
Quite true... you not-only have to delete the item itself, but all possible references to the item for the game to be stable.

If for whatever reason you didn't like "Airports", you could delete the XML entry for an airport very easily, but there's a lot of other code in the game that addresses Airports that would have to be removed/redirected as-well.
 
Back
Top Bottom