Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: DiscoBiscuit on November 18, 2009, 07:46:31 PM

Title: ULX SVN Can't use ulx ragdoll!
Post by: DiscoBiscuit on November 18, 2009, 07:46:31 PM
This started happening out of nowhere. I haven't changed the files recently or anything. Whenever anyone tries to use "ulx ragdoll" or !ragdoll, I get
Code: [Select]
Lua Error: ulx\modules/sh/fun.lua:493: attempt to call field 'getSpawnInfo' (a nil value)in the console and it doesn't work. It doesn't say anything about not having access or anything it just doesn't work. Is there a way I can fix this? thanks
Title: Re: ULX SVN Can't use ulx ragdoll!
Post by: Megiddo on November 18, 2009, 08:40:55 PM
Seems work okay for me. If this is happening all the time, I'd say one your files is likely corrupt.
Title: Re: ULX SVN Can't use ulx ragdoll!
Post by: JamminR on November 18, 2009, 08:52:42 PM
getSpawnInfo is actually a ULib command that's used quite frequently in various punishments.
Can you freeze people? Spectate? Jail?
All 3 of those use a setnodie command to prevent suicide, which in itself uses the getSpawnInfo command.

See if you get a similar error with those functions (freeze, spectate, jail)
If so, make sure you're running latest ULib SVN also.
If not, at least we know to look at ragdoll more.

Odd though that it would just start.
No other addons updated? We've seen various issues with ragdoll due to DarkRP, superman mod, several others that just don't play nicely with other scripts that use ragdoll commands.
Title: Re: ULX SVN Can't use ulx ragdoll!
Post by: DiscoBiscuit on November 19, 2009, 04:18:08 AM
I don't think there's a problem with !freeze but with !jail I get
Code: [Select]
Lua Error: ulx\modules/sh/fun.lua:380: attempt to call method 'InVehicle' (a nil value)
Title: Re: ULX SVN Can't use ulx ragdoll!
Post by: Megiddo on November 19, 2009, 08:24:44 AM
I don't think there's a problem with !freeze but with !jail I get
Code: [Select]
Lua Error: ulx\modules/sh/fun.lua:380: attempt to call method 'InVehicle' (a nil value)

Do you have any errors in your console on server startup?
Title: Re: ULX SVN Can't use ulx ragdoll!
Post by: DiscoBiscuit on November 19, 2009, 01:48:54 PM
On startup ULX says:
Code: [Select]
ConVarRef ups_cleartime doesn't point to an existing ConVar
SetConVar: No such cvar ( ups_cleartime set to -1), skipping
ConVarRef ups_deletetime doesn't point to an existing ConVar
SetConVar: No such cvar ( ups_deletetime set to 30), skipping
ConVarRef ulx_welcomemessage doesn't point to an existing ConVar
SetConVar: No such cvar ( ulx_welcomemessage set to Welcome to %host%. Be sure not to get banned.), skipping
ConVarRef ulx_chattime doesn't point to an existing ConVar
SetConVar: No such cvar ( ulx_chattime set to 0), skipping
ConVarRef ulx_votemapSuccessratio doesn't point to an existing ConVar
SetConVar: No such cvar ( ulx_votemapSuccessratio set to 0.4), skipping
No pure server whitelist. sv_pure = 0
Lua initialized (Lua 5.1)
======== Installing Table (De)Serialiser Module | ver: 1.4 ========
You are running ULib version 2.40.
[ULIB] Loading SHARED module: ulx_init.lua
[ULX] Loading CLIENT module: adminmenu.lua
[ULX] Loading CLIENT module: banmenu.lua
[ULX] Loading CLIENT module: clientmenu.lua
[ULX] Loading CLIENT module: mainmenu.lua
[ULX] Loading CLIENT module: mapsmenu.lua
[ULX] Loading CLIENT module: motdmenu.lua
[ULX] Loading SHARED module: chat.lua
[ULX] Loading SHARED module: fun.lua
[ULX] Loading SHARED module: menus.lua
[ULX] Loading SHARED module: rcon.lua
[ULX] Loading SHARED module: teleport.lua
[ULX] Loading SHARED module: user.lua
[ULX] Loading SHARED module: userhelp.lua
[ULX] Loading SHARED module: util.lua
[ULX] Loading SHARED module: vote.lua
[ULIB] Loading SHARED module: ups_init.lua

