1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

You Say You Want a Revolution? Well, You Know ...

Discussion in 'Civ1 - General Discussions' started by Valen, Apr 15, 2017.

Tags:
  1. Valen

    Valen TWAYF Builder

    Joined:
    Mar 8, 2004
    Messages:
    267
    Location:
    Left Coast
    Has anyone seen this before? I've just discovered democracy and want to take advantage of it. In this snapshot, inciting a revolution causes the game to lock up.
    If anyone has a suggestion how I can get this revolution to happen, I would really appreciate it.
     

    Attached Files:

  2. Valen

    Valen TWAYF Builder

    Joined:
    Mar 8, 2004
    Messages:
    267
    Location:
    Left Coast
    Found it. It has nothing to do with the save files. It's the KING.TXT file. Restored it from an old backup and made it read-only.
    Now figuring out what triggers the game to actually write to KING.TXT. Anybody have any insight?
     
  3. Mize

    Mize Warlord

    Joined:
    Jun 17, 2011
    Messages:
    298
    No real insight into the reasons, unfortunately, but it is known that the game does sometimes make changes to king.txt and other .txt files. Sometimes these changes cause crashes.

    https://forums.civfanatics.com/threads/civ1-txt-files-last-change.640235/
    I remember discussing this phenomenon in another thread too, but I can't really remember what it was about in order to find it.
     
  4. tupi

    tupi Chieftain

    Joined:
    Jun 25, 2011
    Messages:
    90
    Location:
    Russia
    I know only that:

    1) 'fresh' king.txt already has some binary data
    2) game will freeze if you will delete this data altogether
    3) all different king.txt files which i have (including problematic file from Valen) have same number of bytes in this part. So it does not looking like some totally arbitrary writing. At least it always in this 'data' part of file.

    Should at least investigate read/write from a file routines. But for me it's not easy, we need someone of level of darkpanda here. But I'm definetely interested.
     
    Last edited: Dec 5, 2020

Share This Page