Page 1 of 1

server authentication login on custom wad

Posted: Sun Jun 07, 2015 2:25 pm
by doomita
Hello guys, first sorry for my bad english :redface: .
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");
}
when launching the script 2 print always "not logged" , surely I forget some step to make everything work ??? ???

thank all !

RE: server authentication login on custom wad

Posted: Sun Jun 07, 2015 2:28 pm
by Sean
Did you actually login with the login console command?

RE: server authentication login on custom wad

Posted: Sun Jun 07, 2015 8:31 pm
by doomita
yes, I launched the "login" command ( the command does not return any message ) then use puke 2 and print "not logged"

RE: server authentication login on custom wad

Posted: Sun Jun 07, 2015 9:28 pm
by Hypnotoad
Have you set your server to point to an auth server?

RE: server authentication login on custom wad

Posted: Sun Jun 07, 2015 9:52 pm
by doomita
you mean this ?
+authhostname zandroauthtest.oscillicious.com:16666

yes i set this point

RE: server authentication login on custom wad

Posted: Mon Jun 08, 2015 6:02 am
by Sean
doomita wrote: ( the command does not return any message )
There's your problem - if it logged you in it would say "Login successful!"

Try a different auth server?

RE: server authentication login on custom wad

Posted: Mon Jun 08, 2015 6:51 pm
by doomita
Yes, different server and different ports :(