Thread Tools
Old March 9, 2000, 14:34   #1
Alinestra Covelia
ACDG The Human HiveRise of Nations Multiplayer
Queen
 
Alinestra Covelia's Avatar
 
Local Time: 20:06
Local Date: October 30, 2010
Join Date: Feb 2000
Posts: 5,848
Scenario Turn and .wav Playing Problem
Right, I'm trying to polish off my Star Wars:Rebellion scenario, and one of the problems I'm having is with the turns.

I want the game to start in 1 AD (or equivalent). The game goes in 1 year increments. I set the scen starting year to 0 (for the default), and this works fine. It makes my scenario turn 1 AR.

Right then. I want the game to play a .wav file the first turn of the scenario. I have the sound in the sounds file for the scenario, and that seems okay. In the events text file, I have put a command line telling the scenario to play the .wav file near startup. Neither of these works properly.

A) IF SCENLOADED then PLAYWAVFILE start.wav

B) IF TURN=1 then PLAYWAVFILE start.wav

If I place the .wav file as a combat noise, then it plays during combat, so I'm sure the .wav itself is correct. Can any of you suss out the mechanics of the game, and penetrate my appalling grammar, to find out WHAT'S WRONG???

------------------
"In all creation, there can be no task more onerous or tedious than that of playing God." - Stephen Fry, 'The Liar'.
Alinestra Covelia is offline  
Old March 9, 2000, 17:10   #2
Miner
Prince
 
Miner's Avatar
 
Local Time: 01:06
Local Date: October 31, 2010
Join Date: Jul 1999
Location: of London
Posts: 375
1) The SCENARIOLOADED trigger is only supposed to be used in conjunction with DONTPLAYWONDERS (the action that stops wonder movies playing) anything else casues unpredictable results.

2) Although not documented, there are several problems with events on turn=1. I don't know why and I expect someone else to give a better explanation.
Miner is offline  
Old March 9, 2000, 18:41   #3
Alinestra Covelia
ACDG The Human HiveRise of Nations Multiplayer
Queen
 
Alinestra Covelia's Avatar
 
Local Time: 20:06
Local Date: October 30, 2010
Join Date: Feb 2000
Posts: 5,848
There are even problems getting the .wav to play on turns 2, 3, etc.

Is there some sort of thing where I actually have to state the real turn that the scen is in, rather than the relative turn?

So would I have to go digging to find out what on earth "1 AD" really is?

------------------
"In all creation, there can be no task more onerous or tedious than that of playing God." - Stephen Fry, 'The Liar'.
Alinestra Covelia is offline  
Old March 9, 2000, 18:45   #4
Gothmog
Scenario League / Civ2-Creation
Prince
 
Gothmog's Avatar
 
Local Time: 20:06
Local Date: October 30, 2010
Join Date: Dec 1969
Location: Minas Morgul
Posts: 421
Try this.

@IF
TURN
turn=1
@THEN
PLAYWAVEFILE
start.wav
@ENDIF
Gothmog is offline  
Old March 9, 2000, 19:13   #5
Alinestra Covelia
ACDG The Human HiveRise of Nations Multiplayer
Queen
 
Alinestra Covelia's Avatar
 
Local Time: 20:06
Local Date: October 30, 2010
Join Date: Feb 2000
Posts: 5,848
Here are the egs of code from the events.txt that I have. They don't work properly.

@IF
SCENARIOLOADED
@THEN
PLAYWAVEFILE
Start.WAV
@ENDIF

and

@IF
TURN
turn=1
@THEN
TEXT
[blah blah blah...you really don't want to know]
ENDTEXT
PLAYWAVFILE
start.wav
@ENDIF


These don't work, and I'm sure it's something to do with the turn problem, not the wave file itself. (I set Lord Vader's attack sound to it once, and got an earful of John Williams whenever he attacked.)

------------------
"In all creation, there can be no task more onerous or tedious than that of playing God." - Stephen Fry, 'The Liar'.
Alinestra Covelia is offline  
Old March 9, 2000, 19:21   #6
Paul Hanson
King
 
Paul Hanson's Avatar
 
Local Time: 01:06
Local Date: October 31, 2010
Join Date: Aug 1999
Location: Dilbert
Posts: 1,839
Does the text get displayed?
Paul Hanson is offline  
Old March 10, 2000, 14:07   #7
Alinestra Covelia
ACDG The Human HiveRise of Nations Multiplayer
Queen
 
Alinestra Covelia's Avatar
 
Local Time: 20:06
Local Date: October 30, 2010
Join Date: Feb 2000
Posts: 5,848
Good question.

The answer is no, it doesn't.

------------------
"In all creation, there can be no task more onerous or tedious than that of playing God." - Stephen Fry, 'The Liar'.
Alinestra Covelia is offline  
Old March 10, 2000, 15:53   #8
Miner
Prince
 
Miner's Avatar
 
Local Time: 01:06
Local Date: October 31, 2010
Join Date: Jul 1999
Location: of London
Posts: 375
In which case the event is not even firing, rather than a problem with the event.

In the Cheat menu, go to Set Game Year

WHAT IS THAT NUMBER?
Miner is offline  
Old March 10, 2000, 18:03   #9
Alinestra Covelia
ACDG The Human HiveRise of Nations Multiplayer
Queen
 
Alinestra Covelia's Avatar
 
Local Time: 20:06
Local Date: October 30, 2010
Join Date: Feb 2000
Posts: 5,848
The year is 101. Like a certain nice room we have all heard about.

Maybe it's because I'm a Londoner...

------------------
"In all creation, there can be no task more onerous or tedious than that of playing God." - Stephen Fry, 'The Liar'.
Alinestra Covelia is offline  
Old March 11, 2000, 03:17   #10
William Keenan
Scenario League / Civ2-Creation
Prince
 
William Keenan's Avatar
 
