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 > Civ2-Test of Time > Delevent and Flags
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

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
Alex Woehr is offline Alex Woehr
Chieftain
Greenville, SC
May 2001
time: 00:20
  Old Post 01-07-2005 08:16
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Delevent and Flags Support Apolyton buy from Amazon

Does anyone know whether the Delevent program deletes flag information from the save file?

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:20
  Old Post 02-07-2005 01:07 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Help yourself to an AD-FREE life

Interesting... I hadn't thought about that yet.

I just had a look at the events structure in the savegame and it seems the flags are also stored among the events (as a special first event without any actions or triggers). So, yes, that means they also get deleted.

You shouldn't really need Delevent, though, with ToT having such a large amount of memory available for events... Or do you have so many events that it won't even fit inside 100kB (that is, in memory, not the events.txt file)?

Alex Woehr is offline Alex Woehr
Chieftain
Greenville, SC
May 2001
time: 00:20
  Old Post 02-07-2005 05:20
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Remove this text

It probably will, since I am trying to allow for as many different outcomes as possible, based on the players performance. And, yes, I am being enigmatic on pupose.
One more question, do alternate files correspond to the alternate scenario chosen by the computer (i.e. events1.txt with Scenario1.alt, events2.txt with Scenario2.alt)?

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:20
  Old Post 05-07-2005 06:30 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

Don't know about that... What does the manual or macro.txt say about that?

techumseh is offline techumseh
King
of the frozen North.
Apr 1999
time: 22:20
  Old Post 05-07-2005 07:17 Visit techumseh's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Avatar Enlargement: We've got the solution

quote:
Originally posted by Alex Woehr
It probably will, since I am trying to allow for as many different outcomes as possible, based on the players performance. And, yes, I am being enigmatic on pupose.
One more question, do alternate files correspond to the alternate scenario chosen by the computer (i.e. events1.txt with Scenario1.alt, events2.txt with Scenario2.alt)?


Yes, or is that not enigmatic enough for you?

Alex Woehr is offline Alex Woehr
Chieftain
Greenville, SC
May 2001
time: 00:20
  Old Post 08-07-2005 05:56
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Civilization 2

Ok, Thanks for your help!

Alex Woehr is offline Alex Woehr
Chieftain
Greenville, SC
May 2001
time: 00:20
  Old Post 08-07-2005 12:51
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Get a bigger avatar today!

Can someone help me with this event?

@IF
UnitKilled
unit=Trigger
map=0
attacker=Heros
defender=The Great Evil
@THEN
Flag
continuous
who=United Kingdom
state=on
flag=0
ChangeTerrain
map=1
terraintype=0
maprect
219,181,225,181,225,187,219,187
@ENDIF

@IF
Checkflag
who=United Kingdom
flag=0
state=on
@AND
CheckFlag
who=The Great Evil
mask=0b00000000000000000000000000000011
count=2
state=off
@THEN
JustOnce
Text
Deomras and Wulf finish off the remaining Dunlendians from around Westburnam.
^WULF: "Come, brave woman, behold the Dunlendians fleeing to their camp in
^the north! Let us prevent them from burning villages another day!"
EndText
@ENDIF

The first event apparently is triggered, as indicated by the change in terrain, but the second event never occurs. As far as I can tell, nothing has occurred that could trigger either of the flags in the @AND statement (and I did remember to initialize flags ). Any guesses?

techumseh is offline techumseh
King
of the frozen North.
Apr 1999
time: 22:20
  Old Post 08-07-2005 18:11 Visit techumseh's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Get a bigger avatar today!

You have 2 checkflags in the second event. What are the 2 triggers for the two Great Evil flags. Are they both valid events and have they both been triggered?

Alex Woehr is offline Alex Woehr
Chieftain
Greenville, SC
May 2001
time: 00:20
  Old Post 08-07-2005 18:48
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Inflate your Upload Space

Neither of them have been triggered. The CheckFlag makes sure that they are off. The idea is that you start out with two heros, and if one of them dies, one or the other Great Evil flag is triggered, causing a different message to pop up.

techumseh is offline techumseh
King
of the frozen North.
Apr 1999
time: 22:20
  Old Post 08-07-2005 19:06 Visit techumseh's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

Maybe it's because you're linking 2 checkflags with @AND. Try converting the 2 great evil OFF flags to 2 united kingdom ON flags.

Alex Woehr is offline Alex Woehr
Chieftain
Greenville, SC
May 2001
time: 00:20
  Old Post 08-07-2005 21:32
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Got spare money?

So, if I'm correct, that means the game engine does not like two triggers of the same nature linked together by @AND? That means I am in REAL trouble. Back to the drawing board...
Thanks for your help!

Alex Woehr is offline Alex Woehr
Chieftain
Greenville, SC
May 2001
time: 00:20
  Old Post 09-07-2005 13:50
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Enter the AD-FREE zone

Hmmm, I am still having problems, take a look at this:

