Solved Really slow AI traffic

Discussion in 'World Editor' started by uFiFAN, Oct 5, 2025.

  1. uFiFAN

    uFiFAN
    Expand Collapse

    Joined:
    Jul 28, 2023
    Messages:
    72
    I'm making a UK map and ever since I started(a year ago) the AI has seemed to be limited to 36-40 mph max, sometimes driving slower obviously. I've tried making the decal roads for AI wider, but no difference. Only the motorway(which has 2 lanes going each way separated) has cars moving up to 50-60 mph. Please can you tell me how to make AI cars go faster as I've seen on other maps like Polish roads and especially the Driv3r ported maps.
     
  2. Sea Land Air

    Sea Land Air
    Expand Collapse

    Joined:
    Jan 16, 2025
    Messages:
    12
    Hey, this is done with the zones tool. You need to create a zone and then in the city.sites.json you can adjust the speedLimit
     
  3. uFiFAN

    uFiFAN
    Expand Collapse

    Joined:
    Jul 28, 2023
    Messages:
    72
    Thank you, I've created the zones, but I can't find the speedLimit value anywhere. This is what I have in the .json file:

    "zones":[
    {
    "bot":{
    "active":false,
    "normal":[
    0,
    0,
    -1
    ],
    "pos":[
    0,
    0,
    -10
    ]
    },
    "color":[
    1,
    1,
    1
    ],
    "customFields":{
    "names":{},
    "tags":{},
    "types":{},
    "values":{}
    },
    "name":"Zone 241",
    "oldId":241,
    "top":{
    "active":false,
    "normal":[
    0,
    0,
    1
    ],
    "pos":[
    0,
    0,
    10
    ]
    },
    "vertices":[
    [
    -31.608383178711,
    892.76873779297,
    752.4716796875
    ],
    [
    -20.46240234375,
    771.13171386719,
    754.06793212891
    ],
    [
    -23.282249450684,
    672.81207275391,
    765.24078369141
    ],
    [
    -139.26049804688,
    507.89962768555,
    770.20971679688
    ],
    [
    -200.52651977539,
    439.33624267578,
    767.31756591797
    ],
    [
    -285.64654541016,
    456.7766418457,
    765.49871826172
    ],
    [
    -286.51818847656,
    516.53106689453,
    774.58227539063
    ],
    [
    -363.86184692383,
    549.78381347656,
    764.92907714844
    ],
    [
    -418.20010375977,
    644.34722900391,
    769.36541748047
    ],
    [
    -464.51934814453,
    718.50305175781,
    767.43029785156
    ],
    [
    -473.61502075195,
    771.54266357422,
    758.65014648438
    ],
    [
    -340.66860961914,
    791.77972412109,
    762.72045898438
    ],
    [
    -297.92770385742,
    827.73602294922,
    765.25103759766
    ],
    [
    -281.57574462891,
    886.83288574219,
    753.06768798828
    ],
    [
    -337.04437255859,
    899.63970947266,
    758.55023193359
    ],
    [
    -390.44079589844,
    907.22674560547,
    754.08929443359
    ],
    [
    -440.57049560547,
    875.20123291016,
    755.61773681641
    ],
    [
    -457.37460327148,
    857.69085693359,
    756.23834228516
    ],
    [
    -503.94528198242,
    836.13000488281,
    757.78076171875
    ],
    [
    -549.84045410156,
    810.77532958984,
    763.12683105469
    ],
    [
    -611.65771484375,
    788.91479492188,
    761.22155761719
    ],
    [
    -654.06390380859,
    752.03497314453,
    767.84832763672
    ],
    [
    -675.9482421875,
    790.14691162109,
    762.61364746094
    ],
    [
    -618.5419921875,
    870.39801025391,
    759.97271728516
    ],
    [
    -421.63931274414,
    1002.9309082031,
    753.69677734375
    ],
    [
    -278.38537597656,
    998.77661132813,
    761.98333740234
    ]
    ]
    },
    {
    "bot":{
    "active":false,
    "normal":[
    0,
    0,
    -1
    ],
    "pos":[
    0,
    0,
    -10
    ]
    },
    "color":[
    1,
    1,
    1
    ],
    "customFields":{
    "names":{},
    "tags":{},
    "types":{},
    "values":{}
    },
    "name":"Zone 243",
    "oldId":243,
    "top":{
    "active":false,
    "normal":[
    0,
    0,
    1
    ],
    "pos":[
    0,
    0,
    10
    ]
    },
    "vertices":[
    [
    -750.31811523438,
    644.98272705078,
    768.47760009766
    ],
    [
    -676.19195556641,
    760.56365966797,
    766.92602539063
    ],
    [
    -650.38134765625,
    736.12896728516,
    763.06121826172
    ],
    [
    -579.49407958984,
    786.78265380859,
    760.46447753906
    ],
    [
    -518.9765625,
    809.30902099609,
    758.62658691406
    ],
    [
    -435.22378540039,
    856.63513183594,
    755.92028808594
    ],
    [
    -376.65362548828,
    893.30096435547,
    754.10925292969
    ],
    [
    -333.58895874023,
    888.60272216797,
    761.14001464844
    ],
    [
    -292.35629272461,
    872.13708496094,
    754.40252685547
    ],
    [
    -309.24676513672,
    835.38677978516,
    762.13360595703
    ],
    [
    -364.69085693359,
    796.24829101563,
    757.80651855469
    ],
    [
    -478.30749511719,
    783.62652587891,
    764.12322998047
    ],
    [
    -494.56497192383,
    739.59356689453,
    768.91662597656
    ],
    [
    -471.75784301758,
    660.86169433594,
    770.89660644531
    ],
    [
    -405.06893920898,
    582.89428710938,
    764.38848876953
    ],
    [
    -351.37417602539,
    533.77465820313,
    774.89184570313
    ],
    [
    -307.67349243164,
    506.37359619141,
    769.67864990234
    ],
    [
    -319.21102905273,
    479.81866455078,
    777.5361328125
    ],
    [
    -298.6969909668,
    446.30838012695,
    776.22668457031
    ],
    [
    -271.09027099609,
    404.4670715332,
    766.72058105469
    ],
    [
    -332.73495483398,
    362.43649291992,
    768.63818359375
    ],
    [
    -409.41857910156,
    364.01516723633,
    770.25842285156
    ],
    [
    -527.25372314453,
    424.39855957031,
    777.92114257813
    ]
    ]
    },
    {
    "bot":{
    "active":false,
    "normal":[
    0,
    0,
    -1
    ],
    "pos":[
    0,
    0,
    -10
    ]
    },
    "color":[
    1,
    1,
    1
    ],
    "customFields":{
    "names":{},
    "tags":{},
    "types":{},
    "values":{}
    },
    "name":"Zone 244",
    "oldId":244,
    "top":{
    "active":false,
    "normal":[
    0,
    0,
    1
    ],
    "pos":[
    0,
    0,
    10
    ]
    },
    "vertices":[
    [
    -193.50665283203,
    429.52615356445,
    769.11083984375
    ],
    [
    155.06318664551,
    552.49298095703,
    770.892578125
    ],
    [
    650.86566162109,
    476.32211303711,
    790.71630859375
    ],
    [
    932.45941162109,
    498.95721435547,
    792.45837402344
    ],
    [
    3387.1264648438,
    -197.04414367676,
    797.95776367188
    ],
    [
    3569.0344238281,
    -571.93267822266,
    777.58129882813
    ]
    ]
    }
    ]
    }
     
  4. Sea Land Air

    Sea Land Air
    Expand Collapse

    Joined:
    Jan 16, 2025
    Messages:
    12
    Zones
    Zones can be used to highlight different areas of the level, or to create boundaries for gameplay, such as for missions. In essence, they are two-dimensional polygons, with an optional floor and ceiling if you really need height limits. In the editor, they can detect if the current player vehicle is inside the zone area, with a Calc Time value representing the CPU time that it takes to check the status each frame.

    Zones that are intended to be linked to the level can have a speed limit property. In the Custom Fields section, create speedLimit as a New Number, and then set a custom speed (in metres per second). All roads in the zone will take this value.

    taken from https://documentation.beamng.com/world_editor/windows/sites_editor/
     
    • Like Like x 2
  5. uFiFAN

    uFiFAN
    Expand Collapse

    Joined:
    Jul 28, 2023
    Messages:
    72
    Thank you. Basically, I've asked AI about it and turns out you can add dynamic variable "speedLimit" to decal roads and it works! The zones didn't for me.
     
    • Like Like x 1
  6. el_ferrito

    el_ferrito
    Expand Collapse

    Joined:
    Sep 30, 2020
    Messages:
    519
    Hi, can you elaborate more on this. I'm really interested in how to manage the AI speeds.
     
  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