1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.35 Bug Reporting thread
    Solutions and more information may already be available.

Coding a Transmission (In the right thread this time)

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Sock Pong, Mar 1, 2023.

  1. Sock Pong

    Sock Pong
    Expand Collapse

    Joined:
    Mar 1, 2023
    Messages:
    5
    Hi,
    I am just farting around on BeamNG and wanting to get into creating content, mainly things to recreate my vehicles in real life. I was recreating my pickup when I noticed there was no way to go above 5:1 gear ratio on a race transmission (My truck has a Muncie SM465 with the gear ratios being 6.55:1, 3.58:1, 1.70:1, and 1:1 for the forward gears. 6.09:1 for reverse). I would like to create a whole new transmission for the D Series but I have no idea how to. I have been snooping around the files to try and find any trace of transmission data but all I can find is the name of the transmission in the parts config of the .PC file of my custom preset. Is there any way to find these transmissions anywhere? Thanks.
     
  2. DontKnowWhy186

    DontKnowWhy186
    Expand Collapse

    Joined:
    Aug 2, 2022
    Messages:
    1,006
    I'm currently not on my computer right now but you could code the transmission jbeam and find the race transmission and find the range or end something like that. At least, that's what I did to try and raise the rpm range on adjustable rpm limiter. On the top line of every paragraph, there is the format of what you have to type. I'll try and clarify this tomorrow.
     
  3. Sock Pong

    Sock Pong
    Expand Collapse

    Joined:
    Mar 1, 2023
    Messages:
    5
    I read about finding the Jbeam and editing it there but I haven't found any files for jbeams. Just so you know I've only been looking through the files in the user folder, so the .PC File for my config of the D series is there but I cant find anything consisting of gear ratios and such. Thanks for looking into it.
     
  4. sg2222

    sg2222
    Expand Collapse

    Joined:
    Jun 23, 2022
    Messages:
    18
    the jbeam won't be in your userfolder, it's in the actual game files. you'll find the content files in a place like "C:/Program Files (x86)/Steam/steamapps/common/BeamNG.drive/vehicles".

    for the pickup, it's in the common.zip folder. the file is pickup_transmission.jbeam. however, after you make the changes - do not save them over the original file.
    the proper way to do this is to go back into your userfolder, go to mods, and then create a new folder called "unpacked" there. after that, make a folder inside unpacked with the name of your mod. it can be anything you want (ex. muncie_transmission_pickup). in that folder, you'll make another folder called vehicles and then another inside the vehicles folder: either common or pickup (it doesn't really matter which in this case, the game will still load it - i would just do pickup, personally) so your final file path would be something like "%userfolder%/mods/unpacked/muncie_transmission_pickup/vehicles/pickup".

    as for actually doing the gear ratio change, copy the pickup_transmission.jbeam from the game's content folders to your new mod location. you must rename or it will still overwrite the vanilla files. rename it to whatever, for ex. muncie_transmission_pickup.jbeam. now, remove everything you do not need. personally i'd base this on the vanilla 5-speed manual, so i'll be keeping that in my example. make sure to keep the { and } symbols at the beginning and end of the file, respectively. your file should look like this now:
    Screenshot_1.png
    (my bad for the crustiness, not exactly easy to get this is in one screenshot :p)
    you also have to change the "pickup_transmission_5M" or it will overwrite that vanilla part. i changed it to "pickup_muncie_transmission_4M." then change the "name" value to whatever. now, to change the gear ratios, you'll have to change the values in the "gearRatios" section, as you probably guessed. this is how it works:
    Screenshot_2.png
    so you'll change that to [-6.09, 0, 6.55, 3.58, 1.70, 1.0],
    Screenshot_3.png
    your file should look like this now:
    Screenshot_4.png
    go ahead and save it. make sure your filepath is correct:
    Screenshot_5.png
    relaunch your game, equip the part, and it should be working :)
     
    #4 sg2222, Mar 1, 2023
    Last edited: Mar 2, 2023
    • Agree Agree x 1
  5. Sock Pong

    Sock Pong
    Expand Collapse

    Joined:
    Mar 1, 2023
    Messages:
    5
    The only way I found the pickup was through C:/Program Files (X86)/Steam/steamapps/common/BeamNG.drive/content/vehicles/pickup. They do not have a transmission Jbeam, would it just be in the pickup.jbeam folder? Thanks for the info though! Got me a lot farther than I would have by myself.
     
  6. sg2222

    sg2222
    Expand Collapse

    Joined:
    Jun 23, 2022
    Messages:
    18
    no problem :) it'll be in the pickup folder inside of common.zip:
    Screenshot_6.png
    the transmission file is right above all of the roamer stuff in that folder (assuming you're sorting by name)
     
  7. Sock Pong

    Sock Pong
    Expand Collapse

    Joined:
    Mar 1, 2023
    Messages:
    5
    Beams.png Beams2.png Beams3.png Beams4.png Here are all the JBEAM files in the pickup zip file. I tried searching for pickup_transmission.jbeam but nothing came up
    --- Post updated ---
    Found it. Thank you
    --- Post updated ---
    Ok so I have made the new file path, I copied the jbeam over to the new pickup folder in said file path, and now there's a bunch of transmissions in the jbeam file. Do I delete all the unwanted ones? (I am wanting to base this off the 5 speed transmission like you did) or do I just edit the 5 speed and keep all the other transmissions?
     
  8. sg2222

    sg2222
    Expand Collapse

    Joined:
    Jun 23, 2022
    Messages:
    18
    yeah you have to delete the ones you aren't going to edit, otherwise it will overwrite those vanilla parts
     
    • Agree Agree x 1
  9. Sock Pong

    Sock Pong
    Expand Collapse

    Joined:
    Mar 1, 2023
    Messages:
    5
    Thank you so much! I got it to work. I tried it without deleting the other transmissions and it made every other transmission besides the 5 speed manual duplicate in the drop down menu. I have fixed it now, and it has the right ratios.
    Muncie.png
    The speed is also correct, being 3-4mph slower than with the vanilla 5:1 ratio which made it go 11mph at around 2000RPM
    Speed.png
    If I ever think of releasing this as a mod (If anyone even ever wanted a transmission with gear ratios a mile apart) then I will credit you for helping me through the entire thing unless you say otherwise. Thanks!
     
    • Like Like x 1
  10. sg2222

    sg2222
    Expand Collapse

    Joined:
    Jun 23, 2022
    Messages:
    18
    that's fine with me, good to hear that you got it working!
     
  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