Killing Floor 2

Killing Floor 2

25 ratings
StartWave
   
Award
Favorite
Favorited
Unfavorite
Maps and Mods: Mutators
File Size
Posted
Updated
31.135 KB
19 Jun, 2021 @ 8:00pm
8 Mar @ 12:20pm
4 Change Notes ( view )

Subscribe to download
StartWave

Description


Description:
This is the same as Pharrahnox's StartWave, but with some fixes:
  1. fixed starting Dosh for Endless mode;
  2. fixed difficulty setting when changing wave;
  3. optimized boss replacement: now it always works successfully and quickly;
  4. players no longer need to download StartWave when connecting to a server.

A utility mod that allows users to specify the starting wave and the boss that will spawn. Additionally, users can jump between waves during the match with a console command (mutate setwave, see below).
The purpose of this mod is to allow mappers to more efficiently test their maps for later waves or for the boss. It could also be used to skip early waves if you find them boring, or to test strategies against a specific boss.
It is designed to be compatible with every mutator and wave-based gamemode, and to require little to no maintenance after game updates.

Whitelisted?
No. This mod is not whitelisted and will unrank your server. Any XP gained will not be saved.

Usage (single player):
  1. Subscribe to this mutator;
  2. Start KF2;
  3. Open console (`) and input:
    open KF-BioticsLab?Game=KFGameContent.KFGameInfo_Endless?Difficulty=0?GameLength=0?Mutator=StartWave.Mut
    (replace the map and add the parameters you need)
  4. <Enter>.

Usage (server)
Note: If you don't understand what is written here, read the article Dedicated Server (KF2 wiki)[wiki.killingfloor2.com] before following these instructions.
  1. Open your PCServer-KFEngine.ini / LinuxServer-KFEngine.ini;
  2. Find the [IpDrv.TcpNetDriver] section and make sure that there is a line (add if not):
    DownloadManagers=OnlineSubsystemSteamworks.SteamWorkshopDownload
    ❗️ If there are several DownloadManagers= then the line above should be the first ❗️
  3. Add the following string to the [OnlineSubsystemSteamworks.KFWorkshopSteamworks] section (create one if it doesn't exist):
    ServerSubscribedWorkshopItems=2521731447
  4. Start the server and wait while the mutator is downloading;
  5. Add mutator (with parameters you need) to server start parameters: ?Mutator=StartWave.Mut and restart the server.

Mutator setup
The parameters below can be used as parameters in the startup line.
But You can use a config if you don't want to specify parameters in the startup line:
Create a file KFGame/Config/KFStartWave.ini and copy this text into it:
[StartWave.StartWave] // Any settings not specified in the launch command will use the values stored here. // If you use the same settings often, it is recommended to store those here // and only change what you need in the launch command. // LogLevel (Set this to 'LL_Debug' if you need more information in the log) LogLevel=LL_Info // Whether an 'initial' trader time should occur before the first wave. bStartWithTrader=false // The wave that the match should start on. It is clamped between wave 1 and the boss wave. StartWave=1 // The duration of the 'initial' trader (before the first wave). InitialTraderTime=60 // The duration of standard trader (between waves). TraderTime=60 // The starting dosh of players. Dosh=250 // The boss override index. // For the default boss list, 0-Hans, 1-Patty, 2-King FP, 3-Abomination. // Negative values can be used to keep the boss spawn random. Boss=-1
You can change the config as you need.

The setwave command
To jump to any wave during the match, use the setwave command which has the definition: mutate setwave WaveNum bSkipTraderTime. Cheats must be enabled for this command to work.

Example usages (all to be typed into the console):
mutate setwave 5 true // jump to wave 5 with no trader time. mutate setwave 3 false // jump to wave 3 with trader time. mutate setwave 3 // identical to the above (the last parameter defaults to false).

You can jump forwards or backwards between waves (e.g. from 5 -> 2 -> 8 -> 3, etc.)

If not working
Older versions of SetWave have the same file names - this can cause conflicts if you subscribe to them. Therefore:
1. Check your subscriptions. If you are subscribed to old versions of the mutator, cancel them.
2. Clear the cache (the game doesn't clear it). It's here:
Client: C:\Users\<YOUR_USERNAME>\Documents\My Games\KillingFloor2\KFGame\Cache\ Server: <KF2_DIR>/Binaries/Win64/steamapps/workshop/content/232090/ <KF2_DIR>/KFGame/Cache/
If it’s not a problem for you to download all subscriptions again, you can simply clear this folder(s). Your subscriptions are downloaded the next time you start the game/server.
If you do not want to download the subscriptions again, delete only those folders that contain SetWave.u file.
3. Try starting the game/server again.

Sources
https://github.com/GenZmeY/KF2-StartWave (GNU GPLv3)
8 Comments
Jimpen 30 Jan, 2023 @ 6:06am 
Might be. It said something like it could not find the workshop item, so just thought I'd mention it here :)
GenZmeY  [author] 30 Jan, 2023 @ 6:03am 
What you're talking about sounds like a problem with the workshop or redirect, not with the mutator

StartWave does not affect this in any way
Jimpen 30 Jan, 2023 @ 5:30am 
***the mutator
Jimpen 30 Jan, 2023 @ 5:23am 
I managed to get this to work in single player but not on my server. The server won't download the map, and when i manually put it among the server files, it says the files might already be there but it won't use them.. something like that.
GenZmeY  [author] 29 Jan, 2023 @ 10:55am 
>>> Would this work on objective mode?
in theory yes, but I haven't tested it

>>> Custom maps?
yes
Jimpen 29 Jan, 2023 @ 10:35am 
Would this work on objective mode? Custom maps?
Dr. Smoke 20 Jun, 2021 @ 6:26pm 
You're awesome bro! Thanks very much!
Mythical 19 Jun, 2021 @ 8:49pm 
nice mutator