Adding a diff to the Miramar?

Discussion in 'Programming' started by Justy4WDTURBO, May 14, 2016.

  1. Justy4WDTURBO

    Justy4WDTURBO
    Expand Collapse

    Joined:
    May 14, 2016
    Messages:
    648
    By accident I found out that a Miramar with the welded diff is a GREAT offroader, but the overhang causes it to get stuck sometimes.

    So, I want to add 4WD. Any idea how to? I tried following the tut on the wiki but it wouldn't work for me.

    Here's the code that isn't working:
     
  2. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    6,960
    well, you have a part for the front differential slot just fine. Except the mirimar has no front differential slot and your differential is still set to use RL and RR wheels.
    You need to add a front slot and change the diff to use FL and FR
     
  3. Justy4WDTURBO

    Justy4WDTURBO
    Expand Collapse

    Joined:
    May 14, 2016
    Messages:
    648
    How do I add a slot? I already changed the RL/RR to FL/FR.
     
  4. Rainvest

    Rainvest
    Expand Collapse

    Joined:
    Dec 26, 2014
    Messages:
    1,902
    Trying to do the same with the miramar. How do you add slots
     
  5. Destroyer247_52

    Destroyer247_52
    Expand Collapse

    Joined:
    Mar 9, 2015
    Messages:
    188
    Well its pretty simple, but it is easier to put both differentials in the engine slots not the suspension slots (I've tried it), Here is some code from 0.5.6 that I didn't feel like updating:
    Code:
    BEFORE
    
    {
    "miramar_suspension_R_race": {
        "information":{
            "authors":"BeamNG",
            "name":"Race Live Axle Rear Suspension",
            "value":1200,
        },
        "slotType" : "miramar_suspension_R",
        "slots": [
            ["type", "default", "description"]
            ["miramar_brake_R_alt","miramar_brake_R_race", "Rear Brakes"],
            ["wheel_R_4","steelwheel_11a_13x5_R", "Rear Wheels", {"nodeOffset":{"x":"$trackwidth_R", "y":1.27, "z":0.32}}],
            ["miramar_wheeldata_R","miramar_wheeldata_R", "Rear Spindles"{"coreSlot":true}],
            ["miramar_spring_R_alt","miramar_spring_R_race", "Rear Springs"],
            ["miramar_shock_R_alt","miramar_shock_R_race", "Rear Shocks"],
            ["miramar_swaybar_R","miramar_swaybar_R_race", "Rear Swaybar"],
            ["miramar_differential_R","miramar_differential_R_race", "Rear Differential"],
        ],
    
    AFTER
    {
    "miramar_suspension_R_race": {
        "information":{
            "authors":"BeamNG",
            "name":"Race Live Axle Rear Suspension",
            "value":1200,
        },
        "slotType" : "miramar_suspension_R",
        "slots": [
            ["type", "default", "description"]
            ["miramar_brake_R_alt","miramar_brake_R_race", "Rear Brakes"],
            ["wheel_R_4","steelwheel_11a_13x5_R", "Rear Wheels", {"nodeOffset":{"x":"$trackwidth_R", "y":1.27, "z":0.32}}],
            ["miramar_wheeldata_R","miramar_wheeldata_R", "Rear Spindles"{"coreSlot":true}],
            ["miramar_spring_R_alt","miramar_spring_R_race", "Rear Springs"],
            ["miramar_shock_R_alt","miramar_shock_R_race", "Rear Shocks"],
            ["miramar_swaybar_R","miramar_swaybar_R_race", "Rear Swaybar"],
        ],
    Removing the differential from both the race and regular suspension made it just so much easier.
    Then you have to add both slots to the Engine.jbeam, recommend you have this as a mod style format so no actual game files will change.
    "miramar_engine_4.0_dohc": {
        "information":{
            "authors":"joelebauer01",
            "name":"4.0L DOHC I6 Engine",
            "value":2500,
        },
        "slotType" : "miramar_engine",
        "slots": [
            ["type", "default", "description"]
            ["miramar_exhaust_dohc","miramar_exhaust_dohc_race", "Exhaust"],
            ["miramar_transmission","miramar_drag_transmission", "Transmission"],
            ["miramar_differential_F","", "Front Differential"],
            ["miramar_differential_R","miramar_differential_R_race", "Rear Differential"],
    

    Now make sure you add the parts in the engine jbeam file and I'll attach my zip for the 4WD in case you want to have a look and if it still works.
    --- Post updated ---
    Also I forgot that my insane engine was in there.
     

    Attached Files:

  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