Master server address
Moderator: Moderators
Master server address
Is it possible to change the address where the clients looks for the master server? I had a quick look around the code, but couldn't seem to find anything relevant.
Gah, I didn't think that it might have been aliased. Just searched for the canonical name the server tried to connect to.
The server runs as far as connecting to a database and starting the main loop. I haven't gotten around to redirecting a client to test the rest. I used the settings.txt from the included examples. Just changed the username, password and stuff to run on my own mysql-server.
For the future, it might be an idea to be able to support different databases, at least sqlite or some other light stuff.
The server runs as far as connecting to a database and starting the main loop. I haven't gotten around to redirecting a client to test the rest. I used the settings.txt from the included examples. Just changed the username, password and stuff to run on my own mysql-server.
For the future, it might be an idea to be able to support different databases, at least sqlite or some other light stuff.
Change it! =)gramuxius wrote:Oh, wow. SpringClient/Constants.cs is just hardcoded settings all the way. :)
Edit:
Right, I'll just have to route the traffic to my linux box and redirect to localhost there. Fun.
We should make note of that and remove it at some point. Nothing should be hardcoded IMO.
-
- Posts: 436
- Joined: 26 Aug 2004, 08:11
you also need mysql running in order to use the server. in settings.txt you'll need to specify the database, user, and password needed to access the database as well as the name of the table user information is found in. quick question, why do you want to run your own server? especially through localhost?
He got the server to compile in linux, and he wanted to test it.jouninkomiko wrote:you also need mysql running in order to use the server. in settings.txt you'll need to specify the database, user, and password needed to access the database as well as the name of the table user information is found in. quick question, why do you want to run your own server? especially through localhost?

From the latest version in svn (https://lolut.utbm.info/svn/taspring_linux/trunk/server):
settings.txt
[Server]
{
[Mysql]
{
User=taspring;
Password=taspring;
Database=taspring;
UserTable=srv_user;
}
port=4897;
}
The database should contain this table:
DROP TABLE IF EXISTS `srv_user`;
CREATE TABLE `srv_user` (
`Username` char(16) NOT NULL default '',
`FormattedName` char(16) NOT NULL default '',
`Password` char(16) NOT NULL default '',
PRIMARY KEY (`UserName`)
)
settings.txt
[Server]
{
[Mysql]
{
User=taspring;
Password=taspring;
Database=taspring;
UserTable=srv_user;
}
port=4897;
}
The database should contain this table:
DROP TABLE IF EXISTS `srv_user`;
CREATE TABLE `srv_user` (
`Username` char(16) NOT NULL default '',
`FormattedName` char(16) NOT NULL default '',
`Password` char(16) NOT NULL default '',
PRIMARY KEY (`UserName`)
)