View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0003048 | Spring engine | General | public | 2012-04-03 10:27 | 2012-04-03 13:40 | ||||
Reporter | Google_Frog | ||||||||
Assigned To | Kloot | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 88.0 | ||||||||
Target Version | Fixed in Version | 89.0 | |||||||
Summary | 0003048: Lua'ed move speed modification is not kept | ||||||||
Description | In previous versions Spring.MoveCtrl.SetGunshipMoveTypeData or Spring.MoveCtrl.SetGroundMoveTypeData only needed to be called once to modify a unit's maxSpeed. In 88.0 the maxSpeed is reset to the unit default maxSpeed about 5-15 frames after the speed modification. The example code below should slow all ground units to 1. Instead in 88.0 unit speed jitters every 2 seconds because the unit speed is reduced by Spring.MoveCtrl.SetGroundMoveTypeData and subsequently reset to default by the engine. | ||||||||
Additional Information | function gadget:GameFrame(n) if n %60 == 0 then for _, unitID in ipairs(Spring.GetAllUnits()) do Spring.MoveCtrl.SetGroundMoveTypeData(unitID, {maxSpeed = 1}) end end end (I know this crashes if structures, air or gunships exist, it is an example) | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2012-04-03 10:27 | Google_Frog | New Issue | |
2012-04-03 13:40 | Kloot | Status | new => resolved |
2012-04-03 13:40 | Kloot | Fixed in Version | => 89.0 |
2012-04-03 13:40 | Kloot | Resolution | open => fixed |
2012-04-03 13:40 | Kloot | Assigned To | => Kloot |