Engine ECU File Locations?

Discussion in 'Content Creation' started by NinjaGoatX, Jun 27, 2021.

  1. NinjaGoatX

    NinjaGoatX
    Expand Collapse

    Joined:
    May 6, 2019
    Messages:
    12
    I'm working on creating an engine swap mod, and my biggest issue atm is finding the ecu's for the engines already in-game, specifically for the Roamer, D-series, and H-series. I want to copy and modify them to work with the engine I will be making, using custom values within the ecu, but I cannot find any jbeam files for them. I know the ecus in those vehicles will still carry over to the modded engine if written properly in the engine jbeam, but I want to go further with that. I could try making ecu files from scratch, but I've got little experience with writing jbeam files.

    Any help or information is greatly appreciated.
     
  2. S.Ali.M

    S.Ali.M
    Expand Collapse

    Joined:
    Jan 12, 2021
    Messages:
    1,077
    The engine/ecu jbeam for the Roamer, D-series and H-series is in common folder. vehicles/common/pickup/
     
  3. NinjaGoatX

    NinjaGoatX
    Expand Collapse

    Joined:
    May 6, 2019
    Messages:
    12
    from what i can tell, the engine jbeam only defines the default ecu that the engine spawns with. The jbeam also references the ecu options, but does not actually allow you to modify them, as none of the ecu values are shown. It indicates that there is a file separate from the engine jbeam that handles the ecu. I've seen this is some of the mods, but i cannot find this in the pickup or related vehicles. If the ecu parameters are indeed in the engine jbeam, would you mind posting a screenshot showing me approximately where in the file it is written?
     
  4. S.Ali.M

    S.Ali.M
    Expand Collapse

    Joined:
    Jan 12, 2021
    Messages:
    1,077
    Not on my pc, wait
    --- Post updated ---
    @NinjaGoatX The ecu of engines are in the engine file after the codes of engines, for example, the ecu for the v8 engines is in the line 1083 in the v8 engines jbeam.
    Btw, if you have winrar, if you copy the jbeams and paste them in another folder, they will be extracted. So you can open them, delete all codes except ecu codes, edit the ecu files (rename them and change the values)
    Look at these:
     

    Attached Files:

    • Like Like x 1
  5. NinjaGoatX

    NinjaGoatX
    Expand Collapse

    Joined:
    May 6, 2019
    Messages:
    12
    Thank you, I think I found my issue... I was using the diesel engine as a base jbeam for the mod, and that was why there were no ecu scripting... lol

    Also, would you know how I would add an ecu from another engine into the jbeam? I assume it would require a json file similar to how custom sounds work, but I cannot find out what file tells the game where to search for the new ecu (looking to simply add a sport or late ecu to the diesel-based jbeam file).
     
    #5 NinjaGoatX, Jun 27, 2021
    Last edited: Jun 27, 2021
  6. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,406
    Learn the basics of the slots system, this is easy, just requires a copy of that ECU with some changes. And it has nothing to do with sounds.
     
    • Agree Agree x 2
  7. S.Ali.M

    S.Ali.M
    Expand Collapse

    Joined:
    Jan 12, 2021
    Messages:
    1,077
    You can add any ECU to any engine. ECUs are just some codes that they change the engine's max rpm and sometimes some limiters like rpm drop shot. As Agent_Y said, the only thing you need to learn is the slot type system. Now look at the ECUs for the v8 engine, the slot type is "pickup_engine_v8_ecu". It means the ECU only shows on gasoline v8 engines. If you want to add it to a diesel engine, open the diesel engine jbeam and look at the slots paragraph. One of those slots is the diesel engine's ECU. Copy its name. Go to ECU jbeam and paste the copied text in the slot type. Then, it will show in the diesel engine's ECU slot.
     
  8. NinjaGoatX

    NinjaGoatX
    Expand Collapse

    Joined:
    May 6, 2019
    Messages:
    12
    I thought about that, but I cannot find any ecu configs in the diesel v8 jbeam. I know its not the same as the ecu as the gas v8, but I cannot find where it is.

    Edit: I is the dumb. I was using the van diesel engine jbeam which piggiebacks off the pickup's jbeam, hence why I couldn't find the ecu. *facepalm*
     
    #8 NinjaGoatX, Jun 29, 2021
    Last edited: Jun 29, 2021
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice