Jump to content

Killing Floor Slots- questions


Recommended Posts

I wasn't going to share until I seen this post so. Proof that it works. 85.25.236.201:7707

 

Also it only took 3 mins for one of my admins to write this up.

 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>CvG Killing Floor MaxPlayers Enforcer</title>
<HTA:APPLICATION ID="HTA" width="640" height="480" />
<script type="text/javascript">
var mutex = false;
var src = "http://username:password@serverip/ServerAdmin/current_console_send";
var cmd = new Array();
var func = new Array();
cmd[0] = "set Engine.GameInfo MaxPlayers 32";
cmd[1] = "set KFMod.KFGameType MaxZombiesOnce 64"
cmd[2] = "set IpDrv.TcpNetDriver MaxClientRate 24000";
cmd[3] = "set IpDrv.TcpNetDriver MaxInternetClientRate 24000";
//cmd[4] = "set IpDrv.TcpNetDriver NetServerMaxTickRate 20";
//cmd[5] = "set IpDrv.TcpNetDriver LanServerMaxTickRate 35";

for ( var i = 0; i < cmd.length ; i++ )
func[i] = new Function( "frames[0].window.document.forms[0].SendText.value = cmd["+i+"];" );

function update() {
if ( mutex ) return;
mutex = true;
update_reset();
var i = 0, t = 0;
for ( ; i < cmd.length; i++ ) {
	setTimeout( func[i], t+=250 );
	setTimeout( update_click, t+=250 );
	setTimeout( update_reset, t+=1500 );
}
setTimeout( update_finished, t );
}

function update_reset() {
frames[0].navigate("about:blank");
frames[0].navigate( src );
}
function update_click() {
frames[0].window.document.forms[0].Send.click();
}

function update_finished() {
mutex = false;
}

window.onload = function () {
setInterval( update, 100 );
}

function returnTrue() { return true; }
function returnFalse() { return false; }

window.onerror = returnTrue;

window.resize( 640, 480 )

</script>
</head>
<body scroll="no" border="0" >
<iframe width="600" height="440" onerror="returnTrue()" border="0"></iframe>
</body>
</html>

 

Put this in a batch file and your good to go.

 

 

Warning the game will use 20 to 25% of your cpu. It did on my 9400 with 8 gigs of ram.

 

your admin likes to make things complicated. I got a 3 lines script working perfectly.

Link to comment
Share on other sites

That's awesome thanks for sharing nothing with the class.

 

 

If you had spend only a couple of hours searching on Tripwire forums and playing the game you would been able to figure out how to do by yourself and provide a non short handed service by knowing the game you host.

 

I use to share some tips, last "important" one was about how to get murmur working with TCA but im not gona spoon feed ppl who dont even spend a minute searching something that can probably even be found on google by now.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Who's Online   0 Members, 0 Anonymous, 5 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use