Tripwire Interactive Forums

Go Back   Tripwire Interactive Forums > Killing Floor Forums > Technical Support > Dedicated Server Support

Reply
Click here to go to the first Dev post in this thread.  
Thread Tools Display Modes
  #41  
Old 05-15-2009, 05:15 PM
Zekerage Zekerage is offline
Junior Member
 
Join Date: May 2009
Posts: 10
Default

Hey, thanks for all the information, however, i've run into some trouble. I did each of the steps, step by step, and got a server up, but it seems that no one can see my game. There was not a kf_server_launch.bat in either the system folder, or the folder i was going to use for the Server info, so i made one in Both. Neither of them do anything. Both of the commands are:

ucc server KF-BioticsLab.rom?game=KFmod.KFGameType?VACSecured=tr ue?MaxPlayers=6

I CAN get start a dedicated server from within the game, but once again, no one can see it. besides the people who are on my Lan. I've fowarded all the ports, I've made the Server folder, I've copied everything from the HLServer folder INto said folder. I've also tried just making a "Listening" server, to see if anyone could see it, but once again, only the people on my Lan could.

I don't know if I'm missing something, or i did something incorrectly. I've joined a few games with the Server's Creators in them and asked how they did it, and some of them just told me that they Fowarded their ports and made a listening server, and Ta da!

Anyway, any feedback or help would be much appreciated. Thanks.
Reply With Quote
  #42  
Old 05-15-2009, 05:51 PM
arramus's Avatar
arramus arramus is offline
Senior Member
 
Join Date: May 2009
Location: Residing in Japan
Posts: 1,140
Default

A link to a LINUX tutorial will be great and I can add it to the first post area.
Can you check your link address again please as it's taking me to a dead link?
__________________
Killing Floor Vehicle Mod at moddb
Reply With Quote
  #43  
Old 05-15-2009, 06:57 PM
Sekra Sekra is offline
Member
 
Join Date: May 2009
Location: Kuopio, Finland, Europe
Posts: 57
Default

ah yes.. copy-paste fail on the link.. it is working now

I put a link to your thread on my tutorial too, I hope that is ok also?

Last edited by Sekra; 05-15-2009 at 07:03 PM.
Reply With Quote
  #44  
Old 05-16-2009, 03:00 AM
MosesRaged's Avatar
MosesRaged MosesRaged is offline
Junior Member
 
Join Date: May 2009
Posts: 9
Default

When i try to open up the port "20560 UDP/IP (Steam Port) " I get invailed. I tried almost everything double checking that i got the numbers , ect. correct.

Any idea?
Reply With Quote
  #45  
Old 05-16-2009, 03:14 AM
arramus's Avatar
arramus arramus is offline
Senior Member
 
Join Date: May 2009
Location: Residing in Japan
Posts: 1,140
Default

Quote:
Originally Posted by Sekra View Post
ah yes.. copy-paste fail on the link.. it is working now

I put a link to your thread on my tutorial too, I hope that is ok also?
thx. Added to the top.
__________________
Killing Floor Vehicle Mod at moddb
Reply With Quote
  #46  
Old 05-16-2009, 03:19 AM
arramus's Avatar
arramus arramus is offline
Senior Member
 
Join Date: May 2009
Location: Residing in Japan
Posts: 1,140
Default

Quote:
Originally Posted by Chameleon View Post
Can anyone explain how you set up multiple Dedicated Servers (Windows) on the same IP? I mean, I know I have to use a different port for each one, but how/where do I implement that?

Some pointers would be appreciated! Thanks!
You can change the port for each one in the KillingFloor.ini

At the very top section of the .ini under [URL] you can change the port from default 7707 to say 7710. Remember to also open this port and as per the tutorial open the requisite other ports to match the +3 increase.

So the Master Server Port (28852) and the Steam Port (20560) would need to be changed to 28855 and 20563 respectively.
__________________
Killing Floor Vehicle Mod at moddb
Reply With Quote
  #47  
Old 05-16-2009, 03:33 AM
arramus's Avatar
arramus arramus is offline
Senior Member
 
Join Date: May 2009
Location: Residing in Japan
Posts: 1,140
Default

Quote:
Originally Posted by Zekerage View Post
Hey, thanks for all the information, however, i've run into some trouble. I did each of the steps, step by step, and got a server up, but it seems that no one can see my game. There was not a kf_server_launch.bat in either the system folder, or the folder i was going to use for the Server info, so i made one in Both. Neither of them do anything. Both of the commands are:

ucc server KF-BioticsLab.rom?game=KFmod.KFGameType?VACSecured=tr ue?MaxPlayers=6