Local Time: 19:06
Local Date: October 30, 2010
Join Date: Sep 1999
Location: New Jersey, USA, Earth, Sol, Milky Way
Posts: 705
@IF
TURN
turn=-1
@THEN
TEXT
[blah blah blah...you really don't want to know]
ENDTEXT
PLAYWAVFILE
start.wav
@ENDIF

If it works please don't ask me to explain why.
William Keenan is offline  
Old March 11, 2000, 05:13   #11
Alinestra Covelia
ACDG The Human HiveRise of Nations Multiplayer
Queen
 
Alinestra Covelia's Avatar
 
Local Time: 20:06
Local Date: October 30, 2010
Join Date: Feb 2000
Posts: 5,848
Now this is interesting. This time using the turn as "-1", the text shows up properly. However, the music is still not firing correctly.

Any hints? Tips? Walkthroughs and level descriptions?

------------------
"In all creation, there can be no task more onerous or tedious than that of playing God." - Stephen Fry, 'The Liar'.
Alinestra Covelia is offline  
Old March 11, 2000, 06:48   #12
Gothmog
Scenario League / Civ2-Creation
Prince
 
Gothmog's Avatar
 
Local Time: 20:06
Local Date: October 30, 2010
Join Date: Dec 1969
Location: Minas Morgul
Posts: 421
One thing I've noticed
PLAYWAVFILE should be PLAYWAVEFILE
However, that doesn't explain why the text doesn't work.
Perhaps there is something wrong with the event before, like it not having an @ENDIF.
Gothmog is offline  
Old March 11, 2000, 09:06   #13
Alinestra Covelia
ACDG The Human HiveRise of Nations Multiplayer
Queen
 
Alinestra Covelia's Avatar
 
Local Time: 20:06
Local Date: October 30, 2010
Join Date: Feb 2000
Posts: 5,848
That worked a treat! Now all the music plays and the text pops up! Thanks a lot for your help, tips, and expertise(s?).


Final little nitpick question: does anybody else find that the very first text popup message in a given scenario will look a bit darker than all the others, as though the letters were written in BOLD font?

------------------
"In all creation, there can be no task more onerous or tedious than that of playing God." - Stephen Fry, 'The Liar'.
Alinestra Covelia is offline  
Old March 11, 2000, 20:51   #14
Alinestra Covelia
ACDG The Human HiveRise of Nations Multiplayer
Queen
 
Alinestra Covelia's Avatar
 
Local Time: 20:06
Local Date: October 30, 2010
Join Date: Feb 2000
Posts: 5,848
"TURN=-1"

I have found out that this makes the event take place every turn. Perhaps putting in a JUSTONCE ought to iron this little niggle out?

------------------
"In all creation, there can be no task more onerous or tedious than that of playing God." - Stephen Fry, 'The Liar'.
Alinestra Covelia is offline  
Old March 12, 2000, 07:26   #15
Gothmog
Scenario League / Civ2-Creation
Prince
 
Gothmog's Avatar
 
Local Time: 20:06
Local Date: October 30, 2010
Join Date: Dec 1969
Location: Minas Morgul
Posts: 421
I've noticed that bold text too.
Gothmog is offline  
Old March 12, 2000, 08:27   #16
Alinestra Covelia
ACDG The Human HiveRise of Nations Multiplayer
Queen
 
Alinestra Covelia's Avatar
 
Local Time: 20:06
Local Date: October 30, 2010
Join Date: Feb 2000
Posts: 5,848
Problem still ongoing:

The -1 Turn command means it occurs every turn. That's fine, because if I need to have something happen first turn, I'll just put that down along with a "JUSTONCE" command.

But how do I cause things to happen at turns later in the game? Do I need to specify the turn of the scenario (ie with first turn of the scenario equalling "1") or do I have to perform mathematical gymnastics and work out what the actual turn of the event will be (ie 1 plus whatever the first turn was set to in scenedit)?

This is really beginning to arse me off and it won't be long before I violently lose interest in it and ferociously wander off to do something else.

------------------
"In all creation, there can be no task more onerous or tedious than that of playing God." - Stephen Fry, 'The Liar'.
Alinestra Covelia is offline  
Old March 12, 2000, 09:35   #17
William Keenan
Scenario League / Civ2-Creation
Prince
 
William Keenan's Avatar
 
Local Time: 19:06
Local Date: October 30, 2010
Join Date: Sep 1999
Location: New Jersey, USA, Earth, Sol, Milky Way
Posts: 705
I don't have alot of FW/MGE experience but I do believe that the TURN trigger works on every turn other then the first turn.

I'm tring to imagine, "ferocious wandering".
William Keenan is offline  
Old March 12, 2000, 17:32   #18
Miner
Prince
 
Miner's Avatar
 
Local Time: 01:06
Local Date: October 31, 2010
Join Date: Jul 1999
Location: of London
Posts: 375
The set game year is the number of turns elapsed. If this is set to 101 then the first turn will be 102 (I think, it might be 101 still). The Game turns elapsed is NOT the same as the starting year. The starting year does not vary, obviously, but as you are producing the scenario you are playing the game so unless you set game year back to 0 every time you save as scenario you will have moved passed 'turn 1'. Try saving the scenario after resetting this to 0 and putting in 2 identical events to fire on turns 1 and 2 and see which one works.

Well spotted about PLAYWAVEFILE. It has caught me out before.
Miner is offline  
Old March 12, 2000, 18:46   #19
Alinestra Covelia
ACDG The Human HiveRise of Nations Multiplayer
Queen
 
Alinestra Covelia's Avatar
 
Local Time: 20:06
Local Date: October 30, 2010
Join Date: Feb 2000
Posts: 5,848
Miner: I've got a save slot (in a normal, scenedit, game) which I boot up and save as scenario periodically. Each time I do this I save over the old scenario, which is all right because I'm improving on it directly.

This shouldn't(?) increment the turn by one each time...??? But yes, I see that the game is in turn A, and having saved that as scenario, the first turn in the scenario is (A+1), right?

So bearing that in mind, should I or shouldn't I consider TURN commands to be elapsed turns (wrt BC, AD, etc) or should they be "scenario" turns elapsed instead?

------------------
"In all creation, there can be no task more onerous or tedious than that of playing God." - Stephen Fry, 'The Liar'.
Alinestra Covelia is offline  
Old March 12, 2000, 19:56   #20
William Keenan
Scenario League / Civ2-Creation
Prince
 
William Keenan's Avatar
 
Local Time: 19:06
Local Date: October 30, 2010
Join Date: Sep 1999
Location: New Jersey, USA, Earth, Sol, Milky Way
Posts: 705
Years and game turns are NOT the same thing at all.
William Keenan is offline  
Old March 13, 2000, 17:31   #21
Miner
Prince
 
Miner's Avatar
 
Local Time: 01:06
Local Date: October 31, 2010
Join Date: Jul 1999
Location: of London
Posts: 375
Quote:

This shouldn't(?) increment the turn by one each time...??? But yes, I see that the game is in turn A, and having saved that as scenario, the first turn in the scenario is (A+1), right?

Ah but it does and this is the point. Whenever you play when setting up your scenario as you must do and press enter at the end of a turn then the game has incremented another Game Turn. Unless you reset this games turns elapsed the scenario remembers this. Your event is not firing because you are on turn 101 and you have set the event to fire on turn 1.

I have just tested this with a scenario.
Whenever you Save as Scenario the game remembers the Game Year. It is perhaps best not to think of the Set Game Year cheat option as in the number of years AD or BC but rather, as the popup menu suggests, as the number of game turns elapsed.

To have them in sync, set Set Game Year to 0 when you Save as Scenario. Then turn 1 will be the first year of your scenario. Turn will almost never equal game year unless you set the start year to 0AD and set the years per turn to 1, an unlikely occurrence!

I hope this made sense.
[This message has been edited by Miner (edited March 13, 2000).]
Miner is offline  
Old March 13, 2000, 18:45   #22
Gothmog
Scenario League / Civ2-Creation
Prince
 
Gothmog's Avatar
 
Local Time: 20:06
Local Date: October 30, 2010
Join Date: Dec 1969
Location: Minas Morgul
Posts: 421
Alinestra:
Load your save file. Then open the "set game year" cheat and check the value (it's misnamed and a source of confusion!). It should have a value of 1 if you want your turn 1 event to work correctly. The turn counter advances whenever you end a turn, something you wouldn't normally do while building a scenario. However ending a turn could happen accidently or even on purpose, it you wanted to create barbarian cities by letting the barbarians have a turn and capture some unoccupied cities.

Miner: I think that if you set the value there to zero, then the first turn will be turn zero, not turn 1.

William: I believe turn=1 should work just fine. I see it all the time when authors display a scenario briefing on turn 1. I've done this myself.
Gothmog is offline  
Old March 13, 2000, 20:00   #23
Alinestra Covelia
ACDG The Human HiveRise of Nations Multiplayer
Queen
 
Alinestra Covelia's Avatar
 
Local Time: 20:06
Local Date: October 30, 2010
Join Date: Feb 2000
Posts: 5,848
Tried it out with the scenario at turn 1. However, this makes my timeline go funny (which I can handle) and also means that my events for turns 1 and 2 do not work at all.

This I can't handle and it's beginning to worry me.
Alinestra Covelia is offline  
Old March 14, 2000, 15:59   #24
Miner
Prince
 
Miner's Avatar
 
Local Time: 01:06
Local Date: October 31, 2010
Join Date: Jul 1999
Location: of London
Posts: 375
Gothmog: You are right. Set game turn to 1.

AC: More info req'd.
Miner is offline  
Old March 15, 2000, 14:31   #25
Alinestra Covelia
ACDG The Human HiveRise of Nations Multiplayer
Queen
 
Alinestra Covelia's Avatar
 
Local Time: 20:06
Local Date: October 30, 2010
Join Date: Feb 2000
Posts: 5,848
A few very necessary explanations and elaborations:

A) This makes my timeline go funny. That is to say, I want it to go 1 AR, 2 AR, 3 AR, etc. But it doesn't. Instead, it goes as per the old Civ2 year increments just after BC becomes AD. This isn't too bad - it doesn't destroy the mood of the game.

B) My events for later turns aren't happening at all. I set an event to change terrain on a certain square on turn = 2. (As Gothmog and others suggested, I have set the starting turn to 1, not 0.) Having read the other thread where somebody made an error with the MAPRECT coords, I made sure that they were flawless. However, the turn 2 event still failed to materialize. I'm having another look at this to make sure I'm doing the right terrain change. However, I also included a text popup, which didn't materialize, making me suspect the entire event is faulty.

