DODGE BEATS SHOOTING SERVER

Topics and posts about all other servers...
Post Reply
nelg

DODGE BEATS SHOOTING SERVER

Post by nelg »

Skit started a clan, i share a cp and ingame admin with skit. I have problems tho :
1. The server lags. (Lots of people with 300 ping saying that they lag)

2. The server shut it self down a few times (once using spawn_zone, another time when skit used the cp.)

3. When the server shuts down, it looses all the information that i put in for the settings. (possabley i could use a backup script? i dont know how to make one...)

4. The language file wont load... it stays default.

5. People spam their instant chats
Moofie
Core Dumper
Posts: 125
Joined: Fri Jan 27, 2012 1:36 am
Location: Ohio
Contact:

Re: DODGE BEATS SHOOTING SERVER

Post by Moofie »

1. Not much you can do about lag, talk to the hoster to see if you can get a better connection.

2. It probably isn't shutting itself down, it may be crashing. What kind of control panel access do you have? Like, mine is SSH, and if I start a server I need to open a screen for it so I can do other things

Code: Select all

screen -S servername
3. Loses settings? Sounds like you entered them through console, which isn't permanent. Put them in your settings_custom.cfg file.

4. In your server_info.cfg (its where i'd put it atleast) make sure you have the lines

Code: Select all

LANGUAGE_FIRST Custom 
then in at the top of your language file at the top you need (probably names custom.txt)

Code: Select all

LANGUAGE Custom
followed by all your custom language strings.

5. You want spam protection, use commands such as

Code: Select all

SPAM_PROTECTION
SPAM_PROTECTION_CHAT
nelg

Re: DODGE BEATS SHOOTING SERVER

Post by nelg »

XML...

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Armagetron Advanced Server Administration</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"/>
<meta http-equiv="content-style-type" content="text/css"/>
<meta http-equiv="expires" content="0"/>
<script type="text/javascript">
function action(action) {
	document.getElementById("start").disabled = "disabled";
	document.getElementById("restart").disabled = "disabled";
	document.getElementById("stop").disabled = "disabled";
	var xmlhttp;
	if (window.XMLHttpRequest) {
		xmlhttp = new XMLHttpRequest();
	}
	else {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
			response = xmlhttp.responseText;
			if (response == "started") {
				document.getElementById("start").disabled = "disabled";
				document.getElementById("restart").disabled = false;
				document.getElementById("stop").disabled = false;
			}
			else if (response == "stopped") {
				document.getElementById("stop").disabled = "disabled";
				document.getElementById("start").disabled = false;
				document.getElementById("restart").disabled = "disabled";
			}
			else {
				alert("Error try again");
			}
		}
	}
	xmlhttp.open("GET","armagetron.php?action="+action,true);
	xmlhttp.send();
}
function updateLog() {
	var xmlhttp;
	if (window.XMLHttpRequest) {
		xmlhttp = new XMLHttpRequest();
	}
	else {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
			log = document.getElementById("armalog");
			if (log.scrollTop + 5 >= (log.scrollHeight - log.offsetHeight)) {
				log.innerHTML = xmlhttp.responseText;
				log.scrollTop = log.scrollHeight;
			}
			else {
				log.innerHTML = xmlhttp.responseText;
			}
		}
	}
	xmlhttp.open("GET","armagetron.php?action=getLog",true);
	xmlhttp.send();
}
function command(command) {
	var xmlhttp;
	if (window.XMLHttpRequest) {
		xmlhttp = new XMLHttpRequest();
	}
	else {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
			if (xmlhttp.responseText != "success") {
				alert("Command not sent.  Try again.");
			}
		}
	}
	xmlhttp.open("GET","armagetron.php?action=command&command="+command,true);
	xmlhttp.send();
}
setInterval("updateLog()", 500);
</script>
</head>
<body><input type="button" id="start" value="Start Server" onclick="action('start')" disabled/><input type="button" id="stop" value="Stop Server" onclick="action('stop')"/><input type="button" id="restart" value="Restart Server" onclick="action('restart')"/>
<br />
<textarea id="armalog" rows="25" cols="100" disabled></textarea>
<br />
<input type="text" id="command" size="125" onkeypress="if (window.event && window.event.keyCode == 13){command(this.value);this.value='';};"/>
</body>
</html>
Last edited by nelg on Thu Apr 26, 2012 10:49 pm, edited 29 times in total.
Moofie
Core Dumper
Posts: 125
Joined: Fri Jan 27, 2012 1:36 am
Location: Ohio
Contact:

Re: DODGE BEATS SHOOTING SERVER

Post by Moofie »

Um.. well... 1... that's html. 2, there is no start-html part...
SoulOfSet
On Lightcycle Grid
Posts: 30
Joined: Tue Feb 22, 2011 3:54 am
Contact:

Re: DODGE BEATS SHOOTING SERVER

Post by SoulOfSet »

Oh dear. That is not php at all. Whether some of the HTML has been returned by php processes is unknown but that is obviously not a PHP script. For one thing you cannot find tell tale opening php tags and the actual scripting part of that script is javascript. By the content it looks like a control panel for a server. The php most likely works off this.
nelg

Re: DODGE BEATS SHOOTING SERVER

Post by nelg »

SoulOfSet wrote:Oh dear. That is not php at all. Whether some of the HTML has been returned by php processes is unknown but that is obviously not a PHP script. For one thing you cannot find tell tale opening php tags and the actual scripting part of that script is javascript. By the content it looks like a control panel for a server. The php most likely works off this.
My hoster labled it armagetron.php
The title is Armagetron Advanced Server Administration.
But actually its <?xml version="1.0" encoding="UTF-8"?>


Moofie: actually i didn't put the start-part thingy... my hoster only made it so i can get to the html file
nelg

Re: DODGE BEATS SHOOTING SERVER

Post by nelg »

Anyways... The server is now

Orignal (currently):
30 rubber
Shooting

Improovements (currently):
Dead eating zones (collapse automaticly after 10 seconds of being spawned)
Name updated from DODGE BEATS SHOOTING SERVER to DB|High rubber shooting & zones

Future:
Will be scripted (custom commands... ETC)
Will have a custom language file
Will have improvements on cp
Will have different maps
Will improove glitching and rubber problems (when i find out commands)
Post Reply