How to add custom steering wheels?

Discussion in 'Ideas and Suggestions' started by a_monkie, Jan 9, 2015.

  1. a_monkie

    a_monkie
    Expand Collapse

    Joined:
    Jan 5, 2015
    Messages:
    4
    So i downloaded a pack of steering wheels from this thread -
    • (Steering wheel texture thread)


    I am able to get these wheels to show up with some of the default vehicles because they draw the steering wheels from /vehicles/common. However, I am trying to get it to work on some custom vehicles that i added and i cant get it to work. I am able to get the parts option for the custom wheel to come up in the steering wheel dropdown in the parts menu, but it just ends up empty with no steering wheel at all. I will now post what i have changed in my AudiQuattroS.jbeam and material.cs files to get this far, and maybe you guys can help finish it up.

    For reference, i put the custom steering wheel textures in /vehicles/AudiQuattroS.

    AudiQuattroS.jbeam changes - I kept "AudiQuattroS_steer" the exact same, but i just put it in there to show where i put it and for reference.

    Code:
    ""AudiQuattroS_steer": {    "information":{
            "authors":"Ramalika",
            "name":"Audi Quattro Sport Steering Wheel",
        }
        "slotType" : "AudiQuattroS_steer",     
        "props": [
            ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"]
            //steering wheel
            ["steering"  , "AudiQuattroS_steer"      , "f7r","f7l","f8r",  {"x":20, "y":0, "z":0}, {"x":0, "y":0, "z":1}    , {"x":0, "y":0, "z":0}, -600, 600, 0, 1],
         ],
    }
    "momo_wheel": {
        "information":{
            "authors":"gabester",
            "name":"Audi Quattro Sport Momo Racing Wheel",
        }
        "slotType" : "AudiQuattroS_steer",     
        "props": [
            ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"]
            //steering wheel
            ["steering"  , "momo_wheel"      , "f7r","f7l","f8r",  {"x":20, "y":0, "z":0}, {"x":0, "y":0, "z":1}    , {"x":0, "y":0, "z":0}, -1000, 1000, 0, 1],
         ],
    }"
    
    materials.cs changes -

    Code:
    singleton Material(momo_wheel)
    {
       mapTo = "momo_wheel";
       diffuseMap[0] = "vehicles/AudiQuattroS/steer_01a_d.dds";
       normalMap[0] = "vehicles/AudiQuattroS/steer_01a_n.dds";
       specularPower[0] = "16";
       pixelSpecular[0] = "1";
       useAnisotropic[0] = "1";
       specularMap[0] = "vehicles/AudiQuattroS/steer_01a_s.dds";
       materialTag0 = "beamng"; materialTag1 = "vehicle";
       diffuseColor[0] = "1.5 1.5 1.5 1";
    };
    
    I stole all of the materials.cs code from /vehicles/common/materials.cs for steer_01a because this is the code that draws on the custom steering wheel for those default vehicles like the hatch. i just changes steer_01 to momo_wheel.

    any help would be much appreciated.

    link to the audi -
    • (AudiQuattroS)
     

    Attached Files:

    • 2015-01-09_00001.jpg
    • 2015-01-09_00003.jpg
    • 2015-01-09_00002.jpg
    • 2015-01-09_00004.jpg
    #1 a_monkie, Jan 9, 2015
    Last edited: Jan 9, 2015
  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