Forums » Bugs

Lua error when using navigation

Oct 16, 2016 Olsbyn link
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.
Oct 16, 2016 mophius link
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
Oct 16, 2016 raybondo link
Thanks for the report. We'll fix it asap.
Oct 16, 2016 raybondo link
It should be fixed now.
Oct 16, 2016 mophius link
Thank you for the speedy response Ray.
Oct 16, 2016 smudger483 link
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.
Oct 16, 2016 draugath link
There's a problem with the NavComp plugin, most likely.
Oct 16, 2016 raybondo link
smudger483, did you update to the latest .1 patch?
Oct 17, 2016 smudger483 link
All sorted now, i posted that while i was still in game. awesome thanks