server authentication login on custom wad
Posted: Sun Jun 07, 2015 2:25 pm
Hello guys, first sorry for my bad english
.
Some years ago I developed some wad with skulltag ad DoomBulder 2. Now I'm trying to understand the "user login" with zandronum to retrieve the userid of the player in my wad and store some value in custom database.
I launch the test wad on DoomBuilder2 with the values:
+authhostname zandroauthtest.oscillicious.com:16666 +sv_forcelogintojoin 1
Scripts of wad:
when launching the script 2 print always "not logged" , surely I forget some step to make everything work
thank all !
Some years ago I developed some wad with skulltag ad DoomBulder 2. Now I'm trying to understand the "user login" with zandronum to retrieve the userid of the player in my wad and store some value in custom database.
I launch the test wad on DoomBuilder2 with the values:
+authhostname zandroauthtest.oscillicious.com:16666 +sv_forcelogintojoin 1
Scripts of wad:
Code: Select all
script 1 ENTER CLIENTSIDE
{
ACS_Execute(2,1,0,0,0);
}
script 2 (void)
{
Log(d:PlayerNumber());
if(PlayerIsLoggedIn(PlayerNumber()))
Log(s:"logged in");
else
Log(s:"not logged");
}
thank all !