Welcome, Guest. Please login or register.
Did you miss your activation email?
January 28, 2022, 10:40:10 pm

Login with username, password and session length
Search:     Advanced search
Savage: XR is a new patch for Savage, created by the Newerth.com staff. The XR1.1 Client is out now! Download it now!
190132 Posts in 11016 Topics by 18643 Members
Latest Member: Totty
* Home Forum Wiki Help Search Login Register
  Show Posts
Pages: [1]
1  Off Topic / Chat / Savage2 in german on: April 29, 2020, 08:32:12 pm
If you want to play savage2 in German in a German group, you can register here. Games are planned for Friday and Saturday
2  Savage XR / General Savage XR Discussion / Re: Necro's Balance Changes + New content:) on: April 28, 2020, 12:11:37 am
are we really trying to get it on steam? That would Afro
3  Savage XR / General Savage XR Discussion / Re: Last attempt for Savage XR on steam? on: April 10, 2020, 07:33:10 am
How is the state. Will it be tried or give up getting it on steam? Now that s2 is history
4  Other S2G Games / General Discussion / Re: Ai Comm +Bot Server online on: March 21, 2020, 11:32:50 am
Yeah CS Source too. On Sav 2 duel server
5  Other S2G Games / General Discussion / Ai Comm +Bot Server online on: March 20, 2020, 03:15:28 pm
If you feel like a round savrez again, you can play now. atm ai comm + bots online.

www.Badyyy.de
6  Savage XR / General Savage XR Discussion / Re: Game questions on: March 18, 2020, 02:39:22 pm
https://www.savagexr.com/beast_gameplay.html

Look here.
7  Savage XR / Support Forum / Re: Server Monitor on: March 13, 2020, 11:03:34 pm
After many hours of anger Angry Evil Ticked Off You Ugly & Stupid  I found a way. i think it's not the best but it works  Cheesy

code can thus be built into the website and adapted

<?php
error_reporting(0);
header("Refresh:10");
# Configuration:
$ip = '92.42.45.50';
$queryport = 11236 ;
####################################################################
$socket = @fsockopen("udp://".$ip, $queryport, $errno, $errstr);

stream_set_timeout($socket, 1);
stream_set_blocking($socket, TRUE);
fwrite($socket, "\x9E\x4C\x23\x00\x00\xFF\xFF\xCE\xF2\x3B\x18\x80");
$response = fread($socket, 4096);
@fclose($socket);

$packet = explode("\xFF", substr($response,1));
$server = array();
$map = array ($packet[2]);
$version = array ($packet[7]);
$player = array ($packet[3]);
$playermax = array ($packet[5]);

foreach ($map as $val )
{
    $mappack = explode ("\xFE" , substr( $val, 1));
   $map = array();
}
foreach ($version as $val1)
{
   $verpack = explode ("\xFE" , substr( $val1, 1));
   $version=array();
}
foreach ($player as $val2)
{
   $playerpack = explode ("\xFE" , substr( $val2, 1));
   $player=array();
}
foreach ($playermax as $val3)
{
   $maxpack = explode ("\xFE" , substr( $val3, 1));
   $playermax=array();
}
   




#$server['name'] = $packet[1];
$map['map'] = $mappack[1];
$server['status'] = $packet[0];
$version['version'] = $verpack[1];
$player['players'] = $playerpack[1];
$playermax['playersmax'] = $maxpack[1];
$server['password'] = $packet[10];
$file="img/maps/$map[map].jpg";

if ($server['status']) {
   $status="<span style='color:green;'>Server Online</span>";
} else {
   $status="<span style='color:red;'>Server Offline</span>";
}

if (file_exists($file)) {
    $img="$file";
} else {
    $img="img/maps/default.jpg";
}

if ($server['password']==1) {
   $password="Yes";
} else {
   $password="No";
}

?>

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Savage Server Status</title>
      <link href="style.css" type="text/css" rel="stylesheet"/>
        <meta name="robots" content="noindex,nofollow"/>
      <meta charset="UTF-8"/>
    </head>
   
    <body>
        <div class="main-box">
            <header><h2>SavageXr Server Status</h2></header>
            <main>
                <div class="flex">
                    <div class="flex-1">
                        <div>
                            <img src="<?php echo $img ?>"/>
                            <h4><?php echo $map['map']; ?></h4>
                        </div>
                    </div>
                    <div class="flex-2">
                        <h3>Status: <?php echo $status ?></h3>
                  <br/>
