1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. Photobucket has changed its policy concerning hotlinking images and now requires an account with a $399.00 annual fee to allow hotlink. More information is available at: this link.
    Dismiss Notice
  3. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  4. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  5. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  6. Dismiss Notice
  7. Forum account upgrades are available for ad-free browsing.
    Dismiss Notice

First turn money bug can be removed by hex edit

Discussion in 'Civ2 - Scenario Creation' started by AGRICOLA, Apr 18, 2004.


    AGRICOLA Chieftain

    Nov 19, 2002
    Canadian bush & Florida
    This has already been posted at Apolyton but might be useful to the scenario designers at CFC.

    Money bug is the problem where, if an enemy city is captured during the first turn of a scen or a regular game, the conquering civ gets all the loser's gold.


    Civ 2 keeps track of the sum of the sizes (SOS) of all cities that belong to each civ, including barbarians.

    This number is updated at the beginning of each turn to reflect any changes caused by city growth, founding of new cities or the conquest or loss of cities.

    As far as I can tell, the main use of SOS is for computing the amount of gold a civ gains when it conquers an enemy city. I believe that the computation looks something like this:

    GOLD GAINED = {gold possessed by enemy civ} x {(size of conquered city) / (SOS of enemy civ)} x {fudge factor that includes distance from capital, etc.}

    The first turn money bug in scenarios (and games) arises from the fact that all SOS are zero because the program has not had a chance to update them.

    Consequently, on the first turn, {(size of conquered city) / (SOS of enemy civ)} is infinite and GOLD GAINED = {gold possessed by enemy civ} .


    In CIV II MGE, the following bytes (offsets in decimal) contain the SOS for each civ:

    2386 - 7 Barbarians
    3814 - 5 Civ 1
    5242 - 3 Civ 2
    6670 - 1 Civ 3
    8098 - 9 Civ 4
    9526 - 7 Civ 5
    10954 - 5 Civ 6
    12382 - 3 Civ 7

    One way to fix the problem is to count up the SOS for each civ, convert the number to hex and enter it in the correct slot in the scenario save (remember that a hex number like 1C49 needs to be entered as 49 1C).

    Alternately, one can fast forward through the first turn, save it and then copy each number from the save and paste it into the correct slot in the scenario save. This may introduce very minor errors in the amount of gold one gets for conquering a city during the first turn.

    If anyone has a scen that is ready to launch but does not want to tackle hex editing, send me an e-mail, I'll try to help.:)
  2. McMonkey

    McMonkey ----Evertonian---- SLeague Staff

    May 9, 2005
    Agricola my old friend. I have a scenario here you would have loved testing (to destruction!). I could also have done with your hex editing skills to fix this damn bug. Rest in peace brother. You are sincerely missed.:sad:

Share This Page