------------------
"In all creation, there can be no task more onerous or tedious than that of playing God." - Stephen Fry, 'The Liar'.
Alinestra Covelia is offline  
Old March 15, 2000, 16:41   #26
Miner
Prince
 
Miner's Avatar
 
Local Time: 01:06
Local Date: October 31, 2010
Join Date: Jul 1999
Location: of London
Posts: 375
Problem A) is easiest to answer. Go to
Cheat/Scenario Parameters/Turn Year Increment and change it from 0. (0 is the Civ2 default were the years/turn changes through history.) I would suggest 1 turn per year. This popup box is a lot clearer than most.

As for B), please post the event here so we can look at it.
Miner is offline  
Old March 16, 2000, 01:43   #27
ZhugeLiang
Chieftain
 
Local Time: 00:06
Local Date: October 31, 2010
Join Date: Nov 1999
Location: Sonoma, CA, USA
Posts: 68
In regards to the sound problem....make sure the wav file is in the correct format, i'm not sure what it is but it's in the scenerio design part of the MPGE book.
ZhugeLiang is offline  
Old March 18, 2000, 15:48   #28
Alinestra Covelia
ACDG The Human HiveRise of Nations Multiplayer
Queen
 
Alinestra Covelia's Avatar
 
Local Time: 20:06
Local Date: October 30, 2010
Join Date: Feb 2000
Posts: 5,848
@BEGINEVENTS

