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

APP CRASH WHEN PROVIDE ENGINE SAMPLES ARE LOADED #26

Closed
mposha opened this issue Aug 11, 2022 · 7 comments
Closed

APP CRASH WHEN PROVIDE ENGINE SAMPLES ARE LOADED #26

mposha opened this issue Aug 11, 2022 · 7 comments

Comments

@mposha
Copy link

mposha commented Aug 11, 2022

Application crashes upon launch when files(engine1-4) stored in assets/video-scripts/455-tunning folder are loaded

@AyrA
Copy link

AyrA commented Aug 11, 2022

Next to the executable should be an error_log.log file. Copy the contents and paste here

@mposha
Copy link
Author

mposha commented Aug 11, 2022

Next to the executable should be an error_log.log file. Copy the contents and paste here

test(6): error R0010: Undefined node type

@BoogieHasFun
Copy link
Contributor

the engine your trying to load node's name is not correct, you can find node names inside the engines .mr file
example of what a node name looks like:
image

@Chaleuri
Copy link

Chaleuri commented Aug 11, 2022

In the assets folder there is a file named test.mr.

In that file, there are imports at the top. Make sure to import all the engines you want.

Example:

import "engine_sim.mr"
import "part-library/part_library.mr"
import "video-scripts/454-tuning/engine_01.mr"
import "video-scripts/454-tuning/engine_02.mr"
import "video-scripts/454-tuning/engine_03.mr"
import "video-scripts/454-tuning/engine_04.mr"

Now if I want to use the engine_03, then you need to change the set_engine's engine value to that node's name.

Inside of the engine_03.mr:

...
    output wire8: ignition_wire();
}

public node video_engine_454_03 {
    alias output __out: engine;

    wires wires()

    engine engine(
        name: "Chev. 454 V8",
...

There is this line, which one's name we need:

public node video_engine_454_03 {

Copy its name, in this example it's: video_engine_454_03, and change the test.mr file set_engine's engine value to it.

Like this:

set_engine(
    engine: video_engine_454_03()
)

I don't know if this is how it should work but this way the engine_03 will load.

Hope this helped.

@mposha
Copy link
Author

mposha commented Aug 11, 2022

the engine your trying to load node's name is not correct, you can find node names inside the engines .mr file example of what a node name looks like: image

image
this is all thats in the engines.mr file

@mposha
Copy link
Author

mposha commented Aug 11, 2022

In the assets folder there is a file named test.mr.

In that file, there are imports at the top. Make sure to import all the engines you want.

Example:

import "engine_sim.mr"
import "part-library/part_library.mr"
import "video-scripts/454-tuning/engine_01.mr"
import "video-scripts/454-tuning/engine_02.mr"
import "video-scripts/454-tuning/engine_03.mr"
import "video-scripts/454-tuning/engine_04.mr"

Now if I want to use the engine_03, then you need to change the set_engine's engine value to that node's name.

Inside of the engine_03.mr:

...
    output wire8: ignition_wire();
}

public node video_engine_454_03 {
    alias output __out: engine;

    wires wires()

    engine engine(
        name: "Chev. 454 V8",
...

There is this line, which one's name we need:

public node video_engine_454_03 {

Copy its name, in this example it's: video_engine_454_03, and change the test.mr file set_engine's engine value to it.

Like this:

set_engine(
    engine: video_engine_454_03()
)

I don't know if this is how it should work but this way the engine_03 will load.

Hope this helped.

heeeeeeeeey this resolved the issue thanks, is there any documentation on the working of the app so that i can know such?

@mposha mposha closed this as completed Aug 12, 2022
@BoogieHasFun
Copy link
Contributor

the engine your trying to load node's name is not correct, you can find node names inside the engines .mr file example of what a node name looks like: image

image this is all thats in the engines.mr file

btw i meant by the engine you downloaded .mr file

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

4 participants