Killing Floor Guide

Auto Event Update v2.0 | Killing Floor (ENG|GER) for Killing Floor

Auto Event Update v2.0 | Killing Floor (ENG|GER)

Overview

How to automatically update the Killing Floor Event creating a Batch that compensates the beginning/ending of an event with your Windowsdate. So you can get the Summersideshow / Hillbilly Horrors / Twisted Christmas Events without changing your killingfloor.ini everytime manually. (no knowledge required)Wie man die Events bei Killing Floor automatisch ändert, indem man eine Batch-Datei erstellt die den Beginn/das Ende eines Events mit dem Windowsdatum abgleicht. Damit können die Summersideshow / Hillbilly Horrors / Twisted Christmas Events geupdated werden ohne die killingfloor.ini jedesmal manuell abzuändern. (Kein Fachwissen vorausgesetzt)

English

Preparing the killingfloor.ini

!This step is possibly not necessary!
First of all you have to go into your Killing Floor System directory.
(Default path: C:ProgrammeSteam (x86)SteamAppsCommonKillingFloorSystem)
Here you can find a file called: killingfloor.ini
Open it up and search for the line called: [KFmod.KFGameType]
(for searching with the Texteditor press Ctrl + F)

Paste: SpecialEventType=ET_None
under it.

[KFmod.KFGameType] SpecialEventType=ET_None . . .

Save your .ini.

Create a .bat File and Copy Programm

Rightkilick somewhere and create a Texteditorfile.
Rename it to KillingFloorEventUpdate.bat important is to delete the .txt ending and add the .bat ending NOT like this: KillingFloorEventUpdate.bat.txt
Now you should have a file called: KillingFloorEventUpdate.bat
Open it up and copy the following Code:

