Forums » Bugs
Lua error corner case
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>
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>
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.
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.
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.
It happened again later on in Edras I-2, so its defintely not related to the NPC blockade capships.
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.
In the mean-time try not launching directly from a turret. Leave the turret before launching and you shouldn't see the error.
Any chance you can patch that sooner rather than later? It's kind of annoying...
The fix will be in tonight's patch.