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 > Events/Batch File Problem
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
Patine is offline Patine
Prince
Edmonton, Canada
Mar 2002
time: 22:37
  Old Post 04-08-2005 05:40 Visit Patine's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Events/Batch File Problem Help yourself to an AD-FREE life

Can someone anylyze this current copy of 'Empire of the Rising Sun' for events bugs. I've got up the first two and half of the third of six before the bugs became insurmountable. I'm sending the whole scen because it should be thoroughly examined holistically. This copy is to find events bugs, not a full playtest copy. If someone could help me, I'd be most obliged. Just activate the batch file and choose option 1 to start.

Attachment: eotrs.zip
This has been downloaded 9 time(s).

Patine is offline Patine
Prince
Edmonton, Canada
Mar 2002
time: 22:37
  Old Post 04-08-2005 07:58 Visit Patine's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

Okay, I'll be a bit more specific. My too biggest issues are that later events files (so far 2 and 3) are getting a message when chosen on the batch file 'Events header not found' then failing to work, and that, when I can get them to work, certain US triggered attacks are being ignored by the AI and the attacking units just depart.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:37
  Old Post 04-08-2005 23:31 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Sounds like a batch file problem (well, part of it)...

From what I can see, you'd better change the label names in your batch files. Using (single) quotes and spaces in the label names is not a good idea.

I think it's going wrong there... I suggest you simply drop that single quote and replace the space with an underscore or something.