@echo off & setlocal set “ini=C:ProgrammeSteam (x86)SteamAppsCommonKillingFloorSystemkillingfloor.ini” set /a x=%date:~-4%%%2 set “bak=%ini%.bak” set “Search=[KFmod.KFGameType]” set “First=SpecialEventType=ET_None” move “%ini%” “%bak%” set Line= for /f “tokens=1-2 delims=:” %%i in (‘findstr /b /n /c:”%Search%” “%bak%”‘) do set Line=%%i if not defined Line echo “%Search%” not found! & pause & goto :eof set /a Line+=1 for /f “tokens=1-2 delims=:” %%i in (‘findstr /n “^” “%bak%”‘) do ( if %%i neq %Line% (echo%%j) else (echo %First%) )>>”%ini%” del “%bak%” if “%date:~3,2%”==”07” ( for /L %%n IN (10, 1, 23) DO if “%date:~0,2%”==”%%n” ( set “New=SpecialEventType=ET_SummerSideshow” move “%ini%” “%bak%” set Line= for /f “tokens=1-2 delims=:” %%i in (‘findstr /b /n /c:”%Search%” “%bak%”‘) do set Line=%%i if not defined Line echo “%Search%” not found! & pause & goto :eof set /a Line+=1 for /f “tokens=1-2 delims=:” %%i in (‘findstr /n “^” “%bak%”‘) do ( if %%i neq %Line% (echo%%j) else (echo %New%) )>>”%ini%” del “%bak%” )) if “%date:~3,2%”==”07” ( for /L %%n IN (3, 1, 9) DO if “%date:~1,1%”==”%%n” ( set “New=SpecialEventType=ET_SummerSideshow” move “%ini%” “%bak%” set Line= for /f “tokens=1-2 delims=:” %%i in (‘findstr /b /n /c:”%Search%” “%bak%”‘) do set Line=%%i if not defined Line echo “%Search%” not found! & pause & goto :eof set /a Line+=1 for /f “tokens=1-2 delims=:” %%i in (‘findstr /n “^” “%bak%”‘) do ( if %%i neq %Line% (echo%%j) else (echo %New%) )>>”%ini%” del “%bak%” )) if “%date:~3,2%”==”10” ( for /L %%n IN (23, 1, 31) DO if “%date:~-10,2%”==”%%n” ( set “New=SpecialEventType=ET_HillbillyHorror” move “%ini%” “%bak%” set Line= for /f “tokens=1-2 delims=:” %%i in (‘findstr /b /n /c:”%Search%” “%bak%”‘) do set Line=%%i if not defined Line echo “%Search%” not found! & pause & goto :eof set /a Line+=1 for /f “tokens=1-2 delims=:” %%i in (‘findstr /n “^” “%bak%”‘) do ( if %%i neq %Line% (echo%%j) else (echo %New%) )>>”%ini%” del “%bak%” )) if “%date:~3,2%”==”11” ( for /L %%n IN (1, 1, 6) DO if “%date:~1,1%”==”%%n” ( set “New=SpecialEventType=ET_HillbillyHorror” move “%ini%” “%bak%” set Line= for /f “tokens=1-2 delims=:” %%i in (‘findstr /b /n /c:”%Search%” “%bak%”‘) do set Line=%%i if not defined Line echo “%Search%” not found! & pause & goto :eof set /a Line+=1 for /f “tokens=1-2 delims=:” %%i in (‘findstr /n “^” “%bak%”‘) do ( if %%i neq %Line% (echo%%j) else (echo %New%) )>>”%ini%” del “%bak%” )) if “%x%”==”0” ( if “%date:~3,2%”==”12” ( for /L %%n IN (14, 1, 31) DO if “%date:~0,2%”==”%%n” ( set “New=SpecialEventType=ET_TwistedChristmas” move “%ini%” “%bak%” set Line= for /f “tokens=1-2 delims=:” %%i in (‘findstr /b /n /c:”%Search%” “%bak%”‘) do set Line=%%i if not defined Line echo “%Search%” not found! & pause & goto :eof set /a Line+=1 for /f “tokens=1-2 delims=:” %%i in (‘findstr /n “^” “%bak%”‘) do ( if %%i neq %Line% (echo%%j) else (echo %New%) )>>”%ini%” del “%bak%” )) if “%date:~3,2%”==”01” ( for /L %%n IN (1, 1, 4) DO if “%date:~1,1%”==”%%n” ( set “New=SpecialEventType=ET_TwistedChristmas” move “%ini%” “%bak%” set Line= for /f “tokens=1-2 delims=:” %%i in (‘findstr /b /n /c:”%Search%” “%bak%”‘) do set Line=%%i if not defined Line echo “%Search%” not found! & pause & goto :eof set /a Line+=1 for /f “tokens=1-2 delims=:” %%i in (‘findstr /n “^” “%bak%”‘) do ( if %%i neq %Line% (echo%%j) else (echo %New%) )>>”%ini%” del “%bak%” ))) if “%x%”==”1” ( if “%date:~3,2%”==”12” ( for /L %%n IN (10, 1, 31) DO if “%date:~0,2%”==”%%n” ( set “New=SpecialEventType=ET_TwistedChristmas” move “%ini%” “%bak%” set Line= for /f “tokens=1-2 delims=:” %%i in (‘findstr /b /n /c:”%Search%” “%bak%”‘) do set Line=%%i if not defined Line echo “%Search%” not found! & pause & goto :eof set /a Line+=1 for /f “tokens=1-2 delims=:” %%i in (‘findstr /n “^” “%bak%”‘) do ( if %%i neq %Line% (echo%%j) else (echo %New%) )>>”%ini%” del “%bak%” )) if “%date:~3,2%”==”12” ( for /L %%n IN (7, 1, 9) DO if “%date:~1,1%”==”%%n” ( set “New=SpecialEventType=ET_TwistedChristmas” move “%ini%” “%bak%” set Line= for /f “tokens=1-2 delims=:” %%i in (‘findstr /b /n /c:”%Search%” “%bak%”‘) do set Line=%%i if not defined Line echo “%Search%” not found! & pause & goto :eof set /a Line+=1 for /f “tokens=1-2 delims=:” %%i in (‘findstr /n “^” “%bak%”‘) do ( if %%i neq %Line% (echo%%j) else (echo %New%) )>>”%ini%” del “%bak%” )) if “%date:~3,2%”==”1” ( for /L %%n IN (1, 1, 4) DO if “%date:~1,1%”==”%%n” ( set “New=SpecialEventType=ET_TwistedChristmas” move “%ini%” “%bak%” set Line= for /f “tokens=1-2 delims=:” %%i in (‘findstr /b /n /c:”%Search%” “%bak%”‘) do set Line=%%i if not defined Line echo “%Search%” not found! & pause & goto :eof set /a Line+=1 for /f “tokens=1-2 delims=:” %%i in (‘findstr /n “^” “%bak%”‘) do ( if %%i neq %Line% (echo%%j) else (echo %New%) )>>”%ini%” del “%bak%” ))) exit

