Page 1 of 2

Configuring LAN server

Posted: 18 Feb 2008, 20:00
by Starcraftman
I was wondering how you configure the spring lan server to have accounts to log into , keep track of playtime and just other random things. Does anyone know how to do this?

Re: Configuring LAN server

Posted: 19 Feb 2008, 00:33
by Relative
I'm interested in this too. I took at look at the readme for TASServer in the SVN, but I saw no option to set up a full server with account support. It seems the default is lan mode, but doesn't provides the command to change this.

Re: Configuring LAN server

Posted: 19 Feb 2008, 00:35
by Peet
don't run with -lan, and include an accounts.txt

Re: Configuring LAN server

Posted: 19 Feb 2008, 00:37
by Relative
Ok thanks peet, but what about setting up admin privileges etc...

Re: Configuring LAN server

Posted: 19 Feb 2008, 00:38
by Peet
the long string of 1s and 0s in the user's entry in accounts.txt...either check Account.java or set it to all 1s :-)

Re: Configuring LAN server

Posted: 19 Feb 2008, 00:39
by Relative
Great thanks, you might want to update the readme to include this.

Re: Configuring LAN server

Posted: 19 Feb 2008, 00:40
by Peet
Nevar, the cryptic path of configuring tasserver serves as a test to determine who is worthy to run one :P

The next task: get ChanServ running. You get to trace the calls to the xml parser!

Re: Configuring LAN server

Posted: 19 Feb 2008, 00:42
by Relative
Peet wrote:Nevar, the cryptic path of configuring tasserver serves as a test to determine who is worthy to run one :P
*The next day Peet gets run over by a bus*

Everyone else: o crap....

Re: Configuring LAN server

Posted: 19 Feb 2008, 00:54
by Tobi
Relative wrote:Ok thanks peet, but what about setting up admin privileges etc...
You can set it in the lobby. But beware, you still need to do number system conversions and bitwise ands!

(getaccountaccess and changeaccountaccess commands, IIRC)

Re: Configuring LAN server

Posted: 19 Feb 2008, 00:55
by Peet
Tobi wrote:
Relative wrote:Ok thanks peet, but what about setting up admin privileges etc...
You can set it in the lobby. But beware, you still need to do number system conversions and bitwise ands!

(getaccountaccess and changeaccountaccess commands, IIRC)
Hard to do that without an admin account initially though :P

Re: Configuring LAN server

Posted: 19 Feb 2008, 00:58
by Tobi
Ah true, typical bootstrap problem :P

Re: Configuring LAN server

Posted: 19 Feb 2008, 01:02
by Relative
Well I couldn't get the accounts working and then after running it a couple of times it started crashing:

Code: Select all

rutter@stumpy:~$ java -jar /home/rutter/Desktop/TASServer.jar 
TASServer 0.35 started on 2008.02.18 at 11:59:59 GMT
JDBC driver not found!
Server stopped.
rutter@stumpy:~$ 

Re: Configuring LAN server

Posted: 19 Feb 2008, 21:06
by Starcraftman
I have another question now, when I host a game on a lan server, the computer trying to join the game is always desynced.

Re: Configuring LAN server

Posted: 22 Feb 2008, 01:31
by Starcraftman
Why is nobody helping? Its been like 2 days since I asked about the desync problem

Re: Configuring LAN server

Posted: 22 Feb 2008, 01:46
by LordMatt
Make sure the contents of the mods folder and the base folder are the same.

Re: Configuring LAN server

Posted: 23 Feb 2008, 21:58
by Starcraftman
Ah thanks, that worked.

Re: Configuring LAN server

Posted: 27 Feb 2008, 00:58
by jonlt
could you post a sample accounts.txt file?
Also how did you get around the JDBC problem?
Thanks!

Re: Configuring LAN server

Posted: 27 Feb 2008, 01:19
by Peet

Code: Select all

Peet passwordgoeshere 1100000100000000100000111 0 1196214560921 192.168.0.100 1186229938421 ZZ AC5325C 0 3 D4DFD64 0 2 E9FAA70 0 28
Can't remember what any of the stuff after ZZ is, doesn't really matter afaik; just copypasta and change the username and password (which is a base64 encoded md5 hash of the password entered in tasclient).

Re: Configuring LAN server

Posted: 27 Feb 2008, 03:29
by Starcraftman
Uh that code is what goes in the accounts file?

Re: Configuring LAN server

Posted: 27 Feb 2008, 03:38
by Peet
Starcraftman wrote:Uh that code is what goes in the accounts file?
Yes. Though of course you replace Peet with the desired admin username, and passwordgoeshere with the desired password.