I CAN get start a dedicated server from within the game, but once again, no one can see it. besides the people who are on my Lan. I've fowarded all the ports, I've made the Server folder, I've copied everything from the HLServer folder INto said folder. I've also tried just making a "Listening" server, to see if anyone could see it, but once again, only the people on my Lan could.

I don't know if I'm missing something, or i did something incorrectly. I've joined a few games with the Server's Creators in them and asked how they did it, and some of them just told me that they Fowarded their ports and made a listening server, and Ta da!

Anyway, any feedback or help would be much appreciated. Thanks.
After applying the recent server patch does this issue still persist? The patch is supposed to address this issue.
__________________
Killing Floor Vehicle Mod at moddb
Reply With Quote
  #48  
Old 05-16-2009, 05:33 AM
Zekerage Zekerage is offline
Junior Member
 
Join Date: May 2009
Posts: 10
Default

Unfortunatly, Yes. Ports are still fowarded, i ran the HLdsupdate.bat again, rechecked everything in the .ini, Tried changing the BehindNat=False to True, and Nothing. If it matters, the 2 Kf_Server_Launch.Bat's still don't do anything. I still have to go into the game and start a dedicated server that way in order for me to put one up. Am i supposed to be putting the Server Folder (Where the Dedicated server information is going to be stored) In a specific place? I just made a new folder on the desktop. that could be my problem, but i don't remember the location being specified. Thanks for the response Arramus. Any more help and/or suggestions will be appreciated.
Reply With Quote
  #49  
Old 05-16-2009, 06:02 AM
im19208 im19208 is offline
Junior Member
 
Join Date: May 2009
Posts: 5
Default

Same problem here, i made the tutorial and get a server, but just for lan I tried everything with my firewall/router but nothing.... well i am ultra noob on this things but... i supose that my server ip is my public ip, isnt it? And its the same with listen servers.
Reply With Quote
  #50  
Old 05-16-2009, 06:31 AM
arramus's Avatar
arramus arramus is offline
Senior Member
 
Join Date: May 2009
Location: Residing in Japan
Posts: 1,140
Default

I suggest you both start again afresh. Make sure you add the server files to a main folder in your main drive just as in the tut.

Check that the KillingFloor.ini has the port number 7707 listed in the top section as this post presented it as errornously being added as 7757 in a previous build. It may have been resolved in recent patches.

Once your server is launched give me your Public IP addresses so I can attempt to join.
__________________
Killing Floor Vehicle Mod at moddb

Last edited by arramus; 05-16-2009 at 06:32 AM.
Reply With Quote
  #51  
Old 05-16-2009, 06:44 AM
im19208 im19208 is offline
Junior Member
 
Join Date: May 2009
Posts: 5
Default

Hi, this is my public ip:


PD: thank you very much for testing it arramus

PD2: edit for deleting my ip

Last edited by im19208; 05-16-2009 at 07:34 AM.
Reply With Quote
  #52  
Old 05-16-2009, 07:09 AM
arramus's Avatar
arramus arramus is offline
Senior Member
 
Join Date: May 2009
Location: Residing in Japan
Posts: 1,140
Default

As you saw im19208, I could join your server directly via IP and I could also add your server to my Favourites list and it appeared with the name 'richos'.

At the moment I'm unable to see your server in the main server browser window or in the Steam server list although based on the various numbers they're returning. KF = 650 ~ 850 depending on mood | Steam = 733 I'd say there are still issues that may be beyond your control.
__________________
Killing Floor Vehicle Mod at moddb
Reply With Quote
  #53  
Old 05-16-2009, 07:19 AM
Sekra Sekra is offline
Member
 
Join Date: May 2009
Location: Kuopio, Finland, Europe
Posts: 57
Default

Of course the server will show up in your own game browser as LAN game as it is propably under the same NAT as the computer you are playing from or maybe it is running in the same computer? The only thing is that can others join your server? If they can there is no problem.
Reply With Quote
  #54  
Old 05-16-2009, 07:33 AM
im19208 im19208 is offline
Junior Member
 
Join Date: May 2009
Posts: 5
Default

Yes, in my computer is on lan games, but works good for others via ip, now i tried with a guy from my country with 100 ping more or less, so great!!

Thanks!!

Last edited by im19208; 05-16-2009 at 07:35 AM.
Reply With Quote
  #55  
Old 05-16-2009, 08:25 AM
Dragonshadow Dragonshadow is offline
Member
 
Join Date: May 2009
Posts: 99
Default

