1.8.0 scripts and undo problem

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

1.8.0 scripts and undo problem

Postby Kilinich » Mon Oct 18, 2010 12:48 am

1.8.0
After undo in the middle of simulation values of sim.time and sim.tick became 0 for a while (1-2 frames).
If I set some script for background color depended on sim.time for example it works not right way...

How to reproduce:

1) Run sim for a while and stop it
2) Type in console "App.Background.skyColor = {sim.time == 0 ? {Print("Zero sim.time!")}:{}; [1,1,1,.6]}"
3) Run sim, draw box, press undo
4) Look in console...

Zero sim.time!
Zero sim.time!
:wtf:

It's really mess with my scripts :(
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.0 scripts and undo problem

Postby kilebantick » Mon Oct 18, 2010 12:53 am

Nice find, i've got a question. How do you find so many bugs? Are you specifically looking for them, or do you come across them when you are making things??
Image
User avatar
kilebantick
 
Posts: 1267
Joined: Tue Sep 01, 2009 9:50 am

Re: 1.8.0 scripts and undo problem

Postby Kilinich » Mon Oct 18, 2010 8:46 pm

Almost all of them was found during scene building.
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.0 scripts and undo problem

Postby emilk » Tue Aug 23, 2011 11:11 am

When undoing the scene and simulation is first cleared before being set to the undo-state. I'm not gonna rewrite that behavior right now.
Emil Ernerfeldt, lead developer
emilk
 
Posts: 616
Joined: Mon Aug 31, 2009 11:01 am
Location: Umeå, Sweden


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 3 guests