[1.8.5] laser script bug

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

[1.8.5] laser script bug

Postby Bronie12345 » Fri Feb 04, 2011 1:03 am

here's the example scene of the bug:
bug scene.phz
(17.89 KiB) Downloaded 48 times


how to get the bug:
first start the scene, and see how it reacts
on second run (doesnt matter if it's second or first run), copy the laser a little to the right first
the lasers should react the same, but the script of the copied laser, works for the first laser.

btw, if the laser script isn't working in the first laser at the first run, (also a bug), open the laser menu, click onto the box where the script is inserted, then press enter.
This is also how to get the other laser working after copying
When you make a comment at a scene, at least be brave enough to subscribe to that scene...
Don't go into a topic unprepared... Read the whole topic, including all the comments, before posting.

92% of teenagers have resorted to rap music. If you are part of the 8% who listens to real music, put this in your signature.
90% of teenagers today would die if Myspace/Facebook were completely destroyed. If you are one of the 10% who would be laughing their heads off, add this to your signature.
User avatar
Bronie12345
 
Posts: 451
Joined: Mon Aug 31, 2009 8:52 pm
Location: The Netherlands

Re: [1.8.5] laser script bug

Postby Kilinich » Fri Feb 04, 2011 9:34 am

Good find. I've just simplify that...

How to reproduce:

1) Draw box, fix it to background and put laser near it so laser hit the box
2) Set laser "onLaserHit" to "(e) => {color = [0,0,0,1]}"
3) Save scene
4) run sim
As you can see - script works

Now load saved scene and run sim, script will failed to run. :crazy:
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: [1.8.5] laser script bug

Postby Kilinich » Fri Feb 04, 2011 9:36 am

Workaround:
use e.laser.color instead of just color
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: [1.8.5] laser script bug

Postby Bronie12345 » Sat Feb 05, 2011 5:52 pm

well, yeah, i know that works, but still, it's a bug
When you make a comment at a scene, at least be brave enough to subscribe to that scene...
Don't go into a topic unprepared... Read the whole topic, including all the comments, before posting.

92% of teenagers have resorted to rap music. If you are part of the 8% who listens to real music, put this in your signature.
90% of teenagers today would die if Myspace/Facebook were completely destroyed. If you are one of the 10% who would be laughing their heads off, add this to your signature.
User avatar
Bronie12345
 
Posts: 451
Joined: Mon Aug 31, 2009 8:52 pm
Location: The Netherlands


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 5 guests