Jump to content

Server Live Map


linuxx

Recommended Posts

We were looking for a live map tool to administer our server remotely. There didn't seem to be anything specifically written for epoch, so I hacked one that was written for Bliss. Its not the best, but it shows live players and vehicles from a web browser.

 

You will need access to a web server with PHP installed, and access to your MySQL instance to use this (I assume that some hosting environments don't provide this).

 

https://github.com/linuxx/DayZMapper

 

Let me know what you think.

 

*UPDATE September 15, 2013

-Fixed Survivor kills, and bandit kills

 

**UPDATE September 17, 2013

-Added backpack inventory to player hover-

-Fixed formatting on player hover

 

***UPDATE May 2, 2014

-Fixed the tool tip on hidden vehicles or players from poping up

-Made the tool tips easier to understand with better formatting

-Changed the install procedure, check the new config.php!!

 

****UPDATE May 18, 2015

-Added Napf

 

 

gCA7BWy.jpg

1HXRNMM.jpg

post-2338-0-79966700-1378949689_thumb.jp

post-2338-0-63062000-1379386995_thumb.jp

Link to comment
Share on other sites

Questions about install please below:

 

1. Copy bin/* to your webhost (Can be the server that DayZ is running on but you
will need either apache or some other http server that can handle php) - You mean all of the file contents I downloaded from github or just the bin file?
2. Rename example_config.php to config.php - Understood
3. Change config.php to have your username/password/hostname etc. - Understood
4. Copy one map txt file from maps to where dayzmapper.swf is and rename to map.txt - Where do I find this map txt file?
5. Point your browser to wherever you copied stuff to. - Understood

 

Thanks, this will help until new php admin tools released.
 

Link to comment
Share on other sites

Ok help please, what am I doing wrong, I use private hive tools no problem, I put the above tool into the same location & when I go to any of the pages they just come up blank/white?

 

Thanks.

Its possible that the scrip is erroring out.

You should have unzipped the contents of bin into a directory on your webserver (e.x. /map). It should have these files in it.

https://github.com/linuxx/DayZMapper/tree/master/bin (with the renamed config.php, and the map.txt)

Hit your webserver with that directory, if its still blank, hit the data.php (e.x. http://www.example.com/map/data.php), do you see XML?

Link to comment
Share on other sites

No Joy.

 

So I use Wamp to host (working fine with private hive tools), I place the contents of the bin file into my www. folder from your download

 

I rename the chernarus.txt file to map.txt found in maps & place that into the www. folder with contents of bin file (nothing else is in that www. folder except contents of bin file & map.txt file)

 

Question, what are the other files for included in the download if I'm only using the contents of the bin file? Should I use them at all anywhere in my www. folder?

 

I get a blank page when opening config.php?

 

Thoughts?

 

Thanks, apologies for not grasping this lol.

Link to comment
Share on other sites

Question, what are the other files for included in the download if I'm only using the contents of the bin file? Should I use them at all anywhere in my www. folder?

 

I get a blank page when opening config.php?

 

The other files in the download are the source files of the shockwave program that is performing the presentation of the map (the "google" map), you dont need them. The PHP files (the files I modified) are performing the backend data services to the shockwave program to display players, etc on the map.

You say you see nothing in the config.php... When you open it in Notepad (C:\wamp\apache\www\config.php) , or when you open it through a web browser (http://www.myawesomeepochserver.com/config.php)?

When you open it through notepad, you should see this...

https://github.com/linuxx/DayZMapper/blob/master/bin/example_config.php

(with your config settings, not the generic)

When you open config.php through a web browser, it should be blank. It doesn't output anything.

When you open data.php through a web browser, you should see something. Either XML, or an error.

Its possible that your php.ini is configured to suppress errors. In your wamp package, locate the php.ini (configuration for php)

locate "error_reporting". Most configs come with something like this "error_reporting = E_ALL & ~E_NOTICE"

Make it look like this;

error_reporting = E_ALL

Bounce apache and try data.php again. If there is an error, it will show it.

 

Link to comment
Share on other sites

Ok, I configured my settings thru notepad++ all good.

 

I open data.php through my browser & see a ton of stuff like this:

 

<stuff>
    <icons>true</icons>
    <player>
        <id><![CDATA[3]]></id>
        <model><![CDATA[bandit2_DZ]]></model>
        <state><![CDATA[["DMR","amovppnemstpsraswrfldnon",42]]]></state>
        <worldspace><![CDATA[[197,[12120.8,12643.8,9.15]]]]></worldspace>
        <inventory><![CDATA[[["NVGoggles","Binocular_Vector","UZI_SD_EP1","ItemMatchbox","ItemCompass","ItemToolbox","ItemGPS","ItemHatchet","ItemKnife","ItemMap","ItemEtool","ItemCrowbar","DMR"],["ItemPainkiller","ItemBloodbag","HandGrenade_West","HandGrenade_West","20Rnd_762x51_DMR","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","ItemBandage","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","20Rnd_762x51_DMR","20Rnd_762x51_DMR","20Rnd_762x51_DMR","20Rnd_762x51_DMR","20Rnd_762x51_DMR","20Rnd_762x51_DMR","20Rnd_762x51_DMR"]]]]></inventory>
        <name><![CDATA[Peggy Mitchell]]></name>
        <humanity><![CDATA[12792]]></humanity>
        <last_updated><![CDATA[2013-08-24 16:04:17]]></last_updated>
        <survivor_kills><![CDATA[27]]></survivor_kills>
        <bandit_kills><![CDATA[0]]></bandit_kills>
        <x><![CDATA[12120.8]]></x>
        <y><![CDATA[2721.2]]></y>
        <age><![CDATA[-1740084]]></age>
    </player>
    <player>
        <id><![CDATA[1680]]></id>
        <model><![CDATA[survivor2_DZ]]></model>
        <state><![CDATA[["M4A1_HWS_GL_camo","aidlpercmstpsraswrfldnon_aiming0s",42]]]></state>
        <worldspace><![CDATA[[116,[9617.04,2204.71,0.002]]]]></worldspace>
        <inventory><![CDATA[[["ItemFlashlight","ItemHatchet","Colt1911","ItemKnife","ItemMatchbox","Binocular","ItemMap","ItemWatch","ItemCrowbar","ItemKeyKit","M4A1_HWS_GL_camo"],["ItemMorphine","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","ItemPainkiller","FoodCanBakedBeans","ItemAntibiotic","ItemSodaCoke","20Rnd_762x51_DMR","SmokeShellRed",["7Rnd_45ACP_1911",6],"7Rnd_45ACP_1911","7Rnd_45ACP_1911","7Rnd_45ACP_1911","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD"]]]]></inventory>
        <name><![CDATA[cpt.smack]]></name>
        <humanity><![CDATA[-765]]></humanity>
        <last_updated><![CDATA[2013-09-06 21:02:26]]></last_updated>
        <survivor_kills><![CDATA[1]]></survivor_kills>
        <bandit_kills><![CDATA[0]]></bandit_kills>
        <x><![CDATA[9617.04]]></x>
        <y><![CDATA[13160.29]]></y>
        <age><![CDATA[-598995]]></age>
    </player>
    <player>

 

 

I have this error in the log:

 

[Fri Sep 13 20:18:25.984601 2013] [:error] [pid 5980:tid 808] [client 127.0.0.1:51596] script 'C:/wamp/www/index.php' not found or unable to stat
[Fri Sep 13 20:30:03.294649 2013] [mpm_winnt:warn] [pid 5980:tid 856] (OS 64)The specified network name is no longer available.  : AH00341: winnt_accept: Asynchronous AcceptEx failed.
 

 

 

 

Is this right? If so how do I open the map?

 

Thanks

Link to comment
Share on other sites

So weird as I can also use the newly released trader tools without issue & the private hive tools using wampserver but this map wont have it, must be obvious to the people who know, clearly i'm not one of those lol.

 

After a remote control session, there was 2 issues;

  1. Using Internet Explorer (doesn't work)
  2. Wrong MySQL port on the config

Thanks,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...