View Issue Details

IDProjectCategoryView StatusLast Update
0000641Spring engineGeneralpublic2007-10-29 21:57
ReporterKDR_11k Assigned Toimbaczek  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0000641: set HEADING doesn't seem to update piece positions for emit-sfx
DescriptionA unit that is turned with a set HEADING command and uses an emit-sfx effect will have the effect appear at the position and orientation the piece had before the unit was turned. The position gets corrected a moment later (probably at slowupdate) but it's enough to make e.g. fixedlauncher missiles fire off in the wrong direction.
Additional InformationI've attached a WIP version of Lolimod that often has the error, units are turned in their AimWeapon function (and don't shoot while moving). When a unit moves, stops and fires the first few shots will often exhibit this issue. The bunny unit is the most affected. Try spawning a few units for the enemy team and run a bunny around them.
TagsNo tags attached.
Attached Files
Lolimod_Mantis.sd7 (Attachment missing)
cobheadingissuepatch.patch (Attachment missing)
Checked infolog.txt for Errors

Activities

imbaczek

2007-09-27 18:18

reporter   ~0001315

Failed to load armorDefs
error = 2, gamedata/defs.lua, [string "gamedata/defs.lua"]:36: [string "gamedata/defs.lua"]:24: error = 2, gamedata/armorDefs.lua, [string "gamedata/armorDefs.lua"]:19: Error parsing armor.txt: missing file

will try to put a dummy armor.txt in, hopefully there are no more errors.

imbaczek

2007-09-27 18:29

reporter   ~0001316

after adding [FOO] {} it worked, i don't know what's wrong and what's right.

tombom

2007-10-10 15:28

reporter   ~0001334

This happens because direction is only updated from the heading in SlowUpdate. I've attached a patch which forces an update whenever heading is changed in COB.

imbaczek

2007-10-11 20:55

reporter   ~0001340

applied the patch in r4543, KDR please test.

KDR_11k

2007-10-29 21:14

reporter   ~0001380

it works

Issue History

Date Modified Username Field Change
2007-09-21 10:43 KDR_11k New Issue
2007-09-21 10:43 KDR_11k File Added: Lolimod_Mantis.sd7
2007-09-27 18:18 imbaczek Note Added: 0001315
2007-09-27 18:29 imbaczek Note Added: 0001316
2007-10-10 15:28 tombom Note Added: 0001334
2007-10-10 15:28 tombom File Added: cobheadingissuepatch.patch
2007-10-11 20:55 imbaczek Note Added: 0001340
2007-10-29 20:56 tvo Status new => feedback
2007-10-29 21:14 KDR_11k Note Added: 0001380
2007-10-29 21:57 imbaczek Status feedback => resolved
2007-10-29 21:57 imbaczek Resolution open => fixed
2007-10-29 21:57 imbaczek Assigned To => imbaczek