DayzMapper Thread

my heatmap with 1 month of logs :D
Aua1UMv.jpg
 
I hate to say it... but I'm going to need an extremely 'dumb' installation/setup guide for that Heatmap, lol. :oops:

I wouldn't even know where to begin to hook all this in; I'm running a few Private Servers with DayZ Mapper... is there where it gets the info/logs?
 
Oh and more on the topic of "DayZ Mapper" - I'm curious if anyone has it working with DayZ+ ?
 
So is there way to ignore that "movement line" from debug to spawn location?
bin\data.php
replace from line 45 to "// Fetch vehicles"
PHP:
foreach($rows as $row)
{
    $posArray = json_decode($row['worldspace']);
   
    $row['x'] = $posArray[1][0];
    $row['y'] = -($posArray[1][1]-15365);
    if ($row['x'] > 100 and $row['y'] > 100)
    {
   
    $row['age'] = strtotime($row['last_updated']) - time();
    $row['name'] = htmlspecialchars($row['name']);
   
    echo "\t" . '<player>' . "\n";
    foreach($row as $k => $v)
    {
        echo "\t\t" . '<' . $k . '><![CDATA[' . $v . ']]></' . $k . '>' . "\n";
    }
    echo "\t" . '</player>' . "\n";
    }
}
Tested on Chernarus.
 
bin\data.php
replace from line 45 to "// Fetch vehicles"
PHP:
foreach($rows as $row)
{
    $posArray = json_decode($row['worldspace']);
 
    $row['x'] = $posArray[1][0];
    $row['y'] = -($posArray[1][1]-15365);
    if ($row['x'] > 100 and $row['y'] > 100)
    {
 
    $row['age'] = strtotime($row['last_updated']) - time();
    $row['name'] = htmlspecialchars($row['name']);
 
    echo "\t" . '<player>' . "\n";
    foreach($row as $k => $v)
    {
        echo "\t\t" . '<' . $k . '><![CDATA[' . $v . ']]></' . $k . '>' . "\n";
    }
    echo "\t" . '</player>' . "\n";
    }
}
Tested on Chernarus.

However this doesn't catch those off the map now. Also this line:
if ($row['x'] > 100 and $row['y'] > 100)
Should be in the syntax:
if (($row['x] > 100) && ($row['y] > 100))
For better compatibility

IMO a better way would be to catch it where it is NULL or they are dead.

So:
Code:
if ((($row['x'] == 0) && ($row['y'] == 0)) || (($row['x'] < -18000) && ($row['y'] > 25000)))

This checks for those where the row is either not set, or their value is dead. Yet to try it, but let me know how it works.
 
Anyone know what my issue might be when DayZMapper doesn't show all the players immediately? It takes awhile for all the players to slowly update (I guess?) over time....

I've got 30 people on a server right now and I only see 3 of them and then more and more slowly trickle in.
 
Just curious if anyone else is having this issue... however mine might be unique since it's Taviana and still not on 1.7.5.x - However we did deploy the 101480 beta patch.
 
Anyone know what my issue might be when DayZMapper doesn't show all the players immediately? It takes awhile for all the players to slowly update (I guess?) over time....

I've got 30 people on a server right now and I only see 3 of them and then more and more slowly trickle in.

I think this is just how it works... this is why I use an old (and broken) version of the code.
 
Hrm; it certainly used to show everyone at all once when I refreshed/first ran it. However, now, it seems to be pretty unreliable. (Leaving people on the map after they log off and such)
 
trying to get this working for my server but i get just the map with no data. When i view data.php in my browser i get
"could not find driver" Anyone know the reason for this?
 
Back
Top