DayZMapper for Pwn/Stapo and vanilla

I am getting an error at the top of the page,
"Refresh failed"[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="error # 2032"]

I am using Stapo's pack on 1.7.5.1
 
I am getting an error at the top of the page,
"Refresh failed"[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="error # 2032"]

I am using Stapo's pack on 1.7.5.1


Hmm, that's an error caused by the actual mapper itself, you will have to check zamps original git to see why it is happening. The only significant file I have modified is the bin\data.php. If that works as it should, the issue is out of my limitations I'm afraid.
 
Thank you, I will amend this on github when I get a chance. Feel free to submit a pull req if you have an account. (Hopefully I wont forget :3)
 
Hi DSH. What server pack are you using?

Can you view the data.php in a browser and tell me what it is saying please?
 
Quick tip for ayone having problems with this if ur inventory codes are null in object data pur [] in there and ur tents and vehicles will re appear like magic
 
Hi
I have same kinda problem. i see map but it dont show me anything else like tent and player locations etc
when i go data.php it says
''
<stuff>
No database selected
''
What i can do ?

edit: im using Pwnoz0rs build



edit: I think in my config.php is somekinda problem

<?php
/*
DatabaseConnection

Connects script to MySQL database. Edit the configuration below
*/
class DatabaseConnection {

//Server host or IP:port if remotely connecting
private $db_host = "****";
//Database Username
private $db_user = "***";
//Database Password
private $db_pass = "***";
//Database name
private $db_name = "hivemind";

function __construct()
{
$this->connect();
}

public function connect()
{
mysql_connect($this->db_host,$this->db_user,$this->db_pass) or die(mysql_error());
$this->selectDatabase($this->db_name);
}

public function selectDatabase($db) {
mysql_select_db($db);
}
}

/*
Configuration
*/
$config = array();
$config['instance'] = 1; // Instance number
$config['icons'] = true;
?>
 
I am getting an error at the top of the page,
"Refresh failed"[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="error # 2032"]

I am using Stapo's pack on 1.7.5.1

OK, I got rid of the first problem,

For Server Lite you need to replace last_updated to Datestamp, all will then work 100%

Have fixed it this way, but i cant see any Survivors/tents/vehicles on pwnoz0rs 1.7.7

EDIT: Fixed it. here is my data.php:

Code:
<?php
// works with schema 0.27
error_reporting(0);
 
header('Content-Type: text/plain');
// added to maybe fix cache blowing up to insane size
header('Cache-Control: no-cache, must-revalidate'); // HTTP/1.1
header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); // Date in the past
 
require_once 'config.php';
$db = new DatabaseConnection();
 
