View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0005690 | Spring engine | Lua | public | 2017-08-07 01:30 | 2017-08-26 14:44 | ||||
Reporter | FLOZi | ||||||||
Assigned To | Kloot | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 103.0 +git | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0005690: Spring.GetProjectileTarget returns 0,0,0 for position | ||||||||
Description | When a cannon weapon is force fired at ground, capturing the projectile in ProjectileCreated and querying GetProjectileTarget returns string.byte('g'), {0, 0, 0} regardless of where the attack order is. | ||||||||
Steps To Reproduce | grab latest git of mcl or rapid version test-2098 /give la_demolisherii force fire at the ground, enjoy position table returning all 0s. | ||||||||
Additional Information | Code here: https://github.com/SpringMCLegacy/SpringMCLegacy/blob/ea2727a5fbaf98a061944608f492e68a67b66022/LuaRules/Gadgets/lups_projectiles.lua#L58 | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
Relationships | ||||||
|
Notes | |
FLOZi (reporter) 2017-08-07 12:51 |
A look through the code suggests it wasn't intended to be used like this, seems only used for Intercept weapons but it would be a real nice thing to have. To work round it I'd need to know which weapon on the unit fired the lbx weapon and use Spring.GetUnitWeaponTarget. |
Kloot (developer) 2017-08-26 14:44 |
Fix a11cc90291ccb440e2f1d9a44cb631a332e6c0e2 committed to develop branch: fix 0005690, repo: spring changeset id: 8628 |
Issue History | |||
Date Modified | Username | Field | Change |
---|---|---|---|
2017-08-07 01:30 | FLOZi | New Issue | |
2017-08-07 12:51 | FLOZi | Note Added: 0018185 | |
2017-08-26 14:44 | Kloot | Changeset attached | => spring develop a11cc902 |
2017-08-26 14:44 | Kloot | Note Added: 0018289 | |
2017-08-26 14:44 | Kloot | Assigned To | => Kloot |
2017-08-26 14:44 | Kloot | Status | new => resolved |
2017-08-26 14:44 | Kloot | Resolution | open => fixed |
2017-09-07 11:09 | Kloot | Relationship added | has duplicate 0005751 |