1

Topic: Bind Teeworlds in Webinterface

Hello,

I have different questions. I hope you understand all. My English is not the best


I have 2 Rootservers and want to make Teeworlds Servers for friends.

Can I make the Startscript so that I can write in maxplayers 10 and put in an fix port and IP ?

Or can we only make this in the server.cfg ?

Hope you know what I mean.

The Webinterface what we use is teklab

2

Re: Bind Teeworlds in Webinterface

http://www.teeworlds.com/forum/viewtopic.php?id=1018 check this for windows!

3

Re: Bind Teeworlds in Webinterface

Hi, why Windows ?

Its Linux....

And the Question was:

Can I make the Startcript so, that I can write in there the Server IP and Maxplayers instead of the server.cfg

4

Re: Bind Teeworlds in Webinterface

u can write a startup script but u need a config, too wink
why do u want no config? oO

uptee - a simple web interface for hosting and maintaining teeworlds servers
teerace - a website gathering results of trusted Race-mod servers providing global ranking and statistics
*gV* rox ^^

5

Re: Bind Teeworlds in Webinterface

make a start script like this:

teeworlds_srv -f tdm.cfg &
teeworlds_srv -f tm.cfg &

and so on..
"&" is needed to start more than one server with one script smile

just create the configs.. and try it

Remember me? Questions? Just leave a message, I will respond within 72 hrs!

6

Re: Bind Teeworlds in Webinterface

Hmmm, I think you dont understand me sad

I want to start the Server like an (for example) CSS Server where I can make maxplayers and so on in the startsript and not in the server.cfg

7 (edited by Sushi Tee 2009-03-16 14:16:17)

Re: Bind Teeworlds in Webinterface

where is the problem to use a config? oO
just create a script which uses the config? is it a problem to you to have more than one file? lol lol

uptee - a simple web interface for hosting and maintaining teeworlds servers
teerace - a website gathering results of trusted Race-mod servers providing global ranking and statistics
*gV* rox ^^

8

Re: Bind Teeworlds in Webinterface

The Problem is, that I dont want, that everybody can change Port and Maxplayers. You understand ?

9

Re: Bind Teeworlds in Webinterface

I'm not sure I understand your situation, but if you're afraid ppl are gonna change your settings you could just remove rcon password from the ctf and set the .cfg as read-only.

And if I understand your question correctly, you wanna be able to start like "-maxplayers 10 -timelimit 2" etc?

The proposition "I am the center" need never be uttered. It is the assumption upon which all certainty and all doubt turns.

10 (edited by Roen 2009-03-20 23:57:56)

Re: Bind Teeworlds in Webinterface

I think I see what he wants to do.  He wants to have a web form that allows people to start a new server to their specifications.  It's a very cool idea.

I think that you'd have to use php to accept the form output and create the flatfile and then use a shell command to load the server with the -f [randomly created filename].cfg.  That is how I would do it as the most documentation supports the configuration file.  The Teeworlds server doesn't seem to support command-line entered options except for -f (but I'm not certain).

Make sure that you put a limit on how many servers users can make, and / or require authenticated users on your site be the only ones who can make a server.  A way for the creator to shut down and reconfigure their own server would be good too.

I'm an instant addict of Teeworlds. I'm currently hosting "Brad's House of Pain (bHOP)," a New England based server.

11

Re: Bind Teeworlds in Webinterface

ah i think now i understand... the webuser can set their own server in web? And u want to start the server only with some settings and some should be untouched!
I would say wirte a config with all standart informations e.g. port and max players and so on and than do it that way that the settings from the user will be written into that config to host. It sounds maybe confusing but if u really mean it that way i can specify my idea a bit more ^^

it seems quite similar to roen's idea in some points

uptee - a simple web interface for hosting and maintaining teeworlds servers
teerace - a website gathering results of trusted Race-mod servers providing global ranking and statistics
*gV* rox ^^