List of all slots & code example for a tire?

Discussion in 'Content Creation' started by DriverBS2, Jul 9, 2015.

  1. DriverBS2

    DriverBS2
    Expand Collapse

    Joined:
    Jun 3, 2015
    Messages:
    7
    Hi there,

    I'm trying to create a first test car, but meanwhile I'm worried about the slot system. Is there a list of all slots? In my opinion, after a little journey through the installed car files, the slot names are predefined (?) like "..._engine", "..._suspension_F" and so on.

    And the second question: I got stuck in the creation of the first wheel... Does it also need a separate slot? I'm looking for a code example for a simple tire, nothing else. I got entangled in the jbeam-code, especially in cause of the slots and the naming... :(

    Thanks in advance!

    Best regards
    Jan
     
  2. DriverBS2

    DriverBS2
    Expand Collapse

    Joined:
    Jun 3, 2015
    Messages:
    7
    For a better understanding: Is it theoretically possible to define a single jbeam-file without any slots (except the "main"-slot)? Has anybody perhaps an example for a complete jbeam-file in which a whole car or else is created?
     
  3. randomshortguy

    randomshortguy
    Expand Collapse

    Joined:
    Aug 9, 2013
    Messages:
    1,562
    Yes, it's possible to have a jbeam without any slots, all in one file. Just look at some of the props included with the game.

    Although I don't understand why you'd want to do that; the whole slots thing allows people to modify the parts in-game, as well as allowing a modular code design means content creation is easier.
     
  4. DriverBS2

    DriverBS2
    Expand Collapse

    Joined:
    Jun 3, 2015
    Messages:
    7
    Because I'm a newbie and first I want to understand how BeamNG works. Later I'll work with slots certainly.
     
  5. Goosah

    Goosah
    Expand Collapse
    Global Moderator
    BeamNG Team

    Joined:
    Aug 30, 2013
    Messages:
    790
    Wheels do not need to be in a separate slot. There just has to be a "pressureWheels":[ ] section with the necessary parameters. I recently made a pressureWheels wiki page to help with understanding what each parameter does. Though at this point it doesn't really say what the bare minimum parameters are.
     
    #4 Goosah, Jul 12, 2015
    Last edited: Jul 12, 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