Ulysses Stuff > Ulysses Release Archives
OpenSteam: Bans and User Management System
Neubivljiv:
--- Quote from: matthall ---...seasoned admins will forget and use the standard commands, causing a mess of the bans. For example, ULX Global Ban [0.5] does this.
--- End quote ---
Didn't tested that addon, but I looked into code (a bit). Then I saw this:
--- Code: ---ULX_DB:query("SELECT * FROM bans ORDER BY BanID DESC")
--- End code ---
It's pretty bad, especially when you have a lot of bans. This can drastically affect the performance of the server, and the query time is constantly repeated. Realistically, there's no point then use the database with this.
Then back to the same issues: http://forums.ulyssesmod.net/index.php/topic,7224.msg36417.html#msg36417
I might add a graphical interface in one of the next version, similar to that on the website, only in the game (ulx menu or similiar command like ulx banmenu)...
RalphORama:
--- Quote from: Neubivljiv on May 02, 2014, 08:04:41 PM ---There seems to be a problem with Steam service (I noticed yesterday too).
--- End quote ---
I don't think it's that, it's an issue with the file itself. Where did steam_class.php come from? It looks like something from the steam web API, but I can't find any files with similar contents.
On the other hand, I'm also getting the following error on the server itself (during startup):
--- Code: ---[ERROR] addons/ulx/lua/ulx/modules/sh/opensteam.lua:41: attempt to index local 'queryQ' (a nil value)
1. fn - addons/ulx/lua/ulx/modules/sh/opensteam.lua:41
2. unknown - addons/ulib/lua/ulib/shared/hook.lua:183
[ERROR] addons/ulx/lua/ulx/modules/sh/opensteam.lua:41: attempt to index local 'queryQ' (a nil value)
1. fn - addons/ulx/lua/ulx/modules/sh/opensteam.lua:41
2. unknown - addons/ulib/lua/ulib/shared/hook.lua:183
--- End code ---
Again, the only part I've modified reads as follows (and all the DB information is correct):
--- Code: ---local ULX_HOST = "localhost"
local ULX_PORT = 3306
local ULX_DATABASE = "<removed>"
local ULX_USERNAME = "<removed>"
local ULX_PASSWORD = "<removed>"
local ULX_BANS_TABLE = "dr_bans"
local ULX_PLAYERS_TABLE = "dr_users"
local ULX_GROUPS_TABLE = "dr_groups"
local ULX_CONFIG_TABLE = "dr_config"
local ULXDB
--- End code ---
Neubivljiv:
Steam class: https://developer.valvesoftware.com/wiki/Server_queries
(look at bottom - PHP library)
I see problem (fixed it). Quick fix: open inc/pages/login.php and find:
--- Code: ---$Validate = SteamSignIn::validate();
--- End code ---
replace with
--- Code: ---if(isset($_GET["openid_ns"])) $Validate = SteamSignIn::validate();
--- End code ---
About other errors...do you have mysqloo installed?
RalphORama:
--- Quote from: Neubivljiv on May 02, 2014, 08:51:12 PM ---About other errors...do you have mysqloo installed?
--- End quote ---
Yep, the addon doesn't work without it. I have the lua file in garrysmod/addons/ulx/lua/ulx/modules/sh/opensteam.lua, libmysqlclient.so.18 in my root folder (next to srcds_linux), and gmsv_mysqloo_linux.dll in garrysmod/lua/bin/.
As for logging in, I added your line of code, and while it does get rid of the error on the login page, nothing happens/changes when I log in (or try to register).
Storm:
I was about to download this but saw the comment that it can cause major server lag. I probably just misunderstood the reference. Can you explain?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version