Solved Need help with license plate mod

Discussion in 'Mod Support' started by thatcoolcat1, Aug 30, 2016.

  1. thatcoolcat1

    thatcoolcat1
    Expand Collapse

    Joined:
    Aug 28, 2016
    Messages:
    12
    I am having some problems with my "Real Maine Plate" mod ever since I tried to change the names of certain things, while trying to have them correspond to each other. At first the .png did not show up on it, then trying to fix it, having no plate show up at all. I need help.
     

    Attached Files:

  2. Taza

    Taza
    Expand Collapse

    Joined:
    Nov 8, 2015
    Messages:
    1,347
    On maine_plate.jbeam line 8 it says

    "slotType" : "maine_plate",

    but it should say

    "slotType" : "licenseplate_design_2_1",

    That's all I found :)
     
  3. thatcoolcat1

    thatcoolcat1
    Expand Collapse

    Joined:
    Aug 28, 2016
    Messages:
    12
    thank you
     
  4. meywue

    meywue
    Expand Collapse
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    346
    Hey,

    there are some little issues in there.

    JBeam:

    First of all you must not have spaces in the part name. So instead of "Real Maine Plate" use "Real_Maine_Plate" or something like that.
    Furthermore the slotType needs to be "licenseplate_design_2_1" since this is the slot for all the license plate and the game is searching foreach part with this specific slot.

    Code:
    {
        "Real_Maine_Plate": {
        "information":{
            "authors":"thatcoolcat1",
            "name":"license_plate_2_1_REALMEAINPLATE",
            "value":50
        },
        "slotType" : "licenseplate_design_2_1",
        "licenseplate_path" : "vehicles/common/licenseplates/Real Maine Plate/maine_plate.json"
        }
    }
    Json file:

    Last but not least you have to use forward slashes instead of backward slashes.

    Code:
    {
          "name" : "Real Maine Plate",
            "version" : 1,
            "data" : {
                "size" : {"x" : 512, "y": 256},
                "text" : { "x" : 0.5, "y" : 0.65, "scale" : 1, "color" : "rgb(0, 0, 0)", "limit" : 8},
                "diffuse" : {
                    "spriteImg" : "vehicles/common/licenseplates/default/platefont_d.png",
                    "backgroundImg" : "vehicles/common/licenseplates/Real Maine Plate/maine.png",
                    "fillStyle" : "black"
                },
    
                "bump" : {
                    "spriteImg" : "vehicles/common/licenseplates/default/platefont_n.png",
                    "backgroundImg" : "vehicles/common/licenseplates/default/licenseplate-default_n.png",
                    "fillStyle" : "rgb(0,0,255)"
                },
    
                "specular" : {
                    "spriteImg" : "vehicles/common/licenseplates/default/platefont_s.png",
                    "fillStyle" : "rgb(233,233,233)"
                }
            }
      }
    Here we go!




    Please let me know if everything is working after the changes.
     
  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