http://forums.tripwireinteractive.co...ad.php?t=31136

I want my dedi to work -.-

Quote:
Originally Posted by nub
halp pl0x


Edit: Nevermind! Zetsumei helped me fix it
__________________

Last edited by Dragonshadow; 05-16-2009 at 08:36 AM.
Reply With Quote
  #56  
Old 05-16-2009, 08:59 AM
arramus's Avatar
arramus arramus is offline
Senior Member
 
Join Date: May 2009
Location: Residing in Japan
Posts: 1,140
Default

Good man Zetsumei.
__________________
Killing Floor Vehicle Mod at moddb
Reply With Quote
  #57  
Old 05-16-2009, 10:49 AM
Ralfst3r's Avatar
Ralfst3r Ralfst3r is offline
Credit To Team
 
Join Date: Nov 2005
Location: The Netherlands
Posts: 3,032
Default

Best tut ever. Pin it up.
__________________
Reply With Quote
  #58  
Old 05-16-2009, 11:23 AM
GivinPain GivinPain is offline
Junior Member
 
Join Date: May 2009
Posts: 23
Default

Quote:
Originally Posted by Zekerage View Post
Unfortunatly, Yes. Ports are still fowarded, i ran the HLdsupdate.bat again, rechecked everything in the .ini, Tried changing the BehindNat=False to True, and Nothing. If it matters, the 2 Kf_Server_Launch.Bat's still don't do anything. I still have to go into the game and start a dedicated server that way in order for me to put one up. Am i supposed to be putting the Server Folder (Where the Dedicated server information is going to be stored) In a specific place? I just made a new folder on the desktop. that could be my problem, but i don't remember the location being specified. Thanks for the response Arramus. Any more help and/or suggestions will be appreciated.
I finally noticed that my port forward in my router was not forwarding both tcp and udp for port 28852. Once I corrected that, my server showed up in the list immediately. Check your router just to be sure.
Reply With Quote
  Click here to go to the next developer post in this thread.   #59  
Old 05-16-2009, 11:35 AM
Yoshiro's Avatar
Yoshiro Yoshiro is offline
In Soviet Russia, Yoshiro is a cake
 
Join Date: Oct 2005
Posts: 8,724
Default

Stuck for great justice.
__________________

Pretty, what do we blow up first? - Myn Donos
Reply With Quote
  #60  
Old 05-16-2009, 11:52 AM
Terrorkarotte Terrorkarotte is offline
Member
 
Join Date: May 2009
Posts: 31
Default

Edit to admins: Sry I got the wrong thread thought this one was to both Linux and Windows. But i guess some things like -nohomedir ini=KillingFloor.ini log=server1.log also are needed with windows

------From here on original Post---------


First of all i would like to thank you for your work. Your tutorial helped me a lot setting up my server. By doing this I encountered some problems and found solutions everybody is asking here in the forum.
But first this link: http://wiki.fragaholics.de/index.cod...l_Optimization

It should help you running your linux gameserver more stable. For beginners i would not use a 1000Hz Kernel. The importand things are the realtime,the to your hardware fitted kernel, and mostly importand the rescheduler and idler scipts. If you dont want a kernel try out the scheduler and the idler. Using Source Server (CS:S DOD:S etc) it helped me a lot.

You have to use another reschulder
Code:
#!/bin/sh

PIDS=`ps ax | grep sirq-hrtimer | grep -v grep | sed -e "s/^ *//" -e "s/ .*$//"`
for p in $PIDS; do
  chrt -f -p 99 $p
done

PIDS=`ps ax | grep sirq-timer | grep -v grep | sed -e "s/^ *//" -e "s/ .*$//"`
for p in $PIDS; do
 chrt -f -p 51 $p
done

PIDS=`pidof ucc-bin-real`
for p in $PIDS; do
  chrt -f -p 98 $p
done
Now to the Killing Floor Part:
Everybody is telling, that they can not find die KillingFloor.ini or and it is not created.
It is created. But everyone is looking in the wrong place. Enter your home directory and type:
Code:
ls -la
you will see something like this:
Code:
.killingfloor
kfserver
.killingfloor is a hidden directory with the subfolder System in it, in which you can find your KillingFloor.ini
This happens because the existing HowTo´s forgot one important start parameter:
Code:
-nohomedir
Not adding it will result in the game creating the hidden folder. A pain in the *** when you want to run more than one server. So start it with this parameter! In addition you will need these two parameters:
Code:
ini=KillingFloor.ini log=server1.log
They will tell the game to make a log and to use the specified .ini file.
Both will be created in the system folder
I want to have order. so i created in the kfserver directory the folder "log"
Code:
cd kfserver
mkdir log
I like to start, stop and restart my server witrh scripts. So I altered an old hlds start script to my needs. With this script I can start the server by typing
Code:
./kfserver start|stop|restart
Here is the complete script:

