RegisterRegister    Log inLog in    SearchSearch   

Post new topic   Reply to topic
Goto page 1, 2  Next 
View previous topic :: View next topic  
Author Message
Polarwolf



PostPosted: Wed Apr 22, 2009 12:32 am    Post subject: TSē problems and tips Reply with quote

server_windows.exe -db=%server:port%_server.dbs -ini=%server:port%_server.ini

Test it yourself if you dont trust me but it works fine. The only problem is the following:
The server.ini is created without any problems. It works fine.
But the other one, the DBS (its a SQLite database) is just not created. I already tryed to add it manually but it wont work. Since there alot of special Chars in the dbs it seems some stuff is getting 'translated' into other shit. Can you implent the following(?):
when a new server is created / booker, then when the DBS is created, make a copy of it, name it as suggested at top and just search&replace the stuff required? Like AdminPassword etc. etc. etc.
I tested it and replacing stuff works. It just wont work if you let GC create the whole file. If we get this, its possible to offer TSē for people to book without any settings from you. Please look at this and contact me.... very urgent.
Back to top
View user's profile Send private message
adbot



PostPosted: Thu Mar 31, 2011 3:57 am 

Kybber



PostPosted: Wed Apr 22, 2009 2:22 am    Post subject: Reply with quote

This works perfectly in Linux:
Code:
./server_linux -db=server_51235.dbs -ini=server_51235.ini

The server_51235.dbs file is created, and the server is started with the
settings from server_51235.ini.

In any case you can't simply search and replace an sqlite-file as if it were
a regular text file. You need to use an sql api for manipulation of sql databases.
Back to top
View user's profile Send private message
Polarwolf



PostPosted: Wed Apr 22, 2009 3:47 am    Post subject: Reply with quote

I use windows but the TS Commands seem to be the same. Could you explain that SQL Api stuff a bit please? Got an example maybe?
Back to top
View user's profile Send private message
Kybber



PostPosted: Wed Apr 22, 2009 4:26 am    Post subject: Reply with quote

It is not really relevant here, but the point is that the .dbs file is an sqlite
database and not a textfile. So you need special tools to store data in the
file. You can read about it here, if you are interested:
http://www.sqlite.org/
Back to top
View user's profile Send private message
Polarwolf



PostPosted: Wed Apr 22, 2009 5:20 am    Post subject: Reply with quote

