Killing Floor 2

Killing Floor 2

Custom Trader Inventory
112 Comments
GenZmeY  [author] 18 hours ago 
If you're talking about the number of actions in "Usage", then thank TWI for breaking the initialization of config variables. This list was much shorter before when initialization worked as expected
GenZmeY  [author] 18 hours ago 
to do what?
tsnxmi 22 hours ago 
is this the simplest way to do this lmao?
GenZmeY  [author] 21 May @ 12:34pm 
got it, thanks
DealerOfShame 21 May @ 12:16pm 
It's similar it just includes the OneDrive between the username and documents:

C:\Users\<username>\OneDrive\Documents\My Games\KillingFloor2\KFGame\Config
GenZmeY  [author] 21 May @ 11:48am 
it's ok, glad it was resolved

Which config path turned out to be correct for Windows 11? I think this might help other people running kf2 on windows 11

I have not used win11 and I'm very surprised that the paths may differ in this case. These are things that haven't changed for a long time after all
DealerOfShame 21 May @ 11:20am 
It is. Sorry for the confusion!
GenZmeY  [author] 21 May @ 11:12am 
omg O_o
is this windows 11?
DealerOfShame 21 May @ 11:07am 
I found it. The correct file location is in the "OneDrive" version of my Documents folder. God I hate how Windows does that sh*t. Thanks for your help!
GenZmeY  [author] 21 May @ 9:39am 
Hey

Everything seems to be correct. Maybe besides the fact that you don’t need the file in steamapps, it won’t be used anyway (however, it won’t interfere)

The only thing that comes to my mind now is that during startup you still don’t have the downloaded mutator for some reason

I can suggest the following:
1. Check again that you are subscribed to this mutator.
2. Check that the mutator has been downloaded (you should have a CTI.u file in one of the subfolders here: C:\Users\<username>\Documents\My Games\KillingFloor2\KFGame\Cache\2830826239\)
3. If you have CTI.u, it’s also worth looking if there’s anything interesting in the log after trying to start the game with a mutator, it’s here: C:\Users\<username>\Documents\My Games\KillingFloor2\KFGame\Logs\ . Perhaps it will become clearer what is going wrong. If the contents of the log look unclear, you can show it to me and I will help you figure it out
DealerOfShame 21 May @ 8:30am 
Hello. I am trying to get this to work in Single Player mode and for some reason the default KFCTI.ini content will not generate.

I created two .ini files:
C:\Users\<my_username>\Documents\My Games\KillingFloor2\KFGame\Config\KFCTI.ini
C:\Program Files (x86)\Steam\steamapps\common\killingfloor2\KFGame\Config\KFCTI.ini

The only thing these include are:

[CTI.CTI]
Version=0

I have opened the game and inputted the following command:
open KF-BioticsLab?Mutator=CTI.Mut

I have begun the round, then exited to desktop.

Neither files have generated any content. What am I doing wrong? Sorry this is all new to me.
GenZmeY  [author] 3 May @ 5:39pm 
The client and server must be using the same version of the mutator for this to work, you need to figure out why in your case they are different

I have no idea how your server is configured so I can't give you a ready-made solution, but the plan for you is something like this:
1. Make sure that when connecting to your server, the client downloads only one copy of CTI.u and this is the latest version
2. Make sure that your server is configured to receive and distribute CTI.u in only one way (only through workshop or only through redirect, but not both)
3. If your server uses workshop, make sure that its subscriptions have only one version of CTI.u (for example this one, id 2830826239)
4. Make sure that the server uses only one copy of CTI.u and this is the latest version (check the server cache folder, check the BrewedPC server folder)
三笠·阿克曼 2 May @ 8:34am 
I made it clear to them that the cache files still cannot access my server. Could you please tell me how to solve it? Thank you
三笠·阿克曼 2 May @ 6:15am 
I am a server set up on Windows, and when my friends join my server, they will be prompted with CTI version mismatch, but it is strange that I have no problem linking it myself. Thank you very much for answering my question! Thank you!
GenZmeY  [author] 2 May @ 6:09am 
This error means that the CTI version on the client and on the server does not match. This may depend on your subscriptions and/or how the server is configured.
Clearing the cache on the client usually helps; it is located here:
C:\Users\<YOUR_USERNAME>\Documents\My Games\KillingFloor2\KFGame\Cache\
If this does not help, contact the administrator of the server you are trying to connect to
三笠·阿克曼 2 May @ 5:44am 
Why prompt CTI not matching version
GenZmeY  [author] 26 Mar @ 11:13am 
already did it :)
The Renegadist 26 Mar @ 10:54am 
That did it, since that isn't explicitly mentioned in the description I would add that in for people like me who think the entire thing should be filled at creation.
GenZmeY  [author] 25 Mar @ 6:06pm 
Hey