If your Killing Floor Dictonary isn’t C:ProgrammeSteam (x86)SteamAppsCommonKillingFloorSystemkillingfloor.ini copy your
KillingFloor Dictonary in the second line.
Beware: the path should end with Systemkillingfloor.ini and has no space before or after

@echo off set “ini=<Right here>” set /a x=%date:~-4%%%2 type %datei% | find /v “SpecialEventType=” > %datei%.temp del %datei% echo SpecialEventType=ET_None >> %datei%.temp move %datei%.temp %datei% . . .

Save your KillingFloorEventUpdate.bat

Copy the Batch-File into your Autostart directory

Last thing you have to do is to copy your KillingFloorEventUpdate.bat into your autostart dictonary from Windows. Therefor you have to press Win + R and type: shell:startup
Copy the File into the dictonary.

!Before using you maybe have to create a listen server ingame otherwise it wont work!

NOTE: The Event will updated by restarting the computer respectively during the boot process!
The Event depends on the comparison mechanism witch is comparising with the Windowsdate, so if you switch the Date and restart the Computer the Event will change either.
You can edit the Event in your .ini manually without getting trouble with the programm.
For Deinstalation just delete the KillingFloorEventUpdate.bat file.

Deutsch

Vorbereiten der killingfloor.ini

Geh als erstes in das Installationsverteichnis von Killing Floor und öffne den System Ordner.
(Der voreingestellte Pfad ist: C:ProgrammeSteam (x86)SteamAppsCommonKillingFloorSystem)
Hier ist eine Datei namens killingfloor.ini zu finden.

Öffne sie und such nach einer Zeile namens: [KFmod.KFGameType]
(um im Texteditor suchen zu können Drücke Strg + F)
Füge darunter Folgendes ein .ini und füge folgendes ein:

[KFmod.KFGameType] SpecialEventType=ET_None

ist die Zeile bereits vorhanden lass sie einfach wie sie ist.

Speichere die .ini.

Erstellen der .bat Datei und Kopieren des Programms

Erstelle eine Texteditordatei auf deinem Desktop. Benenne sie zu KillingFloorEventUpdate.bat um. Wichtig ist, dass die Dateiendung .txt entfernt wird und stattdessen .bat dahinter steht.
NICHT so: KillingFloorEventUpdate.bat.txt
Jetzt solltest du eine Datei haben die so heißt: KillingFloorEventUpdate.bat
Öffne sie mit dem Texteditor und kopiere den folgenden Code:

