1.9.7 Eval Bug

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

1.9.7 Eval Bug

Postby Someone Else » Tue Jul 19, 2011 8:37 pm

I was fooling around with some things, trying to spawn a polygon via a function, where one of the arguments is an identifier, and color was bound to that identifier, and it simply pointlessly bound the identifier to the local variable in the function, and one of the things I tried was to use eval and have the identifier masked as a string, but it still didn't work, and then I ran into this bug.

Make any object you want.
In the script menu, in any of the boxes that is not intended to accept a string or a function, type this, noting that geval also works and, with some slight modifications, functions can do it too:

{eval("Any value the variable is intended to accept")}

Examples:
color = {eval("[1, 1, 1, 1]")}
density = {geval("12.635")}
onCollide = heteroCollide = {eval("false")}

Instant Crash and Config Deletion! Note that Autosave and config_autosave will survive.

Surely this can't be deliberate...
Matthias Wandel is epic, in my humble opinion.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.

ARE YA HAPPY NOW?????

Thymechanic/Phundamentalist

Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
User avatar
Someone Else
 
Posts: 1147
Joined: Sun Nov 21, 2010 10:53 pm
Location: The Milky Way Galaxy

Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 3 guests