Tripwire Interactive Forums

Go Back   Tripwire Interactive Forums > Killing Floor Forums > Killing Floor Modifications > Coding

Reply
 
Thread Tools Display Modes
  #1  
Old 08-27-2009, 03:46 PM
Marco Marco is offline
Senior Member
 
Join Date: May 2009
Location: Finland
Posts: 540
Default Mut: Per Server Stats

This mutator brings the perks stats tracking back the way it were in KF 2.5 in Unreal Tournament 2004: All player stats are being tracked by the server individually.

Download from here
. (Version 7.10)
Download source code from here. (Version 7.10)

Note: You are not allowed to use this mutator for selling stats (for money) on your server. Also do not edit ServerPerks.u nor ServerPerksP.u without renaming them.

Upsides about this mutator:
  • It allows server host to run any mutator/modification/map they ever want without having to whitelist them all.
  • Server host can add/remove standard/custom perks (read tutorial from here).
  • Clients can't cheat their stats in offline games then join the server with level 5 everything.
  • Fixed some menu issues while at it.
  • Added option for custom weapons on trader to add (this mutator does not work with the existing Custom shop mutator).
  • Use custom skins (see how to create own from here).
  • As an admin you can edit any players stats using consolecommand: Mutate EditStats
  • Contains various bugfixes over default Killing Floor.
  • You can setup custom HTML server news page, read more about that from here.
And downsides of this mutator:
  • Clients will don't have their stats following from server to server (anything they do in that server will stay within that server)!
  • Achievements aren't earned.
Version history:
7.10:
Spoiler!

7.00:
Spoiler!

6.75:
Spoiler!

6.50:
Spoiler!

6.01:
- Fixed another crash, added new weapons to defaults and a script warning with emotion icons loading to serverpackages.
6.00:
Spoiler!

5.51:
Spoiler!

5.50:
Spoiler!

5.10:
Spoiler!

5.00:
Spoiler!

4.40:
Spoiler!
4.38:
Spoiler!
4.36:
Spoiler!
4.35:
Spoiler!
4.10:
Spoiler!
4.00:
Spoiler!
3.01:
Spoiler!
3.00:
Spoiler!
2.55:
Spoiler!
2.30:
Spoiler!
2.10:
Spoiler!
2.00:
Spoiler!
1.00:
- Released.

How to use this mutator (eighter way):
  • In mutators list, add "Server Veterancy Handler V6" to active mutators.
  • Add to server startup commandline "?Mutator=ServerPerksMut.ServerPerksMut"
To add/remove perks, simply edit "ServerPerks.ini" and add/remove lines.

CountryFlagsTex.utx is an optional country tags texture file. You can use my country tags mutator to give all players tags and this mutator will replace those tags with flag textures.

Server Perks Database (OPTIONAL)(Advanced users only!)

Download from here. (Version 1.55)
Download from here. Same version but without any windows at all (needs to be shut down from task manager).

Version history:
1.55:
- Fixed a stat loading bug from earlier versions.
- Modified it to convert Linux SteamID's into Windows SteamID.
1.30:
- Support long stat value string lines (REQUIRED since serverperks v5.00).
1.10:
- Optimized code a bit and added a new option.
1.00:
- Created.

This is an application I wrote in C++ which basically works as a remote database for your perks stats. In order to use this you need:
- A dedicated server machine that's on Windows OS.
- Setup a Port and Password in Host.ini:
Quote:
[General]
Port=6000
Password="Pass"
- Do the same on ServerPerksV4.ini (including set IP-address or DNS name of the host):
Quote:
[ServerPerksMut.ServerPerksMut]
RemotePort=6000
bUseRemoteDatabase=True
RemoteDatabaseURL=192.168.1.33
RemotePassword=Pass
- Make sure you allow the application to access internet through Firewall and/or Router (open the desired port).
- IF you have any earlier stats on server, copy over ServerPerksStat.ini to same folder as ServerPerksHost.exe and launch the exe as: ServerPerksHost.exe ServerPerksStat.ini
This way it will convert to the new stats ini file. After this is done delete all ServerPerksStat.ini you have.
- Now simply launch up KillingFloor server as-well as ServerPerksHost.exe.
- If you want to convert Data.ini back to ServerPerksStat.ini, run: ServerPerksHost.exe UNDO