@echo off & setlocal set /a x=%date:~-4%%%2 set “ini=C:ProgrammeSteam (x86)SteamAppsCommonKillingFloorSystemkillingfloor.ini” set “bak=%ini%.bak” set “Search=[KFmod.KFGameType]” set “First=SpecialEventType=ET_None” move “%ini%” “%bak%” set Line= for /f “tokens=1-2 delims=:” %%i in (‘findstr /b /n /c:”%Search%” “%bak%”‘) do set Line=%%i if not defined Line echo “%Search%” not found! & pause & goto :eof set /a Line+=1 for /f “tokens=1-2 delims=:” %%i in (‘findstr /n “^” “%bak%”‘) do ( if %%i neq %Line% (echo%%j) else (echo %First%) )>>”%ini%” del “%bak%” if “%date:~3,2%”==”07” ( for /L %%n IN (10, 1, 23) DO if “%date:~0,2%”==”%%n” ( set “New=SpecialEventType=ET_SummerSideshow” move “%ini%” “%bak%” set Line= for /f “tokens=1-2 delims=:” %%i in (‘findstr /b /n /c:”%Search%” “%bak%”‘) do set Line=%%i if not defined Line echo “%Search%” not found! & pause & goto :eof set /a Line+=1 for /f “tokens=1-2 delims=:” %%i in (‘findstr /n “^” “%bak%”‘) do ( if %%i neq %Line% (echo%%j) else (echo %New%) )>>”%ini%” del “%bak%” )) if “%date:~3,2%”==”07” ( for /L %%n IN (3, 1, 9) DO if “%date:~1,1%”==”%%n” ( set “New=SpecialEventType=ET_SummerSideshow” move “%ini%” “%bak%” set Line= for /f “tokens=1-2 delims=:” %%i in (‘findstr /b /n /c:”%Search%” “%bak%”‘) do set Line=%%i if not defined Line echo “%Search%” not found! & pause & goto :eof set /a Line+=1 for /f “tokens=1-2 delims=:” %%i in (‘findstr /n “^” “%bak%”‘) do ( if %%i neq %Line% (echo%%j) else (echo %New%) )>>”%ini%” del “%bak%” )) if “%date:~3,2%”==”10” ( for /L %%n IN (23, 1, 31) DO if “%date:~-10,2%”==”%%n” ( set “New=SpecialEventType=ET_HillbillyHorror” move “%ini%” “%bak%” set Line= for /f “tokens=1-2 delims=:” %%i in (‘findstr /b /n /c:”%Search%” “%bak%”‘) do set Line=%%i if not defined Line echo “%Search%” not found! & pause & goto :eof set /a Line+=1 for /f “tokens=1-2 delims=:” %%i in (‘findstr /n “^” “%bak%”‘) do ( if %%i neq %Line% (echo%%j) else (echo %New%) )>>”%ini%” del “%bak%” )) if “%date:~3,2%”==”11” ( for /L %%n IN (1, 1, 6) DO if “%date:~1,1%”==”%%n” ( set “New=SpecialEventType=ET_HillbillyHorror” move “%ini%” “%bak%” set Line= for /f “tokens=1-2 delims=:” %%i in (‘findstr /b /n /c:”%Search%” “%bak%”‘) do set Line=%%i if not defined Line echo “%Search%” not found! & pause & goto :eof set /a Line+=1 for /f “tokens=1-2 delims=:” %%i in (‘findstr /n “^” “%bak%”‘) do ( if %%i neq %Line% (echo%%j) else (echo %New%) )>>”%ini%” del “%bak%” )) if “%x%”==”0” ( if “%date:~3,2%”==”12” ( for /L %%n IN (14, 1, 31) DO if “%date:~0,2%”==”%%n” ( set “New=SpecialEventType=ET_TwistedChristmas” move “%ini%” “%bak%” set Line= for /f “tokens=1-2 delims=:” %%i in (‘findstr /b /n /c:”%Search%” “%bak%”‘) do set Line=%%i if not defined Line echo “%Search%” not found! & pause & goto :eof set /a Line+=1 for /f “tokens=1-2 delims=:” %%i in (‘findstr /n “^” “%bak%”‘) do ( if %%i neq %Line% (echo%%j) else (echo %New%) )>>”%ini%” del “%bak%” )) if “%date:~3,2%”==”01” ( for /L %%n IN (1, 1, 4) DO if “%date:~1,1%”==”%%n” ( set “New=SpecialEventType=ET_TwistedChristmas” move “%ini%” “%bak%” set Line= for /f “tokens=1-2 delims=:” %%i in (‘findstr /b /n /c:”%Search%” “%bak%”‘) do set Line=%%i if not defined Line echo “%Search%” not found! & pause & goto :eof set /a Line+=1 for /f “tokens=1-2 delims=:” %%i in (‘findstr /n “^” “%bak%”‘) do ( if %%i neq %Line% (echo%%j) else (echo %New%) )>>”%ini%” del “%bak%” ))) if “%x%”==”1” ( if “%date:~3,2%”==”12” ( for /L %%n IN (10, 1, 31) DO if “%date:~0,2%”==”%%n” ( set “New=SpecialEventType=ET_TwistedChristmas” move “%ini%” “%bak%” set Line= for /f “tokens=1-2 delims=:” %%i in (‘findstr /b /n /c:”%Search%” “%bak%”‘) do set Line=%%i if not defined Line echo “%Search%” not found! & pause & goto :eof set /a Line+=1 for /f “tokens=1-2 delims=:” %%i in (‘findstr /n “^” “%bak%”‘) do ( if %%i neq %Line% (echo%%j) else (echo %New%) )>>”%ini%” del “%bak%” )) if “%date:~3,2%”==”12” ( for /L %%n IN (7, 1, 9) DO if “%date:~1,1%”==”%%n” ( set “New=SpecialEventType=ET_TwistedChristmas” move “%ini%” “%bak%” set Line= for /f “tokens=1-2 delims=:” %%i in (‘findstr /b /n /c:”%Search%” “%bak%”‘) do set Line=%%i if not defined Line echo “%Search%” not found! & pause & goto :eof set /a Line+=1 for /f “tokens=1-2 delims=:” %%i in (‘findstr /n “^” “%bak%”‘) do ( if %%i neq %Line% (echo%%j) else (echo %New%) )>>”%ini%” del “%bak%” )) if “%date:~3,2%”==”1” ( for /L %%n IN (1, 1, 4) DO if “%date:~1,1%”==”%%n” ( set “New=SpecialEventType=ET_TwistedChristmas” move “%ini%” “%bak%” set Line= for /f “tokens=1-2 delims=:” %%i in (‘findstr /b /n /c:”%Search%” “%bak%”‘) do set Line=%%i if not defined Line echo “%Search%” not found! & pause & goto :eof set /a Line+=1 for /f “tokens=1-2 delims=:” %%i in (‘findstr /n “^” “%bak%”‘) do ( if %%i neq %Line% (echo%%j) else (echo %New%) )>>”%ini%” del “%bak%” ))) exit