You should not combine config generation and configuration into one action

First, generate a config by placing the "Version=0" there and starting the game/server. Close the game/server. All settings will now appear in the config and the config version will change. Now set up the config as you need and run the game/server again, everything will work as it should
The Renegadist 25 Mar @ 6:01pm 
Hello, having issues getting this to run. I made the KFCTI.ini file and added these lines to it:

"[CTI.CTI]
Version=0

[CTI.AddItems]
Item=Normalizer.KFWeapDef_USP
Item=Normalizer.KFWeapDef_USP_Dual
Item=Normalizer.KFWeapDef_G36C_V3
Item=Spas12xASVAL.KFWeapDef_Spas12
Item=Spas12xASVAL.KFWeapDef_ASVAL"

with the two weapon packs subscribed and they don't show in the trader list even after loading the mutator via console, is my syntax incorrect?
rexjackson 15 Mar @ 6:28pm 
C:\Users\<username>\Documents
when i come here, it empty
pls help
rexjackson 14 Mar @ 2:24pm 
single player and right at the start
GenZmeY  [author] 14 Mar @ 3:52am 
Are you setting up a mutator for a server or for a single player game?
The necessary actions are described in the "Usage" section. At what step did you have problems?
rexjackson 13 Mar @ 8:32pm 
help i cant make this file somehow and cant find KFCTI.ini anywhere
GenZmeY  [author] 6 Mar @ 4:22am 
What exactly do you not understand?
clever john 5 Mar @ 1:54pm 
i dindn´t understood how it works, can you make a detailed tutorial ?
GenZmeY  [author] 25 Feb @ 6:40am 
Mutator updated
GenZmeY  [author] 25 Feb @ 4:26am 
A bug was discovered in CTI v1.8.0 - v1.8.1: if bApplyPatch=True, after the death of a player, it becomes impossible to buy/sell weapons

I will fix this in the next patch (as soon as I can)

For now I recommend using bApplyPatch=False
GenZmeY  [author] 13 Feb @ 4:44am 
you are welcome
Memory 13 Feb @ 4:33am 
Ah okay I understand now, thank you for everything 🤝
GenZmeY  [author] 13 Feb @ 3:43am 
G36 Mod is not a skin, it is a new weapon. Using CTI, you remove the old G36 from the trader and add a new G36 - this simply can't work only on the client side

So if you want to have a new G36, you in any case need to either play on a server where this mod is configured or make your own server where this is configured
Memory 13 Feb @ 2:39am 
Thank you very much, I got it to work but only if I open a map with console and adding Mutator=CTI.Mut.

Does that mean the only way to replace the G36C default skin is by using mutator command?

I only play with server browser and of course I can't just put in the mutator command in a random server ;(
GenZmeY  [author] 13 Feb @ 1:26am 
you should not combine config generation and configuration into one action

First, generate a config by placing the version there and starting the game/server. Close the game/server. All settings will now appear in the config and the config version will change. Now set up the config as you need and run the game/server again, everything will work as it should
Memory 13 Feb @ 12:17am 
Please help, how do I install your mod alongside
https://steamproxy.net/sharedfiles/filedetails/?id=3145775348 ?

The G36C mod I linked does not replace the gun when I buy from trader, it only shows when I open command and get it("giveweapon G36CV2.KFWeap_AssaultRifle_G36C_V2")


Here is my steps:
I subscribed to your mod and G36C mod, create KFCTI.ini and then copy and put in

[CTI.CTI]
Version=0

[CTI.RemoveItems]
Ball=False
bHRG=False
bDLC=False
Item=KFGame.KFWeapDef_G36C

