Link server to forums?

For all the help you need with Armagetron!
Post Reply
User avatar
pie goes moo
Round Winner
Posts: 306
Joined: Wed Aug 12, 2009 10:42 pm
Location: San Antonio, Texas, USA

Link server to forums?

Post by pie goes moo »

How does I link forums to my server so people have to register on my forums to authenticate (with their forum account)?
Image
Word
Reverse Adjust Outside Corner Grinder
Posts: 4327
Joined: Wed Jan 07, 2009 6:13 pm

Re: Link server to forums?

Post by Word »

User avatar
pie goes moo
Round Winner
Posts: 306
Joined: Wed Aug 12, 2009 10:42 pm
Location: San Antonio, Texas, USA

Re: Link server to forums?

Post by pie goes moo »

:o too...much...TEXT!
Image
User avatar
sinewav
Graphic Artist
Posts: 6497
Joined: Wed Jan 23, 2008 3:37 am
Contact:

Re: Link server to forums?

Post by sinewav »

pie goes moo wrote::o too...much...TEXT!
Not enough brains, eh? First, what version server are you running?
User avatar
pie goes moo
Round Winner
Posts: 306
Joined: Wed Aug 12, 2009 10:42 pm
Location: San Antonio, Texas, USA

Re: Link server to forums?

Post by pie goes moo »

I dunno, [ReN]Tagz[ReN] is gonna host it for me.
Image
User avatar
sinewav
Graphic Artist
Posts: 6497
Joined: Wed Jan 23, 2008 3:37 am
Contact:

Re: Link server to forums?

Post by sinewav »

pie goes moo wrote:I dunno, [ReN]Tagz[ReN] is gonna host it for me.
Well, why don't you have him set up the auth for you?
User avatar
pie goes moo
Round Winner
Posts: 306
Joined: Wed Aug 12, 2009 10:42 pm
Location: San Antonio, Texas, USA

Re: Link server to forums?

Post by pie goes moo »

I don't think he'd know how
Image
Image
User avatar
Z-Man
God & Project Admin
Posts: 11736
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Link server to forums?

Post by Z-Man »

The quick and easy way is to just set

Code: Select all

GLOBAL_ID 1
in the config. Of course, your server needs to be configured with

Code: Select all

./configure --enable-armathentication
for that to have any effect. Our builds are.

Oh, right, you want to have login mandatory to play? Then also set

Code: Select all

ACCESS_LEVEL_PLAY 15
If you further want to restrict players to those authenticating from this forum, use AUTHORITY_WHITELIST.
User avatar
pie goes moo
Round Winner
Posts: 306
Joined: Wed Aug 12, 2009 10:42 pm
Location: San Antonio, Texas, USA

Re: Link server to forums?

Post by pie goes moo »

Where do I put the ./configure line?
Image
User avatar
Z-Man
God & Project Admin
Posts: 11736
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Link server to forums?

Post by Z-Man »

You enter the configure line from a shell where the current directory is the armagetron source directory:

Code: Select all

#> wget <armagetron source tarball>
#> tar -xjf <tarball>
#> cd armagetronad-<version>
#> ./configure --enable-armathentication --disable-glout
The --disable-glout makes it a dedicated server.

But if you didn't know where the line goes, that means you didn't install the game from source, but rather from a binary; if that binary was supplied by us, it already includes armathentication and you have nothing to worry about, just add the GLOBAL_ID and ACCESS_LEVEL_PLAY settings to the server configuration files.
User avatar
pie goes moo
Round Winner
Posts: 306
Joined: Wed Aug 12, 2009 10:42 pm
Location: San Antonio, Texas, USA

Re: Link server to forums?

Post by pie goes moo »

So, if I downloaded it as a binary, I don't have to do shit but configure

Code: Select all

GLOBAL_ID
and

Code: Select all

ACCESS_LEVEL_PLAY
?
Image
Tobe
Round Winner
Posts: 215
Joined: Wed Jan 14, 2009 12:31 am
Location: Miami, FL

Re: Link server to forums?

Post by Tobe »

pie goes moo wrote:How does I link forums to my server so people have to register on my forums to authenticate (with their forum account)?

Wait, I'm confused. Are you trying to be able to have people login to your server using an account from the official armagetron forum, or from your own personal forum?
<-- Proud co-leader of Rogue Tronners
User avatar
Z-Man
God & Project Admin
Posts: 11736
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Link server to forums?

Post by Z-Man »

pie goes moo wrote:So, if I downloaded it as a binary, I don't have to do shit but configure

Code: Select all

GLOBAL_ID
and

Code: Select all

ACCESS_LEVEL_PLAY
?
Yep.
User avatar
pie goes moo
Round Winner
Posts: 306
Joined: Wed Aug 12, 2009 10:42 pm
Location: San Antonio, Texas, USA

Re: Link server to forums?

Post by pie goes moo »

Tobe wrote: Wait, I'm confused. Are you trying to be able to have people login to your server using an account from the official armagetron forum, or from your own personal forum?
My own forums
Image
User avatar
Z-Man
God & Project Admin
Posts: 11736
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Link server to forums?

Post by Z-Man »

That is a bit more complicated, then. You still need to do the stuff we already told you, but then you need to turn your forum into an Authority. For that, it needs to answer to certain HTTP queries in a specific way. The WIKI page linked to earlier documents the principles behind it, and we have (at least) two sample implementations. One is included in the distributed source, it's a simple .php file that fetches the passwords from an array in memory. The second is a more generic implementation capable of fetching password hashes from pretty much any SQL database layout. Depending on what forum you use, you also need to modify the forum code so password hashes are stored in a suitable form.

Yes, it's all pretty complicated. Sorry, but it needs to be in order to meet the requirement that users do not have to trust a game server they log on to, the game server never sees the real password or even its hash.
Post Reply