• Print

Author Topic: Ulib Broken?  (Read 4189 times)

0 Members and 1 Guest are viewing this topic.

Offline Terminator

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Ulib Broken?
« on: March 25, 2010, 02:08:51 pm »
Ever since the 20th of March, Ulib has seemed to have gone on the fritz on my server.  Whenever I start it up it seems to not initialize properly and thus causes the UPS and ULX to cease functioning as well. I can still do some limited commands with ULX till for some reason, but not through any chat commands.

Here is the start-up log:
100.4 fps  0/25 on map freespace06_v2-1
INIParser:new - File stargate/user_config.ini does not exist!
Loading: stargate/server/entity.lua
Loading: stargate/server/ini_parser.lua
Loading: stargate/server/protection.lua
Loading: stargate/server/spawner.lua
Loading: stargate/server/teleport.lua
Loading: stargate/server/tool.lua
Loading: stargate/server/wire_rd.lua
=======================================================
///////////////////////////////
//      Ulysses Library      //
///////////////////////////////
// Loading...                //
//  shared/defines.lua       //
//  shared/misc.lua          //
//  shared/util.lua          //
//  server/upgrade.lua       //
//  shared/hook.lua          //
//  server/gamemode_hooks.lua//
//  shared/table.lua         //
//  shared/player.lua        //
//  server/player.lua        //
//  shared/messages.lua      //
//  shared/commands.lua      //
//  server/concommand.lua    //
//  server/util.lua          //
//  shared/sh_ucl.lua        //
//  server/ucl.lua           //
ULib/server/ucl.lua:148: attempt to index local 'userInfo' (a string value)
//  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              //
ULib/shared/commands.lua:1084: attempt to call field 'registerAccess' (a nil val
ue)
//  log.lua                  //
ulx\base.lua:25: attempt to call field 'registerAccess' (a nil value)
//  MODULE: slots.lua        //
ulx\base.lua:25: attempt to call field 'registerAccess' (a nil value)
//  MODULE: votemap.lua      //
ulx\base.lua:25: attempt to call field 'registerAccess' (a nil value)
//  MODULE: chat.lua         //
ULib/shared/commands.lua:1084: attempt to call field 'registerAccess' (a nil val
ue)
//  MODULE: fun.lua          //
ULib/shared/commands.lua:1084: attempt to call field 'registerAccess' (a nil val
ue)
//  MODULE: menus.lua        //
ULib/shared/commands.lua:1084: attempt to call field 'registerAccess' (a nil val
ue)
//  MODULE: rcon.lua         //
ULib/shared/commands.lua:1084: attempt to call field 'registerAccess' (a nil val
ue)
//  MODULE: teleport.lua     //
ULib/shared/commands.lua:1084: attempt to call field 'registerAccess' (a nil val
ue)
//  MODULE: user.lua         //
ULib/shared/commands.lua:1084: attempt to call field 'registerAccess' (a nil val
ue)
//  MODULE: userhelp.lua     //
//  MODULE: util.lua         //
ULib/shared/commands.lua:1084: attempt to call field 'registerAccess' (a nil val
ue)
//  MODULE: vote.lua         //
ulx\base.lua:25: attempt to call field 'registerAccess' (a nil value)
//  end.lua                  //
// Load Complete!            //
///////////////////////////////
[ULIB] Loading SHARED module: ups_init.lua
/=================================\
||    Ulysses Prop Share(UPS)    ||
||-------------------------------||
|| Loading...                    ||
||  sh_defines.lua               ||
||  sh_lib.lua                   ||
ups\sh_lib.lua:12: attempt to call field 'registerAccess' (a nil value)
||  lib.lua                      ||
||  sh_friends.lua               ||
||  base.lua                     ||
ups\base.lua:9: attempt to call field 'registerAccess' (a nil value)
||  MODULE: gm_fix.lua           ||
||  MODULE: map_protect.lua      ||
ups\modules/map_protect.lua:4: attempt to call field 'registerAccess' (a nil val
ue)
||  MODULE: player_disable.lua   ||
ups\modules/player_disable.lua:11: attempt to call field 'registerAccess' (a nil
 value)
