Mod: Voting Handler Fix

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

Jovial

FNG / Fresh Meat
Jul 10, 2012
519
2
0
Sweden
There may be some obvious solution to this, please bear with me. :)

I'm currently running three servers, and I enjoy the like/dislike functionality of this mod as well as the option for different game modes.

But now I want to run one server with difficulty voting, and another server without it. I know I could use the vanilla votinghandler for the one server, but then I lose the precious like/dislike functionality. :)

How can I do this smoothly since they all share the same .ini file? Or is it possible to make your votinghandler point to a separate .ini file?
 

Jovial

FNG / Fresh Meat
Jul 10, 2012
519
2
0
Sweden
Voting options are setup in the .ini file, and I don't know how/if it is possible to make it point to a different .ini file for the server I don't want any options on.
 

mmnicolas

FNG / Fresh Meat
Apr 7, 2013
370
0
0
Voting options are setup in the .ini file, and I don't know how/if it is possible to make it point to a different .ini file for the server I don't want any options on.

Assuming you're using multiples instances on one server (that's why they're all using the same ini files right ?) I guess you'd have to rebuild the mutator under another name just to have it read a different file.

I've had this dilemma once, resorted to using separated installations with linked Maps/, Textures/ and StaticMeshes/. Still working well for me to this day.
 

Jovial

FNG / Fresh Meat
Jul 10, 2012
519
2
0
Sweden
That's what I wanted to avoid, but thanks for your help. :) Might have to look into such a setup you suggested.
 

poosh

Grizzled Veteran
Jan 6, 2011
3,404
327
83
I'm suggesting to make separate System folder for each server, sharing the same Maps, Animations and other folders. If you are using Linux, then you can create symlinks to all system files except .ini.
 

King Sumo

FNG / Fresh Meat
Jan 8, 2011
505
15
0
Brazil
www.youtube.com
If he is using Linux better use the multi user environment.
He can start servers using separated users, configuration files are created in the HOME directory of the respective user (i.e. ~/.killingfloor/system).
 

mmnicolas

FNG / Fresh Meat
Apr 7, 2013
370
0
0
What is the exact limitation ? I've never been able to use more than 12 entries or the server would crash on startup, earlier in this thread someone says he's been using 17 entries, does it have something to do with how long the descriptions and the mutator strings are ?
 

poosh

Grizzled Veteran
Jan 6, 2011
3,404
327
83
What is the exact limitation ? I've never been able to use more than 12 entries or the server would crash on startup, earlier in this thread someone says he's been using 17 entries, does it have something to do with how long the descriptions and the mutator strings are ?

We just tried to add a few more entries (16 in total) and server started crashing without even writing a log file.
 

Kuebic

Member
Apr 13, 2014
218
0
16
Waterloo, IA USA
urinetroublenow.com
I just have a few questions that I have been trying to figure out by reading numerous forums and tweaking settings but have still not come up with satisfactory answers. Any help would be appreciated.

Is it possible to use the KFMapVoteV2 entries to change KFGameLength?

Although I've seen earlier posts about how it wasn't possible, I came across this and my hopes rose. When it didn't work, my inital reasoning was that the "gamelength" variable only works with the ScrnBalance gametypes. Can anyone verify this? Or has there been recent changes that now allowed V2 to change KFgamelength?​

In KFMapVoteV2, is it possible to have different map lists for different entries? For example, when voting for objective gametype, only objective maps show up?

I have been on servers where both KF and KFO maps are listed, but as soon as a KFO map is selected, all the KF maps disappear keeping the player stuck in KFO until an admin manually changes the server. I want the common player to be able to swap freely between KF and KFO using KFMapVoteV2. Has anyone been able to get that to work?​

Cheers
 

poosh

Grizzled Veteran
Jan 6, 2011
3,404
327
83
GameLength is available only in ScrnBalance and only if you are using ScrnGameType.

