View Issue Details

IDProjectCategoryView StatusLast Update
0004223Spring engineLuapublic2013-12-26 20:00
ReporterIthoughtWeBannedHim Assigned ToKloot  
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version95.0 
Summary0004223: Turn Unitpiece is broken
DescriptionI use the following lua code to create the firestorm effects for the fireflowers in jw.

http://paste.springfiles.com/view/99f019c7

Basically is a piece, that gets rotated in 360 steps in a for loop. Each step there is a chance a firesfx is spawned (this is dertimnated by pseudo random nr array, not the lua math.random()).

If i use the for loop as it is in the pastebin code.. the fire is spawned from one side only. If i insert a sleep after every Step, the whole thing gets executed correctly.

This is how it looked not long ago..
http://springrts.com/phpbb/download/file.php?mode=view&id=8525&sid=ec69ebd11568cf2d46bae7bb082a9325

Assumption: Optimizations kick in? These are after all invisible pieces, who get rotated with a speed of 0, so i guess somewhere those turns are accumulated, and only executed on loopleaving.
If thats the case, please add EmitSfx by piece as loobreaking..

Thanks for optimizing hard, were i throw performance out of the window
Pica
Steps To ReproduceDL my mod.

/cheat
/give jfireflower
/give bg 2

TagsNo tags attached.
Checked infolog.txt for Errors

Activities

Kloot

2013-12-26 20:00

developer   ~0012500

use 'Move(fireEmitor, x_axis, target, 0, TRUE)' and 'Turn(fireCenter, y_axis, math.rad(i), 0, TRUE)'

Issue History

Date Modified Username Field Change
2013-12-26 17:06 IthoughtWeBannedHim New Issue
2013-12-26 20:00 Kloot Note Added: 0012500
2013-12-26 20:00 Kloot Status new => closed
2013-12-26 20:00 Kloot Assigned To => Kloot
2013-12-26 20:00 Kloot Resolution open => no change required