1. Intel iGPU (6xx series) crashes
    Fixed drivers available!
    Instructions here

    Dismiss Notice

How do i make a tire have more nodes?

Discussion in 'Content Creation' started by Bob PD830, Feb 6, 2014.

  1. Bob PD830

    Bob PD830
    Expand Collapse

    Joined:
    Oct 25, 2013
    Messages:
    22
    more nodes.jpg
    So I already increased the number of nodes useing numrays, but i want more nodes where the blue dots are. Yellow dots are stock nodes. The idea is more realistic flexing and better handling.

    The vehicle is 2004 John Campbell Moonbuggy by Dkutch
     
    #1 Bob PD830, Feb 6, 2014
    Last edited: Feb 6, 2014
  2. pulley999

    pulley999
    Expand Collapse

    Joined:
    Jan 21, 2013
    Messages:
    818
    Not sure it's possible with the stock tire function at the moment. The only thing I could think would be to manually jbeam the whole tire, which would be very painstaking. I'm not a modder though, so take that with a grain of salt.
     
  3. DrowsySam

    DrowsySam
    Expand Collapse

    Joined:
    Jul 30, 2013
    Messages:
    927
    Currently there's only the rim and tire..

    You could shift the rim to there? It'd act the same way.
     
  4. moosedks

    moosedks
    Expand Collapse

    Joined:
    Nov 4, 2012
    Messages:
    1,112
    I think you could possibly do this with rotators (replace wheel with rotator) but I don't know anything about them so I'm not sure
     
  5. Bob PD830

    Bob PD830
    Expand Collapse

    Joined:
    Oct 25, 2013
    Messages:
    22
    I need the sidewall to flex outward when it squats down because if the tire is really soft it just wrinkles up when torque is applied. With the extra nodes i'm hoping it would flex correctly with weight instead of wrinkling so much. i know tires wrinkle a little IRL but this is really excessive.

    Mabe this is what gabester is doing in the update. It says something about improved tires.
     
  6. moosedks

    moosedks
    Expand Collapse

    Joined:
    Nov 4, 2012
    Messages:
    1,112
    you would need to add more beams to the tire also or it would just collapse just sayin

    edit: actually i don't know :p
     
    #6 moosedks, Feb 6, 2014
    Last edited: Feb 6, 2014
  7. DrowsySam

    DrowsySam
    Expand Collapse

    Joined:
    Jul 30, 2013
    Messages:
    927
    Add VBeams to the wheels, it adds an extra lot of beams.

    Code:
    {"enableTireSideVBeams":true},
    Here's where it goes:

    (imported from here)

    It will make them much stronger, the same thing is used on my Monster Van to stop the wheels from splitting.
     
  8. Bob PD830

    Bob PD830
    Expand Collapse

    Joined:
    Oct 25, 2013
    Messages:
    22
    Vbeams are already enabled. i need the sidewall to easily flatten by folding like a flat tire does but still have good strength against torque. Just like in real life.

    The tire seems to be generated by lua at loading, but i cant find a lua file that looks like it could generate the circle. Anyone know where it is?
     
  9. gabester

    gabester
    Expand Collapse
    Vehicle Director
    BeamNG Team

    Joined:
    Jun 6, 2012
    Messages:
    2,675
    You would need to rewrite the Lua to generate more nodes and beams. It's certainly possible, but it would be very difficult. I have some beginner/intermediate Lua knowledge but I wouldn't know where to begin with redesigning the tire construction.
     
  10. Bob PD830

    Bob PD830
    Expand Collapse

    Joined:
    Oct 25, 2013
    Messages:
    22
    Ok I would like to learn lua. I have a friend who knows some and will help me. Which file is it?
     
  11. gabester

    gabester
    Expand Collapse
    Vehicle Director
    BeamNG Team

    Joined:
    Jun 6, 2012
    Messages:
    2,675
    I think beamng.lua contains the wheel generation code. It may be possible to write your own vehicle-specific Lua for custom tires once the race update comes out.
     
  12. bratska77

    bratska77
    Expand Collapse

    Joined:
    Nov 19, 2013
    Messages:
    54
    Seriously gabe, any time and every time y'all say something about the update, I get all excited like a five year old on Christmas. The mature, adult me says "take your sweet time and make something awesome, because I can wait for awesomeness"... And then the five year old me says "PLEASE GIVE IT TO ME NOW. I CANNOT WAIT. I MUST HAVE THIS". Please disregard the five year old me, and continue to be as awesome as the things you create:D
     
  13. Bob PD830

    Bob PD830
    Expand Collapse

    Joined:
    Oct 25, 2013
    Messages:
    22
    Awesome Ill wait till the update and see what i can do
     
  14. Mythbuster

    Mythbuster
    Expand Collapse

    Joined:
    Aug 11, 2012
    Messages:
    782
    I tried this exact type of tire a long time ago back in May or something. I couldn't get it to work. Anyway, yeah it is in beamng.lua.

    just ctrl+f search for "addHubWheel" (not addhubwheelTSI or whatever), then scroll down a bit to where it goes:
    local inhubnode = hubnodebase + i2
    local outhubnode = inhubnode + 1

    and then some other stuff...



    I'll upload my tire model that I started on, but be warned: This will ruin your game, you WILL need to modify it A LOT to get it working, as it is based on code from back in May or maybe earlier. It was just a start of me trying something that didn't end up working so I gave up. IT WILL BREAK YOUR GAME WITHOUT MODIFYING, so if you plan on trying it, make a backup of beamng.lua. Don't ask me for an unmodified file if you screw up your game ;)
     

    Attached Files:

  15. mtslittow

    mtslittow
    Expand Collapse

    Joined:
    Sep 28, 2012
    Messages:
    126
    Yeah, ask me instead :p
     
  16. Bob PD830

    Bob PD830
    Expand Collapse

    Joined:
    Oct 25, 2013
    Messages:
    22
    Cool thanks.
     
  17. Mythbuster

    Mythbuster
    Expand Collapse

    Joined:
    Aug 11, 2012
    Messages:
    782
    Just realised I put completely the wrong file on here... The one I uploaded was an attempt to add an extra row of nodes in the center of the tire... which again, didn't work :p I'll try to find my sidewall one, no promises though...

    EDIT: Did it... Haven't tuned it at all, but ok. You need to do the following to get it to work on the cars:
    add {"sideWidth":0.235}, (any number of course)
    {"sideRadius":0.3},

    And mess with the tire weights and spring/damping a lot so they don't explode... I haven't tested it at all but I'll see if I notice anything very different. Sidewall flex seems WAY nicer than it used to be, that's for sure.
     

    Attached Files:

    #17 Mythbuster, Feb 10, 2014
    Last edited: Feb 10, 2014
  18. Bob PD830

    Bob PD830
    Expand Collapse

    Joined:
    Oct 25, 2013
    Messages:
    22
    Thanks alot this is gonna be awesome

    - - - Updated - - -

    I must not be putting the code in right. When a vehicle trys to load it freezes. There are two errors on the screen that you get to with the ` key but only one looks like I did it

    BEAMNGl ERR l got exception: lua/vehicle/beamng.lua:1346: bad argument #4 to 'float3' (number expected, got nil)

    Here is the sidewall section
    lua line error.jpg
    Found it I had messed up in the jbeams.
     
    #18 Bob PD830, Feb 22, 2014
    Last edited: Feb 22, 2014
  19. simon48

    simon48
    Expand Collapse

    Joined:
    Aug 8, 2013
    Messages:
    203
    Edit, I think I misread the posts. Any mods feel free to delete.
     
  20. JAMMIN___JIM

    JAMMIN___JIM
    Expand Collapse

    Joined:
    Apr 14, 2014
    Messages:
    2
    I can't help with the nodes but if you want a better crawler feel, switch the tran/engine from the "helljeep"
     
  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