@DEBUG

@IF
NOSCHISM
DEFENDER=anybody
@THEN
@ENDIF

I am considering actually doing away with this, provided that I can provide alternative identities and dll gifs for all the other tribes in the game. However, would I be right in assuming that specifying a civ with this event would make it NOSCHISM only for that particular civ?

@IF
TURN
turn=-1
I have tried this with turn=1 and it won't work
@THEN
JUSTONCE
TEXT
[etc]
ENDTEXT
PLAYWAVEFILE
start.wav
@ENDIF

@IF
TURN=2
@THEN
CHANGETERRAIN
terraintype=11
maprect
17,51,17,51,17,51,17,51
TEXT
[etc]
ENDTEXT
CREATEUNIT
[etc]
locations
17,51
endlocations
@ENDIF
This fails to work at all

@IF
UNITKILLED
unit=Star
attacker=anybody
defender=anybody
@THEN
TEXT
[etc]
ENDTEXT
CHANGEMONEY
receiver=TRIGGERATTACKER
amount=2000
All right up to here - everything works fine...but then...
PLAYWAVEFILE
dontdothat.wav
@ENDIF
This fails to work at all. I'm checking up the .wav stats to make sure it's identical - yup, it is the same as the other sound files I have so it should work. Why doesn't it?

.....
....
...
..
.


@ENDEVENTS

Can any of you out there tell me what difference lowercase uppercase makes? I'm sure it makes some difference but can't figure out what must be what for it to work proper like.

Any comments gratefully appreciated and also noted in the scen readme for a very-dubious brand of immortality.

------------------
"In all creation, there can be no task more onerous or tedious than that of playing God." - Stephen Fry, 'The Liar'.
Alinestra Covelia is offline  
Old March 18, 2000, 16:39   #29
Miner
Prince
 
Miner's Avatar
 
Local Time: 01:06
Local Date: October 31, 2010
Join Date: Jul 1999
Location: of London
Posts: 375
!!!an unusual Miner double post!!!!
[This message has been edited by Miner (edited March 18, 2000).]
Miner is offline  
Old March 18, 2000, 16:40   #30
Miner
Prince
 
Miner's Avatar
 
Local Time: 01:06
Local Date: October 31, 2010
Join Date: Jul 1999
Location: of London
Posts: 375
The events, at first glance, look good.

Do they work after you have changed the years/turn ?

Also, if you change the .wav file being played to one which comes with the game does it work?
Miner 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 20:06.


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