Outdated Mainmenu Shortcuts / Favorites for v0.5.x

Discussion in 'Utilities and programming' started by torsion, Jan 3, 2016.

  1. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    Adds a shortcuts list to the main menu! When opening and closing BeamNG.drive it can be annoying to have to wait a few seconds to pick the same level, vehicle, and config over and over again. This mod lets the fun part start a bit sooner. :)

    You can customize a JSON file to choose these items for each entry:
    Display name (Shortcut/Favorite description)
    Level
    Vehicle
    Vehicle Config
    Vehicle Color
    delayModifier (used to adjust for very large or small levels such as JRI or smallgrid)


    While you do get a short default list without a JSON of your own, most folks will want to create their own shortcuts/favorites:
    1. Download both the zip and the JSON file attached to this post. Place them both in your /mods/ folder. [Alternately you may open the zip and extract only the file "Shortcuts_list_(torsions-mainmenu-mod).json". Place that file directly into your /mods/ folder along with the zip file itself. (There is no need to delete the json from within the zip.)]
    2. Edit that JSON file to customize your favorites.
    3. To add entries, be sure to use a unique number for each entry. Removing entries is fine too of course.
    4. Edit the "delay" value at the bottom of the JSON file if your computer is exceptionally fast or slow at loading levels. The number 7500 represents 7.5 seconds and should be generally appropriate for computers which load "Gridmap" in around 8s to 12s. Increase the number if your vehicle doesn't spawn with the correct config. DECREASE the number if your vehicle spawns the config some period of time after the level loads.
    torsion-mainmenu-shortcuts_r10-base.JPG torsion-mainmenu-shortcuts_r10-with_json.JPG

    It should be noted that this mod does break any game updates which change the "mainmenu.html" or "mainmenu.js" files. This isn't as bad as it sounds since mainmenu is just the screen you get when you open the game - not the important sidebar menu which appears throughout the game. That said, expect to have to remove this mod and wait for an update whenever something important is added to the screen you see when you start the game. As we've seen in the past, updates with new material can show up at any time!
     

    Attached Files:

    #1 torsion, Jan 3, 2016
    Last edited: Jan 3, 2016
    • Like Like x 2
  2. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    Setup Cheatsheet A

    Stock level .mis paths:
    • Cliff: levels\Cliff\Cliff.mis
    • Derby Arenas: levels\derby\derby.mis
    • Dry Rock Island: levels\dry_rock_island\dry_rock_island.mis
    • East Coast, USA: levels\east_coast_usa\east_coast_usa.mis
    • Gridmap: levels\GridMap\GridMap.mis
    • Hirochi Raceway: levels\hirochi_raceway\hirochi_raceway.mis
    • Industrial Site: levels\Industrial\Industrial.mis
    • Jungle Rock Island: levels\jungle_rock_island\jungle_rock_island.mis
    • Port: levels\port\port.mis
    • Grid, Small, Pure: levels\smallgrid\smallgrid.mis
    • Small Island, USA: levels\small_island\small_island.mis
    Stock vehicle short names:
    • barstow
    • burnside
    • coupe (200BX)
    • fullsize (Grand Marshal)
    • hatch (Covet)
    • midsize (1996 Pessima)
    • moonhawk
    • pessima (1988 Pessima)
    • pickup
    • pigeon
    • roamer
    • sbr
    • semi
    • sunburst
    • super
    • van
    Vehicle configurations

    This one is easy to do on your own! Just load up the Vehicle Customization screen and check the SAVE & LOAD tab to see the names of your favorite configurations.
    vehicle-configs.JPG
     
  3. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    It has been requested that I point out how fragile this mod is. I'm not sure how soon an update will break the mod or how soon the mod will break an update. I was inclined to assume that it will not cause a big problem soon, but I could always be wrong! I've updated the OP with a warning (in red text).

    Thinking along those lines, I've added a version check inside the mod. When the game is updated to a different version (not just a newer build since that shouldn't cause a problem) the mod should indicate this onscreen with a red warning & link to this thread. The version check and a small bugfix for someone testing without a custom JSON have been added to r12 which is now attached to the OP.
    mainmenu-shortcuts-versionTest.jpg
     
  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