Below is listed KFMapVote.ini from one of our servers. Maybe you'll find something useful down there:
Code:
[KFMapVoteV2.KFVotingHandler]
VoteTimeLimit=60
ScoreBoardDelay=5
bAutoOpen=True
MidGameVotePercent=50
bScoreMode=False
bAccumulationMode=False
bEliminationMode=False
MinMapCount=2
MapVoteHistoryType=xVoting.MapVoteHistory_INI
RepeatLimit=0
DefaultGameConfig=0
bDefaultToCurrentGameType=True
bMapVote=True
bKickVote=True
bMatchSetup=False
KickPercent=51
bAnonymousKicking=False
MapListLoaderType=xVoting.DefaultMapListLoader
ServerNumber=1
CurrentGameConfig=4
GameConfig=(GameClass="ScrnBalanceSrv.ScrnGameType",Prefix="KF-",Acronym="Sui",GameName="S1. ScrN Suicidal (6p)",Mutators="KFCtryTags.CtryTags,ServerPerksMut.ServerPerksMut,ScrnBalanceSrv.ScrnBalance,ScrnZedManager.ZedCfgB,KFPatHPLeft.MutPatHPLeft,MutKillMessage.MutKillMessage",Options="Difficulty=5?GameLength=2?MaxPlayers=6")
GameConfig=(GameClass="ScrnBalanceSrv.ScrnGameType",Prefix="KF-",Acronym="SuiDoom",GameName="S2. ScrN Suicidal Doom 3 Monsters (20p)",Mutators="KFCtryTags.CtryTags,ServerPerksMut.ServerPerksMut,ScrnBalanceSrv.ScrnBalance,ScrnZedManager.ZedCfgB,KFPatHPLeft.MutPatHPLeft,ScrnDoom3KF.Doom3Mutator,ScrnD3Ach.D3AchMut,MutKillMessage.MutKillMessage",Options="Difficulty=5??MaxPlayers=20?GameLength=2")
GameConfig=(GameClass="ScrnBalanceSrv.ScrnGameType",Prefix="KF-",Acronym="SuiSuper",GameName="S4. ScrN Suicidal Super Zombies (6p)",Mutators="KFCtryTags.CtryTags,ServerPerksMut.ServerPerksMut,ScrnBalanceSrv.ScrnBalance,ScrnZedManager.ZedCfgB,KFPatHPLeft.MutPatHPLeft,SZAdvancedConfig.SZACMutator,MutKillMessage.MutKillMessage",Options="Difficulty=5??MaxPlayers=6?GameLength=2")
GameConfig=(GameClass="ScrnBalanceSrv.ScrnGameType",Prefix="KF-",Acronym="HoE",GameName="H0. ScrN Hell on Earth (6p)",Mutators="KFCtryTags.CtryTags,ServerPerksMut.ServerPerksMut,ScrnBalanceSrv.ScrnBalance,ScrnZedManager.ZedCfgB,KFPatHPLeft.MutPatHPLeft,MutKillMessage.MutKillMessage",Options="Difficulty=7?GameLength=2?MaxPlayers=6")
GameConfig=(GameClass="ScrnBalanceSrv.ScrnGameType",Prefix="KF-",Acronym="HoEDoom",GameName="H2. ScrN HoE Doom 3 Monsters (20p)",Mutators="KFCtryTags.CtryTags,ServerPerksMut.ServerPerksMut,ScrnBalanceSrv.ScrnBalance,ScrnZedManager.ZedCfgB,KFPatHPLeft.MutPatHPLeft,ScrnDoom3KF.Doom3Mutator,ScrnD3Ach.D3AchMut,MutKillMessage.MutKillMessage",Options="Difficulty=7?GameLength=2?MaxPlayers=20")
GameConfig=(GameClass="ScrnBalanceSrv.ScrnGameType",Prefix="KF-",Acronym="HoESuper",GameName="H4. ScrN HoE Super Zombies (6p)",Mutators="KFCtryTags.CtryTags,ServerPerksMut.ServerPerksMut,ScrnBalanceSrv.ScrnBalance,ScrnZedManager.ZedCfgB,KFPatHPLeft.MutPatHPLeft,SZAdvancedConfig.SZACMutator,MutKillMessage.MutKillMessage",Options="Difficulty=7??MaxPlayers=6?GameLength=2")
GameConfig=(GameClass="ScrnBalanceSrv.ScrnGameType",Prefix="KF-",Acronym="Nightmare",GameName="Nightmare Difficulty (12p)",Mutators="KFCtryTags.CtryTags,ServerPerksMut.ServerPerksMut,ScrnBalanceSrv.ScrnBalance,ScrnZedManager.ZedCfgA,KFPatHPLeft.MutPatHPLeft,MutKillMessage.MutKillMessage",Options="Difficulty=7?GameLength=2?MaxPlayers=12")
GameConfig=(GameClass="ScrnBalanceSrv.ScrnStoryGameInfo",Prefix="KFO",Acronym="ObjHard",GameName="Objective Mode 4 - Hard (12p)",Mutators="KFCtryTags.CtryTags,ServerPerksMut.ServerPerksMut,ScrnBalanceSrv.ScrnBalance,ScrnZedManager.ZedCfgC,MutKillMessage.MutKillMessage",Options="Difficulty=4?MaxPlayers=12")
GameConfig=(GameClass="ScrnBalanceSrv.ScrnStoryGameInfo",Prefix="KFO",Acronym="ObjSui",GameName="Objective Mode 5 - Suicidal (12p)",Mutators="KFCtryTags.CtryTags,ServerPerksMut.ServerPerksMut,ScrnBalanceSrv.ScrnBalance,ScrnZedManager.ZedCfgC,MutKillMessage.MutKillMessage",Options="Difficulty=5?MaxPlayers=12")
GameConfig=(GameClass="ScrnBalanceSrv.ScrnStoryGameInfo",Prefix="KFO",Acronym="ObjHoe",GameName="Objective Mode 7 - HoE (12p)",Mutators="KFCtryTags.CtryTags,ServerPerksMut.ServerPerksMut,ScrnBalanceSrv.ScrnBalance,ScrnZedManager.ZedCfgC,MutKillMessage.MutKillMessage",Options="Difficulty=7?MaxPlayers=12")
GameConfig=(GameClass="TSC.TSCGame",Prefix="KF-",Acronym="TSC",GameName="TSC Sui - Team Survival Competition (20p)",Mutators="KFCtryTags.CtryTags,ServerPerksMut.ServerPerksMut,ScrnBalanceSrv.ScrnBalance,ScrnZedManager.ZedCfgC,MutKillMessage.MutKillMessage",Options="MaxPlayers=20?Difficulty=5?GameLength=1?OTWaves=2?SDWaves=1")
 

