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 > Calling ToT Flag/Events experts! Could someone check my file?
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
curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:16
  Old Post 11-11-2004 07:02 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Calling ToT Flag/Events experts! Could someone check my file? Enter the AD-FREE zone

Sorry for the multiple ToT-related questions folks!
I am learning Flags and masks on the hop, and have another mystery to crack!

In my events structure:
I have made various masks that check a load of flags associated with cities that are captured.

But as of yet, not even a peep of these events has appeared, while other events are working OK...

Obviously I am not doing the flags correct, though I followed SL's tutorials closely...

Can anyone (of the ToT crew) look at my events and tell me if I am doing things wrong?

Verily, I am stumped!

PS
The flags section is added at the start of events for checking the masks...

Thanks for any advice!

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

techumseh is offline techumseh
King
of the frozen North.
Apr 1999
time: 22:16
  Old Post 11-11-2004 07:30 Visit techumseh's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Got spare money?

Curt, could you please lay out which events are involved, what they're supposed to do and what, if anything, is actually happening? Thanks.

Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:16
  Old Post 11-11-2004 12:34 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Lose 30 kilos (of popups)

I just gave the file a quick scan and the flag events seemed to be structured OK. One thing I noticed, unrelated to flags, is that all of your JustOnce modifiers are placed at the end of each event. Here's a quote from macro.txt:

quote:
The JustOnce statement should be included immediately after the @THEN statement.

Whilst I've never detected any problems related to this, I follow this rule as a precaution.

How are you testing the events, Curt? The flags must be initialised before they will work. If you are running delevent.exe on a .sav file and reloading then the flags will not be initialised until the following turn.

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:16
  Old Post 11-11-2004 15:49 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Lose 30 kilos (of popups)

Hi there, chaps!

@Tech:
mostly all of the major events have flags that pertain to particular cities of interest to each civ.

Also the major WW2 attacks need certain flags to be on for activation...

I was really wondering if I had missed something.
This is my first set of events with flags, so I was assuming it would be error-riddled...



@Catfish:

Good point, I think I might run through the events and follow that 'justonce' convention.
If the guys who made the macro document say it is needed, I had better heed them...

Yep - I have been using del-events and reloading.
I had an inkling that the flag events are a one shot - But wasn't sure.
I will restart the scenario and check again...

I'll let you know my findings...

PS
Cheers for scanning the events, at least I know the flags are not screwed up...

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:16
  Old Post 11-11-2004 18:41 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton buy from Amazon

I don't know if this has anything to do with the functioning of the flags, but why don't you have a @THEN in your first event (with noschism)? The second event misses both @THEN and @ENDIF.

techumseh is offline techumseh
King
of the frozen North.
Apr 1999
time: 22:16
  Old Post 11-11-2004 19:00 Visit techumseh's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

Have you debugged the file?

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:16
  Old Post 11-11-2004 19:21 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Put an end to popups!

@Merc:
I must have deleted the bits of those files by error.
There has been a ton of cutting and pasting going on!

They are fixed now!

@techumseh:
Once too often!
I had a massive events file made up, bit had to do extensive pruning of the thing to meet the bytes limit...

techumseh is offline techumseh
King
of the frozen North.
Apr 1999
time: 22:16
  Old Post 11-11-2004 21:00 Visit techumseh's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Call to Power 2

I'm confused. Are the events working or not?

If you did debug the file, the errors Merc found would have come up first time.

If there are events NOT working, then please be specific about which ones.

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:16
  Old Post 11-11-2004 21:42 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

The scenario opens properly and the events are working, even with the bits Merc stated were missing.

It was the flags that where not activating that spurred me to open this thread.

Event errors I can fix without too much trouble, it was the flags that I wanted checked...

I am still testing out the new version of events I made one hour ago.

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:16
  Old Post 12-11-2004 00:11 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Suffering from ads?

Gaaah! - Still having troubles!

I started a totally new scenario game and the flag event setup still refuses to work!

Here is one of the culprits...

Playing as Germany:
When you capture or lose London and Glasgow - it activates these flags...

@IF
CITYTAKEN
city=LONDON
attacker=Third Reich
defender=British Allies
@THEN
Flag
Who=Third Reich
State=on
Flag=0
Continuous
@ENDIF

@IF
CITYTAKEN
city=LONDON
attacker=British Allies
defender=Third Reich
@THEN
Flag
Who=Third Reich
State=off
Flag=0
Continuous
@ENDIF

@IF
CITYTAKEN
city=Glasgow
attacker=Third Reich
defender=British Allies
@THEN
Flag
Who=Third Reich
State=on
Flag=7
Continuous
@ENDIF

@IF
CITYTAKEN
city=Glasgow
attacker=British Allies
defender=Third Reich
@THEN
Flag
Who=Third Reich
State=off
Flag=7
Continuous
@ENDIF

It causes the downfall of the UK, and this event should launch:

@IF
Checkflag
Who=Third Reich
Mask=0b0000000000000000000000010000001
Count=2
State=on
@THEN
JUSTONCE
TEXT
^
^^ Total victory over England!
^
^^ Great Britain has been smashed, the once-proud British armed forces are
^^ scattered and destroyed. The Führer can now order his forces to fortify
^^ the UK as a massive bulwark against the Americans.
^
^^ "Der sieg wird unser sein!"
^
ENDTEXT
PlayWaveFile
GERVICTOR.wav
@ENDIF

