1. Trouble with the game?
    Try the troubleshooter!

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

    Dismiss Notice

RexRegum93's Better Parts Pack

Discussion in 'General Discussion' started by rexregum93, Sep 14, 2018.

  1. rexregum93

    rexregum93
    Expand Collapse

    Joined:
    Mar 7, 2018
    Messages:
    58
    Hello everyone, i'm starting this thread to discuss my mod RexRegum93's Better parts pack. I will be using this thread to collect feedback and discuss any issues you may have with this mod.

    Just to get things started i would actually like to ask you all for help. In my mod i have an offroad configuration for the Barstow. The version in the mod works just fine, i got all the kinks worked out with the diesel engine and suspension. What i have been trying to do recently is add a AWD system. It works fine with a LSD transfer case, but when i make one with a locking transfer case it physically explodes the front tires and rims. Now i would like to have a locking transfer case because without it the car can't make it through anything but small puddle.
     

    Attached Files:

    • screenshot_00002.png
    • screenshot_00003.png
    #1 rexregum93, Sep 14, 2018
    Last edited: Sep 14, 2018
  2. thatguy47

    thatguy47
    Expand Collapse

    Joined:
    Apr 9, 2015
    Messages:
    157
    My barstow does what?, I hadn't noticed, give me a minute.
    Can you send over your transfer case code for comparison?, I might have fixed it already.
     
  3. rexregum93

    rexregum93
    Expand Collapse

    Joined:
    Mar 7, 2018
    Messages:
    58
    Yeah whenever you lock the transfer case the front tires explode. IDK whats going on. I have the same problem.
     
  4. thatguy47

    thatguy47
    Expand Collapse

    Joined:
    Apr 9, 2015
    Messages:
    157
    It may be the locking torque modifier being too high, mine is set to 15000 and I don't get this issue.
    man i really need to do an update.
     
  5. rexregum93

    rexregum93
    Expand Collapse

    Joined:
    Mar 7, 2018
    Messages:
    58
    Really? maybe my diesel makes too much torque. I did pull it straight out of the bus after all. I'll have to try and lower the locking torque. Thanks man.
     
  6. thatguy47

    thatguy47
    Expand Collapse

    Joined:
    Apr 9, 2015
    Messages:
    157
    No problem, just tell me if it doesn't work and maybe we can find a solution
     
  7. rexregum93

    rexregum93
    Expand Collapse

    Joined:
    Mar 7, 2018
    Messages:
    58
    No it didn't work. I set it all the way down to 1000 and they still explode like before. I noticed that if i drive it on mud then it doesn't explode. Its only when its on a high friction surface like concrete. It might be an issue with the tires. I know you use the 6-lug wheel hubs whereas i use the 5-lug. So maybe the tires on the 6-lug wheels are more durable. I'm not really sure how to do a wheel-hub conversion though. It weird but when i lock the transfer case and give it some gas they explode almost immediately.
     
  8. thatguy47

    thatguy47
    Expand Collapse

    Joined:
    Apr 9, 2015
    Messages:
    157
    can you send over the code so I can look at it?
     
  9. rexregum93

    rexregum93
    Expand Collapse

    Joined:
    Mar 7, 2018
    Messages:
    58
    Sure thing. I Used the code for the Race 6-speed and just added the transfer case to the slots, but now i'm using the 4 speed automatic and it seems to have fixed it. So it seems to be an issue with the manual transmissions. The problem with the automatics is they refuse to upshift. I'll go ahead and send you the .zip file with all the parts in it. I think you'll notice i used your exact code for the transfer case and differentials. I did this just to make sure it wasn't a problem with my code.
     

    Attached Files:

  10. thatguy47

    thatguy47
    Expand Collapse

    Joined:
    Apr 9, 2015
    Messages:
    157
    Also, check the powertrain debug app in-game to see whats going on and maybe take another look at your code for the whole system, I can't seem to re-create the exploding front tires on my end, so I'm really not sure whats happening
     
  11. rexregum93

    rexregum93
    Expand Collapse

    Joined:
    Mar 7, 2018
    Messages:
    58
    Yeah i have no idea. I just took your CJD offroad config and put the diesel engine and the 4-speed AWD and i'm having no problems. Did you download the .zip file and test it in the game? It would be really weird if it was just an issue with my computer.
     
  12. thatguy47

    thatguy47
    Expand Collapse

    Joined:
    Apr 9, 2015
    Messages:
    157
    yeah, if you look at the powertrain debug you can see that the rear diff isn't connected, you will need to make a new driveshaft that connect's to the transfercase because the defaut won't know to connect to the transfercase, you can use mine for comparison, just using the AWD driveshaft fixes the issue
     
  13. rexregum93

    rexregum93
    Expand Collapse

    Joined:
    Mar 7, 2018
    Messages:
    58
    Oh really? Wow, it looked like all 4 wheels were powered. So in other words it was FWD? No wonder it wouldn't go anywhere.
     
  14. thatguy47

    thatguy47
    Expand Collapse

    Joined:
    Apr 9, 2015
    Messages:
    157
    it was somewhere between FWD and AWD, because both were trying to use the gearbox at the same time and the physics engine doesn't like it so they don't spin the front and rears at the same speed, it's more common than you may think, glad i could help
     
  15. rexregum93

    rexregum93
    Expand Collapse

    Joined:
    Mar 7, 2018
    Messages:
    58
    Awesome it works. Thanks a lot man. I don't want to impose but would you mind if i used your code for the transfercase, differentials, and AWD driveshaft? I tried making my own but as you saw it never really worked. I have no experience coding.........at all. I started a couple months ago by looking at the code for the Beamng and just messing around. Its been 100% trial and error and its a miracle i got this far. Its so finicky, you forget one little detail and the whole game breaks. I'll make sure to give you full credit for it and post a link to your profile.
     
  16. thatguy47

    thatguy47
    Expand Collapse

    Joined:
    Apr 9, 2015
    Messages:
    157
    I would prefer you to make your own parts, that's exactly how I learned to do it trial and error, if you wanted to reference what I had done and use that as a basis that would be fine because at least your trying to understand the code which will be far better in the long run, equally if you wanted advice or help I would be happy too, so with that said I would like for you to take another look at it and try to do it again because you were close only missing one part because you didn't fully understand the powertrain system, at least it didn't take you weeks to work out like it did me, but if you cannot seem to make it work no matter what you do then you may use sections of my code so long as you give proper credit and try to understand how it works.
    my advice would to be to look at the other vehicle's in BeamNG to see how they work because chances are you will find what you want to do already exists for another vehicle and if you need more of a guide import a car from automation and look at the code for it as it is all well annotated and explains what everything does quite well and remember you can only ever fail something if you give up.
     
  17. rexregum93

    rexregum93
    Expand Collapse

    Joined:
    Mar 7, 2018
    Messages:
    58
    Alright. I think i'll probably look at the ETK AWD system and see if i can figure it out. I looked at the pickup for reference and it confused me a little.

    "controller": [
    ["fileName"],
    ["4wd", {"shaftName":"transfercase_F", "rangeBoxName":"rangebox"}],

    I noticed that in your code you had a "variables" section instead of the "controller". So thats the first point of confusion and the next is the "transfercase_F" part. There is only the one transfercase, so whats with the front transfercase? Anyways i'll try to figure it out.
     
  18. thatguy47

    thatguy47
    Expand Collapse

    Joined:
    Apr 9, 2015
    Messages:
    157
    The variables section is what allows you to change the settings mid-game in the 'tuning' tab, this is not the same as the controller the controller used by the pickup is what allows for it to have a disconnecting front driveshaft effectively making it RWD without causing issues with the physics engine like you saw or having the transfercase deliver all its drive to the front because it has no load and the drive will always take the path of least resistance, the dev's just decided to call it "transfercase_F" and because I wanted full-time AWD I didn't include the controller.
     
  19. rexregum93

    rexregum93
    Expand Collapse

    Joined:
    Mar 7, 2018
    Messages:
    58
    Okay that makes sense. I have two transfercases, an off-road one and a race one. I used the code from the ETKI race transfercase for the "variables" and "powertrain" sections for the race, and i used the pickup crawler case code for the offroad one. Its starting to come to me. Now i just have to figure out the driveshaft.

    "powertrain" : [
    ["type", "name", "inputName", "inputIndex"]
    ["shaft", "driveshaft", "transfercase", 1, {"breakTriggerBeam":"driveshaft", "uiName":"Rear Driveshaft", "uiName":"Rear Driveshaft", "electricsName":"driveshaft", "friction":1}]
    ],

    "powertrain" : [
    ["type", "name", "inputName", "inputIndex"]
    //rear driveshaft
    ["torsionReactor", "torsionReactorR", "gearbox", 1, {}]
    ["shaft", "driveshaft", "torsionReactorR", 1, {"breakTriggerBeam":"driveshaft", "uiName":"Rear Driveshaft", "uiName":"Rear Driveshaft", "electricsName":"driveshaft", "friction":1}]
    ],

    The part that confuses me is the "torsionReactor" part. Do i just delete the one line and change the torsionreactor to transfercase?
     
  20. thatguy47

    thatguy47
    Expand Collapse

    Joined:
    Apr 9, 2015
    Messages:
    157
    Yes, the torsion reactor is what makes the body roll under hard acceleration using the torque from the engine, you could swap the code for the torsion reactor from the original driveshaft along with the torsion reactor code block that should be underneath the powertrain block to maintain this affect, however, I found that it made the car much harder to drive so I chose to remove it and the code block underneath.
     
  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