Kuebic

Member
Apr 13, 2014
218
0
16
Waterloo, IA USA
urinetroublenow.com
Thank you for the quick reply. Thanks for confirming the game-length problem. I guess manually changing is the way to go with this.

And as for setting up different lists, I realized what my issue was.

When creating default-maplists from the WebAdmin, it creates a new section in the killingfloor.ini and I assumed that is where the alternate list comes from.

Code:
[DefaultKFO MaplistRecord]
DefaultTitle=Default KFO
DefaultGameType=KFStoryGame.KFStoryGameInfo
DefaultActive=0
DefaultMaps=KFO-FrightYard
DefaultMaps=KFO-Steamland

So I hoped that with proper parameters, it would retrieve from DefaultKFO Maplist.

But I guess I had to put all the maps under one maplist and have the prefix KF- and KFO- sort them out.

I'm glad that's figured out now. Thanks for your help!
 

m1n1m3

FNG / Fresh Meat
Jun 29, 2014
1
0
0
Perks disabled when using Voting Handler Fix

Perks disabled when using Voting Handler Fix

Hi!

I've recently set up a dedicated KF server (linux) and installed this mutator in order to be able to change difficulty while playing. It's the only mutator that I've installed, everything else is vanilla. I've activated KFVoteMapV2 by copying both files into the "System" folder and changing

Code:
VotingHandlerType=xVoting.xVotingHandler

to

Code:
VotingHandlerType=KFMapVoteV2.KFVotingHandler

in KillingFloor.ini. Then I've added the voting options through the web interface.

It works, but there's big problem: perks are broken! All progress is lost each time I leave, as if the mod was not whitelisted! If I change the line above back to the original one, perks are working again.

Any suggestions? Did I forget to configure something?
 

Harryhy

FNG / Fresh Meat
May 17, 2011
48
0
0
How do I fix this error? https://i.imgur.com/iAQmI7p.jpg ("Map data download in progress. Please try again later.")

It makes voting impossible for quite a long time after mapchange (several minutes). I don't see anyone else mentioning this so I assume I am doing something badly? How can I remedy this? Thanks.
 

mmnicolas

FNG / Fresh Meat
Apr 7, 2013
370
0
0
How do I fix this error? [url]https://i.imgur.com/iAQmI7p.jpg[/URL] ("Map data download in progress. Please try again later.")

It makes voting impossible for quite a long time after mapchange (several minutes). I don't see anyone else mentioning this so I assume I am doing something badly? How can I remedy this? Thanks.

Sounds like you're either not using maplists and the server has to make up the list every time or you just happen to have a list with 2000 maps

Solution: check the box that says "Use Maplists" and/or try to only keep the good maps, I believe no more than a 150 exists and that's generous.
 

HappyTrueEvil

FNG / Fresh Meat
Apr 1, 2013
116
0
0
anyone figured out how to make the toy master a playable option thru voting mut? i put map prefix as TOY but in game no map is displayed?