But how can I get the GC Webinterface to create a SQLite file? o.o I never did anything with sql and such :[
Back to top
View user's profile Send private message
Steve
Mammoth


PostPosted: Wed Apr 22, 2009 11:48 am    Post subject: Reply with quote

The GC interface doesn't need to create the file itself.

The command line is just telling TS what the dbs file should be called, and TS2 should create that file itself on first run.
Back to top
View user's profile Send private message
Polarwolf



PostPosted: Wed Apr 22, 2009 10:40 pm    Post subject: Reply with quote

That doesnt work dude. :[
I tryed it a few times to auto- create a TSē Server. If there starts any server, it uses the same DB / INI then the rest. So everyone has the same configuration. It also doesnt set your admin pw.

Could you look into this?
Back to top
View user's profile Send private message
Kybber



PostPosted: Wed Apr 22, 2009 10:44 pm    Post subject: Reply with quote

Can you post the line from the log where GC starts the ts2 server so we can
verify the command line that GC uses?
Back to top
View user's profile Send private message
Polarwolf



PostPosted: Wed Apr 22, 2009 11:50 pm    Post subject: Reply with quote

Post what when where?
Back to top
View user's profile Send private message
Kybber



PostPosted: Thu Apr 23, 2009 2:14 am    Post subject: Reply with quote

Your GC client should spit out a log to your disk. If it doesn't, edit your
gamecreate.ini and add the following line:
Code:
log-file gamecreate.log

Restart GC, start the TS2 server and look for a line in the log which says
"Launching process" followed by the command line GC uses to start the
TS2 server. Copy-paste that line in here.

You can of course just copy the line from the console, but having a log is
always handy Smile
Back to top
View user's profile Send private message
Polarwolf



PostPosted: Fri Apr 24, 2009 12:30 am    Post subject: Reply with quote

Ahhh. I see what you were talking about. Thanks.
admin rtitco

But I cant set the admin password / message of the day / servername... any suggestions?
Back to top
View user's profile Send private message
Kybber



PostPosted: Fri Apr 24, 2009 7:46 am    Post subject: Reply with quote

Sorry, I've never had to do that so I don't know. TS spits out random passwords
for admin and superadmin to the log. You can fish it out from there. That is
even how they suggest you get the passwords in the readme, so I guess it's
the only way.

Most settings can be configured through TS's webinterface, including the server
name. You can also telnet to the server and do some configuration from there.
Keep in mind that one TS server can host multiple virtual servers, all configurable
from the webinterface as superadmin.

Perhaps someone over at the TS websites can help you out?
Back to top
View user's profile Send private message
Polarwolf



PostPosted: Fri Apr 24, 2009 12:43 pm    Post subject: Reply with quote

Na. I know what you mean but my posting was crappy. I mean:
I cant change the Password from the GameCreate interface.
Back to top
View user's profile Send private message
Polarwolf



PostPosted: Fri Apr 24, 2009 1:11 pm    Post subject: Reply with quote

I found out:
Whatever you enter into the webinterface for your server... it wont happen.

If you create a DBS file when running the TS the first time, it wont set / write down the correct: Welcome Message, Servername, MaxPlayers and Adminpassword. Just everything is default. Any suggestions?
Code:

---------------------------------------------------------------
-------------- log started at 24-04-09 05:06 -------------
---------------------------------------------------------------
24-04-09 05:06:07,ALL,Info,server,   Server init initialized
24-04-09 05:06:07,ALL,Info,server,   Server version: 2.0.24.1 Win32
24-04-09 05:06:07,ALL,Info,server,   Starting VirtualServer id:1 with port:8767
24-04-09 05:06:07,ERROR,All,SERVER,   VirtualServer startup failed with port 8767, Exception: EIdCouldNotBindSocket.Could not bind socket. Address and port are already in use.
24-04-09 05:06:10,ERROR,All,WEBINTERFACE,   WebInterface startup failed with port 14534, Exception:Could not bind socket. Address and port are already in use.
24-04-09 05:06:10,ERROR,All,TCPQUERY,   TCPQuery startup failed with port 51234, Exception: Could not bind socket. Address and port are already in use.
24-04-09 05:06:10,ALL,Info,server,   Server init finished
24-04-09 05:06:13,ERROR,All,frmMain,   unable to detect external ip

When I checked the newly created DBS (auto created from webinterface or executable) I found out everything was set to default (Port, MOTD, and such)

This comes once I create a Server with GC:
Code:
LOG: Fri Apr 24 05:13:23 2009: ** Got file, name: C:\Program Files (x86)\GameCreate\teamspeak\server.ini, size: 619 **
LOG: Fri Apr 24 05:13:23 2009: ** Start GameCreate Booking: ID 9416096 **
LOG: Fri Apr 24 05:13:23 2009: Launching process: C:\Program Files (x86)\GameCreate\teamspeak\server_windows.exe 1234567 12 "TestAdmin" "TestName" "Welcome to TestName!" -db=1234567_server.dbs -ini=1234567_server.ini from directory C:\Program Files (x86)\GameCreate\teamspeak


This comes when I start a Server with GC (I created a second ago via GC):
Code:
LOG: Fri Apr 24 05:15:28 2009: ** Got file, name: C:\Program Files (x86)\GameCreate\teamspeak\server.ini, size: 619 **
LOG: Fri Apr 24 05:15:28 2009: ** Start GameCreate Booking: ID 9416096 **
LOG: Fri Apr 24 05:15:28 2009: Launching process: C:\Program Files (x86)\GameCreate\teamspeak\server_windows.exe 1234567 12 "TestAdmin" "TestName" "Welcome to TestName!" -db=1234567_server.dbs -ini=1234567_server.ini from directory C:\Program Files (x86)\GameCreate\teamspeak


Oh and this: (comes up...)
Code:
LOG: Fri Apr 24 05:16:13 2009: Could not open pid-file C:\Program Files (x86)\GameCreate\teamspeak\port1234567.pid


And there still wrong settings in the Database for MOTD, Admin, Port and so... (Directly copyed from the DBS file!)
Watch here:
Code:
TeamSpeak Server [Welcome to TeamSpeak, check www.goteamspeak.com] 16 8767
Back to top
View user's profile Send private message
Kybber



PostPosted: Fri Apr 24, 2009 10:22 pm    Post subject: Reply with quote

Polarwolf wrote:
I found out:
Whatever you enter into the webinterface for your server... it wont happen.

If you create a DBS file when running the TS the first time, it wont set / write down the correct: Welcome Message, Servername, MaxPlayers and Adminpassword. Just everything is default. Any suggestions?

So what you are essentially saying is that TS2 doesn't work as it is supposed
to, right? Then it's not a GC problem, and I again encourage you to post
questions to the TS website where people have more knowledge about TS Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic All times are GMT + 10 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum powered by phpBB © 2001, 2005 phpBB Group
GameCreate Service Terms | Privacy Policy | © Copyright Mammoth Media 2001-2007
GameCreate™ is a trademark of Mammoth Media Pty Ltd. GameCreate® is a registered trademark in Australia.