Link server to forums?
- pie goes moo
- Round Winner
- Posts: 306
- Joined: Wed Aug 12, 2009 10:42 pm
- Location: San Antonio, Texas, USA
Link server to forums?
How does I link forums to my server so people have to register on my forums to authenticate (with their forum account)?

- 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?
Not enough brains, eh? First, what version server are you running?pie goes moo wrote:too...much...TEXT!
- 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?
Well, why don't you have him set up the auth for you?pie goes moo wrote:I dunno, [ReN]Tagz[ReN] is gonna host it for me.
- 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?
The quick and easy way is to just set
in the config. Of course, your server needs to be configured with
for that to have any effect. Our builds are.
Oh, right, you want to have login mandatory to play? Then also set
If you further want to restrict players to those authenticating from this forum, use AUTHORITY_WHITELIST.
Code: Select all
GLOBAL_ID 1
Code: Select all
./configure --enable-armathentication
Oh, right, you want to have login mandatory to play? Then also set
Code: Select all
ACCESS_LEVEL_PLAY 15
- 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?
You enter the configure line from a shell where the current directory is the armagetron source directory:
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.
Code: Select all
#> wget <armagetron source tarball>
#> tar -xjf <tarball>
#> cd armagetronad-<version>
#> ./configure --enable-armathentication --disable-glout
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.
- 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?
So, if I downloaded it as a binary, I don't have to do shit but configure and ?
Code: Select all
GLOBAL_ID
Code: Select all
ACCESS_LEVEL_PLAY

Re: Link server to forums?
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
Re: Link server to forums?
Yep.pie goes moo wrote:So, if I downloaded it as a binary, I don't have to do shit but configureandCode: Select all
GLOBAL_ID
?Code: Select all
ACCESS_LEVEL_PLAY
- 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?
My own forumsTobe 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?

Re: Link server to forums?
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.
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.