Hi guys, i have updated the server, and when i die "Something is creating script error"
[ERROR] gamemodes/base/entities/entities/gmod_hands.lua:43: attempt to call method 'GetPlayerColor' (a nil value)
1. GetPlayerColor - gamemodes/base/entities/entities/gmod_hands.lua:43
2. bind - lua/matproxy/player_color.lua:43
3. unknown - lua/includes/modules/matproxy.lua:56
This happen when people respawn... but not the first time you join the server... only when you die and after respawn...
Getting the exact same error myself...
Also, fixed the code for you:
[CODE][ERROR] gamemodes/base/entities/entities/gmod_hands.lua:43: attempt to call method 'GetPlayerColor' (a nil value) 1. GetPlayerColor - gamemodes/base/entities/entities/gmod_hands.lua:43
2. bind - lua/matproxy/player_color.lua:43
3. unknown - lua/includes/modules/matproxy.lua:56[/CODE]
I'm getting this error on my server, but not with gmod_hands.
[ERROR] lua/matproxy/player_color.lua:43: bad argument #2 to 'SetVector' (Vector expected, got no value)
1. SetVector - [C]:-1
2. bind - lua/matproxy/player_color.lua:43
3. unknown - lua/includes/modules/matproxy.lua:56
Putting sv_kickerrornum 0 into your server console will cause it to stop kicking for lua errors, and the models don't look any different (that i've seen) if you do get the error.
The gmod_hands bug has been fixed:
[url]https://github.com/garrynewman/garrysmod/issues/298[/url]
[QUOTE=Bo98;40511613]The gmod_hands bug has been fixed:
[url]https://github.com/garrynewman/garrysmod/issues/298[/url][/QUOTE]
If you want, open the file "garrysmod/gamemodes/base/entities/entities/gmod_hands.lua" and override it with: [url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/base/entities/entities/gmod_hands.lua[/url]
[QUOTE=Ruzza;40511629]If you want, open the file "garrysmod/gamemodes/base/entities/entities/gmod_hands.lua" and override it with: [url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/base/entities/entities/gmod_hands.lua[/url][/QUOTE]
The error was still happening to me for a frame or two after spawning, so my shitty fix was just returning Vector(1,1,1), if the conditions weren't met for GetPlayerColor on the gmod_hands entity.
[QUOTE=Ruzza;40511629]If you want, open the file "garrysmod/gamemodes/base/entities/entities/gmod_hands.lua" and override it with: [url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/base/entities/entities/gmod_hands.lua[/url][/QUOTE]
I did that last night and it worked but now it is doing it again today.
[QUOTE=The-Spy;40517066]I did that last night and it worked but now it is doing it again today.[/QUOTE]
Looks like Garry didn't fix it properly then. Report it [URL="https://github.com/garrynewman/garrysmod/issues/new"]here[/URL].
Sorry, you need to Log In to post a reply to this thread.