Scripting Bug?

If you have problems installing or running Algodoo Phun Edition, this is where you can get help.
This is also where you should post any bug reports relating to Algodoo Phun Edition.

Scripting Bug?

Postby losc00 » Fri Sep 18, 2009 7:23 am

When I put something into one of the boxes in the scripting menu for an object.
e.g. Image
The simulation works just as it is supposed to, until I save the simulation and load the saved file. If I load the saved version the {variable} is changed to whatever the default value for the parameter is, in this case 2.

Am I doing something wrong here?
losc00
 
Posts: 3
Joined: Fri Sep 18, 2009 7:13 am

Re: Scripting Bug?

Postby Mystery » Fri Sep 18, 2009 8:36 am

When you use {rDensity) the variable will be saved to the config file, this is bad. Instead Use scene.my.rDensity, to make a scene.my variable put
Code: Select all
Scene.my.Test = 10

Into the console

Then to use this variable just put in
Code: Select all
{scene.my.test}


Scene.my will save the variable into the scene which is safer for every one.
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: Scripting Bug?

Postby losc00 » Fri Sep 18, 2009 9:21 am

I see, thanks.
However, even after changing the syntax to scene.my.rDense the problem still exists.
When I save and load the project the Density section of the object script settings has reverted to the default value (2) from what I originally put there ({scene.my.rDense}).
losc00
 
Posts: 3
Joined: Fri Sep 18, 2009 7:13 am

Re: Scripting Bug?

Postby standardtoaster » Fri Sep 18, 2009 3:28 pm

Actually, you are not doing anything wrong with the custom variable. This is a known bug and is trying to be fixed.
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: Scripting Bug?

Postby Frank » Thu Oct 08, 2009 4:32 pm

standardtoaster wrote:Actually, you are not doing anything wrong with the custom variable. This is a known bug and is trying to be fixed.

Indeed. Algodoo also has issues saving geometry-specific custom variables. My guess is that it has something to do with a rogue error-fixing routine. This was one of the first bugs they acknowledged, so I'd bet it will be fixed in the first update.
Made some cool stuff a long time ago
User avatar
Frank
[Best Tutorial Maker 2010]
 
Posts: 193
Joined: Mon Aug 31, 2009 6:37 pm
Location: the dark side of the moon

Re: Scripting Bug?

Postby Joel » Mon Oct 12, 2009 9:24 am

Yes, this is a known issue and it will be fixed. For now, make sure that the variable is not the default value of the attribute.
Algodoo Developer
Joel
 
Posts: 104
Joined: Mon Aug 31, 2009 11:03 am


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 2 guests