Released Spearleaf Island Bus Routes (not in repo)

Discussion in 'Content Creation' started by BradyBrother100, Sep 2, 2024.

  1. BradyBrother100

    BradyBrother100
    Expand Collapse

    Joined:
    Jun 4, 2020
    Messages:
    14
    I've spent many months learning the ways Beamng handles bus routes through trial and error, and I still don't quite understand all of it. But I have learned enough to make four new routes for Spearleaf Island.

    Starting out at the Royal Bank (Transfer Center) and ending at the Lighthouse, Route 7 connects the main island to the Spearleaf Island. This route is intended any tourists who want to visit the new Lighthouse. Starting out at the Dockyards Train Station and ending at Shuffleboard Logistics and Distribution, Route 10 connects all of the little businesses around the island together.

    I made these routes compatible with the 65ft Wentward bus mod as well as the Gigatransit variant of the Capsule bus. So, you should be able to use many variants.

    The parking at each stop is a little tighter than the stock Beamng routes. That's because I wanted it to be more realistic so that you stop right up against the curb instead of allowing you to stop a couple feet away from the curb.

    For technical reasons, this probably won't be on the mod repository. The installation isn't as easy as drag-and-drop but the extra work only takes a couple minutes. We need to install the bus stops themselves manually and I don't think the Beamng devs designed the mod system to be able to customize the default maps.

    Installation Instructions:
    1. Locate your versions folder. This will most likely be in AppData/Local/Beamng.Drive. Drag and drop the two folders (mods and levels) inside the "SpearleafIslandBusRoutesFinal.zip" into the "latest" folder shortcut.
    2. OPTIONAL: Inside Beamng, you can check to make sure the four routes loaded properly by going to "Bus Routes --> Select Map --> West Coast, USA" You should imminently see Route 10, scrolling down a little more should reveal Route 7. Loading into these routes will error out, so don't play them yet.
    3. Go to Freeroam --> West Coast, USA --> Refinery. I like to load into the refinery because it is slightly more convenient to see if the assets are loaded in correctly.
    4. Enter the World Editor by pressing F11 on your keyboard. You may have to complete some first-time tour prompts.
    5. Navigate to Window --> Asset Browser. The Browser should take around about 40ish seconds to load, depending on your hardware.
    6. On the left, open the west_coast_usa folder by clicking the angled bracket.
    7. In the folder, you should see another folder labeled "PART2". Click "PART2".
    8. You'll see two .prefab.json files. These contain the stops, the trigger zones, and some waypoints to help the AI guide you correctly to the next stop. This was by far the hardest part of the project. Making the arrows go where you want them is very buggy and it's still not perfect.
    9. Right click on either one and click "Spawn Prefab at Origin" You should see a folder with a box icon show up in the scene tree on the left side of your screen. Do the same with the other prefab.
    10. For convenience, drag the "BusAssets" prefab into the "busstops" folder at the top of the scene tree. Do the same for the "NavHelp" prefab but into the "AIWaypointsGroup" folder.
    11. Starting with the "NavHelp" prefab, right click the prefab and click "Unpack"
    12. Select all of its contents by other holding Shift and selecting the first and last file inside, or you can select all of them by holding down your left click for a second, and then dragging your mouse to select all of the contents.
    13. Drag those contents out of the prefab and into the "AIWaypointsGroup"
    14. Do the same for the "BusAssets" but into the "busstops" folder
    15. Since the prefabs should now be empty, you can delete them from the scene tree to clean up the scene tree a bit.
    16. If you free cam over to the Lighthouse, you should see two bus shelters behind the Lighthouse.
    17. Save pressing Control+S or go up to File --> Save Level
    18. F11 to exit the World Editor
    19. Restart Beamng
    20. Now the Routes should be playable
    TROUBLESHOOTING
    1. The main thing that's going to go wrong is the game not being able to find the busstops. This will give some Lua 288 error when you load in one of the routes. Just make sure all of the busstops are the busstops folder and that there's not one floating around outside of the busstops folder.
    OTHER NOTES:

    As I mentioned in step 8, this is very buggy. I'm trying to do something I don't think the devs intended for anyone to do. As you approach a stop, the arrows will more times than not, start directing your backwards on the spot. If you see the red corners dictating the bus stop zone, then don't follow the arrows. If anyone knows how I can put all of the assets and waypoints into one mod folder to avoid all of the messy work, please let me know.

    I really hope you enjoy my mod and I might consider adding another route to the map in the future.


     

    Attached Files:

    #1 BradyBrother100, Sep 2, 2024
    Last edited: Sep 2, 2024
  2. Smonagl

    Smonagl
    Expand Collapse

    Joined:
    Jan 22, 2021
    Messages:
    77
    Hi, since you have the knowledge on how to add custom bus stops along with custom bus routes, i figured i´d ask you this.

    I´m currently creating custom Bus routes for the beamng mod isola rocciosa (https://www.beamng.com/resources/isola-rocciosa.24863/), but the bus routes just wont show up in the bus routes menu. I´ve organized all of the Lua Triggers just how they´re supposed to be, as well as modified the italy bus routes json, but it just won´t work. Mind helpin?
     
  3. BradyBrother100

    BradyBrother100
    Expand Collapse

    Joined:
    Jun 4, 2020
    Messages:
    14
    Yes! I'd be more than happy to help. Would you mind sending over what you currently have for me to take a look? (Either through DMs or this thread). I remember having that issue. It's been a hot minute since I've done some Beaming Bus Routes.
     
  4. Smonagl

    Smonagl
    Expand Collapse

    Joined:
    Jan 22, 2021
    Messages:
    77
    I think it´s a better idea to do it in this thread, just incase someone else has this issue too.
    Heres what I did as of right now. Just the Isola Rocciosa map modified for bus routes:https://drive.google.com/file/d/1rbdC30Ru0PVzax5fntZOPkTRwQL13jxq/view?usp=sharing

    Also, thank you so much for helping me out
     
  5. BradyBrother100

    BradyBrother100
    Expand Collapse

    Joined:
    Jun 4, 2020
    Messages:
    14
  6. Smonagl

    Smonagl
    Expand Collapse

    Joined:
    Jan 22, 2021
    Messages:
    77
    Didn´t work for me sadly. Did it works for you?
     
  7. BradyBrother100

    BradyBrother100
    Expand Collapse

    Joined:
    Jun 4, 2020
    Messages:
    14
    I was just troubleshooting on a different laptop, so I didn't test it. There's also an unnecessary comma near the end. Also, try using thumbnails from other bus routes, as place holders, and include them in your code. I'll try more in depth troubleshooting later today.
     
  8. Smonagl

    Smonagl
    Expand Collapse

    Joined:
    Jan 22, 2021
    Messages:
    77
    Unfortunately it´s neither of those. I will check wether it´s a issue with the map. Highly unlikely, but slightly possible
     
  9. Smonagl

    Smonagl
    Expand Collapse

    Joined:
    Jan 22, 2021
    Messages:
    77
    You found anything yet?
     
  10. BradyBrother100

    BradyBrother100
    Expand Collapse

    Joined:
    Jun 4, 2020
    Messages:
    14
    Just so I'm not leaving you hanging, I got caught up with school work. Looking at the official documentation, it looks like there needs to be an additional json in the scenarios folder, but that still didn't work. So I'll be troubleshooting that tonight.
    -Brady
     
  11. BradyBrother100

    BradyBrother100
    Expand Collapse

    Joined:
    Jun 4, 2020
    Messages:
    14
    Got it working! I moved all of the additional files to its own mod folder, just to keep things organized. The mod folder (isola_bus.zip be sure to extract it into its own folder) will go in your "unpacked" folder in your mods folder, and you'll make all your changes to the buslines.json file from there. The isolarocciosa.zip will go into your mods/repo folder. The additional json file in the scenarios folder is just letting the game know that this map has bus routes, no need to change anything in there. To adjust the starting position, change the x,y,z to 0 for the rotAngAxisF, and then change the w to rotate the bus so it's in the right direction. In the buslines.json file, you included bus stops that I don't see in World Editor. Hope this works!
     

    Attached Files:

  12. Smonagl

    Smonagl
    Expand Collapse

    Joined:
    Jan 22, 2021
    Messages:
    77
    Thank you so much!!! Also, how did you make the previews?
     
  13. BradyBrother100

    BradyBrother100
    Expand Collapse

    Joined:
    Jun 4, 2020
    Messages:
    14
    I chucked the mini map preview into PowerPoint. Glad I could help
     
  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