Page 1 of 1

Bug: The American Congress moves back to Philadelphia

Posted: Sun Jan 16, 2011 2:29 am
by Don Stone
1.08rc11

In the 1775/1776 campaigns, if the Americans recapture Philadelphia, the "American Congress moves back to Philadelphia" event fires each turn. Harmless (I think) but annoying. Simple fix:

File: 1776 Campaign.sct
Event: evt_nam_CapitaltoPhilly_reset

[INDENT]ChgEvtOccurs = evt_nam_CapitaltoPhilly;MaxOccurs;0[/INDENT]

should be

[INDENT]ChgEvtOccurs = evt_nam_CapitaltoPhilly;MaxOccurs;-1[/INDENT]

Posted: Sun Jan 16, 2011 4:53 pm
by simovitch
I get this message every turn as well; I hope this fixes it.

But also, If the British re-capture Philadelphia I get the "...Congress has left Philadelphia..." message every turn thereafter. Will this edit fix that?

Posted: Sun Jan 16, 2011 9:26 pm
by Don Stone
I believe (but am not completely certain) that it *will* fix that.

(I don't have any real experience with the event scripting language -- it looks to me like the event counter for that event would go down by 1 every turn after the Americans re-captured Philadelphia -- so it would become a negative number -- and that would cause the "leave Philadelphia" event to fire many times, but not forever, after re-re-capture of Philadelphia by the Brits)

Posted: Wed Aug 31, 2011 3:12 pm
by lodilefty
Just found this! :blink:

Better fix is to use:
http://www.ageod.net/agewiki/SetEvtOccurs

Will fix in upcoming patch. :thumbsup: