Engine-Simulator/engine-sim-community-edition

Older engines not working.

mrwallace888 opened this issue · 1 comments

For some reason pretty much every engine that I try that roughly predates Engine Simulator 0.1.14a gives me an error, saying the script compiled successfully, but it says no engine found, as well as no transmission and vehicle set, nor is there a default.

Why don't older engines work? And if this is a problem related specifically to code updates or the simulator version, that seems awfully annoying as that probably means that engines will constantly break with every update, even worsened by the fact that not everybody will feel like updating said engines.

I don't know. I'm just annoyed that so far only a handful of engines I've tried work properly and are updated to work with 0.1.14a, and the rest of the engines, especially all the interesting-looking ones, simply break when trying to load them.

the latest version of the code of engine has changed

you can fix the problem like this

legacy version

public node main {
    set_engine(<the engine function>)
    set_transmission(<the transmission function>)
    set_vehicle(the vehicle function)
}

latest version

public node main {
    run(
        engine: <the engine function>,
        transmission: <the transmission function>,
        vehicle: the vehicle function
    )
}

main()