• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

ERROR : STATUS SERVER IN ACCMAKER

Lemoo

New Member
Joined
Oct 17, 2018
Messages
5
Reaction score
0
Hello, I have a problem with the status of OTS
ots enabled and error on acc (see ss)
Bez tytułu.jpg

he writes in line 34
I paste the status.php content here:
Code:
// connects to server
        $socket = @fsockopen($host, $port, $errorCode, $errorString, 1);
        $data = 'C:\Users\player\Desktop\Wodbo\Silnik\data';
        // if connected then checking statistics
        if($socket)
        {
            // sets 1 second timeout for reading and writing
            stream_set_timeout($socket, 1);

            // sends packet with request
            // 06 - length of packet, 255, 255 is the comamnd identifier, 'info' is a request
            fwrite($socket, chr(6).chr(0).chr(255).chr(255).'info');

            // reads respond
            while (!feof($socket)){
                $data .= fread($socket, 128);
            }

            // closing connection to current server
            fclose($socket);
        }
    return $data;
}
if ($cfg['status_update_interval'] < 60) $cfg['status_update_interval'] = 60;
$modtime = filemtime('status.xml');
if (time() - $modtime > $cfg['status_update_interval'] || $modtime > time()){
    $info = getinfo($cfg['server_ip'], $cfg['server_port']);
    if (!empty($info)) file_put_contents('status.xml',$info);
}else $info = file_get_contents('status.xml');
if (!empty($info)) {
$infoXML = simplexml_load_string($info);

    $up = (int)$infoXML->serverinfo['uptime'];
    $online = (int)$infoXML->players['online'];
    $max = (int)$infoXML->players['max'];

    $h = floor($up/3600);
    $up = $up - $h*3600;
    $m = floor($up/60);
    $up = $up - $m*60;
    if ($h < 10) {$h = "0".$h;}
    if ($m < 10) {$m = "0".$m;}
    echo "<span class=\"online\">Online</span><br/>\n";
    echo "<span class=\"players\">Players: <b>$online/$max</b></span><br/>\n";
    //echo "<span class=\"monsters\">Monsters: <b>".$infoXML->monsters['total']."</b></span><br/>\n";
    echo "<span class=\"uptime\">Uptime: <b>$h:$m</b></span><br/>\n";
} else {
    echo "<span class=\"offline\">Offline</span>\n";
}
?>

here the contents of status.xml (without entering the location of the engine $ data [3 line status.php see above]) [after entering the server location, the content below disappears and it is replaced by the code given (read below)

Code:
<?xml version="1.0"?>

-<tsqp version="1.0">

<serverinfo version="" client="8.0" server="WODBO" url="" location="Poland" port="7171" servername="World of Dragon Ball Online" ip="localhost" uptime="0"/>

<owner email="" name="LEMO"/>

<players peak="0" max="120" online="1"/>

<monsters total="4136"/>

<map name="WODBO" height="" width="" author=""/>

<motd>World of Dragon Ball Online</motd>

</tsqp>

And after adding the location $ data in status.php VV
Code:
// connects to server
        $socket = @fsockopen($host, $port, $errorCode, $errorString, 1);
        $data = 'C:\Users\player\Desktop\Wodbo\Silnik\data';


the status.xml file changes its content to this:
Code:
C:\Users\player\Desktop\Wodbo\Silnik\data


That is, on the location of the engine itself with the data folder
My ots its opened on xampp(windows localhost)
Translate witch Translate google
 
Back
Top