2025-07-17 05:47 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002664Spring engineUnit Scriptingpublic2011-10-09 18:46
Reporteruser744 
Assigned TojK 
PrioritynormalSeverityminorReproducibilitysometimes
StatusresolvedResolutionfixed 
Product Version0.82.7.1 
Target VersionFixed in Version 
Summary0002664: Explode (piece) emits from wrong position
DescriptionSometimes when you explode a piece the debris does not appear at the correct position.
For examples compare this two units:
http://www.abload.de/img/a_lot_of_debrislfmp.jpg

The blue cube dude to the left has its head float into the air while it constantly explodes.
The crane spins and has the container in the claw constantly explode.
Its red boom/hut thingy also explodes.

The dude's head explodes correctly.
The containers explosion emits somewhere else.


Here is a gif: http://h4.abload.de/img/5mb_exploding_piece_bulqvu.gif
(5 MB sorry but otherwise it is hard to see what is going on)

emit points for the exploding container spins wrong direction
red crane piece from crane explodes at left side while actual piece is at right side.
Additional Informationthe script for the crane is like this:
function script.Create()
    Spin (boom, y_axis, math.rad (90))
    Move (gantry, z_axis, 0)
    Move (gantry, x_axis, 200,15)
    Turn (rope1,z_axis, math.rad (50))
    local a = 50
    Move (rope2,y_axis, a,100)
    Move (rope3,y_axis, a,50)
    Move (rope4,y_axis, a,50)
    local i = 0
    while (true) do
    i=i+1
    Sleep (100)
    Explode (cc_blue, SFX.SHATTER) --the blue container
    if (i%10==0) then Explode (boom, SFX.SHATTER) end--the red boom
    end
end


script for the cube dude:
function script.Create()
    Move (head, y_axis,500,10)
    while (true) do
        Sleep (10)
        Explode (head, SFX.SHATTER)
    end
end
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0007456

user744

oh noez it is happening again:

http://www.abload.de/img/strange_explode_part2xfz4.gif
The hay bale's origin is in the object, notice how it spins around itself.
But Explode makes it fly up somewhere else. What is going on here?

Attaching the .s3o file..just add any texture so it does not crash on load.

script: http://pastebin.com/gZ3XhBFv
screenshot from Upspring: http://h4.abload.de/img/upspring_cow8plg.png

~0007457

hoijui (reporter)

related forum thread:
http://springrts.com/phpbb/viewtopic.php?p=501888

~0007461

user744

fixed by jK
http://springrts.com/phpbb/viewtopic.php?f=14&t=26891&start=14
+Notes

-Issue History
Date Modified Username Field Change
2011-09-21 17:44 user744 New Issue
2011-10-03 17:21 user744 Note Added: 0007456
2011-10-03 22:09 hoijui Note Added: 0007457
2011-10-08 15:17 user744 Note Added: 0007461
2011-10-09 18:46 jK Status new => resolved
2011-10-09 18:46 jK Resolution open => fixed
2011-10-09 18:46 jK Assigned To => jK
+Issue History