gmsv_gatekeeper - Lua controlled server authentication
453 replies, posted
r136 fixes RejectConnection for the new engine update. There's a new vtable entry between RejectConnection and ConnectClient, which might be windows-specific, so the linux build will take a little longer while we figure this out.
[url]http://gmodmodules.googlecode.com/svn/trunk/gmsv_gatekeeper/bin/gmsv_gatekeeper.dll[/url]
[QUOTE=AzuiSleet;25729911]Thanks, I'm working on it. Give me a bit.[/QUOTE]
[QUOTE=bitch ass nigga;25728728]giver or reciever
[editline]29th October 2010[/editline]
is voidy on top[/QUOTE]
answer my question please azu
@Azui
Windows 2008 Server, just updated Gatekeeper. Server crashed again when using gatekeeper.Drop.
r139 should be it. I fixed the IClient vtable.
[url]http://gmodmodules.googlecode.com/svn/trunk/gmsv_gatekeeper/bin/gmsv_gatekeeper.dll[/url]
Testing now.
[editline]29th October 2010[/editline]
works, <3
Thanks, Azu.
The Linux build should be fixed. You can get r142 off the svn here:
[url]http://gmodmodules.googlecode.com/svn/trunk/gmsv_gatekeeper/bin/gmsv_gatekeeper_linux.dll[/url]
Works perfectly so far, thank you so much.
No matter what I try, the steamid always comes back as STEAM_ID_UNKNOWN.
I've got the latest binary from the SVN, running the latest gmod build. Thoughts?
[lua]
require("gatekeeper")
local function PasswordCheck(name, pass, steam, ip)
MsgAll(Format("User: '%s' Pass: '%s' SteamID: '%s'", name, pass, steam))
end
hook.Add("PlayerPasswordAuth", "test", PasswordCheck)
[/lua]
Post details about your platform, the output you're getting, and the expected output.
There's no chance the SteamID can be unknown because we have fully documented the steam ticket. If you're expecting a nosteam server to work well...
Waiting on full server specs from my host. I'm almost positive it's Windows, but let me know if you need any more info. I am expecting to get the output above. Something similar to
[quote]
User: Mr. Wolf Pass: SteamID: STEAM_0:0:12345
[/quote]
What I am actually getting is
[quote]
User: Mr. Wolf Pass: SteamID: STEAM_ID_UNKNOWN
[/quote]
This happens for all people who join. As far as I know it is not a nosteam server, since I can get the steamID at any time via lua_run Entity(1):SteamID().
I know the hook is getting called, since it does output, and gatekeeper is installed, since I can run gatekeeper.Drop() and gatekeeper.DropAllClients() and even gatekeeper.GetNumClients(). They all work, even with custom drop messages. The only thing that doesn't appear to be working is the steamID in the PlayerPasswordAuth hook.
I would first make 100% certain you don't have any conflicting modules being loaded.
[QUOTE=AzuiSleet;25873812]I would first make 100% certain you don't have any conflicting modules being loaded.[/QUOTE]
MysqlOO, Rcon from Chris, and this. That's it.
And the rcon one is just in the modules folder. It's not being used yet. I wanted to get this working first. So basically this and mysqlOO.
I'm getting the same problem here.
The SteamID is always STEAM_ID_UNKNOWN.
I would strongly suggest making sure absolutely no other modules (or addons: metamod) than gatekeeper are loaded, and then seeing what the result is.
If you're certain that no modules are loaded and you get an incorrect result, here is a build that will write ticket.bin next to srcds.exe when a client connects. When you get the unknown steam id, send it to me. Do not post it publicly.
Again, the only modules I have loaded are mysqlOO, latest build, and the latest build of gatekeeper. Can you PM me the build you are speaking of?
[QUOTE=mr.wolf;25893287]Again, the only modules I have loaded are mysqlOO, latest build, and the latest build of gatekeeper. Can you PM me the build you are speaking of?[/QUOTE]
I think he is saying, try it WITHOUT mysqlOO also, as that could possibly, in some weird way interfere.
Not much point in even having gatekeeper without mysqlOO, since I need it for what I'm trying to do. But I'll try it without it for S&G.
With gatekeeper being the ONLY thing running, this is the output
[quote]
User: '(#>) Mr. Wolf' Pass: '' SteamID: 'STEAM_ID_UNKNOWN'
[/quote]
it may be useless without it, but without it on then Azu can start trying to see what actually is wrong. now it is running without with same error, he knows it is NOT the two interacting.
I understand. However, having just deleted all my addons except for things like CSS, and running sandbox, with no other code running but the code i gave above, the output is still
[quote]
User: 'aMity. Kleo_Kantus' Pass: '' SteamID: 'STEAM_ID_UNKNOWN'
[/quote]
Oops I have no idea what I was thinking. Here's the build I was talking about:
[url]http://dl.dropbox.com/u/759758/test/gmsv_gatekeeper.dll[/url]
Thanks. Uploading module now. Waiting on host to unpack the zip (uploading dll's isn't allowed). I'll PM you the ticket when I get it.
[editline]6th November 2010[/editline]
Stranger and stranger.... When I use the build you sent me azui, I get a steamID every time.
[quote]
User: '$> Bot' Pass: 'locked' SteamID: 'STEAM_0:0:22431822'
[/quote]
But using the one from the SVN, 4.31, I get STEAM_ID_UNKNOWN every time
[quote]
User: '$> Bot' Pass: 'locked' SteamID: 'STEAM_ID_UNKNOWN'
[/quote]
Do you still want the ticket?
Oh well then that's the problem, you're downloading the zip files from the Downloads page and not the build in trunk.
Indeed that would do it.... My apologies for the file goose chase. I assumed the download had been updated.
I've packaged up the latest trunk binaries into 4.32.
[QUOTE=AzuiSleet;25900559]I've packaged up the latest trunk binaries into 4.32.[/QUOTE]
Thanks for all your help. It works great now :D
Running the latest linbin, i get the following error:
Gatekeeper: CBaseServer::RunFrame signature failed!
Using Revision 144
gmsv_gatekeeper_linux.dll
Probably the engine update? Don't dare to find out before Garry pushes out his update and I'm forced to update.
Yep, it's broken...automerge?
See below.
Sorry, you need to Log In to post a reply to this thread.