Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Older engines not working. #43

Open
mrwallace888 opened this issue Sep 14, 2023 · 1 comment
Open

Older engines not working. #43

mrwallace888 opened this issue Sep 14, 2023 · 1 comment

Comments

@mrwallace888
Copy link

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.

@KOFTWAR
Copy link

KOFTWAR commented Jun 8, 2024

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants