• Civilization 7 has been announced. For more info please check the forum here .

how to create changing flags in civ IV

AstrokauzazITS994

Chieftain
Joined
Jan 15, 2023
Messages
25
CHi, I'm thinking about creating a mod about the history from 1910 to 2023. I thought to myself, but then flags changed as well as leaders and names of countries. Germany will be an example.In the early 1910s germanu was Prussia which had two black lines at the bottom and top and a coat of arms on the flag. Later on the top of the flag was black. white in the middle. And red at the bottom. The next flag of Germany was a typical German flag except that there was a cross in the middle. After that, the flag of Germany had a red background with a white circle in the middle with the symbol of Nazism. Later, there was a division of Germany into two parts where federal and democratic Germany changed the flags. In 1990, federal and democratic Germany merged and also changed its name.
I would like the flag to change in a specific year and month or in a specific era. Does anyone know a script that allows this?
 
Last edited:
Hello,

I do not know if already a mod exists as boiler plate.
If you want write it on your own you probably needs to use the SDK, because by Python you can just read the path the flag file but not alter it at runtime.
Take a look on CvInitCore.cpp
Code:
void CvInitCore::setFlagDecal(PlayerTypes eID, const CvWString & szFlagDecal)
Adding this to CyPlayerInterface1.cpp would be enough.
( Combine the code from
.def("setName" and .def("getFlagDecal" line)
 
Hello,

I do not know if already a mod exists as boiler plate.
If you want write it on your own you probably needs to use the SDK, because by Python you can just read the path the flag file but not alter it at runtime.
Take a look on CvInitCore.cpp
Code:
void CvInitCore::setFlagDecal(PlayerTypes eID, const CvWString & szFlagDecal)
Adding this to CyPlayerInterface1.cpp would be enough.
( Combine the code from
.def("setName" and .def("getFlagDecal" line)
what line of test should i put it on?
 
Last edited:
Hello,

I do not know if already a mod exists as boiler plate.
If you want write it on your own you probably needs to use the SDK, because by Python you can just read the path the flag file but not alter it at runtime.
Take a look on CvInitCore.cpp
Code:
void CvInitCore::setFlagDecal(PlayerTypes eID, const CvWString & szFlagDecal)
Adding this to CyPlayerInterface1.cpp would be enough.
( Combine the code from
.def("setName" and .def("getFlagDecal" line)
And what to do to DETERMINE which flag should change to which and at what time
 
Top Bottom