SentryTurret unknown startDirection variable

Bug #586184 reported by L
6
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.

Revision history for this message
MedO (smaxein) wrote :

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.

Changed in gg2:
status: New → Confirmed
Revision history for this message
MedO (smaxein) wrote :

Checking a bit further, while sentry creation seems to be fully synchronized, sentry destruction is not in all cases. (e.g. when a sentry gets too close to another). This is probably the source of this problem.

Changed in gg2:
status: Confirmed → Triaged
importance: Undecided → High
Revision history for this message
MedO (smaxein) wrote :

Improved the sync of autogun destruction, which should fix this problem.

Changed in gg2:
status: Triaged → Fix Committed
MedO (smaxein)
Changed in gg2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.