[Help] Modifying perk bonuses

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

elrocker

FNG / Fresh Meat
Feb 9, 2011
22
0
0
Hi, I have in been working on a server for quite a bit. (I've been using "Server Veterancy Handler V5", A customizable perk system so the level extends beyond 6 if you'd choose so) (sorry if this has already been answered somewhere)

I would like to know how to change the bonuses given for each perk like +30% damage, 60% discount, etc. (Not too concerned with weapons that you spawn with though)

So nearly every stat bonus changes with each level for levels 1-6, but after that, only like 2 stats will start increasing after that like berserker wont get any more discount, faster melee movement, resistance to damage and things like that. Instead each level will just give an extra 5-10% to faster melee attacks and more damage. I would like to know how to modify the other bonuses that dont get increased after level 6 throughout each level. And if possible how to edit the perk bonuses already on the levels 1-6 stats (to make it more balanced)

Feel free to ask questions because I know my context I put words in is hard to understand.
 

ro_sauce

FNG / Fresh Meat
Sep 26, 2007
3,135
329
0
bwhgaming.com
did you get the source code?
open up the files under serverperksv5P, srvetcommando, srvetberserker, etc.
change the vaules for what you want in those, then delete serverperksv5p.u* in system folder, open killingfloor.ini, add in editpackages=serverperksv5p, and in a command prompt in system folder, type "ucc make"
 
  • Like
Reactions: tehmadcap

elrocker

FNG / Fresh Meat
Feb 9, 2011
22
0
0
Thanks a lot man :), but one question, Im not sure how to open a command prompt while in the system folder. Or if you mean access the system folder from a command prompt, I'm not sure what the command is to get to that folder.
 

elrocker

FNG / Fresh Meat
Feb 9, 2011
22
0
0
"'ucc' is not recognized as an internal or external command,
operable program or batch file."

This show up in the command prompt, (Ive tried "ucc make", "ucc_make" and "uccmake" with the same result)
 

FluX

Grizzled Veteran
Oct 26, 2010
5,395
234
63
www.fluxiserver.co.uk
Please make sure you change the package name if you was to use this on your server. If you don't you'll cause so many version mismatchs for everyone who will try play on your server.
 

elrocker

FNG / Fresh Meat
Feb 9, 2011
22
0
0
Okay thanks guys, I'll try it when I get home. By the way Flux, do you mean change the name to serverperksV4 Or something else?
 

FluX

Grizzled Veteran
Oct 26, 2010
5,395
234
63
www.fluxiserver.co.uk
Okay thanks guys, I'll try it when I get home. By the way Flux, do you mean change the name to serverperksV4 Or something else?
The package that you compile it all together. So for Marco's mutator it'll be ServerPerksV5. Yours should not match any names to do with that, maybe "elrockerSP" or something. This is a MUST.
 

Gartley

Grizzled Veteran
Dec 27, 2010
2,340
349
83
UK
www.wildcardproductionstudios.co.uk
If you are simply doing perks.

Create a folder named 'elrockerSP' for example with a sub folder called 'Classes';

Now in the KillingFloor.ini find EditPackages and add to the bottom of the list.

EditPackages=ServerPerksV5
EditPackages=elrockerSP

Use the below to create a bat file. Inside your 'elrockerSP' folder This is really helpful and saves a ton of time. Be sure to thank Benjamin. Just check the install directory of your KF. Make sure you've also installed the SDK.

Code:
@echo off
set PkgName=elrockerSP
set KFPath=C:\Program Files (x86)\Steam\steamapps\common\killingfloor\

:: Remove any existing scripts from the package directory
del "%KFPath%%PkgName%\*.uc" /S /Q

:: Remove compiled package file (.u)
if exist "%KFPath%System\%PkgName%.u" del "%KFPath%System\%PkgName%.u" /Q

:: Copy scripts to package directory
XCOPY "Classes\*.uc" "%KFPath%%PkgName%\Classes" /D /E /C /R /I /K /Y

:: Compile
"%KFPath%System\UCC.exe" make
if errorlevel 1 goto FailedCompile

:: Delete steam_appid file (file causes networking problems)
if exist "%KFPath%System\steam_appid.txt" del "%KFPath%System\steam_appid.txt" /Q

:: Compile complete, exit batch file
ECHO
exit

:: Compile failed, let user see error before exiting
:FailedCompile
pause

Look at the existing Perks to see how they work. Create your own with edits and save them as .uc files in the 'Classes' folder. For example 'elCommando.uc'

Then run that bat file. If all goes well you'll have a new package in the KF system folder.

Edit the ServerPerks ini to have your new perk in it. like so. 'Perks=elrockerSP.elCommando'

Bingo you are done. And you dont' have to worry about editing the ServerPerksV5 code.
 
  • Like
Reactions: FluX

elrocker

FNG / Fresh Meat
Feb 9, 2011
22
0
0
did you get the source code?
open up the files under serverperksv5P, srvetcommando, srvetberserker, etc.
change the vaules for what you want in those, then delete serverperksv5p.u* in system folder, open killingfloor.ini, add in editpackages=serverperksv5p, and in a command prompt in system folder, type "ucc make"