I tried re-downloading the SVN of ULX and ULib and reinstalling it on the server but it didn't help.

I don't know what's going on, none of the files seem corrupt and I didn't change anything when this started.
jail also only gets that command when attempting to jail from RCON.
It also says
Code: [Select]
ULib/shared/sh_ucl.lua:46: [ULIB] Unauthed player
when the command autocomplete for ULX comes up.
Title: Re: ULX SVN Can't use ulx ragdoll!
Post by: Megiddo on November 19, 2009, 02:25:38 PM
It's interesting to see the client log, but the server would be more helpful.
Title: Re: ULX SVN Can't use ulx ragdoll!
Post by: DiscoBiscuit on November 19, 2009, 02:30:20 PM
Er, well that was client
Title: Re: ULX SVN Can't use ulx ragdoll!
Post by: JamminR on November 19, 2009, 03:30:52 PM
InVehicle is of particular worry... it's a Gmod function. are you absolutely 100% _nothing_ changed with your server from your action?
New addons? Gamemodes? Updates of any type?

And please, yes, get us a copy of server console startup.

Title: Re: ULX SVN Can't use ulx ragdoll!
Post by: DiscoBiscuit on November 22, 2009, 08:27:10 PM
Sorry about the wait, here's a copy of my console.log on startup

Code: [Select]
Mounting hl2.. OK
Mounting ep2.. OK
Mounting tf.. OK
Mounting cstrike.. OK
Mounting dod.. OK
Mounting episodic.. OK
Mounting hl2mp.. Failed
Mounting portal.. OK
Mounting lostcoast.. Failed
Mounting hl1.. Failed
Mounting hl1mp.. Failed
Mounting zeno_clash.. Failed
Error, bad server command sv_allow_voice_from_file 0
Parent cvar in server.dll not allowed (sk_apc_missile_damage)
Garry's Mod client.dll Build #071 [Sep 10 2009 14:30:01]
maxplayers set to 10
Unknown command "cl_interp"
maxplayers set to 10
Unknown command "sv_AdvDupeEnablePublicFolder"
Network: IP 69.162.71.189, mode MP, dedicated Yes, ports 27015 SV / 27005 CL
Unknown command "sv_rollangle"
Unknown command "sv_unlag_fixstuck"
Lua initialized (Lua 5.1)
======== Installing Table (De)Serialiser Module | ver: 1.4 ========
Couldn't include file 'ContraptionSaver/Config.lua' (File not found)
Couldn't include file 'ContraptionSaver/Hooks.lua' (File not found)
Couldn't include file 'ContraptionSaver/Serialise.lua' (File not found)
///////////////////////////////
//      Ulysses Library      //
///////////////////////////////
// Loading...                //
//  shared/defines.lua       //
//  shared/misc.lua          //
//  shared/util.lua          //
//  server/upgrade.lua       //
//  server/hook.lua          //
//  server/gamemode_hooks.lua//
//  shared/table.lua         //
//  shared/player.lua        //
//  server/player.lua        //
ULib/server/player.lua:324: attempt to index field 'bans' (a nil value)
//  shared/messages.lua      //
//  shared/concommand.lua    //
//  shared/commands.lua      //
//  server/concommand.lua    //
//  server/util.lua          //
//  shared/sh_ucl.lua        //
//  server/ucl.lua           //
//  server/phys.lua          //
//  server/player_ext.lua    //
//  server/entity_ext.lua    //
// Load Complete!            //
///////////////////////////////
[ULIB] Loading SHARED module: ulx_init.lua
///////////////////////////////
//       ULX Admin Mod       //
///////////////////////////////
// Loading...                //
//  sh_defines.lua           //
//  lib.lua                  //
//  base.lua                 //
//  sh_base.lua              //
//  log.lua                  //
//  MODULE: slots.lua        //
//  MODULE: votemap.lua      //
//  MODULE: chat.lua         //
//  MODULE: fun.lua          //
//  MODULE: menus.lua        //
//  MODULE: rcon.lua         //
//  MODULE: teleport.lua     //
//  MODULE: user.lua         //
//  MODULE: userhelp.lua     //
//  MODULE: util.lua         //
//  MODULE: vote.lua         //
//  end.lua                  //
// Load Complete!            //
///////////////////////////////
[ULIB] Loading SHARED module: UnoLimited.lua
[ULIB]*** UnoLimited v2.1 Ready! *******
[ULIB] Loading SHARED module: ups_init.lua
/=================================\
||    Ulysses Prop Share(UPS)    ||
||-------------------------------||
|| Loading...                    ||
||  sh_defines.lua               ||
||  sh_lib.lua                   ||
||  lib.lua                      ||
||  sh_friends.lua               ||
||  base.lua                     ||
||  MODULE: gm_fix.lua           ||
||  MODULE: map_protect.lua      ||
||  MODULE: player_disable.lua   ||
||  MODULE: player_leave.lua     ||
||  MODULE: restrict.lua         ||
||  MODULE: cppi.lua             ||
|| Load Complete!                ||
\=================================/
[ULIB] Loading SHARED module: URestrict.lua
///////////////////////////////
//         URestrict         //
///////////////////////////////
//Loading...                 //
//  MODULE: init.lua         //
//  MODULE: canTool.lua      //
//  MODULE: give.lua         //
//  MODULE: giveSwep.lua     //
//  MODULE: pickup.lua       //
//  MODULE: props.lua        //
//  MODULE: spawn.lua        //
//Done!                      //
///////////////////////////////
[ULIB] Loading CLIENT module: URestrict_cl.lua
[ULIB] Loading CLIENT module: ur_gui.lua
Ignore the following error message about cog_world.vtf:
[resource.AddFile] File materials\expression 2\cog_world.vtf didn't exist!
================================
===  Wire  1621 (exported)   Installed  ===
================================
======== Beam NetVars Lib v0.71 Installed ========
ERROR! Module 'zlib_b64' not found!
==== Advanced Duplicator v.1.72 shared module installed! ====
Added EntCheckHook: AdvDupe_NoItems
Added EntCheckHook: AdvDupe_DisallowedClasses
Added EntCheckHook: AdvDupe_ModelCheck
==== Advanced Duplicator v.1.85 server module installed! ====
GCX Client Systems Loaded
[resource.AddFile] File materials\Nametag\missing didn't exist!
Registering gamemode 'sandbox' derived from 'base'
ScriptEnforce is disabled

