1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

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

Fatal Lua Error

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by CountMarcel, Feb 4, 2017.

Tags:
  1. CountMarcel

    CountMarcel
    Expand Collapse

    Joined:
    Apr 24, 2016
    Messages:
    25
    I have no clue whats causing this but appearently the ai are broke in 0.8.0.1 in race scenarios either that or a mod changed it.

    192.25568|E|GameEngineLua|*** FATAL LUA ERROR: lua/ge/extensions//scenario/raceUI.lua:49: attempt to perform arithmetic on a nil value
    =============== Stack Traceback >> START >>
    (1) Lua function 'onRaceWaypointReached' at file 'lua/ge/extensions//scenario/raceUI.lua:49' (best guess)
    Local variables:
    data = table: 0x47561050 {vehicleName:scenario_player0, cur:5, waypointName:wp5, vehicleId:2878, time:68.174468994141 (more...)}
    playerVehicleId = number: 2878
    curtimeId = number: 13
    lastTimeId = number: 5
    lastcheckDiff = number: -0.704736
    (*temporary) = number: 68.1745
    (*temporary) = nil
    (*temporary) = number: 17
    (*temporary) = number: 8
    (*temporary) = string: "RaceCheckpointComparison"
    (*temporary) = table: 0x47561190 {timeOut:5000, time:-0.7047360651195}
    (*temporary) = string: "attempt to perform arithmetic on a nil value"
    (2) Lua field 'hook' at file 'lua/common/extensions.lua:244'
    Local variables:
    func = string: "onRaceWaypointReached"
    funcList = table: 0x472ed450 {1:function: 0x47333830, 2:function: 0x47391448, 3:function: 0x47427988 (more...)}
    (for index) = number: 3
    (for limit) = number: 4
    (for step) = number: 1
    i = number: 3
    (3) Lua field 'onScenarioVehicleTrigger' at file 'lua/ge/extensions//scenario/waypoints.lua:171'
    Local variables:
    id = number: 2878
    scenario = table: 0x472ce390 {multiseat:table: 0x473ab470, playersCountRange:table: 0x4731eeb0, minPlayers:1 (more...)}
    vid = number: 2878
    bo = userdata: 0x475f3f18
    lapDiff = number: 0
    w = table: 0x475afdc8 {nextWp:table: 0x4753ad28, lap:1, cur:5, next:6, next2Wp:table: 0x4753b108 (more...)}
    data = table: 0x47561050 {vehicleName:scenario_player0, cur:5, waypointName:wp5, vehicleId:2878, time:68.174468994141 (more...)}
    (4) main chunk of [string "line"] at line 1
    --------------- << END <<

    192.25572|E|GameEngineLua|*** while executing this line: waypoints.onScenarioVehicleTrigger(2878)
    192.25573|E|GameEngineLua|*** in chunk: line
    196.05827|E|GameEngineLua|*** FATAL LUA ERROR: lua/ge/extensions//scenario/raceUI.lua:49: attempt to perform arithmetic on a nil value
    =============== Stack Traceback >> START >>
    (1) Lua function 'onRaceWaypointReached' at file 'lua/ge/extensions//scenario/raceUI.lua:49' (best guess)
    Local variables:
    data = table: 0x476c93a0 {vehicleName:scenario_player0, cur:6, waypointName:wp6, vehicleId:2878, time:71.973578061908 (more...)}
    playerVehicleId = number: 2878
    curtimeId = number: 14
    lastTimeId = number: 6
    lastcheckDiff = number: -0.454573
    (*temporary) = number: 71.9736
    (*temporary) = nil
    (*temporary) = number: 17
    (*temporary) = number: 8
    (*temporary) = string: "RaceCheckpointComparison"
    (*temporary) = table: 0x476c94e0 {timeOut:5000, time:-0.45457307063043}
    (*temporary) = string: "attempt to perform arithmetic on a nil value"
    (2) Lua field 'hook' at file 'lua/common/extensions.lua:244'
    Local variables:
    func = string: "onRaceWaypointReached"
    funcList = table: 0x472ed450 {1:function: 0x47333830, 2:function: 0x47391448, 3:function: 0x47427988 (more...)}
    (for index) = number: 3
    (for limit) = number: 4
    (for step) = number: 1
    i = number: 3
    (3) Lua field 'onScenarioVehicleTrigger' at file 'lua/ge/extensions//scenario/waypoints.lua:171'
    Local variables:
    id = number: 2878
    scenario = table: 0x472ce390 {multiseat:table: 0x473ab470, playersCountRange:table: 0x4731eeb0, minPlayers:1 (more...)}
    vid = number: 2878
    bo = userdata: 0x47603d00
    lapDiff = number: 0
    w = table: 0x475afdc8 {nextWp:table: 0x4753b108, lap:1, cur:6, next:7, next2Wp:table: 0x474be2c0 (more...)}
    data = table: 0x476c93a0 {vehicleName:scenario_player0, cur:6, waypointName:wp6, vehicleId:2878, time:71.973578061908 (more...)}
    (4) main chunk of [string "line"] at line 1
    --------------- << END <<

    196.05833|E|GameEngineLua|*** while executing this line: waypoints.onScenarioVehicleTrigger(2878)
    196.05834|E|GameEngineLua|*** in chunk: line
    204.08220|E|GameEngineLua|*** FATAL LUA ERROR: lua/ge/extensions//scenario/raceUI.lua:49: attempt to perform arithmetic on a nil value
    =============== Stack Traceback >> START >>
    (1) Lua function 'onRaceWaypointReached' at file 'lua/ge/extensions//scenario/raceUI.lua:49' (best guess)
    Local variables:
    data = table: 0x4744a5f0 {vehicleName:scenario_player0, cur:7, waypointName:wp7, vehicleId:2878, time:79.997789442539 (more...)}
    playerVehicleId = number: 2878
    curtimeId = number: 15
    lastTimeId = number: 7
    lastcheckDiff = number: -0.0544035
    (*temporary) = number: 79.9978
    (*temporary) = nil
    (*temporary) = number: 17
    (*temporary) = number: 8
    (*temporary) = string: "RaceCheckpointComparison"
    (*temporary) = table: 0x4744a068 {timeOut:5000, time:-0.054403509013355}
    (*temporary) = string: "attempt to perform arithmetic on a nil value"
    (2) Lua field 'hook' at file 'lua/common/extensions.lua:244'
    Local variables:
    func = string: "onRaceWaypointReached"
    funcList = table: 0x472ed450 {1:function: 0x47333830, 2:function: 0x47391448, 3:function: 0x47427988 (more...)}
    (for index) = number: 3
    (for limit) = number: 4
    (for step) = number: 1
    i = number: 3
    (3) Lua field 'onScenarioVehicleTrigger' at file 'lua/ge/extensions//scenario/waypoints.lua:171'
    Local variables:
    id = number: 2878
    scenario = table: 0x472ce390 {multiseat:table: 0x473ab470, playersCountRange:table: 0x4731eeb0, minPlayers:1 (more...)}
    vid = number: 2878
    bo = userdata: 0x47392228
    lapDiff = number: 0
    w = table: 0x475afdc8 {nextWp:table: 0x474be2c0, lap:1, cur:7, next:8, next2Wp:table: 0x475393c0 (more...)}
    data = table: 0x4744a5f0 {vehicleName:scenario_player0, cur:7, waypointName:wp7, vehicleId:2878, time:79.997789442539 (more...)}
    (4) main chunk of [string "line"] at line 1
    --------------- << END <<

    204.08225|E|GameEngineLua|*** while executing this line: waypoints.onScenarioVehicleTrigger(2878)
    204.08227|E|GameEngineLua|*** in chunk: line
    208.05696|E|GameEngineLua|*** FATAL LUA ERROR: lua/ge/extensions//scenario/raceUI.lua:49: attempt to perform arithmetic on a nil value
    =============== Stack Traceback >> START >>
    (1) Lua function 'onRaceWaypointReached' at file 'lua/ge/extensions//scenario/raceUI.lua:49' (best guess)
    Local variables:
    data = table: 0x4758f2d8 {vehicleName:scenario_player0, cur:8, waypointName:wp8, vehicleId:2878, time:83.972426850349 (more...)}
    playerVehicleId = number: 2878
    curtimeId = number: 16
    lastTimeId = number: 8
    lastcheckDiff = number: -6.04259
    (*temporary) = number: 83.9724
    (*temporary) = nil
    (*temporary) = number: 17
    (*temporary) = number: 8
    (*temporary) = string: "RaceCheckpointComparison"
    (*temporary) = table: 0x4758f418 {timeOut:5000, time:-6.0425943499431}
    (*temporary) = string: "attempt to perform arithmetic on a nil value"
    (2) Lua field 'hook' at file 'lua/common/extensions.lua:244'
    Local variables:
    func = string: "onRaceWaypointReached"
    funcList = table: 0x472ed450 {1:function: 0x47333830, 2:function: 0x47391448, 3:function: 0x47427988 (more...)}
    (for index) = number: 3
    (for limit) = number: 4
    (for step) = number: 1
    i = number: 3
    (3) Lua field 'onScenarioVehicleTrigger' at file 'lua/ge/extensions//scenario/waypoints.lua:171'
    Local variables:
    id = number: 2878
    scenario = table: 0x472ce390 {multiseat:table: 0x473ab470, playersCountRange:table: 0x4731eeb0, minPlayers:1 (more...)}
    vid = number: 2878
    bo = userdata: 0x4764ce08
    lapDiff = number: 1
    w = table: 0x475afdc8 {nextWp:table: 0x475393c0, lap:1, cur:8, next:1, next2Wp:table: 0x475393c0 (more...)}
    data = table: 0x4758f2d8 {vehicleName:scenario_player0, cur:8, waypointName:wp8, vehicleId:2878, time:83.972426850349 (more...)}
    (4) main chunk of [string "line"] at line 1
    --------------- << END <<

    208.05702|E|GameEngineLua|*** while executing this line: waypoints.onScenarioVehicleTrigger(2878)
    208.05704|E|GameEngineLua|*** in chunk: line
    212.15014|D|_Win32LogPOVInput|EVENT (DInput): Right POV 1 pressed.
    212.64081|D|_Win32LogPOVInput|EVENT (DInput): Right POV 1 released.
    223.38242|E|GameEngineLua|*** FATAL LUA ERROR: lua/ge/extensions//scenario/raceUI.lua:49: attempt to perform arithmetic on a nil value
    =============== Stack Traceback >> START >>
    (1) Lua function 'onRaceWaypointReached' at file 'lua/ge/extensions//scenario/raceUI.lua:49' (best guess)
    Local variables:
    data = table: 0x474bc3e8 {vehicleName:scenario_player0, cur:4, waypointName:wp4, vehicleId:2878, time:99.296267475002 (more...)}
    playerVehicleId = number: 2878
    curtimeId = number: 20
    lastTimeId = number: 12
    lastcheckDiff = number: -0.472689
    (*temporary) = number: 99.2963
    (*temporary) = nil
    (*temporary) = number: 25
    (*temporary) = number: 8
    (*temporary) = string: "RaceCheckpointComparison"
    (*temporary) = table: 0x472cab28 {timeOut:5000, time:-0.47268855199218}
    (*temporary) = string: "attempt to perform arithmetic on a nil value"
    (2) Lua field 'hook' at file 'lua/common/extensions.lua:244'
    Local variables:
    func = string: "onRaceWaypointReached"
    funcList = table: 0x472ed450 {1:function: 0x47333830, 2:function: 0x47391448, 3:function: 0x47427988 (more...)}
    (for index) = number: 3
    (for limit) = number: 4
    (for step) = number: 1
    i = number: 3
    (3) Lua field 'onScenarioVehicleTrigger' at file 'lua/ge/extensions//scenario/waypoints.lua:171'
    Local variables:
    id = number: 2878
    scenario = table: 0x472ce390 {multiseat:table: 0x473ab470, playersCountRange:table: 0x4731eeb0, minPlayers:1 (more...)}
    vid = number: 2878
    bo = userdata: 0x473b6958
    lapDiff = number: 0
    w = table: 0x475afdc8 {nextWp:table: 0x4753a948, lap:1, cur:4, next:5, next2Wp:table: 0x4753ad28 (more...)}
    data = table: 0x474bc3e8 {vehicleName:scenario_player0, cur:4, waypointName:wp4, vehicleId:2878, time:99.296267475002 (more...)}
    (4) main chunk of [string "line"] at line 1
    --------------- << END <<

    223.38246|E|GameEngineLua|*** while executing this line: waypoints.onScenarioVehicleTrigger(2878)
    223.38248|E|GameEngineLua|*** in chunk: line
    225.71684|D|_Win32LogPOVInput|EVENT (DInput): Left POV 1 pressed.
    227.04711|D|_Win32LogPOVInput|EVENT (DInput): Left POV 1 released.
    227.20827|E|GameEngineLua|*** FATAL LUA ERROR: lua/ge/extensions//scenario/raceUI.lua:49: attempt to perform arithmetic on a nil value
    =============== Stack Traceback >> START >>
    (1) Lua function 'onRaceWaypointReached' at file 'lua/ge/extensions//scenario/raceUI.lua:49' (best guess)
    Local variables:
    data = table: 0x4747e9d0 {vehicleName:scenario_player0, cur:5, waypointName:wp5, vehicleId:2878, time:103.12414190173 (more...)}
    playerVehicleId = number: 2878
    curtimeId = number: 21
    lastTimeId = number: 13
    lastcheckDiff = number: -0.0101329
    (*temporary) = number: 103.124
    (*temporary) = nil
    (*temporary) = number: 25
    (*temporary) = number: 8
    (*temporary) = string: "RaceCheckpointComparison"
    (*temporary) = table: 0x472e4950 {timeOut:5000, time:-0.010132947005332}
    (*temporary) = string: "attempt to perform arithmetic on a nil value"
    (2) Lua field 'hook' at file 'lua/common/extensions.lua:244'
    Local variables:
    func = string: "onRaceWaypointReached"
    funcList = table: 0x472ed450 {1:function: 0x47333830, 2:function: 0x47391448, 3:function: 0x47427988 (more...)}
    (for index) = number: 3
    (for limit) = number: 4
    (for step) = number: 1
    i = number: 3
    (3) Lua field 'onScenarioVehicleTrigger' at file 'lua/ge/extensions//scenario/waypoints.lua:171'
    Local variables:
    id = number: 2878
    scenario = table: 0x472ce390 {multiseat:table: 0x473ab470, playersCountRange:table: 0x4731eeb0, minPlayers:1 (more...)}
    vid = number: 2878
    bo = userdata: 0x472bc568
    lapDiff = number: 0
    w = table: 0x475afdc8 {nextWp:table: 0x4753ad28, lap:1, cur:5, next:6, next2Wp:table: 0x4753b108 (more...)}
    data = table: 0x4747e9d0 {vehicleName:scenario_player0, cur:5, waypointName:wp5, vehicleId:2878, time:103.12414190173 (more...)}
    (4) main chunk of [string "line"] at line 1
    --------------- << END <<

    227.20833|E|GameEngineLua|*** while executing this line: waypoints.onScenarioVehicleTrigger(2878)
    227.20834|E|GameEngineLua|*** in chunk: line
    231.27469|D|GELua.scenarios.stop|Unloading any scenario extensions
    231.27863|D|GELua.waypoints|onScenarioChange: nil
    231.27866|D|GELua.statistics|onScenarioChange: called
    231.28346|I|GELua.waypoints|onScenarioRestarted called
    231.28367|D|GELua.statistics|onScenarioRestarted: called
    231.28369|D|GELua.statistics|initialiseTables called...
    231.28519|D|GELua.scenarios.race|onScenarioChange: pre-start
    231.32932|D|GELua.input_actions|Loaded 4 actions from { "vehicles/pickup/input_actions.json" }
    231.32937|D|GELua.input_actions|Vehicle "pickup" has up to 4 custom actions in some of its part configurations
    231.68323|E|GameEngineLua|*** FATAL LUA ERROR: lua/ge/extensions//scenario/checkGoals.lua:79: attempt to index local 'scenario' (a nil value)
    =============== Stack Traceback >> START >>
    (1) Lua field 'check_goals' at file 'lua/ge/extensions//scenario/checkGoals.lua:79'
    Local variables:
    scenario = nil
    status = string: "onRaceWaypointReached"
    statusData = table: 0x4742e8d8 {vehicleName:ai5, cur:1, waypointName:wp1, vehicleId:3329, time:107.19045173377 (more...)}
    (*temporary) = table: 0x4727f500 {getGroundModelCount:function: 0x47280ed8, ___const:table: 0x4727f428, ___setters:table: 0x4727f688 (more...)}
    (*temporary) = number: 8.54365e+34
    (*temporary) = number: 1.40642e-312
    (*temporary) = userdata: 0x47287478
    (*temporary) = string: "getPlayerVehicleID"
    (*temporary) = C function: 0x4727ffd0
    (*temporary) = number: 4.99695e+35
    (*temporary) = number: 2.25521e-312
    (*temporary) = userdata: 0x47287478
    (*temporary) = string: "getPlayerVehicleID"
    (*temporary) = C function: 0x4727ffd0
    (*temporary) = nil
    (*temporary) = boolean: false
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = string: "attempt to index local 'scenario' (a nil value)"
    (2) Lua function 'onRaceWaypointReached' at file 'lua/ge/extensions//scenario/raceGoals.lua:172' (best guess)
    Local variables:
    data = table: 0x4742e8d8 {vehicleName:ai5, cur:1, waypointName:wp1, vehicleId:3329, time:107.19045173377 (more...)}
    (3) Lua field 'hook' at file 'lua/common/extensions.lua:244'
    Local variables:
    func = string: "onRaceWaypointReached"
    funcList = table: 0x472ed450 {1:function: 0x47333830, 2:function: 0x47391448, 3:function: 0x47427988 (more...)}
    (for index) = number: 4
    (for limit) = number: 4
    (for step) = number: 1
    i = number: 4
    (4) Lua field 'onScenarioVehicleTrigger' at file 'lua/ge/extensions//scenario/waypoints.lua:171'
    Local variables:
    id = number: 3329
    scenario = table: 0x475fe088 {multiseat:table: 0x475fe0b0, playersCountRange:table: 0x47712910, minPlayers:1 (more...)}
    vid = number: 3329
    bo = userdata: 0x47495c60
    lapDiff = number: 0
    w = table: 0x4764dc88 {nextWp:table: 0x47422218, lap:0, cur:1, next:2, next2Wp:table: 0x475f9288 (more...)}
    data = table: 0x4742e8d8 {vehicleName:ai5, cur:1, waypointName:wp1, vehicleId:3329, time:107.19045173377 (more...)}
    (5) main chunk of [string "line"] at line 1
    --------------- << END <<
     

    Attached Files:

  2. CountMarcel

    CountMarcel
    Expand Collapse

    Joined:
    Apr 24, 2016
    Messages:
    25
    Bump, Anyone or any solution?, Even a vanilla game with the AI racing derby scenarios that people made are bugged.
     
  3. Ulrich

    Ulrich
    Expand Collapse

    Joined:
    Aug 15, 2013
    Messages:
    1,196
    Try to clear the cache or play in safe mod.
     
  4. CountMarcel

    CountMarcel
    Expand Collapse

    Joined:
    Apr 24, 2016
    Messages:
    25
    I did try clear cache and it is with something with their scenario changes however they still work just the lap counter and checkpoint counter picks up AI cars too, seems a little buggy.

    EDIT: it does seam to come from the file checkGoals.lua in BeamNG.drive\lua\ge\extensions\scenario.

    Should I host my checkGoals.lua file here or any game files with error reports?
     
    #4 CountMarcel, Feb 5, 2017
    Last edited: Feb 7, 2017
  5. CountMarcel

    CountMarcel
    Expand Collapse

    Joined:
    Apr 24, 2016
    Messages:
    25
    Bump.
    Really like to know a solution BeamNG has been my favorite destruction game since the initial release EDIT: nevermind he does have the same problem as me however the checkpoint on his seams to work might be wrong. Like the figure 8 race and AI where the scenario counts the AI's as mine making the checkpoint and lap counters bug out and show their progress but it does leave the scenario broken in a way cause even if i got 6th it says i get 2nd.
     
    #5 CountMarcel, Feb 7, 2017
    Last edited: Feb 8, 2017
  6. CountMarcel

    CountMarcel
    Expand Collapse

    Joined:
    Apr 24, 2016
    Messages:
    25
    anything discovered?
     
  7. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,685
    Some changes in the AI probably broke those scenario mods.
    Those will need to be updated in order to work again.

    The base game does not contain any scenario with AI to race.
    AI is in active development, very prone to changes.
     
  8. CountMarcel

    CountMarcel
    Expand Collapse

    Joined:
    Apr 24, 2016
    Messages:
    25

    Ah thanks and luckly they still drive and are fun to crash into in the scenarios.
     
  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