Using FTP protocol for database in ServerPerks v7
Make sure you assign these settings in ServerPerks.ini:
Quote:
RemoteDatabaseURL=www.somedomain.com - URL address to FTP server.
RemotePassword=Pass - User password to access FTP server.
RemoteFTPUser=User - User name to access FTP server.
RemoteFTPDir= - Optional, leave empty if you want it to write stats in root folder, otherwise you can enter folder name there (but make sure that folder exist or system will fail).
bUseRemoteDatabase=True - MUST be enabled.
bUseFTPLink=True - Must also be enabled.
bDebugDatabase=False - Enable this if you have trouble on getting it functional (will print communication information on log and webadmin).
FTPKeepAliveSec=60 - How often server will ping the FTP server to keep connection alive.
Be sure you limit the FTP user account that server uses as much as possible, as it's not a secure connection server will use.
In other words, ideal settings are:
Max connections - ~10 (or more depending on how many servers will use this).
Idle timeout - 120 seconds.
Only allow client to read/write files.

If you want to upload onto FTP current stats saved on server, enable following setting on ServerPerks.ini: bUploadAllStats=True. Then start game on solo and wait for it to finish uploading everything. I will add to ServerPerksHost application a way to convert Data.ini to ServerPerksStats.ini back again if you want to switch the host protocol of your server.

If there are any bugs, please report them here (or if you have any comments/suggestions)!

Last edited by Marco; 10-23-2014 at 12:03 PM. Reason: Update to v710
Reply With Quote
  #2  
Old 08-28-2009, 07:35 PM
Boxiii's Avatar
Boxiii Boxiii is offline
Senior Member
 
Join Date: May 2009
Location: California
Posts: 153
Default

Very nice.

Last edited by Boxiii; 09-16-2009 at 12:42 AM.
Reply With Quote
  #3  
Old 08-28-2009, 11:11 PM
Benjamin Benjamin is offline
Senior Member
 
Join Date: May 2009
Location: France
Posts: 3,642
Default

Very cool dude, well done. I was hoping someone would do something like this.

Quote:
Originally Posted by Boxiii View Post
Very nice!! Please request this to be white listed!
Do you understand what this mutator does?
Reply With Quote
  #4  
Old 08-31-2009, 01:00 PM
chris1701 chris1701 is offline
Member
 
Join Date: Jun 2009
Posts: 57
Default

It is a good mutator but you ak47 isn't support on commando, can you fix that???
Reply With Quote
  #5  
Old 09-01-2009, 01:30 AM
Liquid4653 Liquid4653 is offline
Junior Member
 
Join Date: Aug 2009
Posts: 7
Default

Quote:
Originally Posted by Marco View Post
If there are any bugs, please report them here (or have any comments/suggestions)!

Hi,

Great Mutator I love it but I cannot seem to get the MutJump mutator working correctly
Reply With Quote
  #6  
Old 09-15-2009, 08:16 PM
lethalvortex's Avatar
lethalvortex lethalvortex is offline
Senior Member
 
Join Date: May 2009
Posts: 327
Default

cool but i tried it in solo how does it work coz wen i spawned it sayed perks are disable. or does this only work on dedicated? or do i need to type something in chat? to enable it? also i had to remove it from my serve coz at the boss wave the boss dies instance. hope u can fix that its really nice idea!
__________________
Im LethalVortex

Last edited by lethalvortex; 09-16-2009 at 09:03 PM.
Reply With Quote
  #7  
Old 10-08-2009, 03:58 AM
Maksimus Maksimus is offline
Senior Member
 
Join Date: May 2009
Posts: 191
Default

Author appear at the forum please
Reply With Quote
  #8  
Old 10-09-2009, 03:09 PM
Marco Marco is offline
Senior Member
 
Join Date: May 2009
Location: Finland
Posts: 540
Default

Quote:
Originally Posted by Maksimus View Post
Author appear at the forum please
Yes, I am here.
Quote:
Originally Posted by chris1701 View Post
It is a good mutator but you ak47 isn't support on commando, can you fix that???
I can make a seperate extension for perks that are exactly as retail ones. The code I based my perks on were pre-released version of KF.
Quote:
Originally Posted by lethalvortex View Post
cool but i tried it in solo how does it work coz wen i spawned it sayed perks are disable. or does this only work on dedicated? or do i need to type something in chat? to enable it? also i had to remove it from my serve coz at the boss wave the boss dies instance. hope u can fix that its really nice idea!
It should work in solo and online, might be some specific settings or combinations of other mutators you're using?
Reply With Quote
  #9  
Old 10-10-2009, 06:16 AM
Maksimus Maksimus is offline
Senior Member
 
Join Date: May 2009
Posts: 191
Default

Which I have found the list of defects in yours mutators:
1. Sometimes in game simply there is no choice percs though in ".ini" file the data arrive!;
2. On many times pressing "Esc" button or calling statistic window client crashing with error



3. Need To add operation of the new weapon though have checked up, like works;
4. Idea excellent especially for my server with 30 players!;
5. We wait the stable new version;
P.S. All files of mutator are necessary to the client? Or enough one loaded from server ServerPerks.u (with one it statistics works, percs shake)?

