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 > Miscellaneous > Archive > Scenario League / Civ2-Creation -Archive > Battling with Weird Bugs
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Exile is offline Exile
King
of the Benighted Realms
Sep 2000
time: 23:14
Question  Old Post 24-05-2001 01:43
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Battling with Weird Bugs Support Apolyton, buy Galactic Civilizations

No, I'm not talking about a '50s sci-fi flick, I've encountered some strange quirks in my newly-finished scenario. Here's a list. I may add to it as I go.

1.) the "r" key, which is normally used to order settlers to build roads, now activates the pop-up window that asks me if I'm sure I want to stage a revolution.

2.) the "c" key, which normally centers the map on the unit that's flashing, now activates the "goto" command and a pop-up window appears with a list of cities on it.

3.) For the first time ever, I'm manually writing an events file instead of using the MGE editors to create it for me. Of course, things are not firing, going wrong, and not appearing at all. So, is the difference between lower-case and upper-case important? Looking at half-a-dozen other events files from other scenarios, I notice that the commands and triggers are all written in caps, while the other stuff is written in lower-case letters. Is this important? How does one go about using the "parsing" thing? The instructions in the manual are, not surprisingly, completely inadequate in describing how the thing should be used.

4.) Lastly, DON'T tell me not to ever use the MGE editors. I've already heard it, thanks. I KNOW they're wacky and I decided not to use 'em this time. And, of course, everything is going wrong despite that. Typical.

Wrestling, but it's getting the best of me,
Exile

Paul Hanson is offline Paul Hanson
King
Dilbert
Aug 1999
time: 05:14
  Old Post 24-05-2001 02:19
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

For you first two points, I believe you have the Caps Lock key on, or something similar.

As for your third point, I believe that the events aren`t case sensitive, but don`t hold me to that.

And as for your fourth point: OK then, I won`t.

Exile is offline Exile
King
of the Benighted Realms
Sep 2000
time: 23:14
  Old Post 24-05-2001 02:23
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Doh! Browse Apolyton AD-FREE

The caps lock key! OF COURSE--THAT'S IT!

Now if I could just figure out what's up with the events file . . .

Thank you,
Mr. Hanson

Gothmog is offline Gothmog
Prince
Minas Morgul
Jan 1970
time: 00:14
  Old Post 24-05-2001 02:27
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Tired of ads?

Questions 1 and 2. I think you have the caps lock on.

Question 3: Case doesn't matter for the trigger and action keywords, but it might for things like unit/tribe/city names. To debug, insert @debug in your events file after the @BEGINEVENTS statement.

Exile is offline Exile
King
of the Benighted Realms
Sep 2000
time: 23:14
  Old Post 24-05-2001 02:30
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Done. Remove this text

Ok, I inserted the "@DEBUG" on the line right underneath the "@BEGINEVENTS" line.

Now what?

Run the scenario?

Exile

BeBro is offline BeBro
King
of the Krauts
Mar 2000
time: 06:14
  Old Post 24-05-2001 02:44 Visit BeBro's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Enter the AD-FREE zone

Yes, start the scn, then civ2 will "debug" the events. Means: it will go through the events and check for errors. It stops when it finds an error (and you can see in the debug window where exactly the line with the error is), then you can correct it manually, or it runs the scn normally when there is no error.

Gothmog is offline Gothmog
Prince
Minas Morgul
Jan 1970
time: 00:14
  Old Post 24-05-2001 02:45
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Avatar Enlargement: We've got the solution

Yes run the scenario, a window should pop up tracing the statements as they are executed. It will stop when the first error happens. You will have to repeat this process until you find all of the errors.

You should also know that @debug doesn't catch all errors. If you specify an illegal location or misspell a city name, that won't be caught.

Exile is offline Exile
King
of the Benighted Realms
Sep 2000
time: 23:14
  Old Post 24-05-2001 02:50
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Strange . . . Full PM-box? Change here!

Well, I ran the scenario, but nothing except the usual happened. Without giving too much away, I created a series of events that are almost identical. There is a broad selection of units that, if destroyed by the protagonist civ, should, through "createunit" events, produce specific units for the protagonist civ near its capital city. I've destroyed a whole selection of these units, and no units have yet been created by these events. I know that I must have an event for each type of unit specified, but I'm not seeing any units being generated at all. And the parser isn't telling me anything yet.

Any ideas what's going wrong?

Wrestling with creation (but getting beat),
Exile

Allard HS is offline Allard HS
Prince
NL
Jan 1970
time: 06:14
  Old Post 24-05-2001 03:55 Visit Allard HS's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Increase Your PM Length

did you perhaps by accident, or did the MGE/FW editors, or however else, mess up with the @ORDERS thing in RULES.TXT? That might explain it, though I do not see a centering thing there.

Exile is offline Exile
King
of the Benighted Realms
Sep 2000
time: 23:14
  Old Post 24-05-2001 04:03
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
That problem is fixed! Tired of ads?

No allard, the two knowledgeable persons who told me to release the caplock key were correct. That problem is solved.

Right now all that's really preventing me from releasing test versions are the difficulties with the events file.

Exile

SCDARS is offline SCDARS
Warlord

Sep 1999
time: 06:14
  Old Post 24-05-2001 05:00 Visit SCDARS's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Increase the size of your Attachments

If you sent me your events, rules, and the scenario file packed as a zip, I'll have a look at it. For my address see my signature.

Exile is offline Exile
King
of the Benighted Realms
Sep 2000
time: 23:14
  Old Post 24-05-2001 05:48
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Bon Voyage Enter the AD-FREE zone

On its way.

Exile

SCDARS is offline SCDARS
Warlord

Sep 1999
time: 06:14
  Old Post 24-05-2001 14:26 Visit SCDARS's homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Increase the size of your Attachments

I looked into it an I found several errors (typos at most, but the makro language is not tolerant if a single letter is missing) which prevent the eventsfile as a whole from being loaded:

- you mixed up the arguments needed for owner in you createunits.
After owner= should stand the CIVILIZATION (plural) NAME, not the adjective, i.e. "Hungarians" instead of
- make sure that you type "veteran=" instead of "VETRAN="
- I also think it's DESTROYCIVILZATION instead of DESTROYACIVILZATION, but I haven''t rechecked it.
- on time you wrote "unit=Tyrkish Spahi" instead of "unit=Tyrkish Spahis"
- same with "Horse Archer" instead of "Horse Archers"

One basic advice I can give you is to develop events one after another, and check them often during development.

For your convenience I've attached a corrected version of the CreateUnit-Events, the other mistakes (owner=?) should be easy to sort out.

SCDARS is offline SCDARS
Warlord

Sep 1999
time: 06:14
Question  Old Post 27-05-2001 19:31 Visit SCDARS's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Tired of ads?

So are your problems solved by now?

Exile is offline Exile
King
of the Benighted Realms
Sep 2000
time: 23:14
  Old Post 28-05-2001 00:38
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton, buy Call to Power 2

SCDARS,
Well, first I want to thank you for your generous offer to help and for your sincere efforts. Secondly, no. I copied the files exactly like you sent them and they still don't work. Henrik is looking into the problem.

Exile

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:14.
Apolyton Time is 00:14.
    top of page
Rate This Thread:
archivepost
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.0484 seconds (88.33% PHP - 11.67% MySQL) with 31 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