But nothing happens in-game!
I wonder what is going wrong here?

I am bamboozled!

Anyone got any pointers?

Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:16
  Old Post 12-11-2004 05:00 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Put an end to popups!

quote:
Originally posted by curtsibling
Cheers for scanning the events, at least I know the flags are not screwed up...

I only checked the basic structure. You seemed to have a handle on that.

quote:
Originally posted by techumseh
If you did debug the file, the errors Merc found would have come up first time.

Not necessarily. If so he would probably have also received the "There was an error encountered in the 'events.txt' file. Please read the manual to find out how to debug this file." message.

quote:
Originally posted by curtsibling
@IF
Checkflag
Who=Third Reich
Mask=0b0000000000000000000000010000001
Count=2
State=on
@THEN
JUSTONCE
TEXT
^
^^ Total victory over England!
^
^^ Great Britain has been smashed, the once-proud British armed forces are
^^ scattered and destroyed. The Führer can now order his forces to fortify
^^ the UK as a massive bulwark against the Americans.
^
^^ "Der sieg wird unser sein!"
^
ENDTEXT
PlayWaveFile
GERVICTOR.wav
@ENDIF

Count the number of zeros in that binary mask. You should have 32 (0-31) digits; you've got 31. Edit: Just testing. Actually, it shouldn't make a difference in this case as:
Mask=0b00000000000000000000000010000001
is the same as:
Mask=0b10000001

Remember, when you test, capture the cities in the second turn after reloading otherwise nothing will happen. The CheckFlag event won't occur until the turn after that.

Last edited by Catfish on 12-11-2004 at 08:45

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:16
  Old Post 12-11-2004 06:45 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

Cheers, Catfish!

I am going to start afresh and test the event again.

I'll post in and tell how I fare.

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:16
  Old Post 12-11-2004 07:33 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Support Apolyton, buy Call to Power 2

Aha!

I may have cracked it!
It seems the 'Continuous' command must come after the 'Flag' command - Or the event won't run!

So this means that:

@IF
CITYTAKEN
city=LONDON
attacker=Third Reich
defender=British Allies
@THEN
Flag
Who=Third Reich
State=on
Flag=0
Continuous
@ENDIF

Should actually read as:

@IF
CITYTAKEN
city=LONDON
attacker=Third Reich
defender=British Allies
@THEN
Flag
Continuous
Who=Third Reich
State=on
Flag=0
@ENDIF

Now the flag events seem to work OK!

I also fixed all the masks to have the correct amount of zeros, just to be sure...

Thanks, guys!
Any more troubles and I will post in again.
For now, things seem to be progressing!

Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:16
  Old Post 12-11-2004 08:28 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by curtsibling
It seems the 'Continuous' command must come after the 'Flag' command - Or the event won't run!

That's the way I always do it, but it should work either way. Techumseh does it the other way in Market-Garden and it works.

quote:
Originally posted by curtsibling
Now the flag events seem to work OK!

I also fixed all the masks to have the correct amount of zeros, just to be sure...

Good to hear , but somehow I don't believe either of these was at fault. It's a conclusion you can draw when you change several factors at once.

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:16
  Old Post 12-11-2004 13:47 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton buy from Amazon

It is sort of odd how the events just decided to work - Indeed ToT is a mysterious beast...

Might be something to do with the way the events are stored in a save - Or something...

When I get back from university, I woill check them again...

Thoddy is offline Thoddy
Warlord
Hannover, Germany
Jan 2001
time: 06:16
  Old Post 17-11-2004 14:12 Visit Thoddy's homepage!
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Support Apolyton

quote:

@IF
CITYTAKEN
city=LONDON
attacker=Third Reich
defender=British Allies
@THEN
Flag
Continuous
Who=Third Reich
State=on
Flag=0
@ENDIF



you should include some text into the flagchanging events.
like this
Text
Flag London on
endtext

just for testing
-------------------------------------------------------
from the events I see events simulating an naval warfare


@IF
Randomturn
denominator=2
@THEN
CREATEUNIT
unit=Convoy
owner=further Neutrals (Barbarian)
veteran=yes
homecity=none
locations
70,84
......
endlocations
randomize
Text
Convoy deployed
Endtext
@ENDIF

@unit
Convoy,no, 2, 14.,0, 4a, 9d,3h,2f,100,0,2, Aut, 110000010000001

@IF
UNITKILLED
unit=Convoy
attacker=Allies
defender=anybody
@THEN
CREATEUNIT
unit=Convoy
owner=further Neutrals
veteran=no
homecity=none
locations
65,91
...
endlocations
randomize
Text
Convoy deployed
Endtext
Changemoney
receiver=Allies
amount=-250
@ENDIF

@IF
UNITKILLED
unit=Convoy
attacker=Germans
defender=further Neutrals
@THEN
CREATEUNIT
unit=Convoy
owner=further Neutrals
veteran=yes
homecity=none
locations
67,87
...
endlocations
rondomize
Text
Convoy deployed
Endtext
Changemoney
receiver=Allies
amount=-250
@ENDIF

you are able to create a convoy hunt, the barbarian convois wandering around the Water much better than
other AI-ships with 2 human player this hunt may be interesting.

Last edited by Thoddy on 17-11-2004 at 14:42

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:16
  Old Post 17-11-2004 17:37 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Support Apolyton, buy Call to Power 2

Very cool - I will give this a test when I get back from university!

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