||  MODULE: player_leave.lua     ||
ups\modules/player_leave.lua:6: attempt to call field 'registerAccess' (a nil va
lue)
||  MODULE: restrict.lua         ||
||  MODULE: cppi.lua             ||
|| Load Complete!                ||
\=================================/
================================
===  Wire  2091   Installed  ===
================================
======== Beam NetVars Lib v0.71 Installed ========
autorun/server/release_npcanimv11.lua:692: unexpected symbol near '='
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! ====
Registering gamemode 'sandbox' derived from 'base'
ScriptEnforce is disabled
-NPC Control-
Main Content Loaded
Episode 2 Content Loaded!
--------------------
-NPC Control-
Main Content Loaded
Episode 2 Content Loaded!
--------------------
-NPC Control-
Main Content Loaded
Episode 2 Content Loaded!
--------------------
Loading Wire Tools
entities\mk-82-fragile_sent_atomic_bomb/shared.lua:6: unfinished string near '"R
ayFanMan(RayFan9876)'
-- Error PARSING CLIENTSIDE file -------------------------
- File: entities\mk-82-fragile_sent_atomic_bomb/shared.lua
----------------------------------------------------------
entities\mk-82-fragile_sent_atomic_bomb\shared.lua:6: unfinished string near '"R
ayFanMan(RayFan9876)'
OnRemove        =       function: 019C0668
TriggerInput    =       function: 019C03B0
Folder  =       entities/mk-82-fragile_sent_atomic_bomb
SpawnFunction   =       function: 019C03C8
Think   =       function: 019C0638
Initialize      =       function: 019C0320
PhysicsCollide  =       function: 019C0620
OnTakeDamage    =       function: 019C0650
MakeNuke        =       function: 01E112C0
Use     =       function: 019C0680
Couldn't register Scripted Entity mk-82-fragile_sent_atomic_bomb - the Type fiel
d is empty!
ERROR: Hook 'ULXDoCfg' Failed: ulx\end.lua:65: attempt to call field 'votemapAdd
Map' (a nil value)
Removing Hook 'ULXDoCfg'
Executing dedicated server config file
Unknown command "ServerSettings"
Unknown command "{"
Unknown command "sbox_allownpcs"
Unknown command "sbox_playergod"
Unknown command "sbox_maxsents"
Unknown command "sbox_maxwire_turret"
Unknown command "}"
Timer Error: ULib/shared/player.lua:9: attempt to call field 'registerAccess' (a
 nil value)
Adding master server 72.165.61.151:27013
Adding master server 72.165.61.151:27011
Connection to Steam servers successful.
   VAC secure mode is activated.
ulx help
ULX Help:
If a command can take multiple targets, it will usually let you use the keywords
 '*' for target
all, '^' to target yourself, '@' for target your picker, and '%<group>' for targ
etting groups. IE,
ulx slap %user slaps all players who are in the default guest access group. Any
of these keywords
can be preceded by '!' to negate it. IE, ulx slap !^ slaps everyone but you.
You can also separate multiple target by commas. IE, ulx slap bob,jeff,henry.
All commands must be preceded by "ulx ", ie "ulx slap"

Command Help:


Category: Menus
        o ulx menu - (say: !menu)


Category: Fun
        o ulx slap <players> [<damage: 0<=x, default 0>] - (say: !slap)


Category: Teleport
        o ulx bring <player> - (say: !bring)


Category: User Management
        o ulx usermanagementhelp


Category: Rcon
        o ulx rcon {command} - (say: !rcon)


Category: Chat
        o ulx psay <player> {message} - (say: !p)


Category: Utility
        o ulx help - Shows this help.
        o ulx who


