flitz
Warlord
- Joined
- Sep 16, 2009
- Messages
- 245
mod: Rise of Mankind: A new dawn
bug: use coinage civic, which will consume all gold and silver resources, but switching away from coinage will not give those resources back to you.
In general, I just need some pointers where to start looking for this issue. I poked around the xml, python and cpp code a bit but without having modded civ4 before it is a bit hard to get a grip of what is done where.
What I did so far was to grep around the XML and Python and Source directories for various stuff.
The coinage civic has defined a custom tag <iMintedPercent> which says that gold and silver are being consumed (and minted
).
I also found fields
and
in the CvPlayer.h and CvInfos.h respectively.
So maybe values in those fields should get changed back (to 0) once you switch away from coinage again ?
I looked into functions CvUpdateCivics and CvNetUpdateCivics but it didn't really lead anywhere.
Any ideas/hints how this would be done in civ4 ?
thanks, f.
bug: use coinage civic, which will consume all gold and silver resources, but switching away from coinage will not give those resources back to you.
In general, I just need some pointers where to start looking for this issue. I poked around the xml, python and cpp code a bit but without having modded civ4 before it is a bit hard to get a grip of what is done where.
What I did so far was to grep around the XML and Python and Source directories for various stuff.
The coinage civic has defined a custom tag <iMintedPercent> which says that gold and silver are being consumed (and minted

I also found fields
Code:
int* m_paiBonusMintedPercent;
Code:
int* m_piBonusMintedPercent;
So maybe values in those fields should get changed back (to 0) once you switch away from coinage again ?
I looked into functions CvUpdateCivics and CvNetUpdateCivics but it didn't really lead anywhere.
Any ideas/hints how this would be done in civ4 ?
thanks, f.