Stacker Version 2.5 loaded.

Loading Wire Tools
entities/gmod_perimeterturret/init.lua:140: 'then' expected near 'thenself'
Folder = entities/gmod_perimeterturret
Couldn't register Scripted Entity gmod_perimeterturret - the Type field is empty!
entities/gmod_sensor/init.lua:5: attempt to call global 'Material' (a nil value)
-- Error SENDING CLIENTSIDE file -------------------------
- File Not Found: cl_init.lua
----------------------------------------------------------
Ignore the following bunch of error messages:
[resource.AddFile] File models\Holograms\torus3.ani didn't exist!
[resource.AddFile] File models\Holograms\torus3.jpg didn't exist!
[resource.AddFile] File models\Holograms\hqsphere.ani didn't exist!
[resource.AddFile] File models\Holograms\hqsphere.jpg didn't exist!
[resource.AddFile] File models\Holograms\hqtorus2.ani didn't exist!
[resource.AddFile] File models\Holograms\hqtorus2.jpg didn't exist!
[resource.AddFile] File models\Holograms\torus.ani didn't exist!
[resource.AddFile] File models\Holograms\torus.jpg didn't exist!
[resource.AddFile] File models\Holograms\cylinder.ani didn't exist!
[resource.AddFile] File models\Holograms\cylinder.jpg didn't exist!
[resource.AddFile] File models\Holograms\cube.ani didn't exist!
[resource.AddFile] File models\Holograms\cube.jpg didn't exist!
[resource.AddFile] File models\Holograms\icosphere2.ani didn't exist!
[resource.AddFile] File models\Holograms\icosphere2.jpg didn't exist!
[resource.AddFile] File models\Holograms\hqtorus.ani didn't exist!
[resource.AddFile] File models\Holograms\hqtorus.jpg didn't exist!
[resource.AddFile] File models\Holograms\prism.ani didn't exist!
[resource.AddFile] File models\Holograms\prism.jpg didn't exist!
[resource.AddFile] File models\Holograms\dome.ani didn't exist!
[resource.AddFile] File models\Holograms\dome.jpg didn't exist!
[resource.AddFile] File models\Holograms\tetra.ani didn't exist!
[resource.AddFile] File models\Holograms\tetra.jpg didn't exist!
[resource.AddFile] File models\Holograms\dome2.ani didn't exist!
[resource.AddFile] File models\Holograms\dome2.jpg didn't exist!
[resource.AddFile] File models\Holograms\sphere3.ani didn't exist!
[resource.AddFile] File models\Holograms\sphere3.jpg didn't exist!
[resource.AddFile] File models\Holograms\sphere2.ani didn't exist!
[resource.AddFile] File models\Holograms\sphere2.jpg didn't exist!
[resource.AddFile] File models\Holograms\pyramid.ani didn't exist!
[resource.AddFile] File models\Holograms\pyramid.jpg didn't exist!
[resource.AddFile] File models\Holograms\cone.ani didn't exist!
[resource.AddFile] File models\Holograms\cone.jpg didn't exist!
[resource.AddFile] File models\Holograms\hqicosphere.ani didn't exist!
[resource.AddFile] File models\Holograms\hqicosphere.jpg didn't exist!
[resource.AddFile] File models\Holograms\plane.ani didn't exist!
[resource.AddFile] File models\Holograms\plane.jpg didn't exist!
[resource.AddFile] File models\Holograms\icosphere3.ani didn't exist!
[resource.AddFile] File models\Holograms\icosphere3.jpg didn't exist!
[resource.AddFile] File models\Holograms\hqcylinder.ani didn't exist!
[resource.AddFile] File models\Holograms\hqcylinder.jpg didn't exist!
[resource.AddFile] File models\Holograms\sphere.ani didn't exist!
[resource.AddFile] File models\Holograms\sphere.jpg didn't exist!
[resource.AddFile] File models\Holograms\torus2.ani didn't exist!
[resource.AddFile] File models\Holograms\torus2.jpg didn't exist!
[resource.AddFile] File models\Holograms\icosphere.ani didn't exist!
[resource.AddFile] File models\Holograms\icosphere.jpg didn't exist!
[resource.AddFile] File models\Holograms\hqicosphere2.ani didn't exist!
[resource.AddFile] File models\Holograms\hqicosphere2.jpg didn't exist!
[resource.AddFile] File models\Holograms\hqsphere2.ani didn't exist!
[resource.AddFile] File models\Holograms\hqsphere2.jpg didn't exist!
[resource.AddFile] File models\Holograms\hqcylinder2.ani didn't exist!
[resource.AddFile] File models\Holograms\hqcylinder2.jpg didn't exist!
[resource.AddFile] File models\Holograms\hqcone.ani didn't exist!
[resource.AddFile] File models\Holograms\hqcone.jpg didn't exist!
Ignore the preceding bunch of error messages.
ERROR: Hook 'ContraptionSaver.Initialize' Failed: autorun/ContraptionSaver.lua:2203: attempt to index field 'Hooks' (a nil value)
Removing Hook 'ContraptionSaver.Initialize'
Writing cfg/banned_user.cfg.
Executing dedicated server config file
Adding master server 72.165.61.136:27011
Adding master server 69.28.140.246:27011
Connection to Steam servers successful.
   VAC secure mode is activated.

