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

Code Mut: Per Server Stats

Function Request

ServerPerks.SRStatsBase:
Code:
function AddHeadshotKills(int Amount);
function AddStalkerKills(int Amount);

ServerPerksMut.ServerStStats:
Code:
function AddHeadshotKills(int Amount)
{
	bHasChanged = true;
	Rep.RHeadshotKillsStat+= Amount;
	if( MyStatsObject!=None )
		MyStatsObject.HeadshotKillsStat+= Amount;
	DelayedStatCheck();
}
function AddStalkerKills(int Amount)
{
	bHasChanged = true;
	Rep.RStalkerKillsStat+=Amount;
	if( MyStatsObject!=None )
		MyStatsObject.StalkerKillsStat+= Amount;
	DelayedStatCheck();
}

I'm giving end-game stat bonuses for winning the map. To give 100 headshots with the current implementation I need to call AddHeadshotKill() 100 times, which in turn is unnecessary server load.
 
Last edited:
Upvote 0
Function Request

ServerPerks.SRStatsBase:
Code:
function AddHeadshotKills(int Amount);
function AddStalkerKills(int Amount);

ServerPerksMut.ServerStStats:
Code:
function AddHeadshotKills(int Amount)
{
	bHasChanged = true;
	Rep.RHeadshotKillsStat+= Amount;
	if( MyStatsObject!=None )
		MyStatsObject.HeadshotKillsStat+= Amount;
	DelayedStatCheck();
}
function AddStalkerKills(int Amount)
{
	bHasChanged = true;
	Rep.RStalkerKillsStat+=Amount;
	if( MyStatsObject!=None )
		MyStatsObject.StalkerKillsStat+= Amount;
	DelayedStatCheck();
}

I'm giving end-game stat bonuses for winning the map. To give 100 headshots with the current implementation I need to call AddHeadshotKill() 100 times, which in turn is unnecessary server load.

I called addheadshotkill something like 40000 times at one headshot to implement headshot damage statting instead of counting headshots. And its worked. (Yes I was lamer when I wrote such code). This can really hang the server, when you are adding something like 10^10 or 10^11 or 10^9 damage at one time, lower numbers won't seriously affect. But maybe on weaker computer it will be seriously appreciable.
 
Upvote 0
I have been trying to set up Server News page, but i keep getting -resolve failure (http) in servers news window.

Whats up with that? Do i need to assign DNS server address somewhere?

I tried uploading server news to google sites (https) and then in http://www.000webhost.com (http) but same results. Server news site works in browser ok. I used Marcos template and saved it as index.html

http://forums.tripwireinteractive.com/showpost.php?p=1283197&postcount=1264

Does it need address in IP form? If so is there place to put it?

Edit.

So, i put http server on my kf server and with direct IP address Server News works. Except 50% of the time i get this header error.

Kuvakaappaus_7.png


With few refresh clicks it shows up. Any idea how to fix that?
 
Last edited:
Upvote 0
Hello , im using the Server News page too , but the file is a .txt (not a .html) , once you created it , upload it to the Cnd , etc.. and then put the .ini in the directory you want and then put the path in the " ServerPerks.ini " , and all is done .

If you use .txt file, you are limited to simple text?

Cnd :confused:
.ini file for the .txt file :confused:
 
Upvote 0
I upload dropbox my ServerNews.txt and in serverperks.ini add here the link: "ServerNewsURL=", but when i go to my server, not working. Anyone can help me, or anyone know another page where can i upload my files?

Is your DropBox public?
Did you remember to change port number to: 3128 (or whatever you have there)
Try to click refresh few times. It gives me error at least 50% of the time. If problem remains, try to insert address in ip form.
 
Upvote 0
Is your DropBox public?
Did you remember to change port number to: 3128 (or whatever you have there)
Try to click refresh few times. It gives me error at least 50% of the time. If problem remains, try to insert address in ip form.


In dropbox just if you pay have got the public folders, but i add to my ftp server and its works. Thanks the help:)
 
Upvote 0
Perks going back to default steam perks

Perks going back to default steam perks

I have rented a 16 slot dedicated server and added ServerPerks v7 and Foced max players, so that I can have 16 players. It works fine on initial start-up, but when I play and either die or if I switch maps, everything goes back to default killing floor perks and 6 player slot.

I have copied everything form ServerPerks v7 to the specified folders and added ?Mutator=ServerPerksMut.ServerPerksMut to my startup. I also added everything for the forced max players mod.

Thanks,

BleedEmAll
 
Upvote 0
I have rented a 16 slot dedicated server and added ServerPerks v7 and Foced max players, so that I can have 16 players. It works fine on initial start-up, but when I play and either die or if I switch maps, everything goes back to default killing floor perks and 6 player slot.

I have copied everything form ServerPerks v7 to the specified folders and added ?Mutator=ServerPerksMut.ServerPerksMut to my startup. I also added everything for the forced max players mod.

Thanks,

BleedEmAll


NM, it seems that the 2 don't want to work together with the KF Voting Handler V2! I removed it and forced max players and server perks both function correctly. I do wish there was a way I could use the voting handler though, so that people could vote on custom maps, and I could see the results. This gives me a better idea of which maps I need to remove from the cycle and which to leave on.
 
Upvote 0
I have rented a 16 slot dedicated server and added ServerPerks v7 and Foced max players, so that I can have 16 players. It works fine on initial start-up, but when I play and either die or if I switch maps, everything goes back to default killing floor perks and 6 player slot.

I have copied everything form ServerPerks v7 to the specified folders and added ?Mutator=ServerPerksMut.ServerPerksMut to my startup. I also added everything for the forced max players mod.

Thanks,

BleedEmAll

You need to add those mutators to Voting GameConfig

I prefer this: http://forums.tripwireinteractive.com/showthread.php?t=42229
 
Upvote 0