[CTI.AddItems]
Item=G36CV2.KFWeapDef_G36C_V2
Item=G36CV2.KFWeapDef_G36K
Item=G36CV2.KFWeapDef_G36C_V2_RDS
Item=G36CV2.KFWeapDef_G36K_RDS
GenZmeY  [author] 20 Oct, 2023 @ 2:39pm 
@J, обновил мутатор, теперь DLC клоны не добавляются для удаленного оружия
J 10 Oct, 2023 @ 6:01am 
@GenZmeY, это то что нужно! Я думал о том что бы добавить только клоны из ReplaceWeapons, но самих кодов оружия не знал. Спасибо.
GenZmeY  [author] 10 Oct, 2023 @ 5:54am 
@J, как временное решение сделай так:
Выключи анлок вообще: UnlockDLC=False
Удали все стандартное DLC оружие: bDLC=True
Добавь вручную клоны DLC оружия в [CTI.AddItems] (кроме которые тебе не нужны):
https://gist.github.com/GenZmeY/aa973f4e2ee65b7a563ebfe3b70a1af3

Пока только так. Потом исправлю это неочевидное поведение
GenZmeY  [author] 10 Oct, 2023 @ 5:48am 
@VECTOR, yes, weapons should be in subscriptions
J 10 Oct, 2023 @ 4:03am 
Да, я хотел добавить только некоторое оружие из длц и удалить например Термит пиро через RemoveItems=, но полная UKFP не дружит с CTI и дает длц только если используешь ReplaceWeapons и добавляет он ВЕСЬ длц арсенал без возможности его исключения. Разраб UKFP уже ответил в теме по поводу отображение длц и сделает комманду ?DisableTraderLocking=1 которая как я понимаю это исправит.
VECTOR 9 Oct, 2023 @ 10:35pm 
When I add a custom weapon, do I need to subscribe to a custom weapon to add it? Can I add a custom weapon without having to subscribe?
GenZmeY  [author] 9 Oct, 2023 @ 10:51am 
>>> UnlockDLC=ReplaceWeapons всегда добавляет все оружие даже если ты его запретил
а тут ты видимо имеешь ввиду все DLC оружие, а не все оружие вообще, так?
GenZmeY  [author] 9 Oct, 2023 @ 10:18am 
Ты хочешь разрешить только некоторое DLC оружие я так понимаю?
J 9 Oct, 2023 @ 9:48am 
UnlockDLC=ReplaceWeapons всегда добавляет все оружие даже если ты его запретил, даже если все оружие удалил через ball=True.Можно это исправить? Пытался подружие мут с UKFP, но полная версию отказывается продавать длц пухи, кроме как через ReplaceWeapons
GenZmeY  [author] 22 Sep, 2023 @ 4:42am 
@NIKO, как временное решение я бы предложил убрать у торговца часть пушек. Не обязательно кастомных, ограничение в 256 действует на весь инвентарь. Так что можно убрать какие нибудь редко используемые обычные стволы и/или стартовое оружие (оно один черт при спавне выдается, его практически нет смысла покупать)

А вот когда придумаем какой нибудь фикс для торговца можно будет ограничение выключить и добавлять все подряд
NIKO 22 Sep, 2023 @ 1:58am 
Все работает. Вылетов с DLC нет. В основном всегда видишь ограничения в виде 255... Спасибо.
GenZmeY  [author] 19 Sep, 2023 @ 1:33pm 
released a big update: v1.7.0
fixed crashes and greatly speeded up synchronization

Besides, I discovered a bad thing. The trader does not work correctly if he has more than 256 items in his inventory (buying the wrong weapon in some cases).
The problem is in the game itself (again): some classes use a byte type (the value can be 0-255) instead of an int (which can be up to ~2M) for the trader item index. Because of this, you can add any number of items to the trader’s inventory and they will even be displayed correctly, but when you try to buy any item with an index greater than 255, it simply will not fit into the byte type, the index will become corrupted and you will buy the wrong weapon.
GenZmeY  [author] 19 Sep, 2023 @ 1:33pm 
I added a small check that will report in the log if the limit is exceeded and remove unnecessary items. This of course does not solve the problem, but at least it will be much easier for the server operator to understand what the problem is.

This problem is easy to fix when you're Tripware and have full access to change any KF2 code, but it's a pain in the ass when you're a modder.

I don't know if I can fix this, we'll see
NIKO 18 Sep, 2023 @ 8:58pm 
@GenZmeY как не странно... заработал этот пак оружий с вставкой из этого конфига. Спасибо.
PoIu 17 Sep, 2023 @ 7:51am 
@GenZmeY Ah, I didn't check that. Thank you for advise.
GenZmeY  [author] 17 Sep, 2023 @ 6:38am 
@Polu, follow the steps in "important setup information" to generate the config correctly. This is a bug of the game, not the mutator and I can't do anything about it except mention it everywhere in the description of my mods