[FIXED]2.0.2b15 Undoing changes penetration status

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

[FIXED]2.0.2b15 Undoing changes penetration status

Postby tatt61880 » Sat Jun 09, 2012 6:30 pm

Edit: (by tatt61880 on 2013.02.21 00:32)
Fixed in 2.1.0b4 (or earlier). Thanks :clap:
This bug can be reproduced with 2.0.2 b15 or earlier.
-Tatt
----

Since Phun.

== How to reproduce bug ==
[scene]63122[/scene]
Trying next script will increase Sim.tick and box will move. -> No problem.
Code: Select all
for(5, (n)=>{App.Step;})


(Download the scene again.)
Trying next script will also increase Sim.tick but box won't move. -> Strange!
Code: Select all
for(5, (n)=>{App.Step; App.Step; App.undo})


I guess this issue happens because undoing initializes penetration info, incorrectly.
Serializing penetration info into scene data may solve this issue.
This can be a causes of randomness. c.f. Causes of randomness
Last edited by tatt61880 on Wed Feb 20, 2013 5:33 pm, edited 2 times in total.
Reason: Fixed!
NOTE: I'm not an Algoryx member.
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
User avatar
tatt61880
[Most Helpful Person 2010]
 
Posts: 1150
Joined: Mon Aug 31, 2009 5:45 pm
Location: Tokyo, Japan

Re: 2.0.2b15 Undoing changes penetration status

Postby Xray » Mon Dec 24, 2012 11:38 pm

Whether or not the box moves with each sim.tick seems to be dependent on the "vel" value. If I set vel = [0.0,0.0] then the box does not move. Does this make sense?
User avatar
Xray
 
Posts: 501
Joined: Sun Jun 17, 2012 6:12 am
Location: USA

Re: 2.0.2b15 Undoing changes penetration status

Postby Kilinich » Tue Dec 25, 2012 12:35 pm

intended. app.step is for debug only
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: 2.0.2b15 Undoing changes penetration status

Postby tatt61880 » Wed Dec 26, 2012 3:07 pm

intended?
I don't think so.
NOTE: I'm not an Algoryx member.
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
User avatar
tatt61880
[Most Helpful Person 2010]
 
Posts: 1150
Joined: Mon Aug 31, 2009 5:45 pm
Location: Tokyo, Japan

Re: 2.0.2b15 Undoing changes penetration status

Postby Kilinich » Wed Dec 26, 2012 5:21 pm

tatt61880 wrote:intended?
I don't think so.


Yes, I'm absolutely sure, Emil add it for benchmark texting and so on.
For checkpoints there is dedicated function App.AddUndoPoint
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: 2.0.2b15 Undoing changes penetration status

Postby emilk » Tue Feb 19, 2013 4:52 pm

tatt61880 wrote:Trying next script will also increase Sim.tick but box won't move. -> Strange!
Code: Select all
for(5, (n)=>{App.Step; App.Step; App.undo})


You are taking two steps and undoing one. Don't act surprised that not everything is undone ;)
Emil Ernerfeldt, lead developer
emilk
 
Posts: 616
Joined: Mon Aug 31, 2009 11:01 am
Location: Umeå, Sweden

Re: 2.0.2b15 Undoing changes penetration status

Postby tatt61880 » Wed Feb 20, 2013 5:20 pm

emilk wrote:
tatt61880 wrote:Trying next script will also increase Sim.tick but box won't move. -> Strange!
Code: Select all
for(5, (n)=>{App.Step; App.Step; App.undo})


You are taking two steps and undoing one. Don't act surprised that not everything is undone ;)


Hmm, resent Algodoo doesn't reproduce this issue!
This bug seems to be fixed. ;)
NOTE: I'm not an Algoryx member.
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
User avatar
tatt61880
[Most Helpful Person 2010]
 
Posts: 1150
Joined: Mon Aug 31, 2009 5:45 pm
Location: Tokyo, Japan


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 5 guests