salaminizer
Colorado Internacional
Hi,
I don't know if I'm the only one who almost never finishes a FfH/Civ game, so I found the High to Low challenge great, except that it ends after 3 stages. So I changed it so it never stops.
I only changed two lines in the SDK (CvGame.cpp).
The modification affects the following lines (look for high_to_low to find them)
updated needed: changed to
update needed: changed to
update needed: changed to
of course you can remove it, but I think commenting is better
this is what is needed for the infinite high to low challenge
--
for aesthetics I have edited one python file, CvMainInterface.py, and CIV4GameText_FFH2.xml, both included in the zip file.
At line 3294, after
replace everything until line 3303 with:
In the XML, line 21357,
from
to
it's not needed to work... but it shows how many times you have swapped civs.
and also important:
Now updated to 0.40f, even if nobody cares
Here:
http://www.2shared.com/file/4502025/673fd401/hightolowmod.html
I don't know if I'm the only one who almost never finishes a FfH/Civ game, so I found the High to Low challenge great, except that it ends after 3 stages. So I changed it so it never stops.
I only changed two lines in the SDK (CvGame.cpp).
The modification affects the following lines (look for high_to_low to find them)
updated needed: changed to
Code:
// if (getHighToLowCounter() < 2)
Code:
// {
Code:
//}
of course you can remove it, but I think commenting is better
this is what is needed for the infinite high to low challenge
--
for aesthetics I have edited one python file, CvMainInterface.py, and CIV4GameText_FFH2.xml, both included in the zip file.
At line 3294, after
Code:
if gc.getGame().isOption(GameOptionTypes.GAMEOPTION_CHALLENGE_HIGH_TO_LOW):
replace everything until line 3303 with:
Spoiler :
Code:
iCountSpecial += 1
szName = "HighToLowTag"
szBuffer = u"<font=2>"
szBuffer = szBuffer + localText.getColorText("TXT_KEY_MESSAGE_HIGH_TO_LOW_GOAL_0", (), gc.getInfoTypeForString("COLOR_RED"))
szBuffer = szBuffer + u" <color=255,0,0>%d" %gc.getGame().getHighToLowCounter()
szBuffer = szBuffer + u")</color> </font>"
screen.setText( szName, "Background", szBuffer, CvUtil.FONT_RIGHT_JUSTIFY, xResolution - 12, yCoord - ((iCount + iCountSpecial) * iBtnHeight), -0.3, FontTypes.SMALL_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1 )
screen.show( szName )
In the XML, line 21357,
from
Code:
High To Low: Get the high score (stage 1/3)
Code:
High To Low: Get the high score (stage
it's not needed to work... but it shows how many times you have swapped civs.
and also important:
Now updated to 0.40f, even if nobody cares
Here:
http://www.2shared.com/file/4502025/673fd401/hightolowmod.html