Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: Aeioyoo on December 16, 2015, 08:01:21 AM

Title: Strange UTime error causing players to respawn floating in the air and cant move
Post by: Aeioyoo on December 16, 2015, 08:01:21 AM
So this randomly happens on my Jailbreak 7 server when someone dies and becomes an observer. The error:

Lua Error:

[ERROR] addons/utime/lua/autorun/cl_utime.lua:142: attempt to call method 'GetAimVector' (a nil value)
  1. unknown - addons/utime/lua/autorun/cl_utime.lua:142


Lua Error:
Error in hook RenderScreenspaceEffects: gamemodes/jailbreak/gamemode/core/cl_player.lua:95: attempt to call method 'GetObserverMode' (a nil value)

Lua Error:
stack traceback:
Lua Error:
        gamemodes/jailbreak/gamemode/core/cl_player.lua:95: in function 'fn'

Lua Error:
        addons/ulib/lua/ulib/shared/hook.lua:179: in function <addons/ulib/lua/ulib/shared/hook.lua:162>


appears in my console. This only happens randomly and rarely and is client only, it fixes when they rejoin. Any ideas?
Title: Re: Strange UTime error causing players to respawn floating in the air and cant move
Post by: Megiddo on December 16, 2015, 04:42:32 PM
I pushed a possible fix to Git (https://github.com/TeamUlysses/utime). Try it and let us know if it fixes it for you.
Title: Re: Strange UTime error causing players to respawn floating in the air and cant move
Post by: Aeioyoo on December 16, 2015, 10:41:25 PM
Thanks I'l try it! I won't be able to tell you if it is fixed for a few days, as it is rare and random, but lets hope this works :)
Title: Re: Strange UTime error causing players to respawn floating in the air and cant move
Post by: Bite That Apple on December 17, 2015, 02:53:55 AM
This doesn't look like a utime error could be causing this, in my opinion. What utime is saying is that it's not getting an aim vector, so that's why it got the error. Something is wrong with the gamemode from what it looks like, but that's just my opinion as Megiddo has responded to you already with a possible fix.. meaning I suppose it was actually utime causing that issue???
Title: Re: Strange UTime error causing players to respawn floating in the air and cant move
Post by: Megiddo on December 17, 2015, 03:35:13 AM
I just added a check to verify the player was in a valid state. I would have thought that they would always be in a valid state, but there's no reason why I can't add a check to be certain.