SentryTurret unknown startDirection variable
Bug #586184 reported by
L
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gang Garrison 2 |
Fix Released
|
High
|
Unassigned |
Bug Description
ERROR in
action number 1
of End Step Event
for object SentryTurret:
Error in code at line 72:
if image_xscale != startDirection {
at position 25: Unknown variable startDirection
Don't know what caused it, I believe it was a one time thing but not sure.
Changed in gg2: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Amazingly, it seems this is still relevant, since basically the same bug has been reported for 2.4.1: _______ _______ _______ _______ _______ _
_______
ERROR in
action number 1
of Begin Step Event
for object Sentry:
Error in code at line 19:
currentWeapon. startDirection= startDirection;
^
at position 35: Unknown variable startDirection
Analysis: It looks like a desync between client and server during play, where the server associates a sentry object with a player while the client does not. The sync code (Player, User Event 13) creates a new sentry object in that case, but does not set its startDirection variable. When this happens during normal join the full update sets all relevant variables, but in a quick update the resulting object is not complete and will lead to this error.