WIP Beta released Display mod in part selector

Discussion in 'User Interface Apps' started by Vic Rattlehead, Sep 7, 2021.

  1. Vic Rattlehead

    Vic Rattlehead
    Expand Collapse

    Joined:
    Sep 6, 2021
    Messages:
    3
    Show's the mod author in the part selector.

    Installation:
    Place zip file in mods directory and enable in BeamNG. UI/game may need to be restarted for changes to take affect!

    How it works:
    Author is determined by the author defined in the JBeam configuration for the part.
    If an author is defined, and it's not BeamNG it'll display the author in the parts selector.

    The con with this implementation is that not all modders define the author in JBeam correctly.
    I'm looking at implementing a more reliable way of determining the mod author/name.

    Note:
    When enabled, this mod overrides the games files and could potentially break other mods or the game.
    This mod does not permanently override game files. When the mod is disabled your game files will be untouched.

    Please submit bugs and suggestions.


    beamng2.png
     

    Attached Files:

    #1 Vic Rattlehead, Sep 7, 2021
    Last edited: Sep 9, 2021
    • Like Like x 6
  2. Ramund_Hin_Unge

    Ramund_Hin_Unge
    Expand Collapse

    Joined:
    Jul 1, 2021
    Messages:
    20
    Honestly this should be built into Beam. I'll try this as soon as I get home.

    Edit:
    I can finally tell all of IYB's tires apart in the selector, yay! (though I don't know who "Phil" is :) )

    upload_2021-9-7_17-51-30.png

    A few things I wanted to point out at a glance.
    - It doesn't seem to capture all mods. A few examples of stuff it didn't highlight are the Iceland Van Body (screenshot), ETK-K facelift, or the ETK 800 parts pack. I'm not sure if this was due to the creator not adding their name or a bug.

    upload_2021-9-7_17-52-52.png

    - It also was a bit inconsistent in formatting and captured dev names. An example would be @Diamondback in the screenshot below. I noticed you excluded anything with the author "BeamNG" in vehicleconfig.js so it may be a naming issue. Maybe there's another way to tell if it's a part is a mod or not.

    upload_2021-9-7_18-10-4.png

    I doesn't look like it broke anything in the game but overwriting core files seems a bit sketchy. I'll do a bit more testing. Overall, this is an awesome start to something that a lot of people would benefit from.

    Edit 2: Just FYI, verifying file integrity removes the modded files.
     
    #2 Ramund_Hin_Unge, Sep 7, 2021
    Last edited: Sep 8, 2021
    • Like Like x 2
    • Agree Agree x 1
  3. Theo Wilkinson

    Theo Wilkinson
    Expand Collapse

    Joined:
    Feb 18, 2020
    Messages:
    149
    How does it work? Is it just using the creator section in the Jbeam?
     
  4. Vic Rattlehead

    Vic Rattlehead
    Expand Collapse

    Joined:
    Sep 6, 2021
    Messages:
    3
    Thank you for your testing! I'll take a look at some improvements tonight.

    Right now the mod is using the author as defined by the mod creator. I'll see if there's any alternative metadata I can use to determine the mod names.

    Regarding the Diamondback mod, the reason the formatting is "inconsistent" is due to a limitation in the Material framework used by BeamNG. When a dropdown item is selected it loses its styling (smaller text size, text color etc). I found that once a mod was selected, it was sometimes hard to tell if the author was part of the part name or not. So when a mod is selected, it places parentheses around the author.

    Finally, you can use this mod like any other mod. Just place it into your mods directory! You don't need to manually overwrite the game files. Hope this helps
     
    • Like Like x 2
  5. Ramund_Hin_Unge

    Ramund_Hin_Unge
    Expand Collapse

    Joined:
    Jul 1, 2021
    Messages:
    20
    I swear it wasn't working yesterday but it's working now, cool.
     
  6. Vic Rattlehead

    Vic Rattlehead
    Expand Collapse

    Joined:
    Sep 6, 2021
    Messages:
    3
    Yes, for now. I'll look at improving this in future
     
  7. Dexl

    Dexl
    Expand Collapse

    Joined:
    May 29, 2021
    Messages:
    28
    mine doesnt work :(
     
  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