-End of help
ULX version: <SVN> revision 91

Client "((()-½G-ºSF-+Terminator[SMU]" connected (173.66.175.129:27005).
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
Invalid command entered. If you need help, please type "ulx help" in your consol
e.
game.ConsoleCommand blocked!
INIParser:parse - File stargate/gatespawner_maps/freespace06_v2-1.ini successful
ly parsed
Setting CBaseEntity to non-brush model models/zup/stargate/stargate_gring.mdl
Setting CBaseEntity to non-brush model models/zup/stargate/stargate_gring.mdl
Setting CBaseEntity to non-brush model models/zup/stargate/stargate_gring.mdl
Setting CBaseEntity to non-brush model models/zup/stargate/stargate_gring.mdl
Setting CBaseEntity to non-brush model models/zup/stargate/stargate_gring.mdl
Setting CBaseEntity to non-brush model models/zup/stargate/stargate_gring.mdl
Setting CBaseEntity to non-brush model models/zup/stargate/stargate_gring.mdl
Setting CBaseEntity to non-brush model models/zup/stargate/stargate_gring.mdl
Setting CBaseEntity to non-brush model models/zup/stargate/stargate_gring.mdl
Setting CBaseEntity to non-brush model models/zup/stargate/stargate_gring.mdl
Setting CBaseEntity to non-brush model models/zup/stargate/stargate_gring.mdl
Setting CBaseEntity to non-brush model models/zup/stargate/stargate_gring.mdl
Setting CBaseEntity to non-brush model models/zup/stargate/stargate_gring.mdl
Setting CBaseEntity to non-brush model models/zup/stargate/stargate_gring.mdl
Setting CBaseEntity to non-brush model models/zup/stargate/stargate_gring.mdl
Setting CBaseEntity to non-brush model models/zup/stargate/stargate_gring.mdl
ERROR: Hook 'sendMapAutoComplete' Failed: ULib/shared/sh_ucl.lua:46: [ULIB] Unau
thed player
Removing Hook 'sendMapAutoComplete'
ERROR: Hook 'ULib_saycmd' Failed: ULib/shared/sh_ucl.lua:46: [ULIB] Unauthed pla
yer
Removing Hook 'ULib_saycmd'
((()-½G-ºSF-+Terminator[SMU]: !menu
((()-½G-ºSF-+Terminator[SMU]: !slap term
ulx slap term
ulx slap term
Dropped ((()-½G-ºSF-+Terminator[SMU] from server (Disconnect by user.)


The slap command from console physically knocked me around in the server a little, but it produced no notifications or actual damage.

List of Addons on the server:
-PHX 3 (SVN)                                       -HL2 Weapon/Item Spawnlist
-Wire Mod (SVN)                                  -Moblie Spawn point V2
-Generic Defaults Combat (SVN)          -Sakarais' Jetpack and Weapon Seats
-Huey Addon (SVN)                              -NPC Control 2
-Bf2 Buggy Addon                                -Nuke Pack 4
-Full Stargate Addon                            -Parachute Addon
-Combine APC SNPC                            -Aurora Cannon Swep
-Climb-rope tool                                   -Special Effects Addon
-CSS Realistic Weapons 4.0                 -Enhanced AI
-Cheesylard's Machinma hands            -Player Factions Addon
-Flyable Combine Heli                           -Catmull-Rom Cenimatic Cameras
-Fixed Fall Damage Mod                        -ULib (SVN)
-Hatmaker (PAC) Addon (SVN)              -ULX (SVN)
-Gcombat 08                                         -UPS (SVN)
-VU Mod                                                -Handheld Healthkit Swep

I know its a ridiculous amount of addons but I'm simply trying to provide as much info as I can. Also, to my knowledge no addons or SVNs were updated on the 20th. I've also deleted and reinstalled the ULX, ULib, and UPS folders with no luck. Any help would be appreciated.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Ulib Broken?
« Reply #1 on: March 25, 2010, 04:04:47 pm »
I got a laugh when I read the source that you're having trouble with...
Code: Lua
  1.                         -- TODO, make sure userInfo is a table
  2.                         if type( userInfo.allow ) ~= "table" then
  3.                                 needsBackup = true
  4.                                 userInfo.allow = {} -- This is line 148
  5.                         end

Your problem is that userInfo isn't a table, and I haven't gotten around to checking that case yet (but there's a nice note reminding me to do it at some point in the future :P). If you're wondering what would happen if this were 'fixed', it would just wipe out the part of the file that doesn't conform to the format, backup the original file, and issue a warning about it.

The bottom line is that your users.txt file is formatted improperly. Paste it here if you'd like help with it. I'd like to see your users.txt even if it's something you can fix right off the bat, just so I have test data to test my code against in the future.
« Last Edit: March 25, 2010, 04:07:46 pm by Megiddo »
Experiencing God's grace one day at a time.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Ulib Broken?
« Reply #2 on: March 25, 2010, 04:32:08 pm »
Fixed! So now if you provide the following users.txt (which originally gave exactly the error listed above):

Code: [Select]
"bob"  "bad data"
"STEAM_0:1:3666858"
{
"deny"
{
}
"name" "[ULX]  Megiddo"
"allow"
{
}
"group" "superadmin"
}

It now gives the following on startup:
Quote
///////////////////////////////
//      Ulysses Library      //
///////////////////////////////
// Loading...                //
//  shared/defines.lua       //
//  shared/misc.lua          //
//  shared/util.lua          //
//  server/upgrade.lua       //
//  shared/hook.lua          //
//  server/gamemode_hooks.lua//
//  shared/table.lua         //
//  shared/player.lua        //
//  server/player.lua        //
//  shared/messages.lua      //
//  shared/commands.lua      //
//  server/concommand.lua    //
//  server/util.lua          //
//  shared/sh_ucl.lua        //
//  server/ucl.lua           //
Users file was not formatted correctly. Attempting to fix and backing up original
Original file was backed up to ULib//users_backup3.txt
//  server/phys.lua          //
//  server/player_ext.lua    //
//  server/entity_ext.lua    //
// Load Complete!            //
///////////////////////////////

And users.txt is converted to:

Code: [Select]
"STEAM_0:1:3666858"
{
"deny"
{
}
"group" "superadmin"
"name" "[ULX]  Megiddo"
"allow"
{
}
}
"bob"
{
"allow"
{
}
"deny"
{
}
}
Experiencing God's grace one day at a time.

Offline Terminator

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Ulib Broken?
« Reply #3 on: March 25, 2010, 07:04:40 pm »
Now I feel really stupid...
"STEAM_0:1:17463664"
{
   "group" "superadmin"
   "allow"
   {
   }
   "deny"
   {
   }
}
"STEAM_0:1:15422916"
{
   "group" "superadmin"
   "allow"
   {
   }
   "deny"
   {
   }
}
"STEAM_0:0:17230064"
{
   "group" "superadmin"
   "allow"
   {
   }
   "deny"
   {
   }
}
"STEAM_0:1:17463571"
{
   "group" "superadmin"
   "allow"
   {
   }
   "deny"
   {
   }
}
"STEAM_0:1:14779253"
{
   "group" "militarypolice"
   "allow"
   {
   }
   "deny"
   {
   }
}
"STEAM_0:0:7701596"
{
   "group" "militarypolice"
   "allow"
   {
   }
   "deny"
   {
   }
}
"STEAM_0:1:18154193"
{
   "group" "militarypolice"
   "allow"
   {
   }
   "deny"
   {
   }
}
"STEAM_0:0:18191337"
{
   "group" "militarypolice"
   "allow"
   {
   }
   "deny"
   {
   }
}

No wonder it wasn't working, lol, thanks a lot for the assistance. :D

  • Print