(and I don't think the "@echo off" lines are necessary, except for the very first one)

Patine is offline Patine
Prince
Edmonton, Canada
Mar 2002
time: 22:37
  Old Post 05-08-2005 03:51 Visit Patine's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Put an end to popups!

Thanks, Mercator, that seemed to have fixed the batch file problem. And now I've also fixed the problem that was giving me an error message in that I updated some civ and unit names without doing so on the events files. Fixed now! But events3 is now doing nothing; not even crashing the game because its too big or giving an error message. The scen's just ignoring it. Anyone know what could be going on?

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:37
  Old Post 05-08-2005 06:28 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Increase Your PM Length

To be of any help, I'll need your patience as I ask several basic questions to catch up with you. Let's start at the 'forest' level. This is a ToT scenario, right? Are you sure you need six events files? My EA events file is >90k. The sum of your first three is 72k, and I'll bet there's a lot of overlap. Granted, text file length is not a great measure of required stack space, but what is your remaining heap space when you read REPORT.TXT? It wouldn't surprise me if you can condense all 6 into 2 events files. Anticipating where the player will be 6 events files into the game will force you to enter a lot of redundant CityTaken triggers.

Now on to the 'trees'. Glad you got rid of the single quotes and spaces — those were killers.

Do you know that Events2 is working?

Is your litmus for Events3 the Kwajalein text on turn 26?

How does Report.txt read if you insert @DEBUG after @BEGINEVENTS in Events.txt? In Events2.txt? In Events3.txt?

Patine is offline Patine
Prince
Edmonton, Canada
Mar 2002
time: 22:37
  Old Post 05-08-2005 08:26 Visit Patine's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton buy from Amazon

First, I may well be able to condense my events files into three, if not two, separate files, as I want an initial universal one between Dec '41 and Dec '43, and then one for Jan '44 to Dec '47 if the Japanese are winning by that point, and the same if they're losing, at least. Three would make for less shuffling, and thus less chance of error, than six, admittedly. Second, last I checked (while reading your post), Events2 wasn't working either, though previously it had been. Third, yes, the text on Turn 26 is the litmus for Events3, and the one on Turn 14 the same for Events2, and last test, both failed. And, finally, I've attached my Report.txt as of last test of all three events, this time with the @DEBUG command, as it's way too much to post. Is this all any help?

Attachment: report.zip
This has been downloaded 2 time(s).

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:37
  Old Post 06-08-2005 06:29 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton buy from Amazon

This helps a lot!

Looks like this Report.txt has been used 58 times with Events.txt and 43 times with either events.txt, Events1.txt, Events2.txt, or Events3.txt. [$0.02 ] The newest debug report is always appended to the existing file, so it can get pretty long. I find that regularly editing out older report info or simply deleting the file makes it easier to scroll through the most recent data. [/$0.02 ]

A few things that I can see.

  1. "First, I may well be able to condense my events files into three, if not two, separate files...." Judging from the line
    code:
    remaining heap space: 65937 bytes
    (i.e. only ~33% is used), yep, I'd say this is true. The conditional events fork is an excellent idea. You might need a third option for Agricola.

  2. There are many illegal CreateUnit triggers toward the end of Events2.txt. The file has "owner=American", but it should be "owner=Americans".

  3. Many of the debugged files are named Eventsx.txt (where x=1-3). This shouldn't be. I came across a similar bug with EA myself. I'm guessing that the Civ2 events parsing routine simply opens the first text file that begins with the string "events". By first, I suspect that it is looking at the order in the OS's file table for the current directory. IIRC, that order changes according to file operations, edits, etc. Regardless of how (i.e. Boco is wildly guessing), it does appear that the intended file, Events.txt, is not always the file opened for embedding into a SAV file. Frequently it's one of your Eventsx.txt files.

I'm pretty sure that if you rename the files to 1Events.txt, 2Events.txt, etc., that ToT will embed the correct events (assuming that the bat file is also edited accordingly).

Patine is offline Patine
Prince
Edmonton, Canada
Mar 2002
time: 22:37
  Old Post 06-08-2005 11:36 Visit Patine's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

Thanks, Boco, this really helps! I'll try working with what you've said here, and if it doesn't work, even after that, I'll let you know; if it does, heck, I'll just release the beta (these events are the last thing needing doing).

Patine is offline Patine
Prince
Edmonton, Canada
Mar 2002
time: 22:37
  Old Post 08-08-2005 08:57 Visit Patine's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton

Okay, I followed Boco's advice, and most things in the events seem to be working...except one glitch in my second events file (Jan '44 to Dec '47 if Japan is losing), but I can't find it, and the report.txt wasn't much help. Can someone please take a look at this events.txt file and see if you can find the error? Thanks!

Attachment: events.zip
This has been downloaded 3 time(s).

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:37
  Old Post 08-08-2005 09:43 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Avatar Enlargement: We've got the solution

I'd like to take a look at the Report.txt, just in case you missed something. It's usually very clear. Otherwise, wading through a long Events.txt is very daunting.

Patine is offline Patine
Prince
Edmonton, Canada
Mar 2002
time: 22:37
  Old Post 08-08-2005 10:04 Visit Patine's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Increase the size of your Attachments

Here you go. I hope this helps.

Patine is offline Patine
Prince
Edmonton, Canada
Mar 2002
time: 22:37
  Old Post 08-08-2005 10:04 Visit Patine's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Support Apolyton buy from Amazon

Sorry, here it is.

Attachment: report.zip
This has been downloaded 2 time(s).

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:37
  Old Post 08-08-2005 15:28 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Suffering from ads?

Now that's irony. Operation Downfall did you in!

Sadly, this is a very familar error.

code:
WARNING - SCENEVNT HEAP GET FAILURE

You have indeed shown you need multiple events files. On turn 48 you trigger events for Op Downfall. You exceeded the allowed event space after CreateUnit (unit=15 cm Field Gun) events. Looks like you'll need to load a new events file before the Op. Looks like I lost my bet about how many events files it'll take, but this is how you find out. Split the file so that you have some remaining stack heap, and you'll be fine. Nothing wrong with the events themselves (up to this point).

Patine is offline Patine
Prince
Edmonton, Canada
Mar 2002
time: 22:37
  Old Post 09-08-2005 02:27 Visit Patine's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Inflate your Upload Space

I see I'll have to go back to my original events scheme. Wish I had been actively betting against you! Thanks a lot, Boco! I'll see what I can do now.

Patine is offline Patine
Prince
Edmonton, Canada
Mar 2002
time: 22:37
  Old Post 09-08-2005 03:45 Visit Patine's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Avatar Enlargement: We've got the solution

It still keeps saying 'Events header not found' when I select option 3 and won't delevent the SR.sav file. Here, I've attached the batch file and the events and report files in question if you want to have a look at them.

Attachment: texterror.zip
This has been downloaded 0 time(s).

Patine is offline Patine
Prince
Edmonton, Canada
Mar 2002
time: 22:37
  Old Post 09-08-2005 04:10 Visit Patine's homepage!
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Support Apolyton

Don't worry, I've got it working now. Thanks for your help!

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:37
  Old Post 09-08-2005 08:55 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by Patine
I see I'll have to go back to my original events scheme. Wish I had been actively betting against you!


Yeah, I goofed on that one! Still, it doesn't require 6 events files, does it?

Just remember, the most important lines of the Report.txt are the last ones. If the events embedding worked, it'll list the remaining stack space. If not, it'll explain why. It's very helpful.

Patine is offline Patine
Prince
Edmonton, Canada
Mar 2002
time: 22:37
  Old Post 09-08-2005 13:50 Visit Patine's homepage!
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Enter the AD-FREE zone

I've actually worked it out now where the full 6 events files are indeed needed to make it do what I want it to. You'll see why when I release the beta shortly.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:37.
Apolyton Time is 00:37.
    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.0532 seconds (89.80% PHP - 10.20% 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