Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Civilization II > Scenario League / Civ2-Creation > What does 'delevent' do?
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
29.Jul: MOVING UP ON REVISED `TOP 100` INDEX
29.May: GAME MECHANICS REFERENCE BOOKLET
06.Mar: DROPPING FROM SECOND TO THIRD
CivGroups
Scenario League / Civ2-Creation (66): Not a Member - Join

bottom of page
  - CIVILIZATION 2 from $6.95 - CIVILIZATION 2 from $4.25 - CIV2: TEST OF TIME from $2.50 - CIV2: MULTIPLAYER GOLD EDITION from $4.99
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Fireb is offline Fireb
Settler

Sep 2004
time: 05:17
  Old Post 15-09-2004 15:43
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
What does 'delevent' do? Enter the AD-FREE zone

Thanks for reading:

There are 2 parts to this thread.
1)What does it (delevent.exe) do.
2) Can I do it (whatever it is) in windows XP (relatively easily).

1) Maybe it just deletes simple events.txt files, so that a batch program can replace it with another (in scenarios and mods). However, I believe it has more to do with setting up a save file to recompile a new events file, though I really don't know, apart from the fact that it takes a save file as an argument (e.g. 'delevent savegame.sav'). Any ideas?

2) As I'm running WinXP, things like 'delevent.exe', which is (I think) a Dos executable, do not work (as dos is not supported in XP). I can get around the batch files not working, but not delevent I've tried installing a dos simulator shell, but it didn't work.

Thanks for any answers.

FB

Last edited by Fireb on 15-09-2004 at 15:50

Case is offline Case

King
The backlash starts here
Feb 2000
time: 15:17
  Old Post 15-09-2004 16:07 Visit Case<br><a href=/members><img src=/forums/images/supporter-icon.gif border=0></a><BR>'s homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Re: What does 'delevent' do? Increase the size of your Attachments

quote:
Originally posted by Fireb
There are 2 parts to this thread.
1)What does it (delevent.exe) do.



1) Maybe it just deletes simple events.txt files, so that a batch program can replace it with another (in scenarios and mods). However, I believe it has more to do with setting up a save file to recompile a new events file, though I really don't know, apart from the fact that it takes a save file as an argument (e.g. 'delevent savegame.sav'). Any ideas?


When it's run on a saved file, etc, delevent.exe 'untriggers' all the events which have previously occured in that game, allowing them to re-occur. In addition, it strips any repeating events from the save, stoping them from recuring again.

As a result of these features, it's very useful for scenarios which employ multiple events files.

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:17
  Old Post 15-09-2004 16:41 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

What I tend to do is have a copy of the application in each important scenario folder.
Just for those situations where you may have to edit events during a playtest game.

You just drag the save game onto the 'delevent.exe' file.
It will open a MS-DOS window for a split second.

Make you changes to the events file or whatever you have to do!

Then when you reload the game, you will see all previously activated events replay on the next AI turn.

Do not worry, this is normal...

This way, you should be able to edit events with ease.

Fireb is offline Fireb
Settler

Sep 2004
time: 05:17
  Old Post 15-09-2004 17:35
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Help yourself to an AD-FREE life

Thanks guys! That's a great help.

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:17
  Old Post 15-09-2004 17:44 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton buy from Amazon

Our pleasure!

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:17
  Old Post 15-09-2004 18:33 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Re: What does 'delevent' do? Browse Apolyton AD-FREE

Completely superfluous, as the questions have already been answered excellently, but I can't help it...

quote:
Originally posted by Fireb
1)What does it (delevent.exe) do.


Whenever Civ2 loads/starts a savegame/scenario it checks if there's an events file. If there is, it will "compile" the events and put them inside the savegame itself. When there already are events embedded in the savegame, no new events will be loaded. So Civ2 only actually checks the events.txt the very first time.

That's where delevent.exe comes in. It strips all events from a savegame (or scenario file) so that they can be loaded afresh from the events text file.

I've heard that using the in-game events editor can sometimes cause the events to be stored inside the scenario file. That can be useful, say, if you don't want anybody playing your scenario to pry into your precious events (the events.txt won't be needed as they're stored in the scenario file itself). But it is usually a nuisance during development.

Let me get even more technical. The events section in a savegame/scenario (both use the exact same file format) is stored at the very end of the file and is marked with the string EVNT. What delevent.exe does is find the first occurrence of "EVNT" in a file and remove it and everything after it. So the file you drop onto delevent or pass as a command-line argument to it doesn't even have to be a civ2 file. It'll try to butcher anything you give to it, so to speak.

quote:
2) Can I do it (whatever it is) in windows XP (relatively easily).


You can use it in Windows XP, but it won't do anything unless you give it a command-line argument.

The easiest way to do that is as Curt said, drop your savegame onto it.

You can also do it by using the Command Prompt (must be hidden in the Start menu somewhere) or Run... Start menu item. For the latter you'd have to type the full file path and name of delevent followed by the full file path and name to the savegame.

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:17
  Old Post 15-09-2004 18:58 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Increase Your PM Length

Fireb is offline Fireb
Settler

Sep 2004
time: 05:17
  Old Post 15-09-2004 19:24
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:17.
Apolyton Time is 00:17.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0320 seconds (87.44% PHP - 12.56% MySQL) with 36 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net