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

Waypoints in bus routes.

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by HighDef, Jul 3, 2018.

  1. HighDef

    HighDef
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    646
    Is it possible yet to add waypoints to bus routes? I would love it if the sat nav didn't take your bus down off road tracks or force a u-turn when there is a route around the block.
     
  2. thomatoes50

    thomatoes50
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 31, 2013
    Messages:
    666
    yeap, We had that problem a lot.

    You just need to add more information

    Code:
                "navhelp":{
                    "wcu_bs_13":["wpTown_16","Bridge36_3","Bridge36_1"],
    }
    
    You need this per bus route.

    The very first name is the waypoint where the stop is located. And in the array it's all waypoints 'you need' to go trough.
    This way you force the GPS to show the correct road and avoid weird path or wrong way driving.
     
    • Like Like x 1
  3. HighDef

    HighDef
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    646
    I have added them to my buslines.json and they run correctly now. For anyone who wants to see how they are implimented into the file:

    Code:
    {
        "version": 1,
        "routes": [
            {"routeID":"1",
                "variance":"a",
                "direction":"Island shuttle A",
                "routeColor": "#ff6600",
                "vehicle" : {
                    "model": "citybus",
                    "config": "base"
                },
                "tasklist":[
                    "si_bs_01",
                    "si_bs_02",
                    "si_bs_03_b",
                    "si_bs_04",
                    "si_bs_03",
                    "si_bs_06",
                    "si_bs_07_b",
                    "si_bs_01_b"
                ],
                "navhelp":{
                    "si_bs_04":["wp1"],
                    "si_bs_03":["wp2","wp3"]
                    "si_bs_06":["wp4","wp5"]
                    "si_bs_01_b":["wp6"]
                }
                "spawnLocation": {
                    "pos": {"x": -180.23, "y": -192.736, "z": -7.9678},
                    "rotAngAxisF": {"x": -0.129256, "y":  0.0943841, "z":  0.987109, "w":  49.0024}
                },
                "previews":[
                    "island_shuttle_a.png"
                ]
            },
            {"routeID":"1",
                "variance":"b",
                "direction":"Island shuttle B",
                "routeColor": "#ff6600",
                "tasklist":[
                    "si_bs_01",
                    "si_bs_07",
                    "si_bs_06_b",
                    "si_bs_03_b",
                    "si_bs_04_b",
                    "si_bs_03",
                    "si_bs_02_b",
                    "si_bs_01_b"
                ],
                "navhelp":{
                    "si_bs_03_b":["wp5","wp4"]
                    "si_bs_04_b":["wp3","wp2"]
                    "si_bs_03":["wp1"]
                    "si_bs_01_b":["wp6"]
                }
                "vehicle" : {
                    "model": "citybus",
                    "config": "base"
                },
                "spawnLocation": {
                    "pos": {"x": -180.23, "y": -192.736, "z": -7.9678},
                    "rotAngAxisF": {"x": -0.129256, "y":  0.0943841, "z":  0.987109, "w":  49.0024}
                },"previews":[
                    "island_shuttle_b.png"
                ]
            },
        ]
    }
    After "navhelp" you state the bus stop that is hard to get to and then list all the waypoints that the route has to follow to get there once that stop is up next.

    Thanks for your help.
     
    • Like Like x 2
  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