ULX

Author Topic: Sourcebans & ULX/ULib  (Read 106362 times)

0 Members and 2 Guests are viewing this topic.

Offline Milk_

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
Re: Sourcebans & ULX/ULib
« Reply #45 on: January 08, 2013, 01:13:58 AM »
Yep I did modify the line, and also just tried what you pasted me and get exactly the same thing.

Offline ZephyrWarrior

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Sourcebans & ULX/ULib
« Reply #46 on: January 15, 2013, 03:55:26 PM »
Upon trying to ban someone with ulx sban, I receive these errors:

Code: [Select]
L 01/15/2013 - 18:15:51: Lua Error:
[ERROR] addons/ulx/lua/ulx/modules/sh/sban.lua:12: attempt to index global 'sourcebans' (a nil value)
1. call - addons/ulx/lua/ulx/modules/sh/sban.lua:12
2. __fn - addons/ulib/lua/ulib/shared/commands.lua:943
3. unknown - addons/ulib/lua/ulib/shared/commands.lua:1296
4. unknown - lua/includes/modules/concommand.lua:69



[ERROR] addons/ulx/lua/ulx/modules/sh/sban.lua:12: attempt to index global 'sourcebans' (a nil value)
1. call - addons/ulx/lua/ulx/modules/sh/sban.lua:12
2. __fn - addons/ulib/lua/ulib/shared/commands.lua:943
3. unknown - addons/ulib/lua/ulib/shared/commands.lua:1296
4. unknown - lua/includes/modules/concommand.lua:69

Any ideas as to what could be wrong?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: Sourcebans & ULX/ULib
« Reply #47 on: January 15, 2013, 07:01:49 PM »
You need the source bans module linked in the first post.
Experiencing God's grace one day at a time.

Offline ZephyrWarrior

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Sourcebans & ULX/ULib
« Reply #48 on: January 15, 2013, 08:16:52 PM »
Quote
For the safe option you will want to place the following code in addons/ulx/lua/ulx/modules/sh/ and name it sban.lua

If you mean that one, I have it.

Quote
As a base you will want to install the sourceban module found here http://lexi.org.uk/modules/sourcebans.lua
Create the following directory and place the file in there. addons/ulx/lua/includes/modules/

Quote
Next you need to edit and place the config file located here http://lexi.org.uk/modules/sourcebans_example.lua
I renamed the file sourcebans_init.lua and placed it in addons/ulx/lua/ulx/modules/

Same with those two.

Offline centran

  • Newbie
  • *
  • Posts: 43
  • Karma: 8
Re: Sourcebans & ULX/ULib
« Reply #49 on: January 16, 2013, 07:11:18 AM »
It seems the sourceban module wasn't loaded. Are you sure you put the files in the right place? Is the configuration file configured correctly?

Look for errors when the server first starts up or on map change. That will give a better clue on why sourcebans isn't loading.

Offline ZephyrWarrior

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Sourcebans & ULX/ULib
« Reply #50 on: January 16, 2013, 07:21:49 AM »
Code: [Select]
09:50:39 Lua Error: [ERROR] addons/ulx/lua/includes/modules/sourcebans.lua:24: Couldn't load module library! 1. require - [C]:-1 2. unknown - addons/ulx/lua/includes/modules/sourcebans.lua:24 3. require - [C]:-1 4. unknown -
addons/ulx/lua/ulx/modules/sourcebans_init.lua:5 5. include - [C]:-1 6. unknown -
addons/ulx/lua/ulx/init.lua:28 7. include - [C]:-1 8. unknown -
addons/ulx/lua/ulib/modules/ulx_init.lua:2 9. include - [C]:-1 10. unknown -
addons/ulib/lua/ulib/init.lua:75 11. include - [C]:-1 12. unknown -
addons/ulib/lua/autorun/ulib_init.lua:3

09:50:40 Lua Error: [ERROR] addons/ulx/lua/ulx/modules/sourcebans_init.lua:5: Module not found! 1. require - [C]:-1 2. unknown -
addons/ulx/lua/ulx/modules/sourcebans_init.lua:5 3. include - [C]:-1 4. unknown -
addons/ulx/lua/ulx/init.lua:28 5. include - [C]:-1 6. unknown -
addons/ulx/lua/ulib/modules/ulx_init.lua:2 7. include - [C]:-1 8. unknown -
addons/ulib/lua/ulib/init.lua:75 9. include - [C]:-1 10. unknown -
addons/ulib/lua/autorun/ulib_init.lua:3