Wenn dein KillingFloor-Verzeichnis nicht C:ProgrammeSteam(x86)SteamAppsCommonKillingFloorSystemkillingfloor.ini ist kopiere den richtigen Dateifad in die zweite Zeile.
Achtung: am Ende des Pfades sollte Systemkillingfloor.ini” stehen, dahinter und vor dem Pfad kein Leerzeichen UND ” am Ende!

@echo off set “ini=<Hier Einfügen>” set /a x=%date:~-4%%%2 set “bak=%ini%.bak” set “Search=[KFmod.KFGameType]” set “First=SpecialEventType=ET_None” move “%ini%” “%bak%” set Line= . . .

Kopieren der Batch-Datei in den Autostartordner

Als letztes muss nur noch die KillingFloorEventUpdate.bat in den Windows-Autostartordner kopiert werden. Drücke hierfür Win + R und schreibe in das Fenster: shell:startup
Kopiere die Datei in den Ordner.

!Es muss (möglicherweise) zuerst im Spiel ein Listensever erstellt werden das das Event überschrieben werden kann!

NOTE: Das Event wird nur bei einem Neustart des Computers bzw. bei jeden Bootvorgang des Computers geupdated!
Das Programm arbeitet mit dem Windowsdatum, also wenn dieses geändert wird und der PC neu gestartet, wird das Event an das neue Datum angepasst.
In der .ini Datei kann weiterhin das Event Manuell abgeändert werden.
Für eine Deinstallation muss einfach nur die KillingFloorEventUpdate.bat Datei gelöscht werden.

SteamSolo.com