1.7.5 hinge spawn error

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

1.7.5 hinge spawn error

Postby Kilinich » Fri Aug 13, 2010 7:52 pm

1.7.5
Something wrong with thymed hinge, cant find simple case yet.

Scene created in 1.7.1: http://www.algodoo.com/algobox/details/42091
On load got error:

21:07:19: -- Warning: Caught exception: Not a real, Source\script\Expressions.cpp:190: class SharedPtr<class script::Object> script::CodeBlock::Evaluate(class SharedPtr<class script::Reflected>,const class script::Settings &)
21:07:19: -- Warning: Failed to evaluate: Scene.addHinge({
geom0 := 6605;
geom0pos := [0.0, 0.0];
geom1 := 6467;
geom1pos := [0.010819971, -0.8642893];
ccw := false;
motorTorque := {scene.my.torque};
impulseLimit := +inf;
opaqueBorders := true;
autoBrake := false;
motor := false;
motorSpeed := {scene.my.maxRPM};
color := [0.17504959, 0.035292186, 0.89468277, 0.0];
distanceLimit := +inf;
entityID := 1185;
zDepth := 143.0;
size := 0.26400003;
buttonBack := "up"
}), Not a real

check scripts:

> scene.my.torque
799.5822

> scene.my.maxRPM
0.21625687

Torque changed in 1.7.5 so problem must be in that line.
trying to create hinge without {}:

Scene.addHinge({
geom0 := 6605;
geom0pos := [0.0, 0.0];
geom1 := 6467;
geom1pos := [0.010819971, -0.8642893];
ccw := false;
motorTorque := scene.my.torque;
impulseLimit := +inf;
opaqueBorders := true;
autoBrake := false;
motor := false;
motorSpeed := {scene.my.maxRPM};
color := [0.17504959, 0.035292186, 0.89468277, 0.0];
distanceLimit := +inf;
entityID := 1185;
zDepth := 143.0;
size := 0.26400003;
buttonBack := "up"
})
hinge

ok.
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.7.5 hinge spawn error

Postby Kilinich » Fri Aug 13, 2010 10:52 pm

Yea, problem with scripted torque reproduced in many scenes.
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.7.5 hinge spawn error

Postby emilk » Mon Aug 16, 2010 5:17 pm

Yeah... I'll fix that for ya. But only b/c you're so great at reporting bugs ;)
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 2 guests