mod helpers

Discussion in 'Beam-Monsters' started by enjoyinorc6742, Dec 2, 2016.

  1. Iro

    Iro
    Expand Collapse
    Banned

    Joined:
    Sep 20, 2015
    Messages:
    2,049
     
  2. enjoyinorc6742

    enjoyinorc6742
    Expand Collapse

    Joined:
    Dec 24, 2015
    Messages:
    1,629
    why not make it for yourself? it's fairly easy.....once you know how. i recommend getting notepad++
     
    • Agree Agree x 1
  3. gameboy3800

    gameboy3800
    Expand Collapse

    Joined:
    Apr 27, 2014
    Messages:
    791
    i have aquired notepad++.
    from what i've seen, doing it in this method will replace the base model. i don't want that. would there be a way to do it to get it to appear with the rest of the mod instead of it needing to replace something?
     
    • Like Like x 1
  4. Deleted member 160369

    Deleted member 160369
    Expand Collapse
    Guest

    - Create a jbeam entry for your skin (use the others for the F150 as a reference)
    - Have a separate entry in your materials file.
    - Better yet, use subfolders, so you can have a dedicated materials file for the skin and a separate .jbeam file in there, without the need to modify anything.
     
    • Agree Agree x 2
  5. enjoyinorc6742

    enjoyinorc6742
    Expand Collapse

    Joined:
    Dec 24, 2015
    Messages:
    1,629
    EDIT: ninja'd
    --- Post updated ---
    simple errors are anoying.....like putting the .dae files in the vehicle folder instead of CRDTest
    --- Post updated ---
    got it....now how do i make selectable skins for it?
     
  6. Deleted member 160369

    Deleted member 160369
    Expand Collapse
    Guest

    First you need a paint scheme slot in the body:
    Code:
    "CRDTest_body_BodyName":{
     "information":{
     "authors":"",
     "name":"Description of the bodystyle here",
     },
     "slotType":"CRDTest_body_type_A",
     "slots":[
      ["type","default","description"],
      ["skin_BodyName_body","","Shell Design"{"coreSlot":true}],
      ],
    [...]
    
    Then you need a suitable skin entry in one of your .jbeam files

    To work with the system in place, it should look like this:

    Code:
    "CRDTest_skin_SkinName":{
     "information":{
     "authors":"",
     "name":"Description of your skin here",
     },
     "slotType":"skin_BodyName_body",
     "globalSkin":"SkinName",
    },
    
    Once all this is done, you need to define materials:

    Code:
    singleton Material("MeshName.skin_BodyName_body.SkinName")
    {
       mapTo = "MeshName.skin_BodyName_body.SkinName";
       diffuseMap[0] = "vehicles/CRDTest/Textures/YourSkinName/Texture.png";
    [...]
    };
    All the "BodyName" entries and "SkinName" entries must all be matching.
     
    • Informative Informative x 1
  7. gameboy3800

    gameboy3800
    Expand Collapse

    Joined:
    Apr 27, 2014
    Messages:
    791
    well that's a start. i must be missing one step someplace.
    i made an entry for it in the main crd file, made an info file, then made a texture (used my kfa2 texture as reference). anything else?
     

    Attached Files:

    • BeamNG2016-12-0223-23-07-56.png
  8. enjoyinorc6742

    enjoyinorc6742
    Expand Collapse

    Joined:
    Dec 24, 2015
    Messages:
    1,629
    i keep trying and it's not working...now there's two versions of it
    --- Post updated ---
    sigh
     
  9. gameboy3800

    gameboy3800
    Expand Collapse

    Joined:
    Apr 27, 2014
    Messages:
    791
    would i make a separate file for that, or add it to the main file? or do something completely different?
     
  10. Matchbox201

    Matchbox201
    Expand Collapse

    Joined:
    Jul 18, 2016
    Messages:
    333
    You'll get it. Make sure you do not have double entries.
    You can add jbeam to the main file, or make a new file. New file should start with { then your jbeam stuff, and end with }
    All materials must be added to materials.cs as far as I know.
     
  11. gameboy3800

    gameboy3800
    Expand Collapse

    Joined:
    Apr 27, 2014
    Messages:
    791
    yup. had to add it to materials. thanks a ton!
     

    Attached Files:

    • BeamNG2016-12-0300-54-15-17.png
  12. enjoyinorc6742

    enjoyinorc6742
    Expand Collapse

    Joined:
    Dec 24, 2015
    Messages:
    1,629
    how do i go about making skins separate again like how HoFG was?
     
  13. Deleted member 160369

    Deleted member 160369
    Expand Collapse
    Guest

    Create a folder structure like:

    vehicles/CRDTest/yourskinname/

    Down in this folder, place a materials.cs file with ONLY the materials changed by this skin, and a .jbeam file with ONLY the code for said skin. Remember to enclose the code in brackets {}, like this:

    Code:
    {
    "CRDTest_skin_SkinName":{
     "information":{
     "authors":"",
     "name":"Your Skin",
     },
     "slotType":"skin_BodyName_body",
     "globalSkin":"SkinName",
    },
    }
    
    Also, update the path to textures in the materials.cs file to point at the new location of textures if you move them.
     
    • Agree Agree x 1
    • Informative Informative x 1
  14. Matchbox201

    Matchbox201
    Expand Collapse

    Joined:
    Jul 18, 2016
    Messages:
    333
    Best way to do it once you understand how everything is working.
     
  15. mydoomfest56

    mydoomfest56
    Expand Collapse

    Joined:
    Nov 27, 2016
    Messages:
    330
    where did you get that
     
  16. gameboy3800

    gameboy3800
    Expand Collapse

    Joined:
    Apr 27, 2014
    Messages:
    791
    the skin? i made it.
     
  17. mydoomfest56

    mydoomfest56
    Expand Collapse

    Joined:
    Nov 27, 2016
    Messages:
    330
    it there a link to your skin
     
  18. gameboy3800

    gameboy3800
    Expand Collapse

    Joined:
    Apr 27, 2014
    Messages:
    791
  19. enjoyinorc6742

    enjoyinorc6742
    Expand Collapse

    Joined:
    Dec 24, 2015
    Messages:
    1,629
    would i be able to make bodies separate like the skins can be?
     
  20. Deleted member 160369

    Deleted member 160369
    Expand Collapse
    Guest

    It's a little bit different (and a tad more complicated) but yes, it's possible.
     
  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