1

Topic: Server help

Its me once again... Ive went throught all the docs, unfortunatly im french and not that great with configs.. The doc itself does tell how to do a server, but for a "noob" like me, I dont get it at all !

"To start the server you must specify a config for it to load. This is done by adding the flag "-f" to the server start command, like this:

teeworlds_srv -f serverconfig.cfg"

If you have enough patience to help me, go ahead and reply smile

2

Re: Server help

1. create a shortcut of the teeworlds_sv.exe file in the same folder or anywhere you want
2. right click on that shortcut open properties window
3. in the target field after ...\teeworlds_srv.exe add: -f serverconfig.cfg

the result should look like  ...\teeworlds_srv.exe -f serverconfig.cfg

4. press ok
5. start the server from the shortcut

That should do it

note: you have to have tha serverconfig.cfg in the same folder u have the teeworlds_sv.exe file

3

Re: Server help

Thanks for the reply, "1. create a shortcut of the teeworlds_sv.exe file in the same folder or anywhere you want"
By this I guess you meant teeworlds.SRV, I did the shortcut and added -f serverconfig.cfg, but for some reason it wont work, says it's not valid, I do have my cfg file named serverconfig in the same folder, in it theres setting value/setting2 value2, I don't know if it's right, if not correct me

4

Re: Server help

Another way to do it is to start cmd, use the command "cd" to get to you teeworlds-folder (ie. cd c:\games\teeworlds) and then start the server from there with "teeworlds_srv -f serverconfig.cfg".

Used to be very active waay back

5

Re: Server help

what do you mean with "setting value/setting2 value2"?
could you copy your serverconfig.cfg and show it to us?

6

Re: Server help

FireArrow wrote:

Another way to do it is to start cmd, use the command "cd" to get to you teeworlds-folder (ie. cd c:\games\teeworlds) and then start the server from there with "teeworlds_srv -f serverconfig.cfg".

Yes that's another way but that would be annoying start cmd everytime u wanna host, no?

On the other hand, I think I was totally lost with the serverconfig file, and that "setting value/setting2 value2" is all it haves inside lol....

Heres exactly what is typed in my shortcut target, "D:\Program Files\TeeWorlds\teeworlds_srv.exe -f serverconfig.cfg"

All the files are in the correct folder, keep saying its invalid

7

Re: Server help

Also, a friend is trying to figure out also whats the problem, he did the same thing as i did... and it works for him...

8

Re: Server help

the "" should include only the filename, not the flag.
another thing you could try is give the absolute path for the .cfg file, too, as you did for the exe
so the target would be:
"D:\Program Files\TeeWorlds\teeworlds_srv.exe" -f "D:\Program Files\TeeWorlds\serverconfig.cfg"

9 (edited by Knetog 2009-01-10 20:18:33)

Re: Server help

the "" should include only the filename, not the flag.
I dont know what this means but even when i remove the " adds it when I look back the target
I tried adding "D:\Program Files\TeeWorlds\teeworlds_srv.exe" -f "D:\Program Files\TeeWorlds\serverconfig.cfg"
, didnt worked, tried back and for some reason it worked... When I open the shortcut, window pop up and shot down right after, is it normal?

10

Re: Server help

I updated my serverconfig , adding multiple command for CTF, all i need to work is the shortcut...

11

Re: Server help

I'll guide you through this.
Create a file called "server.cfg" in the Teeworlds-directory. Make sure it ends on .cfg, not .cfg.txt. To check this, do the steps on http://www.fileinfo.net/help/windows-sh … sions.html (Windows XP) or http://malektips.com/windows-vista-show … sions.html (Windows Vista).
Now, enter your settings in this file, by opening it with a text editor such as notepad.

Create a shortcut to "teeworlds_srv.exe" in the same directory.
Right-click the shortcut and choose preferences. Add " -f server.cfg" to the shortcut address and then press Ok.

Now use the shortcut to start your server.
GLHF.

12

Re: Server help

Somerunce wrote:

I'll guide you through this.
Create a file called "server.cfg" in the Teeworlds-directory. Make sure it ends on .cfg, not .cfg.txt. To check this, do the steps on http://www.fileinfo.net/help/windows-sh … sions.html (Windows XP) or http://malektips.com/windows-vista-show … sions.html (Windows Vista).
Now, enter your settings in this file, by opening it with a text editor such as notepad.

Create a shortcut to "teeworlds_srv.exe" in the same directory.
Right-click the shortcut and choose preferences. Add " -f server.cfg" to the shortcut address and then press Ok.

Now use the shortcut to start your server.
GLHF.

