Delevent
An applescript for deleting embedded events from Mac Civ 2 MPGE save files
Download options (pick 1)

Download selfextracting file with scrip and Read me. (New 25 sep 2000)

or

Download script and read me.(zipit zip-file. Stuffit does not like this file)


Comment on this script or page

Go to Convert Civ 2 scenario page


Delevent for MacIntosh readme.

What is Delevent?
Delevent is a program that deletes the embedded events in Civilization II Gold save files. It has no effect and serves no purpose if playing Civilization II (non-Gold version).

How is it used.
Simply drop a save file on it and the. If you accidentally double-click on the file, it will simply ask

General background.
A save file for Civilization II contains the events. A save file needs to keep track what events have already been triggered so they do not trigger again. It is like a copy of the events.txt file. So far so good.

This can be a problem if the file events.txt is changed so that the events.txt is different from the copy embedded inside the save file. In this case the new events.txt will be ignored. However if all embedded events are removed from the save file Civilization II will use the events.txt file, as if no event inside was ever triggered.
You can find more info about events.txt and embedded events at:
http://sleague.apolyton.net/Guides/sldt_embed_events.shtml

Why do I need this?
Either if...

You play one of several very large scenarios floating around out there, they use techniques to get more out of the same scenario by switching game files.

For instance a scenario that has different seasons, like Red Front. At the end of one season, the player is prompted to save his file. The game files are then changed and the player can reload his file with the new game files active. The scenario might now have changed all terrain to winter terrain instead of summer terrain. That part works nicely, but if there are embedded events in the save file, they will be used and the file events.txt is ignored. In order to make Civilization use the new events.txt file, all embedded events need to be removed, because if this is done Civ II will use the events.txt file.
or...
If you create your own scenario and save the scenario as a save file - sorry, cannot think of why you would like to do this - you might want to change the events.txt file after creating the save file. In this case you should drop the save file on the Delevent program to insure that the events in th new events.txt file are used.

What EXACTLY does it do?
At the end of a Civilization II save file are the events. Delevent looks for the string "EVNT" that signifies this and removes this and the events following it. If "EVNT" is not found, nothing is done.
If you are curious, you can open the Delevent file in Apples script editor, and you can view the source. Please do not spread modified copies.

What about Civilization II (non-Gold)?
Well, since events do not exist in the non-Gold version of Civilization II, it should not do anything.

Any other questions?
Direct questions, flames or thanks to:
"Wulf" (my Civ2 alias) Christian Beijner
d88-cbr@nada.kth.se