<!--                    <h3>Name: <?php echo $server['name']; ?></h3> -->
                  <h3>Name: SaVaGe Mods | Badyyy.de</h3>
                        <h3>Mode: <?php echo $version['version']; ?></h3>
                        <h3>Map: <?php echo $map['map']; ?></h3>
                        <h3>Players: <?php echo $player['players']; ?>/<?php echo $playermax['playersmax']; ?></h3>                                             
                  <h3>Password: <?php echo $password; ?></h3>
                    </div>
                </div>
            </br>
            </main>
           
         <footer>
            <h2>SavageXr.com | Newerth.com</h2>
         </footer>
        </div>
    </body>
</html>
8  Savage XR / Support Forum / Re: Server Monitor on: March 09, 2020, 12:49:17 pm
I did my best but I'm not good at php, I learned everything myself.
I have the script ready but don't know how to split the array and the "map.jpg" is unfortunately not loaded either
If it doesn't make too much of a mess, could you add the part?
Of course everyone is free to use the code, change it, etc.

Code:

<?php
error_reporting(0);
header("Refresh:10");
# Configuration:
$ip = '92.42.45.50';
$queryport = 11236 ;
####################################################################
$socket = @fsockopen("udp://".$ip, $queryport, $errno, $errstr);

stream_set_timeout($socket, 1);
stream_set_blocking($socket, TRUE);
fwrite($socket, "\x9E\x4C\x23\x00\x00\xFF\xFF\xCE\xF2\x3B\x18\x80");
$response = fread($socket, 4096);
@fclose($socket);

$packet = explode("\xFF", substr($response,1));
$server = array();

$server['name'] = $packet[1];
$server['map'] = $packet[2];
$server['status'] = $packet[0];
$server['version'] = $packet[7];
$server['players'] = $packet[3];
$server['playersmax'] = $packet[5];
$server['password'] = $packet[10];
$file="img/maps/$server[map].jpg";

if ($server['status']) {
   $status="<span style='color:green;'>Server Online</span>";
} else {
   $status="<span style='color:red;'>Server Offline</span>";
}

if (file_exists($file)) {
    $img="$file";
} else {
    $img="img/maps/default.jpg";
}

if ($server['password']==1) {
   $password="Yes";
} else {
   $password="No";
}

?>

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Savage XR Server Status</title>
      <link href="style.css" type="text/css" rel="stylesheet"/>
        <meta name="robots" content="noindex,nofollow"/>
      <meta charset="UTF-8"/>
    </head>
   
    <body>
        <div class="main-box">
            <header><h2>Simple Monitor Test</h2></header>
            <main>
                <div class="flex">
                    <div class="flex-1">
                        <div>
                            <img src="<?php echo $img ?>"/>
                            <h4><?php echo $server['map']; ?></h4>
                        </div>
                    </div>
                    <div class="flex-2">
                        <h3>Status: <?php echo $status ?></h3>
                        <h3>Name: <?php echo $server['name']; ?></h3>
                        <br/>
                        <h3>Version: <?php echo $server['version']; ?></h3>
                        <h3>Map: <?php echo $server['map']; ?></h3>
                        <h3>Players: <?php echo $server['players']; ?>/<?php echo $server['playersmax']; ?></h3>
                        <br/>                        
                        <h3>Password: <?php echo $server['password']; ?></h3>
                  <h3>Password: <?php echo $password; ?></h3>
                    </div>
                </div>
            </br>
            </main>
            
         <footer>
            <h2>Simple Monitor Test</h2>
         </footer>
        </div>
    </body>
</html>

9  Savage XR / Support Forum / Re: Server Monitor on: March 08, 2020, 06:14:58 am
wow thank you Groentjuh. Then I'll try. Grin
10  Savage XR / Support Forum / Server Monitor on: March 06, 2020, 07:20:41 am
Hi there. I wanted to create a gameserver monitor on my website. php script. My question. Is there a query port to listen? There is no response via the set server port 11235.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.021 seconds with 19 queries.