Minor question, can you hack the Hall of Fame to

Discussion in 'Civ2 - General Discussions' started by Bestbank Tiger, Jun 6, 2007.

  1. Bestbank Tiger

    Bestbank Tiger Deity

    Joined:
    May 23, 2006
    Messages:
    2,154
    Location:
    Grassland
    indicate that a game was an OCC?

    I want to take out the title "weak" (and just use my name), and add in that it was an OCC.
     
  2. Thorvald of Lym

    Thorvald of Lym A Little Sketchy

    Joined:
    Nov 21, 2005
    Messages:
    8,497
    Location:
    A Palace north of Oslo
    Well, you could open up the GAME.TXT file, scroll down to @MALEFAME (and/or @FEMALEFAME), and replace "%STRING0 the Weak" with "%STRING0 (OCC)". This is, however, only a text change. To my knowledge, there is no way for Civ2 to differenciate between a regular game and OCC.
     
  3. Catfish

    Catfish Emperor

    Joined:
    Nov 2, 2003
    Messages:
    1,373
    Location:
    Wollongong, Australia
    You'd need to hack hallfame.dat for that. If you get hold of a hex-editor, that shouldn't be too difficult. I just had a sniff around the file; each game entry is 72 bytes:

    2 bytes - Score (0xFFFF when scrubbed from list)
    2 bytes - Difficulty level, refers to @DIFFICULTY table in rules.txt (0x0080 denotes Cheat Mode).
    2 bytes - Number of turns
    2 bytes - Date
    2 bytes - Population/1000
    2 bytes - Objectives (0xFFFF for non-objective game)
    2 bytes - Unknown
    2 bytes - Unknown
    2 bytes - Scenario flag (0x0080)
    2 bytes - Civilization Rating % (0xFFFF when score scrubbed)
    2 bytes - Leader Gender (0x0000 = Male, 0x0001 = Female)
    2 bytes - Leader Title, refers to @MALEFAME or @FEMALEFAME table in game.txt (0x0000 - 0x0017).
    24 bytes - Leader Name String
    24 bytes - Tribe Name String

    You could easily add '(OCC)' to either the leader name or tribe name strings.
     
  4. ElephantU

    ElephantU Deity

    Joined:
    Aug 19, 2002
    Messages:
    2,272
    Location:
    Phila PA
    Changing the "weak" string in GAME.TXT is not going to help, because you get that label based on your score and not your civ size. Any non-OCC game you finish thereafter which has a similar score will then get the OCC label as well. Wobbegong's solution is an after-the-fact edit that you will have to apply to each game; there does not seem to be any hack or patch you can apply that will enable the HoF to recognize OCC games and automatically add that to the description. If you editted the LeaderName or TribeName and only used that one when you are playing OCC that would work, but you could not use any randomly generated games that set your starting civ to that one.
     
  5. Mercator

    Mercator Emperor

    Joined:
    Mar 9, 2001
    Messages:
    1,073
    Actually, you could combine the info from Thorvald's and Wobbegong's posts...
    Instead of replacing "the Weak" with "(OCC)", you could add a new line at the bottom of that list that says "%STRING0 (OCC)", and then hex-edit your OCC Hall of Fame entries' leader title to 18...

    Or perhaps add just "%STRING0" to the game.txt, change the title number in hallfame.dat to 18 to use that, and then add the (OCC) to the tribe name in hallfame.dat instead for a perhaps more aesthetically pleasing result.
     
  6. Catfish

    Catfish Emperor

    Joined:
    Nov 2, 2003
    Messages:
    1,373
    Location:
    Wollongong, Australia
  7. Bestbank Tiger

    Bestbank Tiger Deity

    Joined:
    May 23, 2006
    Messages:
    2,154
    Location:
    Grassland
    I like it...thanks!
     

Share This Page