I noticed that when a player connects in the rcon console it has a lot of errors with ulx.
Code: [Select]
L 11/22/2009 - 22:12:39: "[GMF|GDI]?????????<4><STEAM_ID_PENDING><>" connected, address "76.200.100.142:27005"
Client "[GMF|GDI]?????????" connected (76.200.100.142:27005).
game.ConsoleCommand blocked!
Invalid command entered. If you need help, please type "ulx help" in your console.
Invalid command entered. If you need help, please type "ulx help" in your console.
Invalid command entered. If you need help, please type "ulx help" in your console.
Invalid command entered. If you need help, please type "ulx help" in your console.
Invalid command entered. If you need help, please type "ulx help" in your console.
Invalid command entered. If you need help, please type "ulx help" in your console.
Invalid command entered. If you need help, please type "ulx help" in your console.
Invalid command entered. If you need help, please type "ulx help" in your console.
Invalid command entered. If you need help, please type "ulx help" in your console.
Invalid command entered. If you need help, please type "ulx help" in your console.
Invalid command entered. If you need help, please type "ulx help" in your console.
Invalid command entered. If you need help, please type "ulx help" in your console.
Invalid command entered. If you need help, please type "ulx help" in your console.
Invalid command entered. If you need help, please type "ulx help" in your console.
Invalid command entered. If you need help, please type "ulx help" in your console.
Invalid command entered. If you need help, please type "ulx help" in your console.
Invalid command entered. If you need help, please type "ulx help" in your console.
Invalid command entered. If you need help, please type "ulx help" in your console.
Invalid command entered. If you need help, please type "ulx help" in your console.
L 11/22/2009 - 22:12:40: "[GMF|GDI]?????????<4><STEAM_0:1:12071697><>" STEAM USERID validated

