Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

d. Put your mod source files in Classes directory (e.g. KFGame\Src\MyMod\Classes\MyMod.uc)

3. Add ModPackages=<mod package name> to [ModPackages] in a ModPackage entry for each package that your mod uses

In KFEditor.ini

...

:

[ModPackages]
ModPackage=MyMod1
ModPackage=MyModMyMod2

4. Compile your file(s)

a. open Open the command prompt and navigate to your Steam Killing Floor 2 binaries directory (<drive:>\Steam\SteamApps\common\killingfloor2\Binaries\Win64)

        - or, navigate to that directory in Windows Explorer, shift+right-click and select "open command window here"

b. type Type "kfeditor.exe make -full"

c. hit Hit enter (this will put the compiled .u file (e.g. MyMod.u) in your My Games directory (My Games\KillingFloor2\KFGame\Unpublished\Unpublished\Unpublished\BrewedPC\Script)

5. Brew your file(s)

a. On the command prompt still, type "kfeditor brewcontent -platform=PC <compiled mod package>" (e.g. kfeditor brewcontent -platform=PC MyMod) and hit enter. You can brew more than one compiled file by separating each one with a space (e.g. MyMod1 MyMod2). Brewing will create a "Published" directory in My Games\KillingFloor2\KFGame, in which the brewed mod files need to live to be run.

NOTE: The brewer needs the compiled files to be in My Games\KillingFloor2\KFGame\Unpublished\BrewedPC\Script. By default, compiled files end up in My Games\KillingFloor2\KFGame\Unpublished\Unpublished\Unpublished\BrewedPC\Script [KNOWN ISSUE]

NOTE: Brewing doesn't do anything to compiled script files, so really this step just makes sure the compiled file ends up in the right location (Published dir). If brewing fails, you can manually move the compiled script files to My Games\KillingFloor2\KFGame\Published\BrewedPC\Script (you might need to create that path).

6. Run by adding a new parameter to the command line

  • If running with a GameInfo mod, add "?game=<packagename.scriptname>" to the command line (e.g. kf-burninparis?game=mymod.mygameinfo)
  • If running with a Mutator mod, add "?mutator=<packagename.scriptname>" to the command line (e.g. kf-burningparis?mutator=mymod.mymutator). You can run with multiple mutators by separating them with commas (e.g. kf-burningparis?mutator=mymod.mymutator1,mymod.mymutator2)

 

[KNOWN ISSUE] - The My Games Unpublished directory probably shouldn't have so many nested "Unpublished" directories, which might be causing the next known issue ?Compiling mods puts the compiled files in My Games\KillingFloor2\KFGame\Unpublished\Unpublished\Unpublished\BrewedPC\Script, but the brewer needs the unpublished files to be in My Games\KillingFloor2\KFGame\Unpublished\BrewedPC\Script.

[KNOWN ISSUE] - Running doesn't work. The game canwon't seem to find compiled mods. Will update when fix (likely a path issue) is madebe able to load the mod from the command line if the mod packages haven't been brewed or at least placed in the My Games\KillingFloor2\KFGame\Published directory.

Info

Filter by label (Content by label)
showLabelsfalse
max5
spacesKF2SW
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "KF2SW"
labelskb-how-to-article

...