Spawn engine bug.

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

Spawn engine bug.

Postby vaidas369 » Thu Apr 09, 2015 1:15 pm

Does anyone have any ideas?
Could script cause this?
I've never faced this problem before....

And yes i did try to re'install Algodoo, also reset setting to factory. Still the same.

http://www.algodoo.com/algobox/details.php?id=98682
Attachments
i4 Van 0.9 Engine Bug.phz
Please help!
(193.15 KiB) Downloaded 46 times
vaidas369
 
Posts: 24
Joined: Thu Jan 30, 2014 8:51 pm

Re: Spawn engine bug.

Postby pnvv » Thu Apr 09, 2015 2:58 pm

I just figured out why! You have a script that varies inertiamultiplier on your flywheel based on engine speed, but if your engine stops, it goes to 0 and it disappears. I encountered this problem as well, and devised this code to fix it. Just put it in the InertiaMultiplier of your wheel:
Code: Select all
{
Scene.my.flyw < 1 ? 1 : scene.my.flyw
}

Where scene.my.flyw is scene.my.rpm (or whatever var you use to read engine speed) * 1.1 in this case. It basically says if your engine speed drops below 1 rad/s than the InertiaMultiplier will automatically go to 1, preventing it from disappearing (hopefully).

By the way; The truck is really cool! I'd like to see it fixed!
Image

(/)(°,,,°)(/)
User avatar
pnvv
 
Posts: 670
Joined: Tue Aug 26, 2014 11:46 pm
Location: Disunited States of America

Re: Spawn engine bug.

Postby vaidas369 » Fri Apr 10, 2015 1:51 am

Thanks! That fixed the problem. Small detail and big trouble :)
Thanks
vaidas369
 
Posts: 24
Joined: Thu Jan 30, 2014 8:51 pm

Re: Spawn engine bug.

Postby Epic_SkyPilot » Fri Jul 10, 2015 5:11 am

Ok I see that you already fixed the problem, but how come you have that script to fluctuate the inertia of the flywheel? I'm trying everything I can to try to learn these engines, so I'm just asking so I know in the future.
Epic_SkyPilot
 
Posts: 12
Joined: Sun Sep 14, 2014 11:28 pm


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 7 guests