I hope this helps fix this issue.
Title: Re: ULX SVN Can't use ulx ragdoll!
Post by: JamminR on November 22, 2009, 09:24:37 PM
Very helpful, at least in the right direction if not exactly.
server/Player.lua gets an error at startup with refreshing ULib's bans file.
Since Source doesn't store temporary bans across more than one server restart, the admin who banned someone, or a reason, we started storing bans within a bans.txt file in gmod/data/ULib in addition to Source's normal /cfg/banned_users.cfg file.
For some reason, the bans refresh is being seen as null.
That may explain why some others are having issue with banned players (not) getting banned.
It may also be affecting loading of the rest of the file, which happens to have the getSpawnInfo command right after the ban refresh.

Does your server have a gmod/cfg/banned_users.cfg file? Does your server have a gmod/data/ULib/bans.txt file?
Does the user srcds runs under have read/write permissions to both of those folder locations and file?

As for the player joining 'spam' error... it very well may be due to the server Player.lua not loading fully.
If we get that figured out, perhaps the rest will fall into place.
Title: Re: ULX SVN Can't use ulx ragdoll!
Post by: DiscoBiscuit on November 22, 2009, 09:57:15 PM
There is a /cfg/banned_user.cfg file and a /data/ulib/bans.txt and neither seem to look corrupt. The read and write permissions are available for both the files and the directories. It just seemed weird because it was working last week, but then it just quit.
Title: Re: ULX SVN Can't use ulx ragdoll!
Post by: JamminR on November 23, 2009, 04:31:26 PM
Mind attaching your bans.txt files?
I have a theory about the bans.txt file but wish to visually see yours.
(Oh, what size is the bans.txt? Larger than a few Kb?)
In the Mbytes range? Large = possible corruption.
Title: Re: ULX SVN Can't use ulx ragdoll!
Post by: DiscoBiscuit on November 23, 2009, 08:01:46 PM
Here's my bans.txt.

Title: Re: ULX SVN Can't use ulx ragdoll!
Post by: JamminR on November 23, 2009, 09:15:00 PM
Well, blows that theory out of the water.
I do notice a different though.
Looking at my bans file, and your bans file, I see your bans.txt has none of the permanent bans imported from banned_user.cfg
If it did, they'd all appear in bans.txt as
Code: [Select]
"SteamID"
 {
 "unban" "0"
 }

Though you have a gmod/cfg/banned_user.cfg ... is it large? If you open it, does it have any noticeable corruption?

It's late now and I'm not able to do any testing, but I plan on trying to place your bans.txt in place of mine. Will tinker if I have time tomorrow about 4 hours before time of this post.
Title: Re: ULX SVN Can't use ulx ragdoll!
Post by: DiscoBiscuit on November 23, 2009, 09:47:42 PM
Wow, this is embarrassing.Apparently the reason it wasn't working was because I was missing and end bracket at the end of bans.txt. It seems to be all working now :D?
Title: Re: ULX SVN Can't use ulx ragdoll!
Post by: Megiddo on November 24, 2009, 12:27:02 PM
Wow, this is embarrassing.Apparently the reason it wasn't working was because I was missing and end bracket at the end of bans.txt. It seems to be all working now :D?

Good! Sorry it took so long for us to figure out what was wrong for you. :)
Title: Re: ULX SVN Can't use ulx ragdoll!
Post by: JamminR on November 24, 2009, 03:07:40 PM
DiscoBiscuit... were you editing your bans.txt file manually?