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 > Miscellaneous > Archive > Scenario League / Civ2-Creation -Archive > SDC#3 entrants beware: ToT events bug
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Harris is offline Harris
Settler
SDC #3
Apr 2000
time: 05:13
Exclamation  Old Post 24-08-2000 22:48
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
SDC#3 entrants beware: ToT events bug Inflate your Upload Space

After several weeks of getting ToT flags to work in my scenario and failing I came to the conclusion that there is a logic bug in the events parser.

When using a CHECKFLAG statement with the COUNT parameter the trigger returns a true condition when the count is equal to or greater than the COUNT. It is only supposed to return a true when the number of FLAGS in the MASK is equal to the COUNT.

For example, if you have two statements where one is a CHECKFLAG, COUNT=1 and other is a CHECKFLAG, COUNT=2. If only one FLAG is ON then only the COUNT=1 trigger returns a true. However, if both FLAGS are ON then both statements return a true, not just the COUNT=2 statement. Which is, of course, the bug

This hold true no matter how many flags you are testing. If ten FLAGS in the MASK are ON and you are checking for a COUNT of any number less then ten it will still return a true result.

Miner is offline Miner
Prince
of London
Jul 1999
time: 05:13
Question  Old Post 24-08-2000 23:33 Visit Miner's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Put an end to popups!

Are you sure you are not using the threshold parameter?

Xin Yu is offline Xin Yu
King
Emeryville, CA, USA
Jan 1970
time: 21:13
Talking  Old Post 24-08-2000 23:38 Visit Xin Yu's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Increase Your PM Length

I think:
Suppose the bug is really there, you can still do an exact number checking by using two sets of flags. The second set of flags will be the opposite events of the first ones. For example you have 10 flags for 'true' conditions, then 10 flags for 'false' conditions. When you need 4 conditions to be true, check 'N=4' in the true set then 'N=6' in the false set. only if both are satisfied it triggers the event.

Miner is offline Miner
Prince
of London
Jul 1999
time: 05:13
Post  Old Post 24-08-2000 23:46 Visit Miner's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame


Ignore previous post! Sorry to have doubted you!

I have just ran a testcase, setting 2 flags and seeing which checkflags fired and both do. This is a bummer of a bug...

Typical, Xin beats me to the post...
[This message has been edited by Miner (edited August 24, 2000).]

Harris is offline Harris
Settler
SDC #3
Apr 2000
time: 05:13
Smile  Old Post 25-08-2000 08:23
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Full PM-box? Change here!

Miner, don't let the settler thing in my profile fool you. Harris is my SDC#3 ID. I'm using it instead of my real handle to maintain my anonymity concerning the contest.

Xin Yu, that is of course a valid work around. The problem with it is however, that it uses both conditions of the @IF leaving no room for another trigger such as UNITKILLED or CITYTAKEN, etc. in the event structure.

In anticipation of your counter-point, Xin; yes, you could have flags set by using UNITKILLED and CITYTAKEN statements and then include those flags in the CHECKFLAG statement. The problem with that logic is that one flag would need to be dedicated to each condition. In other words, every time you wanted to use a UNITKILLED it would use up one of your flags. With only 32 flags per civ you would run out real fast.

In anticipation of your counter-counter-point, using the flag sets of the barbarians and other civs that are not active in the scenario to extend the number of flags available sounds like a good idea, I'm glad you brought it up. I tried it and found, much to my chagrin, that the game ignores any CHECKFLAG statements that involve civilizations that are not active in the scenario.
[This message has been edited by Harris (edited August 24, 2000).]

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:13.
Apolyton Time is 00:13.
    top of page
Rate This Thread:
archivepost
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.0423 seconds (86.59% PHP - 13.41% MySQL) with 31 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