Alright, I thought I'd list mods that are ULib-friendly here for reference.
Rating scale:
Gold - This mod is 100% ULib compatible and will automatically use ULib's admin system with no modification or one configuration change.
Bronze - This mod will work with ULib's admin system with a little code modification.
Incompatible - This mod requires heavy editing to be compatible.
VMFLoaderAuthor: Jinto
Link:
http://forums.facepunchstudios.com/showthread.php?t=72955Rating:
Gold (Requires one config change)
How to get it to work with ULib's admin system: Go into lua/vmfloader/config.lua and find this line (around line 60):
And replace it with this:
Note: You don't even need to bother with this if you're using VMFCopyGun as well.
VMFCopyGunAuthor: aVoN
Link:
http://forums.facepunchstudios.com/showthread.php?t=186964Rating:
Gold (Requires one config change)
How to get it to work with ULib's admin system: Go into lua/VMFCopyGun/configs/groups.ini and add this at the bottom:
[group]
name=Admins
access=abcdefghijklmnopqrstuvwxyz
maxsaveammount=500
accessfunction=hasAccess(userid,ACCESS_ENT)
Or, if you'd like to use a different access besides ACCESS_ENT, go ahead. (You can use something like "c" instead of defines if you want too)
Notes:VMFCopyGun uses a chat command "!menu". Unfortunately, ULX also hooks this, so you'll get both menus if you use it. To fix this, open lua/VMFCopyGun/vmfcg_menu.lua and change this line around line 926:
VMFCG.Commands.Add("vmfcg_menu_all",function(i) VMFCG.menu.Send(i,"all") end,"!vmfcg_menu","!menu");
to:
VMFCG.Commands.Add("vmfcg_menu_all",function(i) VMFCG.menu.Send(i,"all") end,"!vmfcg_menu","!vmenu");
Or you can change it to whatever else you'd like.
You may want to add the materials needed by XMenu to your forced downloads... to do this, make a file in lua/init named vmfcg_forcedl.lua and fill it with this:
_OpenScript( "ULib/init.lua" )
ULib.forceDownload( "materials/toolgun_impacteffect.vtf" )
ULib.forceDownload( "materials/toolgun_impacteffect.vmt" )
ULib.forceDownload( "materials/xm_mat/xMenu/xMenu.vtf" )
ULib.forceDownload( "materials/xm_mat/xMenu/xMenu.vmt" )
ULib.forceDownload( "materials/xm_mat/xMenu/xPanelM.vtf" )
ULib.forceDownload( "materials/xm_mat/xMenu/xPanelM.vmt" )
ULib.forceDownload( "materials/xm_mat/xMenu/xPanelS.vtf" )
ULib.forceDownload( "materials/xm_mat/xMenu/xPanelS.vmt" )
ULib.forceDownload( "materials/RD/barrierglow.vtf" )
ULib.forceDownload( "materials/RD/barrierglow.vmt" )
Prop ProtectorAuthor: aVoN
Link:
http://forums.facepunchstudios.com/showthread.php?t=110889Rating:
BronzeHow to get it to work with ULib's admin system:Go into your lua/admins.txt, you'll see a code block with this...
--Admin check function - don't edit this!!!
function isAdmin(userid)
-- Give listenserveradmins autoadmin
if (_IsDedicatedServer() == false and userid == 1) then
return true
end
for i,v in ipairs(ADMIN_LIST) do
if (userid) and (userid > 0) then
if (string.lower(v) == string.lower(_PlayerInfo(userid,"networkid"))) then
return true;
end
end
end
return false;
end
Replace that with this...
--Admin check function - don't edit this!!!
_OpenScript( "ULib/init.lua" )
function isAdmin(userid)
return ULib.mainUcl:query(userid, ACCESS_ENT)
end
Change ACCESS_ENT to whatever your heart desires. (You can use something like "c" instead of defines if you want too)
ECS - Entity Command SuiteAuthor: Exitus
Link:
http://forums.facepunchstudios.com/showthread.php?t=121813Rating:
BronzeHow to get it to work with ULib's admin system: The setup for this mod is very nifty, and would make it seem like it should work just fine with ULib, but unfortunately, it attempts to import admins before they're available.
Set the settings you want in the installer, they will still be valid with the fix below.To rectify this issue, open lua/init/e_commands.lua and add this to the top of the file:
_OpenScript( "ULib/init.lua" )
And add this to the bottom of the file:
local function refresh( userid, access )
eAdminImportULX();
end
ULib.mainUcl:addAccessCallback( refresh )
You may want to add the materials needed by ECS to your forced downloads... to do this, make a file in lua/init named ecs_forcedl.lua and fill it with this:
_OpenScript( "ULib/init.lua" )
ULib.forceDownload( "materials/e_commands/showx.vtf" )
ULib.forceDownload( "materials/e_commands/showx.vmt" )
ULib.forceDownload( "materials/e_commands/showy.vtf" )
ULib.forceDownload( "materials/e_commands/showy.vmt" )
ULib.forceDownload( "materials/e_commands/showz.vtf" )
ULib.forceDownload( "materials/e_commands/showz.vmt" )
ULib.forceDownload( "materials/e_commands/selectbox.vmt" )
ULib.forceDownload( "materials/e_commands/stackTut1.vtf" )
ULib.forceDownload( "materials/e_commands/stackTut1.vmt" )
ULib.forceDownload( "materials/e_commands/stackTut2.vtf" )
ULib.forceDownload( "materials/e_commands/stackTut2.vmt" )
ULib.forceDownload( "materials/e_commands/stackTut3.vtf" )
ULib.forceDownload( "materials/e_commands/stackTut3.vmt" )
ULib.forceDownload( "materials/e_commands/protractor.vmt" )
ULib.forceDownload( "materials/e_commands/protractor.vtf" )
ULib.forceDownload( "materials/e_commands/swep_entmover.vmt" )
ULib.forceDownload( "materials/e_commands/swep_entmover.vtf" )
ULib.forceDownload( "materials/e_commands/swep_selectgun.vmt" )
ULib.forceDownload( "materials/e_commands/swep_selectgun.vtf" )