• Print

Author Topic: [WIP] ULib compatibility list!  (Read 6223 times)

0 Members and 1 Guest are viewing this topic.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
[WIP] ULib compatibility list!
« on: October 29, 2006, 05:32:19 pm »
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.



VMFLoader
Author: Jinto
Link: http://forums.facepunchstudios.com/showthread.php?t=72955
Rating: 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):
Code: Lua
  1. Admin.ULX = false;

And replace it with this:
Code: Lua
  1. Admin.ULX = true;

Note: You don't even need to bother with this if you're using VMFCopyGun as well.



VMFCopyGun
Author: aVoN
Link: http://forums.facepunchstudios.com/showthread.php?t=186964
Rating: 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:
Code: Lua
  1. [group]
  2. name=Admins
  3. access=abcdefghijklmnopqrstuvwxyz
  4. maxsaveammount=500
  5. 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:
Code: Lua
  1. VMFCG.Commands.Add("vmfcg_menu_all",function(i) VMFCG.menu.Send(i,"all") end,"!vmfcg_menu","!menu");
to:
Code: Lua
  1. 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:
Code: Lua
  1. _OpenScript( "ULib/init.lua" )
  2.  
  3. ULib.forceDownload( "materials/toolgun_impacteffect.vtf" )
  4. ULib.forceDownload( "materials/toolgun_impacteffect.vmt" )
  5. ULib.forceDownload( "materials/xm_mat/xMenu/xMenu.vtf" )
  6. ULib.forceDownload( "materials/xm_mat/xMenu/xMenu.vmt" )
  7. ULib.forceDownload( "materials/xm_mat/xMenu/xPanelM.vtf" )
  8. ULib.forceDownload( "materials/xm_mat/xMenu/xPanelM.vmt" )
  9. ULib.forceDownload( "materials/xm_mat/xMenu/xPanelS.vtf" )
  10. ULib.forceDownload( "materials/xm_mat/xMenu/xPanelS.vmt" )
  11. ULib.forceDownload( "materials/RD/barrierglow.vtf" )
  12. ULib.forceDownload( "materials/RD/barrierglow.vmt" )



Prop Protector
Author: aVoN
Link: http://forums.facepunchstudios.com/showthread.php?t=110889
Rating: Bronze

How to get it to work with ULib's admin system:
Go into your lua/admins.txt, you'll see a code block with this...
Code: Lua
  1. --Admin check function - don't edit this!!!
  2.  
  3. function isAdmin(userid)
  4.         -- Give listenserveradmins autoadmin
  5.         if (_IsDedicatedServer() == false and userid == 1) then
  6.                 return true
  7.         end
  8.         for i,v in ipairs(ADMIN_LIST) do
  9.                 if (userid) and (userid > 0) then
  10.                         if (string.lower(v) == string.lower(_PlayerInfo(userid,"networkid"))) then
  11.                                 return true;
  12.                         end
  13.                 end
  14.         end
  15.         return false;
  16. end

Replace that with this...
Code: Lua
  1. --Admin check function - don't edit this!!!
  2.  
  3. _OpenScript( "ULib/init.lua" )
  4.  
  5. function isAdmin(userid)
  6.         return ULib.mainUcl:query(userid, ACCESS_ENT)
  7. 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 Suite
Author: Exitus
Link: http://forums.facepunchstudios.com/showthread.php?t=121813
Rating: Bronze

How 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:
Code: Lua
  1. _OpenScript( "ULib/init.lua" )

And add this to the bottom of the file:
Code: Lua
  1. local function refresh( userid, access )
  2.         eAdminImportULX();
  3. end
  4. 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:
Code: Lua
  1. _OpenScript( "ULib/init.lua" )
  2.  
  3. ULib.forceDownload( "materials/e_commands/showx.vtf" )
  4. ULib.forceDownload( "materials/e_commands/showx.vmt" )
  5. ULib.forceDownload( "materials/e_commands/showy.vtf" )
  6. ULib.forceDownload( "materials/e_commands/showy.vmt" )
  7. ULib.forceDownload( "materials/e_commands/showz.vtf" )
  8. ULib.forceDownload( "materials/e_commands/showz.vmt" )
  9.  
  10. ULib.forceDownload( "materials/e_commands/selectbox.vmt" )
  11.  
  12. ULib.forceDownload( "materials/e_commands/stackTut1.vtf" )
  13. ULib.forceDownload( "materials/e_commands/stackTut1.vmt" )
  14. ULib.forceDownload( "materials/e_commands/stackTut2.vtf" )
  15. ULib.forceDownload( "materials/e_commands/stackTut2.vmt" )
  16. ULib.forceDownload( "materials/e_commands/stackTut3.vtf" )
  17. ULib.forceDownload( "materials/e_commands/stackTut3.vmt" )
  18.  
  19. ULib.forceDownload( "materials/e_commands/protractor.vmt" )
  20. ULib.forceDownload( "materials/e_commands/protractor.vtf" )
  21. ULib.forceDownload( "materials/e_commands/swep_entmover.vmt" )
  22. ULib.forceDownload( "materials/e_commands/swep_entmover.vtf" )
  23. ULib.forceDownload( "materials/e_commands/swep_selectgun.vmt" )
  24. ULib.forceDownload( "materials/e_commands/swep_selectgun.vtf" )
« Last Edit: November 04, 2006, 10:32:34 am by Megiddo »
Experiencing God's grace one day at a time.

wiredman11

  • Guest
Re: [WIP] ULib compatibility list!
« Reply #1 on: September 17, 2008, 08:50:03 pm »
Sorry to reply to a two-year-old topic, but this is the only topic on any forum anywhere that has to do with my problem (that I could find, anyway).

This was very helpful, as it finally enabled me to be a level 4 admin in ECS on a listen server (didn't work automatically, I had to import from ULX, go figure). However, the UPPL admin panel now seems to be missing from my main menu, which was very useful for removing corpses, ragdolls, etc. Can anyone tell me how to fix this? I'm assuming it has to do with replacing the code in admins.txt.

Hopefully someone still reads this forum  :-\

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: [WIP] ULib compatibility list!
« Reply #2 on: September 17, 2008, 09:51:01 pm »
This is for GM9 ULib/ULX... this shouldn't work at all anymore.
Experiencing God's grace one day at a time.

wiredman11

  • Guest
Re: [WIP] ULib compatibility list!
« Reply #3 on: September 18, 2008, 02:02:28 am »
I understand that... I'm using Gmod9 :P I plan on getting 10 but I feel bad for the people who still have 9, and I want to keep a server going.

wiredman11

  • Guest
Re: [WIP] ULib compatibility list!
« Reply #4 on: September 23, 2008, 04:44:20 pm »
Bump for help please? ???

  • Print