Mut: Per Server Stats

  • 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/

FluX

Grizzled Veteran
Oct 26, 2010
5,394
234
63
www.fluxiserver.co.uk
I originally tried that. But when ever I went to compile it still kept referencing the ServerPerksV4 package even though I had removed any reference of it.

In the end I just wrote a new perk class as a separate package and entered that in the config of the ServerPerksV4 package.

ie

Perks=ServerPerksV4.SRVetCommando
Perks=MyPerks.MyKickAssSuperPerk

Works like a charm.

The only problem I now have is that I want the levels to scale to 100. But there will be the problem of the stars. As it will go Red 1-5, Gold 1-5, Green 1-25 and thats it. I'd like to have it go 1-10 stars and a different colour per star. That bit I'm stuck on.

Did you replace inside all the files what package they will point to (being your new package name)?

Plus if you need help with the new perk textures (including stars) I can help you out there as I recently have just figured this out myself. This will need you to make your own version of the package though so it'll affect the whole of the mutator.
 

Gartley

Grizzled Veteran
Dec 27, 2010
2,339
349
83
UK
www.wildcardproductionstudios.co.uk
Did you replace inside all the files what package they will point to (being your new package name)?

Plus if you need help with the new perk textures (including stars) I can help you out there as I recently have just figured this out myself. This will need you to make your own version of the package though so it'll affect the whole of the mutator.

I've got the perk textures working, that's fine thanks. And yes, I went through the classes and made sure they referenced my package. Not the originals.

I think (from memory) the error was along the lines of.

SRVetBerzerker's super class must be ServerPerksV4.SRVeterency not MyPerks.SRVeterency. Which to me said what you just suggested, but I checked at least twice. There was no reference to ServerPerksV4 in that class.
 

FluX

Grizzled Veteran
Oct 26, 2010
5,394
234
63
www.fluxiserver.co.uk
I've got the perk textures working, that's fine thanks. And yes, I went through the classes and made sure they referenced my package. Not the originals.

I think (from memory) the error was along the lines of.

SRVetBerzerker's super class must be ServerPerksV4.SRVeterency not MyPerks.SRVeterency. Which to me said what you just suggested, but I checked at least twice. There was no reference to ServerPerksV4 in that class.

Could you give us the error and i'll see what it could be as I have a complete custom version of this mutator?
 

lerson

FNG / Fresh Meat
Jun 24, 2011
7
0
0
Hey guys.

So I've created a couple extra perks with their own corresponding weapons, however, when purchasing them in the trader their perk icons are blank, so I'm assuming I've missed something along the way. Does anybody know what I should be doing to make their icons the same as the perk's?
 

FluX

Grizzled Veteran
Oct 26, 2010
5,394
234
63
www.fluxiserver.co.uk
Hey guys.

So I've created a couple extra perks with their own corresponding weapons, however, when purchasing them in the trader their perk icons are blank, so I'm assuming I've missed something along the way. Does anybody know what I should be doing to make their icons the same as the perk's?

Im wondering how to fix this myself. I think there is something telling it to be blank in the HUD file but I can't be 100% behind this. If you find a fix please contact me. :)
 

Tendency

FNG / Fresh Meat
Dec 12, 2009
168
31
0
www.rainingblood.org
I have the same issue. The new texture for the perk icon will show everywhere but the trader buy menu. The guns even sort by the new perk, but the perk icon is missing. So this has be something with the buy menu.
 

lerson

FNG / Fresh Meat
Jun 24, 2011
7
0
0
Im wondering how to fix this myself. I think there is something telling it to be blank in the HUD file but I can't be 100% behind this. If you find a fix please contact me. :)
Yeah, I haven't figured this one out, and it's one of the very few things keeping my creations from being 100% polished.

That, and one other thing. I tried figuring this one out on my own but failed, and I know it's probably pretty simple, so... how would I make weapons that already exist fall under a new perk index? IE how would I make the Dual Deagles go from perk index 2 to 7, and have that reflected in the trader's shop?

Thankies!
 

FluX

Grizzled Veteran
Oct 26, 2010
5,394
234
63
www.fluxiserver.co.uk
I have the same issue. The new texture for the perk icon will show everywhere but the trader buy menu. The guns even sort by the new perk, but the perk icon is missing. So this has be something with the buy menu.

If you find anything to do with this can you please contact me and maybe give me advice on how to fix this? The reason being is I want to show my custom perk pictures inside the trader with the guns. The other thing I want to sort is allowing a weapon to have NO perk index (-1) so it will not go with any perk. The example for this is I have changed the MK23 and because I have used it with two of my perks for leveling, I don't want to give it a specific perk but a "no perk". Only thing I can do right now is give it a perk index or keep it has "-1" and let it choose medic symbol...

EDIT: I have found inside KFBuyMenuInvList.uc:
Code:
PerkTextures[i] = 
class'KFGameType'.default.LoadedSkills[MyBuyables[i].ItemPerkIndex].default.OnHUDIcon;

Don't know if this helps.
 
Last edited:

FluX

Grizzled Veteran
Oct 26, 2010
5,394
234
63
www.fluxiserver.co.uk
is there a way to make the trader list do more than 50 weapons using this (per-server stats)?
maybe change some code somewhere?

I don't think so seems this mutator doesn't affect the trader at all really. Im not sure if maybe customising the KFCustomTrader mutator would be able to help but it seems hard coded so probably not.
 

xbatista

FNG / Fresh Meat
Jul 7, 2010
87
0
0
Interesting if Marco is still alive :/ Dunno what will happen on a new KF Summer Event Update.
 

Demon_333

FNG / Fresh Meat
Has anyone else been having problems with this mutator after the update? It's a similar case to the xmas event where if you killed a zed the server would crash.

It seems to be the same case again. I have tried running my server while the server perks is deactivated and it runs fine. I've put my server log below, hopefully it can give a clue to what the problem is.

Spoiler!
 

Alex001

FNG / Fresh Meat
Jan 7, 2010
34
0
0
i have this problem too :( then try to kill zombie, server crash

Oh, yes.

also because error in compilation:

...\ServerPerksV4\Classes\ServerStStats.uc(340) : Error, Redefinition of 'function AddKill' differs from original in KFSteamStatsAndAchievements
Compile aborted due to errors.
Failure - 1 error(s), 8 warning(s)
 

Hemi

FNG / Fresh Meat
Jul 30, 2010
1,572
573
0
same problem here... Ill try and contact Marco today, since he was online yesterday. All our servers are down atm. Besides the vanilla ones.