echo '<stuff>' . "\n";
 
 
$res = mysql_query("SELECT
    s.PlayerUID,
    s.Model,
    s.Worldspace,
    s.Inventory,
    s.Humanity,
    p.PlayerName,
    s.Datestamp,
    concat(s.KillsH, ' (', s.KillsH, ')') survivor_kills,
    concat(s.KillsB, ' (', s.KillsB, ')') bandit_kills
FROM
    character_data s
INNER JOIN
    player_data p on p.PlayerUID = s.PlayerUID
WHERE
    s.last_updated > DATE_SUB(now(), INTERVAL 5 MINUTE)
AND
    s.Alive = 1
") or die(mysql_error());
 
while($row = mysql_fetch_assoc($res))
{
   
    $explo_worldspace = $row['Worldspace'];
               
                $explo_worldspace = str_replace('[','',$explo_worldspace);
                $explo_worldspace = str_replace(']','',$explo_worldspace);
                $space = explode(',',$explo_worldspace);
               
    //$res2 = mysql_query("SELECT PlayerName from player_data WHERE PlayerUID = '".$row['PlayerUID']."'");
    //$row2 = mysql_fetch_assoc($res2);   
                           
               
    $row['x'] = $space[1];
    $row['y'] = -($space[2]-15365);
   
    $row['age'] = strtotime($row['Datestamp']) - time();
    //$row['name'] = htmlspecialchars($row2['Playername']);
   
    echo "\t" . '<player>' . "\n";
    foreach($row as $k => $v)
    {
       
        switch($k) {
            case "Model": $k = "model"; break;
            case "Alive": $k = "state"; $v = ($v == 1) ? 0 : 1; break;
            case "Worldspace": $k = "worldspace"; break;
            case "PlayerName": $k = "name"; break;
            case "Humanity": $k = "humanity"; break;
            case "Inventory": $k = "inventory"; break;
            case "Datestamp": $k = "Datestamp"; $v = strtotime($v); break;
            case "PlayerUID": $k = "id"; break;
            default: break;
        }
        echo "\t\t" . '<' . $k . '><![CDATA[' . $v . ']]></' . $k . '>' . "\n";
    }
    echo "\t" . '</player>' . "\n";
}
$res = mysql_query("SELECT
    ObjectID,
    ObjectUID,
    Worldspace,
    Classname,
    Inventory,
    Datestamp
FROM
    object_data
WHERE
    Classname != 'dummy' AND Classname != 'TentStorage' AND Classname != 'Hedgehog_DZ' AND Classname != 'Wire_cat1' AND Classname != 'Sandbag1_DZ' AND Classname != 'TrapBear'
") or die(mysql_error());
 
while($row =mysql_fetch_assoc($res))
{
    $explo_worldspace = $row['Worldspace'];
               
                $explo_worldspace = str_replace('[','',$explo_worldspace);
                $explo_worldspace = str_replace(']','',$explo_worldspace);
                $space = explode(',',$explo_worldspace);
               
               
    $row['x'] = $space[1];
    $row['y'] = -($space[2]-15365);
   
    $row['age'] = strtotime($row['Datestamp']) - time();
   
    echo "\t" . '<vehicle>' . "\n";
    foreach($row as $k => $v)
    {
        switch($k) {
            case "Worldspace": $k = "worldspace"; break;
            case "Classname": $k = "otype"; break;
            case "Inventory": $k = "inventory"; break;
            case "Datestamp": $k = "Datestamp"; $v = round(strtotime($row['Datestamp']) - time()); break;
            case "ObjectID": $k = "id"; break;
            //case "ObjectUID": $k = "world_vehicle_id"; break;
                        case "ObjectUID": $k = false; break;
            default: break;
        }
                if ($k) {
                    echo "\t\t" . '<' . $k . '><![CDATA[' . $v . ']]></' . $k . '>' . "\n";
                }
    } 
    echo "\t" . '</vehicle>' . "\n";
}
 
$query = mysql_query("SELECT
    ObjectID,
    Worldspace,
    Classname,
    Inventory,
    Datestamp
FROM
    object_data
WHERE
    Classname = 'TentStorage'
") or die(mysql_error());
 
while($row =mysql_fetch_assoc($query))
{
    $explo_worldspace = $row['Worldspace'];
               
                $explo_worldspace = str_replace('[','',$explo_worldspace);
                $explo_worldspace = str_replace(']','',$explo_worldspace);
                $space = explode(',',$explo_worldspace);
               
               
    $row['x'] = $space[1];
    $row['y'] = -($space[2]-15365);
   
    echo "\t" . '<deployable>' . "\n";
    foreach($row as $k => $v)
    {
        switch($k) {
            case "Worldspace": $k = "worldspace"; break;
            case "Classname": $k = "otype"; break;
            case "Inventory": $k = "inventory"; break;
            case "Datestamp": $k = "Datestamp"; $v = strtotime($v); break;
            case "ObjectID": $k = "id"; break;
            //case "ObjectUID": $k = "world_vehicle_id"; break;
                        case "ObjectUID": $k = false; break;
            default: break;
        }
                if ($k) {
                    echo "\t\t" . '<' . $k . '><![CDATA[' . $v . ']]></' . $k . '>' . "\n";
                }
    }
    echo "\t" . '</deployable>' . "\n";
}
 
echo '</stuff>' . "\n";
 
?>
 
  • Like
Reactions: Doc
Back
Top