kf2 template help



  • I've been trying to create a working KF2 template to use but I'm running into a few snags. So far I'm able to launch a server instance with it and the command line looks like its working with the exception of the map for some reason. Which I'm able to change using the web admin anyway. My problem comes in with stopping the server. I can't seem to figure out why pufferpanel can't kill the running server.

    {
      "pufferd": {
        "type": "srcds",
    	"display": "Killing Floor 2",
         "install": {
          "commands": [
            {
              "files": "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz",
              "type": "download"
            },
            {
              "commands": [
                "mkdir steamcmd",
    	    "tar --no-same-owner -xzvf steamcmd_linux.tar.gz -C steamcmd",
                "steamcmd/steamcmd.sh +login anonymous +force_install_dir ${rootdir} +app_update ${appid} +quit",
                "mkdir -p .steam/sdk32",
                "cp steamcmd/linux32/steamclient.so .steam/sdk32/steamclient.so"
              ],
               "type": "command"
            }
          ]
        },
        "run": {
          "stop": "kill",
          "pre": [],
    	  "post": [],
          "arguments": [
            "?${map}?Port=${port}?QueryPort=${queryport}?WebAdminPort=${webport}?Game=${gametype}?Difficulty=${difficulty}?Multihome=${ip}"
          ],
          "program": "./Binaries/Win64/KFGameSteamServer.bin.x86_64"
        },
        "environment": {
          "type": "tty"
        },
        "data": {
          "appid": {
            "value": "232130",
            "required": true,
            "desc": "App ID",
            "display": "Application ID",
            "internal": false,
            "type": "integer"
          },
    		"map": {
            "value": "KF-DieSector",
            "required": true,
            "desc": "You put in the map you want",
            "display": "Map"
          },
          "gametype": {
            "value": "KFGameContent.KFGameInfo_Survival",
            "required": true,
            "desc": "KFGameContent.KFGameInfo_[WeeklySurvival, Survival, VersusSurvival, Endless]",
            "display": "Game Type"
          },
          "ip": {
            "value": "0.0.0.0",
            "required": true,
            "desc": "What IP to bind the server to",
            "display": "IP",
            "internal": false
          },
          "port": {
            "value": "7707",
            "required": true,
            "desc": "What port to bind the server to",
            "display": "Port",
            "internal": false,
            "type": "integer"
    	  },
          "queryport": {
            "value": "7708",
            "required": true,
            "desc": "What query port to bind the server to",
            "display": "Query Port",
            "internal": false,
            "type": "integer"
    	  },
          "webport": {
            "value": "7709",
            "required": false,
            "desc": "What web port to bind the server to",
            "display": "Web Port",
            "internal": false,
            "type": "integer"
    	  },
          "difficulty": {
            "value": "3",
            "required": true,
            "desc": "0=Normal 1=Hard 2=Suicidal 3=HoE",
            "display": "Game difficulty for KF2 server",
            "internal": false,
            "type": "integer"
          }
        }
      }
    }
    


  • The killing floor 2 server console doesn't have a functioning "kill" command. You can verify this by trying "quit" or "kill" in the console where the server is running, none of them have any effect. Is it possible to send a button press with a puffer template? Instead of sending "kill" it could somehow send "control+c".



  • @holo-sama said in kf2 template help:

    "?${map}?Port=${port}?QueryPort=${queryport}?WebAdminPort=${webport}?Game=${gametype}?Difficulty=${difficulty}?Multihome=${ip}"

    Change this to

    "${map}?Port=${port}?QueryPort=${queryport}?WebAdminPort=${webport}?Game=${gametype}?Difficulty=${difficulty}?Multihome=${ip}"

    All I did was remove the first "?". With the "?" in place, the game was unable to load the default map properly and got stuck in "KFMainMenu". Still unsure of how to kill the server instance, hopefully someone else can chime in.



  • The killing is not something we support aside from console, and at least one other program that someone has made a template for needs a similar thing.

    The only real option we have is using kill sadly. I'll look into adding stopping with kill codes in a future version.


 

3
Online

813
Users

838
Topics

3.5k
Posts