Chessnut / NutScript

A free role-play framework for Garry's Mod.
http://nutscript.rocks
MIT License
94 stars 77 forks source link

[1.1] MySQL Connection has gone away #420

Closed blt950 closed 9 years ago

blt950 commented 9 years ago

I'm having often a problem that is the server is left unactive for a amount of time, I get error like "MySQL Connection has gone away", (Using mysqloo) and when you join, the console is spamed with this error:

[ERROR] gamemodes/nutscript/gamemode/core/hooks/cl_hooks.lua:721: attempt to index field 'char' (a nil value)

  1. unknown - gamemodes/nutscript/gamemode/core/hooks/cl_hooks.lua:721

This error also appears randomly upon joining, in the joining screen. Though it doesn't have anything to say on the gameplay or loading screen when MySQL is connected. Though it still spams the console a few times.

OmniSyzygy commented 9 years ago

I was just about to open an issue for this myself.

blt950 commented 9 years ago

To clear up:

If MySQL connection is lost > Console spam > Stuck on menu screen If MySQL is successful > Slight console spam (sometimes not) > Though works as it should further on.

Chessnut commented 9 years ago

See if the recent fix works