Modding Civ I - Never-ending games!

darkpanda

Dark Prince
Joined
Oct 28, 2007
Messages
823
Some players are trying their best to finish a Civ game as shortly as possible, but as far as I remember, what often frustrated me was not to be able to play as long as possible...

Well that can now be fixed with the below patch, which basically removes the deadline before which you must finish your game!

There are 3 places to patch in CIV.EXE (permanent patch):
  1. The announcement that you "will retire in 20 years"
  2. The "end of game" verification, that checks whether current year = 2100 - (20 * difficulty)
  3. The "end of game type selection", that also checks whether current year = 2100 - (20 * difficulty)

The most important place to patch is the 2nd one, as this is the actual one that will trigger the end of the game...

The first one will simply discard the newspaper anouncement that you will retire 20 years prior to the deadline: you may leave it untouched, the newspaper will popup, but the game will not end as announced... What a political twist :)

The last one should not really be a problem: it is a check in the "end of game code" to determine what is the reason for which the game is ending; this check happens only after checking whether you conquered all other Civs, or a spaceship arrived, so it is very unlikely that it may actually be triggered if you patch the 2nd item... But you never know...

So, hereunder are the bytes to patch in the 3 versions of Civ that I could analyze:

EN 47401 Original 1: 00002a14h: 40 C1 75 5E 2: 00002a92h: 40 C1 74 03 3: 00002b33h: 40 C1 75 5D Patched 1: 00002a14h: 40 C1 EB 5E 2: 00002a92h: 40 C1 90 90 3: 00002b33h: 40 C1 EB 5D EN 47404, 47405 Original 1: 00002a22h: 20 B2 75 5E 2: 00002aa0h: 20 B2 74 03 3: 00002b41h: 20 B2 75 5D Patched 1: 00002a22h: 20 B2 EB 5E 2: 00002aa0h: 20 B2 90 90 3: 00002b41h: 20 B2 EB 5D FR 47405 Original 1: 00002a9ah: 20 B9 75 5E 2: 00002b18h: 20 B9 74 03 3: 00002bc9h: 20 B9 75 6D Patched 1: 00002a9ah: 20 B9 EB 5E 2: 00002b18h: 20 B9 90 90 3: 00002bc9h: 20 B9 EB 6D

Cheers!
 
Last edited:
You're having some spectacular finds, DarkPanda, but isn't this one
a bit ruined by the pollution bug?

Is there any way to remove or limit the pollution bug problem?
 
You're having some spectacular finds, DarkPanda, but isn't this one
a bit ruined by the pollution bug?

Is there any way to remove or limit the pollution bug problem?

I must confess: although I have read about this bug here and there, I can't remember ever experiencing it myself, and never investigated it... There's probably a way to fix it but I really don't know. I guess it's related to data overflowing somewhere (replay ? score ?)
 
I must confess: although I have read about this bug here and there, I can't remember ever experiencing it myself, and never investigated it... There's probably a way to fix it but I really don't know. I guess it's related to data overflowing somewhere (replay ? score ?)

Some hints:

  • The bug is directly connected with Future Tech and triggers at the same discovery every time (I think)
  • The higher the difficulty, the earlier the trigger (I think)
  • Pollution bug never occurs in Chieftain

Edit, more hints:

http://forums.civfanatics.com/showthread.php?t=251335
 
Should I hex edit the SVE file for this? Is there a way to automate so that every game I start has no limit?
 
The hex values to edit are in the exe file. Its a permanent edit, so make sure to make a backup of your exe file before making changes.
 
As kirkham7 inadvertently found out in this thread, the patch described above has some really unexpected side effects...

This is definitely a cause for concern to enjoy its playability, so please be advised.

When I have time (understand: in a long time), I will try to understand what is going on here to make it work nonetheless.

I was actually quite simple to fix: in the 2nd part of the patch, "74 03" should be changed to "90 90" instead of "00 00"... What a dumb ASM mistake! ;)
 
This is why you have a forum to try things out on. I always say that two (or three or four) heads are better than one!
 
Top Bottom