Last edited by Maksimus; 10-15-2009 at 04:10 AM.
Reply With Quote
  #10  
Old 10-10-2009, 01:45 PM
Maksimus Maksimus is offline
Senior Member
 
Join Date: May 2009
Posts: 191
Default ?

Why file ServerPerksStat.ini is in UTF-16 LE charset coding?
Reply With Quote
  #11  
Old 10-12-2009, 03:33 AM
Marco Marco is offline
Senior Member
 
Join Date: May 2009
Location: Finland
Posts: 540
Default

Quote:
Originally Posted by Maksimus View Post
Which I have found the list of defects in yours mutators:
1. Sometimes in game simply there is no choice percs though in ".ini" file the data arrive!;
2. On many times pressing "Esc" button or calling statistic window client crashing with error
3. Need To add operation of the new weapon though have checked up, like works;
P.S. All files of mutator are necessary to the client? Or enough one loaded from server ServerPerks.u (with one it statistics works, percs shake)?
1: I don't really understand what you mean by that...
2: Good to know, I'll look up on that.
3: Huh?
And yes, only ServerPerks.u is needed by the clients.

Quote:
Originally Posted by Maksimus View Post
Why file ServerPerksStat.ini is in UTF-16 LE charset coding?
Thats how UnrealEngine 2 outputs INI files, not my choise.
Reply With Quote
  #12  
Old 10-23-2009, 06:54 AM
kasinamu kasinamu is offline
Junior Member
 
Join Date: Aug 2009
Posts: 9
Default Thanks

This perk mutator was very useful~

Can you create a new version for this update? (+ Demolitions)

I want to use your mutator!!
Reply With Quote
  #13  
Old 10-23-2009, 04:40 PM
lethalvortex's Avatar
lethalvortex lethalvortex is offline
Senior Member
 
Join Date: May 2009
Posts: 327
Default

this mut cool but ye needs update wen u got the time
__________________
Im LethalVortex
Reply With Quote
  #14  
Old 10-24-2009, 10:23 AM
Marco Marco is offline
Senior Member
 
Join Date: May 2009
Location: Finland
Posts: 540
Default

Updated this mod for latest KF version and tried to address your bugs and suggestions.
Check the first post...
Reply With Quote
  #15  
Old 10-24-2009, 11:01 AM
ToNiO's Avatar
ToNiO ToNiO is offline
Senior Member
 
Join Date: Aug 2009
Location: France
Posts: 260
Default

Thanks you very much
You are a god
__________________
Admin of Servers KFK on Killing Floor
Quote:
Originally Posted by Marco View Post
Now now, shut up all 3 of you. These forums are about Killing Floor the game, take your nationality arguments elsewhere.

Last edited by ToNiO; 12-31-2013 at 04:46 AM.
Reply With Quote
  #16  
Old 10-24-2009, 02:24 PM
kasinamu kasinamu is offline
Junior Member
 
Join Date: Aug 2009
Posts: 9
Default Wow

Thank you very much!!!
Reply With Quote
  #17  
Old 10-24-2009, 06:36 PM
Maksimus Maksimus is offline
Senior Member
 
Join Date: May 2009
Posts: 191
Default

Thank you very very very much!!!
Reply With Quote
  #18  
Old 10-25-2009, 08:53 AM
Maksimus Maksimus is offline
Senior Member
 
Join Date: May 2009
Posts: 191
Default :(

Works great! But does not store Demolitions. If you leave the server or change the map data is dumped! Please correct

ps start servers bat

@echo off
cls
echo Protecting srcds from crashes...
title log
:srcds
echo (%time%) KF server started.
start /wait ucc server KF-Bedlam.rom?game=KFmod.KFGameType?VACSecured=True?M axPlayers=6?Mutator=ServerPerksV2.ServerPerksMut
echo (%time%) WARNING: srcds closed or crashed, restarting....
goto srcds

Last edited by Maksimus; 10-25-2009 at 09:09 AM.
Reply With Quote
  #19  
Old 10-25-2009, 11:31 AM
Marco Marco is offline
Senior Member
 
Join Date: May 2009
Location: Finland
Posts: 540
Default

Quote:
Originally Posted by Maksimus View Post
Works great! But does not store Demolitions. If you leave the server or change the map data is dumped! Please correct
Hrmph thats 1 line thats missing in the code. Fixing it is very easy.. but would it be worth renaming the new version for that?
Reply With Quote
  #20  
Old 10-25-2009, 12:36 PM
Maksimus Maksimus is offline
Senior Member
 
Join Date: May 2009
Posts: 191
Default

If it is very easy then how to fix it, for example Demolitions?
do not just rename isprate please I beg myself hardly able

Last edited by Maksimus; 10-25-2009 at 12:52 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:11 PM.


Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 2005 - 2014, Tripwire Interactive, LLC