Forums » Bugs

Lua error corner case

Aug 08, 2016 abortretryfail link
Not sure what's causing this one. It only seems to happen in Ukari A-10 when there's capships and other players there.

If I undock from the pilot's seat of my Trident, this error appears. It's happened twice now and I haven't had a chance to see if its caused by plugin code or not.

vo/if_hud_selfinfo.lua:118: attempt to perform arithmetic on local 'maxhp' (a nil value)
stack traceback:
vo/if_hud_selfinfo.lua:118: in function 'UpdateHealthInfo'
vo/if_hud.lua:1411: in function 'Show'
vo/if_hud.lua:265: 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_gameevent.lua:1364: in function 'func'
vo/vo_gameevent.lua:1997: in function <vo/vo_gameevent.lua:1990>
Aug 09, 2016 raybondo link
Huh, were you in one of your turrets when you undocked?
If so, it looks like it's because of the new first-person launch sequence. It's now showing the full HUD instead of just chat, but before the HUD is fully initialized from being a turret HUD to a ship HUD.
Aug 09, 2016 abortretryfail link
I believe I was undocking while in a turret, yeah.

It happened again later on in Edras I-2, so its defintely not related to the NPC blockade capships.
Aug 09, 2016 raybondo link
Yeah, I was able to reproduce the error and a patch will be in the next update.
In the mean-time try not launching directly from a turret. Leave the turret before launching and you shouldn't see the error.
Aug 15, 2016 abortretryfail link
Any chance you can patch that sooner rather than later? It's kind of annoying...
Aug 19, 2016 raybondo link
The fix will be in tonight's patch.