Code:
#!/bin/sh
#clear
# An old hlds startscript found somewhere in the net changed by
# Terrorkarotte
# contact: ulblock@gmx.de
# to match a killing floor server
# Edit and uncomment it to your needs

KF_USER="yourusername"

PATH=/bin:/usr/bin:/sbin:/usr/sbin

# DON'T FORGET TO CHANGE THE PATHS TO YOUR NEEDS!

DIR=/path/to/kfserver/system

# you need to create the folder log first!
# If you do not no log will be written !

LOG=/path/to/kfserver/log

DAEMON=$DIR/ucc-bin

PARAMS="server KF-BioticsLab.rom?game=KFmod.KFGameType?VACSecured=true?MaxPlayers=6?AdminName=ADMIN?AdminPassword=PASSWORD -nohomedir ini=KillingFloor.ini log=$LOG/server1.log"

NAME=killingfloor
DESC="killingfloor"

case "$1" in
 start)
   echo "Starting $DESC: $NAME"
   if [ -e $DIR ];
   then
    cd $DIR
    screen -d -m -S $NAME $DAEMON $PARAMS
   else echo "No such directory: $DIR!"
   fi
   ;;

 stop)
   if [[ `screen -ls |grep $NAME` ]]
   then
       echo -n "Stopping $DESC: $NAME"
       kill `screen -ls |grep $NAME |awk -F . '{print $1}'|awk '{print $1}'`
       echo " ... done."
   else
       echo "Coulnd't find a running $DESC"
   fi
   ;;

 restart)
   if [[ `screen -ls |grep $NAME` ]]
   then
       echo -n "Stopping $DESC: $NAME"
       kill `screen -ls |grep $NAME |awk -F . '{print $1}'|awk '{print $1}'`
       echo " ... done."
   else
       echo "Coulnd't find a running $DESC"
   fi
  
   echo -n "Starting $DESC: $NAME"
   cd $DIR
   screen -d -m -S $NAME $DAEMON $PARAMS
   echo " ... done."
   ;;
 
 *)
   echo "Usage: $0 {start|stop|restart}"
   exit 1
   ;;
esac

exit 0
Change the folders to your needs set the chmod and you are ready to go.
Starting with this script will result in a KillingFloor.ini created in the system folder and a server1.log in the log folder. If you have created it. If you did not no log will be written.

If you change the KillingFloor.ini now the changes take affekt now

If you want to run a second server you have to copy the start script:
Code:
cp kfserver kfserver2
and change the log and .ini name to server2.log and KillingFloor2.ini for example in the startscript.
Of course you have to change
Code:
NAME=killingfloor
DESC="killingfloor"
in
Code:
NAME=2killingfloor
DESC="2killingfloor"
If you ad the 2 at the end the script won´t work properly if you want to restart or stop the server. Both scripts will shutdown both servers at once
After you made the changes start the second server and the files will be created. Edit the Ports used in the KillingFloor2.ini restart the server and you have the second server running at the specified ports.

The startscript: http://download.ostwestfront.de/karotte/kfserver

Update:

I forgot my update script, which i use to update my servers:
Code:
#!/bin/sh
#clear
/home/username/kfserver/steam -command update -game killingfloor -dir /home/username/kfserver -verify_all -retry &&
/home/username/
If you have more than one server and use a second installation you can update both by addning a second line to the script:

Code:
#!/bin/sh
#clear
/home/username/kfserver/steam -command update -game killingfloor -dir /home/username/kfserver -verify_all -retry &&
/home/username/kfserver restart &&
/home/username/kfserver2/steam -command update -game killingfloor -dir /home/username/kfserver2 -verify_all -retry &&
/home/username/kfserver2 restart
The script updates the server(s) and restarts it/them, if you use my restart script if you enter:
Code:
./kfupdate
I am used to run updates with cron in the night, when nobody ist playing. Open a new crontab:
Code:
crontab -e
and add this line:
Code:
0    5     *     *     * /home/username/kfupdate
It will run the updatescript at 5 am in the morning when nobody plays and if you added the restart line also will restart the updated server

Here is the update script: http://download.ostwestfront.de/karotte/kfupdate

Last edited by Terrorkarotte; 05-17-2009 at 07:01 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:57 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2005 - 2013, Tripwire Interactive, LLC