That's the one from console on map change.

I followed the first post exactly (I'm fairly sure).

Offline centran

  • Newbie
  • *
  • Posts: 43
  • Karma: 8
Re: Sourcebans & ULX/ULib
« Reply #51 on: January 16, 2013, 12:15:08 PM »
Code: [Select]
09:50:39 Lua Error: [ERROR] addons/ulx/lua/includes/modules/sourcebans.lua:24: Couldn't load module library! 1. require - [C]:-1 2. unknown - addons/ulx/lua/includes/modules/sourcebans.lua:24 3. require - [C]:-1 4. unknown
OK, so there error is on line 24 of the sourcebans module. And it is complaining it can't load something... lets look at line 24
Code: [Select]
require("mysqloo");
There is your answer. You did not install mysqloo properly.
Need to read this facepunch forum topic and follow the instructions in it..,. http://www.facepunch.com/showthread.php?t=1220537
Very bottom of the first page are two files you need to download and place in the correct directories. I believe you will need a server restart to get them working.
« Last Edit: January 16, 2013, 12:18:07 PM by centran »

Offline ZephyrWarrior

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Sourcebans & ULX/ULib
« Reply #52 on: January 17, 2013, 10:22:05 AM »
I downloaded this

http://puu.sh/1fhWu

as it said to here

http://www.facepunch.com/showthread.php?t=1220537

Quote
For convenience here is mine for Windows 7

Where do I put it, /garrysmod/lua/bin did not work.

Offline centran

  • Newbie
  • *
  • Posts: 43
  • Karma: 8
Re: Sourcebans & ULX/ULib
« Reply #53 on: January 17, 2013, 11:14:36 AM »
I downloaded this

http://puu.sh/1fhWu

as it said to here

http://www.facepunch.com/showthread.php?t=1220537

Where do I put it, /garrysmod/lua/bin did not work.

That file goes in same folder as your srcds_run program which is the orangebox folder... so one dir below garrysmod.
You also need this file http://drakehawke-gmod.googlecode.com/svn/trunk/AndyVincentGMod/RELEASE/gmsv_mysqloo_linux.dll
and that file goes in the garrysmod/lua/bin folder

Offline ZephyrWarrior

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Sourcebans & ULX/ULib
« Reply #54 on: January 17, 2013, 12:32:43 PM »
Ok, it now syncs bans. Thank you. Only a couple other issues, I don't know whether they are intentional/avoidable.

1) When someone is banned, it doesn't actually print the website that's in the config. It prints this:

Code: [Select]
Disconnect:  You are BANNED! Please check http:.
2) When people connect after they have been banned, it doesn't print the site then either.

Code: [Select]
You have been banned from this server.
3) When a banned person connects and they are blocked, it doesn't sync that to SourceBans.



Any help would be awesome.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: Sourcebans & ULX/ULib
« Reply #55 on: January 17, 2013, 01:19:43 PM »
"//" is the start of a comment in many configurations, so http://<anything> gets stripped to http:.
Experiencing God's grace one day at a time.

Offline ZephyrWarrior

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Sourcebans & ULX/ULib
« Reply #56 on: January 17, 2013, 03:14:27 PM »
Changing it to just www. fixed that one, any idea on the other 2?

Offline Cpt. David

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Re: Sourcebans & ULX/ULib
« Reply #57 on: January 21, 2013, 12:15:37 PM »
-snip- The problem I had was fixed thanks to Mors Quaedam.
« Last Edit: January 21, 2013, 01:27:10 PM by Cpt. David »
Derp.

Offline Sidewaykill

  • Newbie
  • *
  • Posts: 8
  • Karma: 2
Re: Sourcebans & ULX/ULib
« Reply #58 on: January 21, 2013, 05:52:31 PM »
I have an issue with this intergration:
When I unban via the SourceBans web panel (http://bans.versound.net) it works, but they still stay banned through ULX. Same with Deleting bans. Could someone please give me a fix for this?

Offline ZephyrWarrior

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Sourcebans & ULX/ULib
« Reply #59 on: January 22, 2013, 05:57:52 AM »
Is your Rcon password in the webpanel correct?