Thread Tools
Old September 25, 2003, 12:53   #1
Art of War
Civilization II Multiplayer
Warlord
 
Local Time: 03:16
Local Date: November 2, 2010
Join Date: Jul 2003
Posts: 219
manual events
what do I need to write my events and then have them work in game without giving me the "there is a problem with the events.txt, read the manual to learn how to debug them"?
Art of War is offline  
Old September 25, 2003, 13:31   #2
jasev
staff
Spanish CiversScenario League / Civ2-CreationPtWDG2 Latin LoversApolytoners Hall of FamePSPB Team Español
Moderator
 
jasev's Avatar
 
Local Time: 11:16
Local Date: November 2, 2010
Join Date: Feb 2001
Location: at the Spanish Forum
Posts: 9,946
The only way to debug manual-created events is to isolate the failure.

Take the first five events (for example) and create a new events.txt with only those events. Load the scenario. If you find problems, then review those events (once you have located an erroneous event, you can post it in this forum and we'll help you to correct it) until you find the mistake. If you don't find problems, add the next five events.

There are many forms of doing it, but the idea is simple: first isolate the problem, then solve it.

Somebody could do an auto debugger, it shouldn't be SO difficult
__________________
"Son españoles... los que no pueden ser otra cosa" (Cánovas del Castillo)
"España es un problema, Europa su solución" (Ortega y Gasset)
The Spanish Civilization Site
"Déjate llevar por la complejidad y cabalga sobre ella" - Niessuh, sabio cívico

Last edited by jasev; September 25, 2003 at 17:53.
jasev is offline  
Old September 25, 2003, 14:34   #3
Art of War
Civilization II Multiplayer
Warlord
 
Local Time: 03:16
Local Date: November 2, 2010
Join Date: Jul 2003
Posts: 219
well, the only reason i'm writing my events is because i want to use the barb civ...is there a way to write all my events except the barb events in the game then write the barb events?
Art of War is offline  
Old September 25, 2003, 15:17   #4
Stefan Härtel
Civilization II Democracy Game: ExodusScenario League / Civ2-Creation
King
 
Stefan Härtel's Avatar
 
Local Time: 10:16
Local Date: November 2, 2010
Join Date: Jul 1999
Location: Some cold place
Posts: 2,336
The following should do the trick:


@BEGINEVENTS
@DEBUG
@IF
NOSCHISM

Include "@DEBUG" before your first event. It won't automatically be debugged, but the game will point out the error for you and will explain it for you to fix it. Quite simple, actually.
__________________
Follow the masses!
30,000 lemmings can't be wrong!
Stefan Härtel is offline  
Old September 25, 2003, 15:48   #5
klesh
King
 
klesh's Avatar
 
Local Time: 05:16
Local Date: November 2, 2010
Join Date: Jan 2000
Location: Massachusetts, USA
Posts: 2,048
Debugging doesnt work with MGE
__________________
It's a wonder that you still know how to breathe.
klesh is offline  
Old September 25, 2003, 16:11   #6
Stefan Härtel
Civilization II Democracy Game: ExodusScenario League / Civ2-Creation
King
 
Stefan Härtel's Avatar
 
Local Time: 10:16
Local Date: November 2, 2010
Join Date: Jul 1999
Location: Some cold place
Posts: 2,336
Oh.
__________________
Follow the masses!
30,000 lemmings can't be wrong!
Stefan Härtel is offline  
Old September 25, 2003, 16:27   #7
DarthVeda
Emperor
 
DarthVeda's Avatar
 
Local Time: 05:16
Local Date: November 2, 2010
Join Date: Dec 1969
Location: Baltimore, MD
Posts: 4,325
God damn.
DarthVeda is offline  
Old September 25, 2003, 16:28   #8
curtsibling
staff
Scenario League / Civ2-Creation
Moderator
 
curtsibling's Avatar
 
Local Time: 10:16
Local Date: November 2, 2010
Join Date: May 2002
Location: Spamingrad
Posts: 5,693
The best method is to back up your events, make a fresh and empty events file (with only begin and end tabs)
then add your events in twos or threes, and run the scen.

You will soon find the culprit.

It's normally a missing command like 'ENDTEXT' or something.
curtsibling is offline  
Old September 25, 2003, 17:51   #9
jasev
staff
Spanish CiversScenario League / Civ2-CreationPtWDG2 Latin LoversApolytoners Hall of FamePSPB Team Español
Moderator
 
jasev's Avatar
 
Local Time: 11:16
Local Date: November 2, 2010
Join Date: Feb 2001
Location: at the Spanish Forum
Posts: 9,946
Quote:
well, the only reason i'm writing my events is because i want to use the barb civ...is there a way to write all my events except the barb events in the game then write the barb events?
Yes, of course. Use the advanced editor to create the normal events (I only use the editor for the events) and then take the "events.txt" that will be generated and add barb events manually. But it's a pity to lose a full "events.txt" for a programming mistake, you should try to debug the file the way Curtsibling (and myself) suggested.
__________________
"Son españoles... los que no pueden ser otra cosa" (Cánovas del Castillo)
"España es un problema, Europa su solución" (Ortega y Gasset)
The Spanish Civilization Site
"Déjate llevar por la complejidad y cabalga sobre ella" - Niessuh, sabio cívico

Last edited by jasev; September 25, 2003 at 17:56.
jasev is offline  
Old September 26, 2003, 03:34   #10
ottok
Prince
 
ottok's Avatar
 
Local Time: 09:16
Local Date: November 2, 2010
Join Date: Oct 1999
Location: tampere,FINLAND
Posts: 550
ugh.
ottok is offline  
Old September 26, 2003, 03:46   #11
curtsibling
staff
Scenario League / Civ2-Creation
Moderator
 
curtsibling's Avatar
 
Local Time: 10:16
Local Date: November 2, 2010
Join Date: May 2002
Location: Spamingrad
Posts: 5,693
'ugh'

Not a big fan of events editing, then , Ottok?
curtsibling is offline  
Old September 26, 2003, 07:02   #12
Palaiologos
Civilization II PBEM
King
 
Palaiologos's Avatar
 
Local Time: 09:16
Local Date: November 2, 2010
Join Date: Aug 2002
Location: Constantinople, Queen of Cities
Posts: 1,563
Quote:
Originally posted by curtsibling
'ugh'

Not a big fan of events editing, then , Ottok?



I wager!



But dudes there is no reason to create barb events manually.Simply create events normally and then manually change the civ to "barbarians".

Sometimes just having "Trigger attacker" as civ works.
Palaiologos is offline  
Old September 26, 2003, 09:49   #13
Mercator
Scenario League / Civ2-Creation
Emperor
 
Mercator's Avatar
 
Local Time: 11:16
Local Date: November 2, 2010
Join Date: Dec 1969
Posts: 3,079
What Palaiologos said. Simply make them with the civ2 editors but use some other civ first, and then rename them to barbarians later...

Then again... Why the hell are you using the civ2 editors in the first place!!?!? Read the manual and the macro.txt, have a look at some of the events in other scenarios and make your own. It's not like it's actually difficult.
__________________
Civilization II: maps, guides, links, scenarios, patches and utilities (+ Civ2Tech and CivEngineer)
Mercator is offline  
Old September 26, 2003, 11:41   #14
jasev
staff
Spanish CiversScenario League / Civ2-CreationPtWDG2 Latin LoversApolytoners Hall of FamePSPB Team Español
Moderator
 
jasev's Avatar
 
Local Time: 11:16
Local Date: November 2, 2010
Join Date: Feb 2001
Location: at the Spanish Forum
Posts: 9,946
Quote:
Then again... Why the hell are you using the civ2 editors in the first place!!?!? Read the manual and the macro.txt, have a look at some of the events in other scenarios and make your own. It's not like it's actually difficult.
I agree that Civ2 editor is quite unuseful, but doing the events in the editor is quite easier than just writing it, and (most important) the editor doesn't make programming mistakes. Even the best programmers will have any error the first time they compile a program, the same with events language.
__________________
"Son españoles... los que no pueden ser otra cosa" (Cánovas del Castillo)
"España es un problema, Europa su solución" (Ortega y Gasset)
The Spanish Civilization Site
"Déjate llevar por la complejidad y cabalga sobre ella" - Niessuh, sabio cívico
jasev is offline  
Old September 26, 2003, 11:45   #15
Elok
Scenario League / Civ2-Creation
Emperor
 
Elok's Avatar
 
Local Time: 05:16
Local Date: November 2, 2010
Join Date: Mar 2003
Location: Having tea with the Third Man...
Posts: 6,169
Well, while we're talking about "somebody should," how about a more versatile, fan-made events editor?
__________________
"May I be forgiven for the ills that I have done/Friends I have forsaken and strangers I have shunned/Sins I have committed, for which others had to pay/And I haven't met the whiskey that can wash those stains away."
-Brady's Leap, "Wash."
Elok is offline  
Old September 26, 2003, 13:57   #16
Exile
Scenario League / Civ2-Creation
King
 
Exile's Avatar
 
Local Time: 04:16
Local Date: November 2, 2010
Join Date: Sep 2000
Location: of the Benighted Realms
Posts: 1,791
Regarding MGE . . .
In John Possidente's book and in my own experience, using both the editor and the manual method to create an events file won't work. It'll crash the game.

Now some assert that this isn't the case, but on my machine, and with my MGE, that IS the way it works. I can do it one way . . . or the other. But if I try to go back in and change something manually after I've created the file with the editor . . . it crashes.
__________________
Lost in America.
"a freaking mastermind." --Stefu
"or a very good liar." --Stefu
"Jesus" avatars created by Mercator and Laszlo.
Exile is offline  
Old September 26, 2003, 17:04   #17
Elok
Scenario League / Civ2-Creation
Emperor
 
Elok's Avatar
 
Local Time: 05:16
Local Date: November 2, 2010
Join Date: Mar 2003
Location: Having tea with the Third Man...
Posts: 6,169
And it's not just an embedding problem?
__________________
"May I be forgiven for the ills that I have done/Friends I have forsaken and strangers I have shunned/Sins I have committed, for which others had to pay/And I haven't met the whiskey that can wash those stains away."
-Brady's Leap, "Wash."
Elok is offline  
Old September 26, 2003, 17:39   #18
Palaiologos
Civilization II PBEM
King
 
Palaiologos's Avatar
 
Local Time: 09:16
Local Date: November 2, 2010
Join Date: Aug 2002
Location: Constantinople, Queen of Cities
Posts: 1,563
Re: Regarding MGE . . .
Quote:
Originally posted by Exile
In John Possidente's book.... .
For heaven's sake!

Someone has actually written a book for civ2?
Palaiologos is offline  
Old September 26, 2003, 18:27   #19
Exile
Scenario League / Civ2-Creation
King
 
Exile's Avatar
 
Local Time: 04:16
Local Date: November 2, 2010
Join Date: Sep 2000
Location: of the Benighted Realms
Posts: 1,791
Yep.
Title;

Civilization II, The Complete Guide to Scenario Building

by John Possidente

ISBN # 1-56893-904-3

Library of Congress card catalog # 98-84117

And I suppose that it could be an embedding problem. All I know is the how not the why.
__________________
Lost in America.
"a freaking mastermind." --Stefu
"or a very good liar." --Stefu
"Jesus" avatars created by Mercator and Laszlo.
Exile is offline  
Old September 26, 2003, 21:58   #20
Palaiologos
Civilization II PBEM
King
 
Palaiologos's Avatar
 
Local Time: 09:16
Local Date: November 2, 2010
Join Date: Aug 2002
Location: Constantinople, Queen of Cities
Posts: 1,563
Wow!








Only in america.......
Palaiologos is offline  
Old September 26, 2003, 22:10   #21
DarthVeda
Emperor
 
DarthVeda's Avatar
 
Local Time: 05:16
Local Date: November 2, 2010
Join Date: Dec 1969
Location: Baltimore, MD
Posts: 4,325
I own that book!
DarthVeda is offline  
Old October 2, 2003, 04:49   #22
ottok
Prince
 
ottok's Avatar
 
Local Time: 09:16
Local Date: November 2, 2010
Join Date: Oct 1999
Location: tampere,FINLAND
Posts: 550
hmm...
ottok is offline  
Old October 2, 2003, 05:04   #23
Ecthy
Civilization II MultiplayerApolytoners Hall of FameSpanish Civers
Emperor
 
Local Time: 11:16
Local Date: November 2, 2010
Join Date: Mar 2000
Posts: 8,491
what is this?
Ecthy is offline  
Old October 2, 2003, 14:32   #24
Art of War
Civilization II Multiplayer
Warlord
 
Local Time: 03:16
Local Date: November 2, 2010
Join Date: Jul 2003
Posts: 219
i heard you had to download something that would convert the events from the textpad to the events written in-game.
Art of War is offline  
Old October 4, 2003, 06:10   #25
Ecthy
Civilization II MultiplayerApolytoners Hall of FameSpanish Civers
Emperor
 
Local Time: 11:16
Local Date: November 2, 2010
Join Date: Mar 2000
Posts: 8,491
yeah, I was talking about ottok
Ecthy is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:16.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team