September 25, 2003, 12:53
|
#1
|
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"?
|
|
|
|
September 25, 2003, 13:31
|
#2
|
Moderator
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.
|
|
|
|
September 25, 2003, 14:34
|
#3
|
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?
|
|
|
|
September 25, 2003, 15:17
|
#4
|
King
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!
|
|
|
|
September 25, 2003, 15:48
|
#5
|
King
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.
|
|
|
|
September 25, 2003, 16:11
|
#6
|
King
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!
|
|
|
|
September 25, 2003, 16:27
|
#7
|
Emperor
Local Time: 05:16
Local Date: November 2, 2010
Join Date: Dec 1969
Location: Baltimore, MD
Posts: 4,325
|
God damn.
|
|
|
|
September 25, 2003, 16:28
|
#8
|
Moderator
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.
|
|
|
|
September 25, 2003, 17:51
|
#9
|
Moderator
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.
|
|
|
|
September 26, 2003, 03:34
|
#10
|
Prince
Local Time: 09:16
Local Date: November 2, 2010
Join Date: Oct 1999
Location: tampere,FINLAND
Posts: 550
|
ugh.
|
|
|
|
September 26, 2003, 03:46
|
#11
|
Moderator
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?
|
|
|
|
September 26, 2003, 07:02
|
#12
|
King
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.
|
|
|
|
September 26, 2003, 09:49
|
#13
|
Emperor
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.
|
|
|
|
September 26, 2003, 11:41
|
#14
|
Moderator
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
|
|
|
|
September 26, 2003, 11:45
|
#15
|
Emperor
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."
|
|
|
|
September 26, 2003, 13:57
|
#16
|
King
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.
|
|
|
|
September 26, 2003, 17:04
|
#17
|
Emperor
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."
|
|
|
|
September 26, 2003, 17:39
|
#18
|
King
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?
|
|
|
|
September 26, 2003, 18:27
|
#19
|
King
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.
|
|
|
|
September 26, 2003, 21:58
|
#20
|
King
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.......
|
|
|
|
September 26, 2003, 22:10
|
#21
|
Emperor
Local Time: 05:16
Local Date: November 2, 2010
Join Date: Dec 1969
Location: Baltimore, MD
Posts: 4,325
|
I own that book!
|
|
|
|
October 2, 2003, 04:49
|
#22
|
Prince
Local Time: 09:16
Local Date: November 2, 2010
Join Date: Oct 1999
Location: tampere,FINLAND
Posts: 550
|
hmm...
|
|
|
|
October 2, 2003, 05:04
|
#23
|
Emperor
Local Time: 11:16
Local Date: November 2, 2010
Join Date: Mar 2000
Posts: 8,491
|
what is this?
|
|
|
|
October 2, 2003, 14:32
|
#24
|
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.
|
|
|
|
October 4, 2003, 06:10
|
#25
|
Emperor
Local Time: 11:16
Local Date: November 2, 2010
Join Date: Mar 2000
Posts: 8,491
|
yeah, I was talking about ottok
|
|
|
|
Posting 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
|
|
|
All times are GMT -4. The time now is 05:16.
|
|