2025-07-17 03:29 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0005076Spring engineGeneralpublic2016-02-10 13:10
ReporterJools 
Assigned Tohokomoko 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version100.0+git 
Target VersionFixed in Version 
Summary0005076: Unitscript callin StopMoving() called twice
DescriptionWhen a unit (plane) is landing, the callins are executed in this sequence:

1. StoppedMoving()
2. StartMoving()
3. StoppedMoving()

This applies to latest dev. version -1128.

In 100.0, the sequence is the following:

1. StoppedMoving()
Steps To ReproduceIn infolog, there is the following output:

[f=0000434] [GiveUnits] spawned 1 arm_hawk unit(s) for team 0
[f=0000614] Value 1: 99, 2: 1, 3: 0, 4: 0
[f=0000614] StartMoving called for unitID:, 3711
[f=0001548] Value 1: 9, 2: 0, 3: 0, 4: 0
[f=0001548] StoppedMoving called for unitID:, 3711
[f=0001549] Value 1: 99, 2: 1, 3: 0, 4: 0
[f=0001549] StartMoving called for unitID:, 3711
[f=0001561] Value 1: 9, 2: 0, 3: 0, 4: 0
[f=0001561] StoppedMoving called for unitID:, 3711

This means:
Value 1: 9 => unit script callin StartMoving() was called

Value 1: 99 => unit script callin StopMoving() was called

StartMoving called for unitID => function UnitStartedMoving(unitID,unitDefID,teamID) was called in gadget cobcallins.lua

StoppedMoving called for unitID => function UnitStoppedMoving(unitID,unitDefID,teamID) was called in gadget cobcallins.lua
Additional InformationSee replay: http://replays.springrts.com/replay/d571ba56ceb82ab5c8a5ecf6eb9b928a/

Script for Arm Hawk: http://pastebin.com/e6fRGsgR
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0015717

Kloot (developer)

confirmed: aircraft now seem to stop descending for a bit while still in the air, before dropping the rest of the way to the ground

~0015719

hokomoko (developer)

Fix 3855c7900c82c736d89874d8e7c0ca01eadfd46e committed to develop branch: (Should) Fix 0005076, repo: spring changeset id: 6598
+Notes

-Issue History
Date Modified Username Field Change
2016-02-10 00:30 Jools New Issue
2016-02-10 00:30 Jools File Added: infolog.txt
2016-02-10 01:09 Kloot Note Added: 0015717
2016-02-10 01:10 hokomoko Assigned To => hokomoko
2016-02-10 01:10 hokomoko Status new => assigned
2016-02-10 13:10 hokomoko Changeset attached => spring develop 3855c790
2016-02-10 13:10 hokomoko Note Added: 0015719
2016-02-10 13:10 hokomoko Status assigned => resolved
2016-02-10 13:10 hokomoko Resolution open => fixed
+Issue History