Author Topic: Strange UTime error causing players to respawn floating in the air and cant move  (Read 1950 times)

0 Members and 1 Guest are viewing this topic.

Offline Aeioyoo

  • Newbie
  • *
  • Posts: 6
  • Karma: -1
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?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
I pushed a possible fix to Git (https://github.com/TeamUlysses/utime). Try it and let us know if it fixes it for you.
Experiencing God's grace one day at a time.

Offline Aeioyoo

  • Newbie
  • *
  • Posts: 6
  • Karma: -1
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 :)

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
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???
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
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.
Experiencing God's grace one day at a time.