server authentication login on custom wad

Discuss all aspects related to modding Zandronum here.
Post Reply
doomita
New User
Posts: 4
Joined: Sun Jun 07, 2015 2:05 pm

server authentication login on custom wad

#1

Post by doomita » Sun Jun 07, 2015 2:25 pm

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 !
Last edited by doomita on Sun Jun 07, 2015 8:36 pm, edited 1 time in total.

User avatar
Sean
IRC Operator
Posts: 983
Joined: Thu Jan 16, 2014 9:09 pm
Location: United Kingdom
Clan: Zandronum
Clan Tag: [Za]
Contact:

RE: server authentication login on custom wad

#2

Post by Sean » Sun Jun 07, 2015 2:28 pm

Did you actually login with the login console command?
<capodecima> i dont say any more word without my loyer jenova

doomita
New User
Posts: 4
Joined: Sun Jun 07, 2015 2:05 pm

RE: server authentication login on custom wad

#3

Post by doomita » Sun Jun 07, 2015 8:31 pm

yes, I launched the "login" command ( the command does not return any message ) then use puke 2 and print "not logged"

User avatar
Hypnotoad
Retired Staff / Community Team Member
Posts: 528
Joined: Tue May 29, 2012 8:50 pm
Location: Britland

RE: server authentication login on custom wad

#4

Post by Hypnotoad » Sun Jun 07, 2015 9:28 pm

Have you set your server to point to an auth server?

doomita
New User
Posts: 4
Joined: Sun Jun 07, 2015 2:05 pm

RE: server authentication login on custom wad

#5

Post by doomita » Sun Jun 07, 2015 9:52 pm

you mean this ?
+authhostname zandroauthtest.oscillicious.com:16666

yes i set this point

User avatar
Sean
IRC Operator
Posts: 983
Joined: Thu Jan 16, 2014 9:09 pm
Location: United Kingdom
Clan: Zandronum
Clan Tag: [Za]
Contact:

RE: server authentication login on custom wad

#6

Post by Sean » Mon Jun 08, 2015 6:02 am

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?
<capodecima> i dont say any more word without my loyer jenova

doomita
New User
Posts: 4
Joined: Sun Jun 07, 2015 2:05 pm

RE: server authentication login on custom wad

#7

Post by doomita » Mon Jun 08, 2015 6:51 pm

Yes, different server and different ports :(

Post Reply