Thanks for trying to help out, but ive already tried those, as previous post stated, I still need to figure out why is the shortcut window is opening and closing immediatly sad

13

Re: Server help

I found out something... When typing "D:\Program Files\TeeWorlds\teeworlds_srv.exe" -f "D:\Program Files\TeeWorlds\serverconfig.cfg"
which Xara told me to, it worked but windows open and close right after. I tried back the normal way, "teeworlds_srv -f serverconfig.cfg", it didnt worked, I tried adding a " after teeworlds_srv and it works, but again windows open and close right after... Can anyone help out??

14 (edited by GSGDani 2009-01-11 00:31:47)

Re: Server help

hi Knetog,

this is really easy to do

wrong !! "D:\Program Files\TeeWorlds\teeworlds_srv.exe" -f "D:\Program Files\TeeWorlds\serverconfig.cfg"
omg no.. ""teeworlds_srv -f serverconfig.cfg"" means that this: teeworlds_srv -f serverconfig.cfg is one file!

right: "D:\Program Files\TeeWorlds\teeworlds_srv.exe" -f serverconfig.cfg
-> -f serverconfig.cfg because the serverconfig.cfg is in the same folder like the server wink
hope it helps

*edit*
dont forget :
working folder: "D:\Program Files\TeeWorlds\"

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

15

Re: Server help

Changed it with exactly what you typed "D:\Program Files\TeeWorlds\teeworlds_srv.exe" -f serverconfig.cfg I can click OK but then it still open and close right after sad

16

Re: Server help

whoooooooop ..  post your config file pls

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

17 (edited by Knetog 2009-01-11 00:50:44)

Re: Server help

cl_predict 1
cl_nameplates 1
cl_nameplates_always 1
cl_autoswitch_weapons 1
cl_showfps 1
cl_airjumpindicator 1
cl_threadsoundloading 0
cl_warning_tuning 1
cl_prompt_teambalance 0
cl_mouse_deadzone 300
cl_mouse_followfactor 60
cl_mouse_max_distance 1000
ed_showkeys 0
cl_flow 0
cl_show_welcome 0
cl_motd_time 10
cl_version_server version.teeworlds.com
player_use_custom_color 1
player_color_body 0
player_color_feet 16737280
player_skin default
dbg_dummies 0
dbg_firedelay 0
dbg_flow 0
dbg_tuning 0
ui_page 4
ui_server_address 83.222.183.101
ui_scale 100
ui_color_hue 160
ui_color_sat 70
ui_color_lht 175
ui_color_alpha 228
sv_warmup 10
sv_motd
sv_teamdamage 1
sv_maprotation
sv_rounds_per_map 1
sv_powerups 1
sv_scorelimit 700
sv_timelimit 0
sv_max_clients 12
sv_register 1
sv_rcon_password
sv_gametype ctf
sv_tournament_mode 0
sv_spamprotection 1
sv_spectator_slots 0
sv_teambalance_time 1
player_name 5370
clan_name
password
logfile
cl_cpu_throttle 0
cl_editor 0
b_filter_string
b_filter_full 0
b_filter_empty 0
b_filter_pw 1
b_filter_ping 999
b_filter_gametype ctf
b_filter_compatversion 1
b_sort 1
b_sort_order 0
b_max_requests 10
snd_rate 48000

18

Re: Server help

this is your teeworlds config? .. then forget -f serverconfig.cfg .. start the server .. it will load the default tw config smile
btw sv_map is missing smile

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

19

Re: Server help

Forget the shortcut? If so I opened the teeworlds_srv.exe , loads and register correctly then what should happen?

20

Re: Server help

but without tw config you won't be able to control your server...

In the cmd enter the following:

cd D:\Program Files\TeeWorlds\

so it will change the directory you are in.
then enter this:

teeworlds_sv -f serverconfig.cfg

this way you don't need to enter the whole path of the files

21

Re: Server help

I guess that the port already is used or something like that. Check it up. If the server doesn't print anything more after registering and such, it works perfectly.

22

Re: Server help

Here exactly what it says when opening the real teeworlds_srv.exe http://img147.imageshack.us/img147/4368/commandre6.png
I tried what u said K3nnY, after typing teeworlds_sv -f serverconfig.cfg it says "teeworlds_sv -f serverconfig.cfg is not recognized as an internal or external, an executable file commands."

23

Re: Server help

... it's "teeworlds_srv", not "teeworlds_sv"

bam: WARNING:'src/game/server/gamemodes/mod.cpp' comes from the future

24

Re: Server help

*teeworlds_srv.exe

Used to be very active waay back

25

Re: Server help

I knew someone would of type back about it, i did tried with _srv, doesnt do much difference sad