Solved Addon for Van

Discussion in 'Mod Support' started by SequentialZ, Mar 20, 2017.

  1. SequentialZ

    SequentialZ
    Expand Collapse

    Joined:
    Mar 19, 2017
    Messages:
    63
    Hi, i'm new to modding in this game and before trying to completly add a car into BeamNG, I wanted to try to make an addon.
    Leading to the problem, I made a rollcage for the Van (image), cleared up the Jbeam (image) and my attempts at adding it as a mod were failures.
    I've read the "Creating a Simple Addon" thread, as well as the ones of "Vehicle Creation Megapage" etc...I'm a bit lost. Could someone list the steps on how to simply add a part to a vehicle of BeamNG ? (with some explanations :p)
    I don't know if I have to add only the Dae with the rollcage in it or with the whole vehicle too. I do not know either where I have to tell the game to load the texture of the rollcage, in which file and how. Tried to look at how is the JBEAM of the Sunburst but same end.

    Pics of Jbeam, Dae and files (in case you want to check up Jbeam or Dae)

    Thanks for any help. :)
     

    Attached Files:

  2. meywue

    meywue
    Expand Collapse
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    346
    Hey,

    we may need to do it step by step.

    First of all, you just need to put your rollcage into the dae file and get rid of all the other meshes otherwise they would overwrite the default ones.
    Furthermore make sure that you reset your mesh' scale,location, and rotation. Since you're using Blender you have to use the 'Apply' function by selecting your mesh and clicking Ctrl+A.
    In the end the transform values should look like this:



    To modify the textures of your rollcage you have to assign a material to it within your 3d apllication. Give it an unique name which you'll to define the corresponding textures (e.g. van_rollcage_mat).



    To prepare the material for the game you need to have a materials.cs file. Have a look at the stock vehicles and copy/paste one of the existing one.
    This one should look like this (it's just a rough example):



    It's important that the string for the mapTo property is exactly the same as the material string defined in your 3d application.


    Also you may want to use another slot for your rollcage.
    Currently you are using the van_half_rollcage which is not defined yet. So you're not able to select your rollcage.
    For additional parts we have a default slot - the mod slot.
    For the van it's called van_mod.
    So please change your jbeam file accordingly:



    Cheers,
    Ludger
     
  3. SequentialZ

    SequentialZ
    Expand Collapse

    Joined:
    Mar 19, 2017
    Messages:
    63
    Hi, thank you for your reply, I'm going to test this right away.

    Edit : It now spawns after few tries, but object is half transparent or at least we can see half of it, texture is really bright.
    Second major problem, the object is like "exploding" the whole vehicle (I have to stop physics when spawning to actually see it not bugging out).
     

    Attached Files:

    • brighttexture.png
    • deformation.png
    #3 SequentialZ, Mar 21, 2017
    Last edited: Mar 22, 2017
  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