Forums » Bugs
Lua error when using navigation
I keep getting this lua error when the game is setting up a navigation route in missions:
vo/vo_gamefuncs.lua:1356: attempt to index local 'shipobj' (a nil value)
stack traceback:
vo/vo_gamefuncs.lua:1356: in function 'RequestJumpPoint'
vo/vo.lua:802: in function 'SetJumpDest'
vo/if.lua:898: in function 'func'
vo/vo_event.lua:28: in function <vo/vo_event.lua:26>
[C]: in function 'xpcall'
vo/vo_event.lua:87: in function '_do_event'
vo/vo_event.lua:108: in function 'ProcessEvent'
vo/vo_cmd_navroute.lua:95: in function 'SetFullRoute'
vo/vo_gameevent.lua:1744: in function 'func'
vo/vo_gameevent.lua:2005: in function <vo/vo_gameevent.lua:1998>
It seems to have happened after the last update, first I thought it was due to a bad plugin, but that doesn't seem to be the issue.
EDIT: It happens in any scenario setting up a nav route from inside a station, it will then say I am already at my destination when a I leave the station and attempt to jump. Setting up a nav route outside the station works fine.
vo/vo_gamefuncs.lua:1356: attempt to index local 'shipobj' (a nil value)
stack traceback:
vo/vo_gamefuncs.lua:1356: in function 'RequestJumpPoint'
vo/vo.lua:802: in function 'SetJumpDest'
vo/if.lua:898: in function 'func'
vo/vo_event.lua:28: in function <vo/vo_event.lua:26>
[C]: in function 'xpcall'
vo/vo_event.lua:87: in function '_do_event'
vo/vo_event.lua:108: in function 'ProcessEvent'
vo/vo_cmd_navroute.lua:95: in function 'SetFullRoute'
vo/vo_gameevent.lua:1744: in function 'func'
vo/vo_gameevent.lua:2005: in function <vo/vo_gameevent.lua:1998>
It seems to have happened after the last update, first I thought it was due to a bad plugin, but that doesn't seem to be the issue.
EDIT: It happens in any scenario setting up a nav route from inside a station, it will then say I am already at my destination when a I leave the station and attempt to jump. Setting up a nav route outside the station works fine.
I get the same but this is only when setting a course in nav in station.
vo/vo_gamefuncs.lua:1356: attempt to index local 'shipobj' (a nil value)
stack traceback:
vo/vo_gamefuncs.lua:1356: in function 'RequestJumpPoint'
vo/vo.lua:802: in function 'SetJumpDest'
vo/if.lua:898: in function 'func'
vo/vo_event.lua:28: in function <vo/vo_event.lua:26>
[C]: in function 'xpcall'
vo/vo_event.lua:87: in function '_do_event'
vo/vo_event.lua:108: in function 'ProcessEvent'
vo/vo_cmd_navroute.lua:89: in function 'SetFinalDestination'
vo/if_navmaptemplate.lua:566: in function 'navmapclickpart2'
vo/if_navmaptemplate.lua:598: in function <vo/if_navmaptemplate.lua:581>
(tail call): ?
If you set a course when flying then it is OK
vo/vo_gamefuncs.lua:1356: attempt to index local 'shipobj' (a nil value)
stack traceback:
vo/vo_gamefuncs.lua:1356: in function 'RequestJumpPoint'
vo/vo.lua:802: in function 'SetJumpDest'
vo/if.lua:898: in function 'func'
vo/vo_event.lua:28: in function <vo/vo_event.lua:26>
[C]: in function 'xpcall'
vo/vo_event.lua:87: in function '_do_event'
vo/vo_event.lua:108: in function 'ProcessEvent'
vo/vo_cmd_navroute.lua:89: in function 'SetFinalDestination'
vo/if_navmaptemplate.lua:566: in function 'navmapclickpart2'
vo/if_navmaptemplate.lua:598: in function <vo/if_navmaptemplate.lua:581>
(tail call): ?
If you set a course when flying then it is OK
Thanks for the report. We'll fix it asap.
It should be fixed now.
Thank you for the speedy response Ray.
vo/vo_gamefuncs.lua:1356: attempt to index local 'shipobj' (a nil value)
stack traceback:
vo/vo_gamefuncs.lua:1356: in function 'RequestJumpPoint'
vo/vo.lua:802: in function 'SetJumpDest'
vo/if.lua:898: in function 'func'
vo/vo_event.lua:28: in function <vo/vo_event.lua:26>
[C]: in function 'xpcall'
vo/vo_event.lua:87: in function '_do_event'
vo/vo_event.lua:108: in function 'ProcessEvent'
vo/vo_cmd_navroute.lua:89: in function 'SetFinalDestination'
vo/if_navmaptemplate.lua:566: in function 'navmapclickpart2'
vo/if_navmaptemplate.lua:598: in function 'oldClickMap'
plugins/NavComp/ui/pda.lua:136: in function <plugins/NavComp/ui/pda.lua:135>
(tail call): ?
I still get this error when im piloting a trident, happens when i navigate from the station.
stack traceback:
vo/vo_gamefuncs.lua:1356: in function 'RequestJumpPoint'
vo/vo.lua:802: in function 'SetJumpDest'
vo/if.lua:898: in function 'func'
vo/vo_event.lua:28: in function <vo/vo_event.lua:26>
[C]: in function 'xpcall'
vo/vo_event.lua:87: in function '_do_event'
vo/vo_event.lua:108: in function 'ProcessEvent'
vo/vo_cmd_navroute.lua:89: in function 'SetFinalDestination'
vo/if_navmaptemplate.lua:566: in function 'navmapclickpart2'
vo/if_navmaptemplate.lua:598: in function 'oldClickMap'
plugins/NavComp/ui/pda.lua:136: in function <plugins/NavComp/ui/pda.lua:135>
(tail call): ?
I still get this error when im piloting a trident, happens when i navigate from the station.
There's a problem with the NavComp plugin, most likely.
smudger483, did you update to the latest .1 patch?
All sorted now, i posted that while i was still in game. awesome thanks