1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.32 Bug Reporting thread
    Solutions and more information may already be available.

Need help with custom licence plate (No texture)

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by -Smaen-, Sep 13, 2016.

  1. -Smaen-

    -Smaen-
    Expand Collapse

    Joined:
    Jun 9, 2013
    Messages:
    6
    Hi.
    I tried to make my own licence plate pack, following the tutorial on this site, but I can't make the texture work.

    I just get the "No texture" warning on the plate. I looked at other licence plate mods to see what I do wrong, but can't find anything obvious.

    I use custom font (and also tried to disable it).

    Can anyone see if I've made any mistakes?

    (Note that my textures are placeholders. My mod is far from done)

    Thanks
    -Smaen

    Edit: The ".png.png" is fixed in my local files, but not the uploaded version here.
     

    Attached Files:

    #1 -Smaen-, Sep 13, 2016
    Last edited: Sep 15, 2016
  2. Taza

    Taza
    Expand Collapse

    Joined:
    Nov 8, 2015
    Messages:
    1,335
    In .json:
    "bump" : {
    "spriteImg" : "vehicles/common/licenseplates/no_prove/no_prove_map.png.png

    .png.png????

    Sorry that I can't actually test it now, I'm on phone. There might be more to fix... :/
     
  3. -Smaen-

    -Smaen-
    Expand Collapse

    Joined:
    Jun 9, 2013
    Messages:
    6
    That what you get for copying and pasting without checking properly...
    I feel like an idiot for not seeing that, but it still doesn't work. I looked for more errors like that, but didn't see anything.
    Thanks for your help. See any other mistakes I've done?

    Edit:
    To make it easier for people to help me.
    .json:
    Code:
    {
          "name" : "no_prove",
            "version" : 1,
            "data" : {
                "size" : {"x" : 512, "y": 256},
                "text" : { "x" : 0.5, "y" : 0.65, "scale" : 1, "color" : "rgb(187, 61, 0)", "limit" : 8},
                "generator" : "vehicles/common/licenseplates/default/licenseplate-default.html",
                "characterLayout" : "vehicles/common/licenseplates/no_prove/no_prove.json",
                "diffuse" : {
                    "spriteImg" : "vehicles/common/licenseplates/no_prove/no_prove_font.png",
                    "backgroundImg" : "vehicles/common/licenseplates/no_prove/no_prove_background.png",
                    "fillStyle" : "white"
                },
    
                "bump" : {
                    "spriteImg" : "vehicles/common/licenseplates/no_prove/no_prove_map.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)"
                }
            }
    }
    
    .jbeam:
    Code:
    {
        "Norwegian Temporary Plate Proveskilt": {
        "information":{
            "authors":"Smaen",
            "name":"Norwegian Temporary Plate Proveskilt",
            "value":50
        },
        "slotType" : "licenseplate_design_2_1",
        "licenseplate_path" : "vehicles/common/licenseplates/no_prove/no_prove.json"
        }
    }
    
     
    #3 -Smaen-, Sep 13, 2016
    Last edited: Sep 13, 2016
  4. -Smaen-

    -Smaen-
    Expand Collapse

    Joined:
    Jun 9, 2013
    Messages:
    6
    I hate bumping threads, but I still haven't found a solution for my problem. I tried making everything from the start again, copied another mod and edited that, compared diffrent mods and STILL can't find what I'm doing wrong.
    I think the game hates me...
     
  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