Giter Club home page Giter Club logo

Comments (7)

AyrA avatar AyrA commented on May 18, 2024

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

from engine-sim.

mposha avatar mposha commented on May 18, 2024

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

test(6): error R0010: Undefined node type

from engine-sim.

BoogieHasFun avatar BoogieHasFun commented on May 18, 2024

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

from engine-sim.

Chaleuri avatar Chaleuri commented on May 18, 2024

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.

from engine-sim.

mposha avatar mposha commented on May 18, 2024

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

from engine-sim.

mposha avatar mposha commented on May 18, 2024

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?

from engine-sim.

BoogieHasFun avatar BoogieHasFun commented on May 18, 2024

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

from engine-sim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.