Ulysses Stuff > Ulysses Release Archives
URestrict [Depreciated-author no longer supports]
JackBauer:
--- Quote from: jay209015 on August 19, 2009, 10:38:13 AM ---Run in the server console:
--- Code: ---lua_run PrintTable(URestrict)
--- End code ---
--- End quote ---
hmmm nothing. I have see ERRORS:
ERROR: Hook 'URestrict_Loadout_Hock' Failed: Ulib/modules/server/URestrict.lua:151: attempt to index field '?' (a nail value)
ERROR: Hook 'URestrict.PickupHock' Failed: Ulib/modules/server/URestrict.lua:151: attempt to index field '?' (a nail value)
ERROR: Hook 'URestrict_CanTool_Hock' Failed: Ulib/modules/server/URestrict.lua:151: attempt to index field '?' (a nail value)
SmokingBarrel:
Also having a problem with URestrict, I've installed it properly in the addons folder it has created the URestrict folder in my data folder however It refuses to use the loadouts in the loadouts.txt file.
Here is my loadouts.txt file in my data\URestrict folder
--- Code: ---"rebel"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
"weapon_para"
"weapon_deagle"
"weapon_mp5"
"weapon_crowbar"
"weapon_pumpshotgun"
}
"groups"
{
"rebel"
}
}
"excluded"
{
}
"police"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
"weapon_m4"
"weapon_stunstick"
"weapon_deagle"
}
"groups"
{
"police"
}
}
"regular"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
"weapon_peapis"
"weapon_peashotty"
}
"groups"
{
"regular"
}
}
"criminal"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
"weapon_mac10"
"weapon_glock"
}
"groups"
{
"criminal"
}
}
"player"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
"weapon_peapis"
"weapon_peashot"
}
"groups"
{
"user"
}
}
"default"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
}
"groups"
{
"undead"
}
}
"admin"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
"weapon_crowbar"
"weapon_AWP"
"rt_combinemortar"
"weapon_godsmiter"
}
"groups"
{
"goldadmin"
"vetadmin"
"superadmin"
"supadmin"
"admin"
}
}
"soldier"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
"weapon_para"
"weapon_deagle"
"weapon_mp5"
"weapon_stunstick"
"weapon_pumpshotgun"
}
"groups"
{
"soldier"
}
}
"terrorist"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
"weapon_ak47"
"weapon_fiveseven"
"weapon_jihadbomb"
}
"groups"
{
"terrorist"
}
}
"cadet"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
"weapon_mp5"
"weapon_deagle"
}
"groups"
{
"cadet"
}
}
--- End code ---
When I attempt to apply the loadouts to each group I get the following console errors.
--- Code: ---
] urestrict apply regular regular
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
--- End code ---
Appreciate any feedback.
-Smoky
bennie900:
Cant comment on this error, how ever try updating your ulib? May work.
SmokingBarrel:
--- Quote from: bennie900 on August 19, 2009, 11:35:56 AM ---Cant comment on this error, how ever try updating your ulib? May work.
--- End quote ---
Updated Ulib and ULX, The errors went away but nothing happens when I run the commands now. URestrict Loadouts still aren't working, the default gamemode is still being used.
jay209015:
*Fixed ur.getLoadout() falsely report "excluded"
*Began work on the gui
--- Quote ---Updated Ulib and ULX, The errors went away but nothing happens when I run the commands now. URestrict Loadouts still aren't working, the default gamemode is still being used.
--- End quote ---
-Update URestrict and let me know if that solves your problem, I tested it with your configs and everything works.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version