View Issue Details

IDProjectCategoryView StatusLast Update
0005690Spring engineLuapublic2017-08-26 14:44
ReporterFLOZi Assigned ToKloot  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version103.0 +git 
Summary0005690: Spring.GetProjectileTarget returns 0,0,0 for position
DescriptionWhen 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 Reproducegrab latest git of mcl or rapid version test-2098

/give la_demolisherii

force fire at the ground, enjoy position table returning all 0s.
Additional InformationCode here:

https://github.com/SpringMCLegacy/SpringMCLegacy/blob/ea2727a5fbaf98a061944608f492e68a67b66022/LuaRules/Gadgets/lups_projectiles.lua#L58
TagsNo tags attached.
Checked infolog.txt for Errors

Relationships

has duplicate 0005751 resolvedKloot Spring.GetProjectileTarget(proID) invalid on destroyed Projectile 

Activities

FLOZi

2017-08-07 12:51

reporter   ~0018185

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

2017-08-26 14:44

developer   ~0018289

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