Solved How to make lettering?

Discussion in 'Mod Support' started by Youngtimer, Dec 2, 2016.

  1. Youngtimer

    Youngtimer
    Expand Collapse

    Joined:
    Jun 15, 2016
    Messages:
    1,196
    I was trying to make a lettering for my Pessima Winter mod. After loading into game it won't show up. Where is the problem?
    Here's the files
     

    Attached Files:

    #1 Youngtimer, Dec 2, 2016
    Last edited: Dec 2, 2016
  2. meywue

    meywue
    Expand Collapse
    Administrator
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    339
    Hey,

    there is a closing curly bracket missing so that's why the jbeam file cannot be read.
     

    Attached Files:

    • Like Like x 1
  3. meywue

    meywue
    Expand Collapse
    Administrator
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    339
    Does it work for you now?
     
  4. Youngtimer

    Youngtimer
    Expand Collapse

    Joined:
    Jun 15, 2016
    Messages:
    1,196
    Vehicle show up in game, but lettering is invisible. How to fix that problem?
    Down is edited file:
     

    Attached Files:

  5. meywue

    meywue
    Expand Collapse
    Administrator
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    339
    In the recent version you uploaded the flexbody is missing at all, so no chance for the game to find the 'pessima_lettering_winter' mesh.
     
  6. Youngtimer

    Youngtimer
    Expand Collapse

    Joined:
    Jun 15, 2016
    Messages:
    1,196
    Where the flexbodies should be?
     
  7. Youngtimer

    Youngtimer
    Expand Collapse

    Joined:
    Jun 15, 2016
    Messages:
    1,196
  8. meywue

    meywue
    Expand Collapse
    Administrator
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    339
    Ok. Of course there are several approaches. The first one is to use the skin system which might be a bit over the top since it's such a little detail and you would kind of 'block' the mod slot.

    A better approach - in my oppinion - would be to duplicate one of the existing lettering meshes. In your jbeam file, in the flexbodies section, you're referencing to a mesh called pessima_lettering_winter. This mesh doesn't exist by default. So need a new mesh. You can easily duplicate an existing one by importing the default pessima vehicle and getting rid of all the obsolete stuff. This duplicated mesh needs to have the exact same identifier as in the jbeam file under flexbodies. Also make sure that the material applied to it has the exact same name as in your materials.cs file.

    Code:
    singleton Material("pessima_lettering_winter")
    {
        mapTo = "pessima_lettering_winter";
    This mapTo is referencing to the material which exist on the mesh - which was initially defined in a 3D application e.g. Blender, 3dsMax, Maya etc.

    So in your case you need to have a mesh with the name pessima_lettering_winter which has a pessima_lettering_winter material.

    upload_2017-1-18_13-36-1.png


    I attached a very simple duplicate of the default pessima turbo lettering. So I haven't touched the UVs which isn't that bad in this case but is not recommended since you're leaving a lot of the texture empty. Be aware that you have to adjust the position of your lettering on the texture to match the UV position (if you decide to use this mesh). You might have to use the default pessima lettering texture as a reference.
     

    Attached Files:

  9. Youngtimer

    Youngtimer
    Expand Collapse

    Joined:
    Jun 15, 2016
    Messages:
    1,196
    Thanks so much! Such a nice tutorial for modding! It'll be useful for many modders.
     
  10. Youngtimer

    Youngtimer
    Expand Collapse

    Joined:
    Jun 15, 2016
    Messages:
    1,196
    What is necessary to be in .jbeam, because my .jbeam causes winter lettering to replace default lettering.
     

    Attached Files:

    #10 Youngtimer, Feb 9, 2017
    Last edited: Feb 9, 2017
  11. synsol

    synsol
    Expand Collapse
    QA Lead
    BeamNG Team

    Joined:
    Aug 4, 2013
    Messages:
    1,471
    You can leave only the added part :
    Code:
    {
    "pessima_lettering_winter": {
        "information":{
            "authors":"BeamNG",
            "name":"Winter Trunk Lettering",
            "value":7,
        }
        "slotType" : "pessima_lettering_trunk",
        "flexbodies": [
             ["mesh", "[group]:", "nonFlexMaterials"],
             ["pessima_lettering_trunk", ["pessima_trunk"]],
             ["pessima_lettering_winter" ["pessima_trunk"]],
             ["pessima_lettering_turbo", ["pessima_trunk"]],
    
        ],
    }
    }
    this way it' will not replace defaults :)
     
  12. Youngtimer

    Youngtimer
    Expand Collapse

    Joined:
    Jun 15, 2016
    Messages:
    1,196
    Now lettering loads like this:
    screenshot_00000.png
    Please help!
     

    Attached Files:

  13. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,683
    Don't rush when you make things
     
    • Informative Informative x 1
  14. Youngtimer

    Youngtimer
    Expand Collapse

    Joined:
    Jun 15, 2016
    Messages:
    1,196
    Ahh,thanks a lot. When I'm in hurry I make stupid mistakes like this.
     
    #14 Youngtimer, Feb 14, 2017
    Last edited: Feb 14, 2017
  15. Youngtimer

    Youngtimer
    Expand Collapse

    Joined:
    Jun 15, 2016
    Messages:
    1,196
    Thank you all for help!
    Here is result:
    screenshot_00002.png
     
  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