Resource modifying builings (e.g. mint)

Accessless

Chieftain
Joined
Jul 7, 2024
Messages
0
Hi, hopefully I'm posting this in the right place (first time on the forum).

I'm looking at modding the Mint to include copper as well as the default gold and silver, the issue I'm having is that adding any more than 2 resources causes the game to fail on boot. Changing a target resource to copper is not an issue but I'm at a bit of a loss as to what is causing this limit.

I also want to look at adding all camp resources to the granary, so +1 food to wheat, bananas & deer as well as bison, ivory, truffles & furs. As of writing this I haven't attempted this mod yet but I assume that I will run into the same issue as I did with the mint.

All the modding that I have done so far is exclusive to the .xml files so that I can play a modded game with friends (don't worry about cheating, I doubt my version of the game is even playable with a vanilla copy :D ).
 
There is no limit to the number of resources you can assign an extra yield to from a building, as the granary example shows. (The deer camp isn't a building - it's a tile improvement - and so wouldn't necessarily be governed by the same rules that buildings are, but it happens to be true there too)

If you're modifying the game files directly, the problem is almost certainly that you're either causing a syntax error or a reference error (trying to reference something that doesn't exist) - either of which is going to cause the XML parser to panic and not load the XML file. That causes basically everything in the file to end up not existing, which causes a cascading failure down the line from other things that rely on the existence of the stuff in that file. And that's what's causing the crash.

If you don't have logging enabled - enable it - and if you do, load up the game again, let it crash again, and then check database.log and it will probably be complaining about either a syntax error or a null reference. But I can't really do anything else to help debug it without seeing the file myself.
 
Moderator Action: Moved to main C&C forum. cheers - lymond
 
Back
Top Bottom