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

delevent, etc. in 64 bit

Discussion in 'Civ2 - Scenario League' started by amadeus, Feb 15, 2011.

  1. amadeus

    amadeus Civ2 / Law and Order!

    Joined:
    Aug 30, 2001
    Messages:
    35,497
    Gender:
    Male
    Location:
    Osaka (大阪)
    Anyone know how to get these to work?

    Curse Microsoft and their lack of backwards compatibility. :mad:
     
  2. Catfish

    Catfish Emperor

    Joined:
    Nov 2, 2003
    Messages:
    1,373
    Location:
    Wollongong, Australia
    Another 16-bit program; not surprising really. I'm running a 32-bit OS right now, so I can't test. It should probably be rewritten. It's a very simple program: it searches a file for the string, "EVNT", and deletes everything from that point onwards.

    Choice.com can be dispensed with. It's a matter of rewriting batch files.
     
  3. amadeus

    amadeus Civ2 / Law and Order!

    Joined:
    Aug 30, 2001
    Messages:
    35,497
    Gender:
    Male
    Location:
    Osaka (大阪)
    Huh, so when you reload said savegame, Civ2 adds the switched events.txt on, right?
     
  4. Catfish

    Catfish Emperor

    Joined:
    Nov 2, 2003
    Messages:
    1,373
    Location:
    Wollongong, Australia
    When you reload a saved game with no embedded events, the game loads them from events.txt (or randomly from any text file with the 'events' prefix in ToT).
     
  5. amadeus

    amadeus Civ2 / Law and Order!

    Joined:
    Aug 30, 2001
    Messages:
    35,497
    Gender:
    Male
    Location:
    Osaka (大阪)
    Interesting. Well, this will actually make old scenarios easily playable again! *breaks out hex editor*
     
  6. keu

    keu Chieftain

    Joined:
    Feb 7, 2011
    Messages:
    56
    Here is Delevent been rewritten. I compiled it for 32-bit windows, but it shoud run at 64-bit too.

    Source code included.

    UPDATE: GPL license removed. Just freeware program.
     

    Attached Files:

  7. Fairline

    Fairline Emperor

    Joined:
    Mar 21, 2002
    Messages:
    1,308
    Gender:
    Male
    Location:
    UK
    Thanks Keu
     
  8. Arthedain

    Arthedain - Celestial Being - SLeague Staff

    Joined:
    Jun 3, 2001
    Messages:
    407
    Location:
    Helsingborg, Sweden
    Excellent work! :b:
     
  9. Catfish

    Catfish Emperor

    Joined:
    Nov 2, 2003
    Messages:
    1,373
    Location:
    Wollongong, Australia
    :goodjob: Thanks, Keu.

    If I include it with a scenario, do I need to include the GPL? I imagine that eventually this file is going to be distributed in the same manner as the original regardless.
     
  10. keu

    keu Chieftain

    Joined:
    Feb 7, 2011
    Messages:
    56
    To avoid this small inconvenience I've just removed GPL from it :)
    See original message for new download.
     
  11. Catfish

    Catfish Emperor

    Joined:
    Nov 2, 2003
    Messages:
    1,373
    Location:
    Wollongong, Australia
    Makes things simpler. I've updated the following ToT conversions: Cross & Crescent, The Cruel Sea, Imperium Romanum, Red Front and Spartacus with the new version of Delevent. They should be 64-bit compatible now. All batch files use SET /P for the selection menus as well.
     

Share This Page