[SDK/Compiled DLL] The Infinite High to Low challenge mod

salaminizer

Colorado Internacional
Joined
Aug 12, 2006
Messages
221
Location
Porto Alegre, Brasil
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
Code:
 // if (getHighToLowCounter() < 2)
update needed: changed to
Code:
// {
update needed: changed to
Code:
 //}

of course you can remove it, but I think commenting is better :p

this is what is needed for the infinite high to low challenge :p
--

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)
to
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 :lol:

Here:
http://www.2shared.com/file/4502025/673fd401/hightolowmod.html
 
Top Bottom