@IF
UnitKilled
unit=Chieftain
map=0
attacker=Heros
defender=Barbarians
@AND
CheckFlag
who=Heros of Gondor
mask=0b00000000000000000000000011000000
count=2
state=off
@THEN
Text
Blah Blah
EndText
Flag
continuous
who=Heros
state=on
flag=0
CreateUnit
owner=Barbarians
unit=TriggerQ
veteran=no
homecity=none
locations
46,64
endlocations
TakeTechnology
whom=Heros
technology=14
@ENDIF

@IF
UnitKilled
unit=Chieftain
map=0
attacker=Heros
defender=Barbarians
@AND
CheckFlag
who=Heros
mask=0b00000000000000000000000011000000
count=2
state=off
@THEN
Text
Blah Blah Blah
EndText
ChangeTerrain
map=1
terraintype=10
maprect
220,204,226,204,226,210,220,210
@ENDIF

@IF
UnitKilled
unit=Chieftain
map=0
attacker=Heros
defender=Barbarians
@AND
CheckFlag
who=Heros
mask=0b00000000000000000000000011000000
count=2
state=off
@THEN
Text
Blah blah blah blah!
EndText
@ENDIF


For some reason, the first two events are activated, but the third one isn't, even though all three have the same trigger! I still have 33K left in my events heap, so I don't think it is a memory problem. Any ideas?

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:20
  Old Post 10-07-2005 07:54 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Avatar Enlargement: We've got the solution

Uh-oh! That's not good!

Maybe the remaining stack calculation in debug.txt is not completely accurate.


  1. Any chance inserting JustOnce right after @THEN allows all three?
  2. If you delete virtually all of your other events, do all three triggers work?
  3. Do you have many Delay modifiers in your events?

Alex Woehr is offline Alex Woehr
Chieftain
Greenville, SC
May 2001
time: 00:20
  Old Post 10-07-2005 08:35
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
1. Any chance inserting JustOnce right after @THEN allows all three?


The JustOnce modifier has no effect, no matter where it is placed.

quote:
2. If you delete virtually all of your other events, do all three triggers work?


I removed over half of my events, and the third trigger still won't activate.

quote:
3. Do you have many Delay modifiers in your events?


I have nine 2-3 turn delay modifiers, but eight of those were removed in the above experiment (#2).

By the way, great work on EA.

Alex Woehr is offline Alex Woehr
Chieftain
Greenville, SC
May 2001
time: 00:20
  Old Post 10-07-2005 08:52
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Avatar Enlargement: We've got the solution

Unless someone has any better ideas, I am combining the two text messages into one event. However, I have a similiar situation with a different event that won't be as easy to solve, I fear.

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:20
  Old Post 10-07-2005 20:43 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Tired of ads?

Rats!

Are you wed to the idea of flags? I've found it easier to maintain events code by using technologies instead. ReceivedTechnology is a recurring trigger without the JustOnce modifier.

quote:
By the way, great work on EA.
Thanks, but it sure seems easier to give dubious tips to someone else rather than write my own. I need to hunker down and make some serious edits in EAv2 events.

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

Are you using lots of @DELAY modifiers? As Catfish has discovered, these can add unexpected but significant memory requirements to your events: http://users.tpg.com.au/jpwbeest/index.htm

Alex Woehr is offline Alex Woehr
Chieftain
Greenville, SC
May 2001
time: 00:20
  Old Post 11-07-2005 07:13
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Enter the AD-FREE zone

I think I have everything figured out. In the end I had to rely on giving a technology, which isn't good because I am planning on using a pretty substantial tech tree. If I ever release this thing (when it is finished, and it is a long way from that point) I may have to institiute a scrolling tech tree.
Thanks for all of your contributions!

Alex Woehr is offline Alex Woehr
Chieftain
Greenville, SC
May 2001
time: 00:20
  Old Post 17-07-2005 08:35
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Get a bigger avatar today!

Is it possible to re-import a map after all four maps have already been loaded?

N35t0r is offline N35t0r
King
( o Y o )
Jan 2000
time: 02:20
  Old Post 17-07-2005 08:51
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Support Apolyton buy from Amazon

Hmmm.... mapedit?

techumseh is offline techumseh
King
of the frozen North.
Apr 1999
time: 22:20
  Old Post 17-07-2005 10:39 Visit techumseh's homepage!
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

quote:
Originally posted by Alex Woehr
Is it possible to re-import a map after all four maps have already been loaded?


Sorry, I can't imagine it's possible, short of a major, complex hex edit.

Alex Woehr is offline Alex Woehr
Chieftain
Greenville, SC
May 2001
time: 00:20
  Old Post 17-07-2005 11:18
Edit/Delete Message Reply w/Quote
#22 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

Ouch. I guess that's what you get for poor planning. Thanks anyway.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:20
  Old Post 17-07-2005 21:23 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#23 Report this post to a moderator
Put an end to popups!

Yes, you can do it with MapCopy:
http://home.san.rr.com/dustyr/proj.htm

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:20
  Old Post 29-07-2005 05:17 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#24 Report this post to a moderator
Support Apolyton, buy Civilization 2



Missed seeing the dm:n argument during my much-too-brief scan of the readme. Thanks!

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:20.
Apolyton Time is 00:20.
    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.0560 seconds (91.09% PHP - 8.91% MySQL) with 30 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