Alright after installing SDK I retried these steps and got a little farther but still an error I beleive in the cmd prompt


C:\Program Files (x86)\Steam\steamapps\common\killingfloor\System>ucc make
----------------------------Core - Release----------------------------
---------------------------Engine - Release---------------------------
----------------------------Fire - Release----------------------------
---------------------------Editor - Release---------------------------
--------------------------UnrealEd - Release--------------------------
---------------------------IpDrv - Release----------------------------
----------------------------UWeb - Release----------------------------
--------------------------GamePlay - Release--------------------------
-------------------------UnrealGame - Release-------------------------
---------------------------XGame - Release----------------------------
-------------------------XInterface - Release-------------------------
---------------------------XAdmin - Release---------------------------
-------------------------XWebAdmin - Release-------------------------
---------------------------GUI2K4 - Release---------------------------
--------------------------xVoting - Release---------------------------
--------------------------UTV2004c - Release--------------------------
--------------------------UTV2004s - Release--------------------------
-------------------------ROEffects - Release--------------------------
--------------------------ROEngine - Release--------------------------
------------------------ROInterface - Release-------------------------
---------------------------Old2k4 - Release---------------------------
---------------------------KFMod - Release----------------------------
---------------------------KFChar - Release---------------------------
---------------------------KFGui - Release----------------------------
-------------------------GoodKarma - Release--------------------------
-------------------------KFMutators - Release-------------------------
-----------------------ServerPerksV5P - Release-----------------------
Analyzing...
Superclass SRVeterancyTypes of class SRVetBerserker not found
History: UMakeCommandlet::Main
Exiting due to error
 

Gartley

Grizzled Veteran
Dec 27, 2010
2,340
349
83
UK
www.wildcardproductionstudios.co.uk
I recommend you try my method.

You'll also need ServerPerksV5 in the EditPackages list.

It's better to build upon the existing rather than edit it. If you edit it you've got to do a lot more that just change a couple of numbers.

For example. Spoilered for size

Spoiler!


Is the commando perk with the stalker requirement removed. Now our server guys just add WPCPerks.WPCVetCommando in place of the ServerPerksV5P.SPVetCommando in the serverperks ini file. Alternatively you could extend off the SPVetCommando and tweak a couple of values.
 

elrocker

FNG / Fresh Meat
Feb 9, 2011
22
0
0
Ive tried your method before, but the perk wont show up when I load up the server, but im not sure what you mean by running the .bat file (i know its the file i put in my SP folder) Also would you by chance know why I suddenly cant connect to any other servers? I am in a different place and wasnt sure if I have to set something to play online.
 

ro_sauce

FNG / Fresh Meat
Sep 26, 2007
3,135
329
0
bwhgaming.com
ok, so add editpackages=serverperksv5 Before your custom perks in killingfloor.ini

then add the customized perks to serverperksv5.ini:
perks=perkpackage.perkname
 

Gartley

Grizzled Veteran
Dec 27, 2010
2,340
349
83
UK
www.wildcardproductionstudios.co.uk
Ive tried your method before, but the perk wont show up when I load up the server, but im not sure what you mean by running the .bat file (i know its the file i put in my SP folder) Also would you by chance know why I suddenly cant connect to any other servers? I am in a different place and wasnt sure if I have to set something to play online.

In the KF system folder look for a file called steam_appid.txt and delete it. To run a bat file just double click it. It will run a sequence of commands in order. See comments for exactly what.
 

elrocker

FNG / Fresh Meat
Feb 9, 2011
22
0
0
ok, so add editpackages=serverperksv5 Before your custom perks in killingfloor.ini

then add the customized perks to serverperksv5.ini:
perks=perkpackage.perkname

Okay, I tried again a couple times and didnt get an error like the one above, but when I loaded up the server, the perks did not display.
I went in the classes under mutator configuration and changed a segment of them from "V5P" to "V5", When I did this, along with trying to put the V5p back in temporarily it says that the file "sealperksv3" cannot be found. (I had downloaded Sealperks in an attempt to edit them to see if it was easier, but then I deleted them)
 

FluX

Grizzled Veteran
Oct 26, 2010
5,395
234
63
www.fluxiserver.co.uk
Okay, I tried again a couple times and didnt get an error like the one above, but when I loaded up the server, the perks did not display.
I went in the classes under mutator configuration and changed a segment of them from "V5P" to "V5", When I did this, along with trying to put the V5p back in temporarily it says that the file "sealperksv3" cannot be found. (I had downloaded Sealperks in an attempt to edit them to see if it was easier, but then I deleted them)
Look inside your ServerPerksV5.ini (I think it's called) inside your System folder. Have a look at the "Perks=" part and make sure the perks there are what you want to be seen. This will need to have your perk there too.
 

elrocker

FNG / Fresh Meat
Feb 9, 2011
22
0
0
Actually that's all correct, its all setup correctly to correspond with the folder and killingfloor.ini

Please ask if there's something specific that I'm doing in the process that you would like to know