dynmap-2

#35 - published a year ago

Dynmap 2

This plugin sends data to a PHP server that displays player positions, direction, whether the player is in a vehicle or dead. The web version is required to use this!!!

 

WEB Version Here current version is v0.7.2.

\""Dynmap"\"

I use EasyPHP WebServer if you use EasyPHP devserver you cannot access the webpage from other computers only at 127.0.0.1.

 

I might make a video on how to do this.

Plus EasyPHP webserver is only on Windows

Im sure you could find something else that would do it on linux but your on your own if you do that.

 

  1. Put the dynmap.dll in your plugins folder
  2. Start server so server creates config file.
  3. goto http://www.easyphp.org/ and download WEBSERVER otherwise it will not be visible on computers other than host computer
  4. Install EasyPHP Webserver
  5. Download this and copy the contents of the web folder into www folder in EasyPHP webserver folder
  6. Start EasyPHP webserver go down to the toolbar in the bottom right of windows and click up arrow and find the easyphp icon. Right click and click dashboard.
  7. Here you need to install php through the dashboard and find the url to your webserver for example http://192.168.1.101:888 < note the :888 is the port so you need to port forward this port. You should be able to find this on the dashboard of Easyphp where it lists the ip of the webserver.
  8. Port forward TCP. Also note that some ISPs\’ block port 80 from being port forwarded unless you have a enterprise connection or something. Port 80 is the default for web browsing.
  9. Document root is the folder you need for step 5
  10. In the rocketdynmap config define the url of your webserver where it askes for it. Make sure to add the :port after and i recomend if the webserver is on the same network as your unturned server you use the local ip url. If you are hosting the webserver on the same computer as your unturned server your url should be http://127.0.0.1
  11. Another thing i recomend is that you navigate to your unturned folder goto maps and the maps you use copy the map.png and rename it to the name of the map and place it in the .maps folder in your PHP. It should of create it when you ran your PHP server for the first time with the PHP files in the www folder.
  12. To change the syncInterval which is how often it updates. Goto the config in your rocket for dynmap and change the syncInterval. The syncInterval is in milliseconds so 1000 is 1 second. Then you have to goto the www folder and then config folder and open config.dat in notepad. Change the interval to the same as the plugin. This i also where you disable or enable login and other features. To set up the login profiles goto the users.dat in the same folder. Also you can change the sync interval of the plugin only while the unturned server is running by doing /syncint (time in ms). Note this will not change the config file so next time you start your unturned server it will not have that sync interval.

 

This is a poor description but if your resourceful you should be able to pull it off.

If not good luck.

Once I get the player list working how I want to I plan on somehow adding a RCON window and maybe /spy functionality so dynmap can be more of a solid remote administration method than RCON by itself. Here is my current progress sheet/plans Here.

Also I believe that display in chat in the config for the plugin is set to true. I would set this to false if i were you.

If you want to give suggestions comment on this plugin.

BTW i plan on making this into an adminstration console so that people can easily remotely adminstrate.

Another thing is you might want to turn login on so that random people cant use it to get an advantage in pvp scenarios.

 

Love my work? Consider Donating

Based off the work by LinhyCZ, and AnthoDingo info can be found below.

Developed by LinhyCZ, http://linhy.cz
Modified by AnthoDingo
Modified by Alec123445

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<DynmapConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <PrivateKey>MySecretPrivateKey</PrivateKey>
  <syncInterval>5000</syncInterval>
  <WebCoreAddress>http://localhost</WebCoreAddress>
  <displayInChat>false</displayInChat>
  <displayIfVanish>false</displayIfVanish>
</DynmapConfiguration>

Default english translation


<?xml version="1.0" encoding="utf-8"?>
<Translations xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />

Commands and permissions


/syncinterval /syncint <Interval>

Permissions: syncinterval

Changes syncinterval while running.


Git changelog


2b9e44e3b6faed9 2017-07-07 16:28:34

Small format change to location posting

    0238fd818be5944 2017-06-20 04:56:29

    Update README.md

      2b0eac0f48ae6fc 2017-06-20 04:56:15

      Update README.md

        90639fa316ee664 2017-06-20 04:56:05

        Update README.md

          30be9d19b72a6c5 2017-06-20 04:54:47

          Create README.md

            ed94d1e4057d504 2017-06-19 23:19:28

            Added Charts

            • You can now switch between chart and satellite mode on the web
            • UPDATE TO VERSION 0.5 OF WEB DYNMAP

            28630a0234d1fe0 2017-06-16 17:58:08

            added syncinterval command

              98176ad167de803 2017-06-07 21:06:25

              Bug fix

              • Fixed bug where when you /rocket unload dynmap and /rocket load dynmap duplicates of players would be created
              • added warning informing server that dynmap is unloading

              ef9c9fa41f47ba7 2017-06-06 23:13:44

              /vanish players be visible with setting in config

                4b09e4379bbe394 2017-06-06 23:10:55

                option to make players that are /vanish visible

                  7546cd486bc892e 2016-12-05 22:29:20

                  Micro patch

                  • You do not need to update to this

                  8015049434e5bff 2016-12-03 05:33:53

                  Update to v0.4

                    5cd7a8a02b7c063 2016-11-18 23:51:48

                    Delete Assembly-UnityScript-firstpass.dll

                      e292c207b32236f 2016-11-18 23:47:32

                      Fixed extra dll in download

                        6dc83ca3208f268 2016-11-18 23:44:26

                        fixed build

                          ab8bbae9f0529ae 2016-11-18 23:43:14

                          Add files via upload

                            879f19967bdbd2b 2016-11-18 23:39:39

                            optimize usings

                              bde4d579c78139d 2016-11-18 22:32:49

                              Add files via upload

                                2b907f484fdf1c7 2016-11-18 22:31:31

                                Update Dynmap.csproj

                                  d2d6f18548332fe 2016-11-18 22:30:49

                                  Update Dynmap.csproj

                                    1c911ef7156e123 2016-11-18 22:29:37

                                    Delete index.php

                                      35a9a3a6667fd0c 2016-11-18 22:29:24

                                      Delete dynmap-config.php

                                        7b61eedaa289d81 2016-11-18 22:29:17

                                        Delete dynmap-core.php

                                          8816842ae046552 2016-11-18 22:29:06

                                          Delete Dynmap Windows.zip

                                            4c255dc754efb85 2016-11-18 22:27:10

                                            Fixed Build this time i think

                                              7cb2780845e6e16 2016-11-18 22:24:49

                                              Fixed build failure

                                                d70eda5e66bf293 2016-11-16 16:53:21

                                                Changed build settings-

                                                  85800b09eca2fb8 2016-11-16 06:08:06

                                                  Delete charp

                                                    7d6cba598eebdf3 2016-11-09 19:15:55

                                                    Update config

                                                      7b1c6a824a9182b 2016-11-08 18:45:48

                                                      Update Dynmap.csproj

                                                        4672b2a019e27ea 2016-11-08 18:44:19

                                                        Updated build info

                                                          12882b4b0da16d9 2016-11-08 18:41:59

                                                          Updating Libs

                                                            7d919970670b615 2016-11-04 23:05:46

                                                            Works with latest unturned/rocket

                                                              14aba4ddc60aceb 2016-10-27 16:40:09

                                                              Update Dynmap.csproj

                                                                87af75f81c813bb 2016-10-27 16:35:43

                                                                Update Dynmap.csproj

                                                                  752d2986f29151a 2016-10-26 19:17:05

                                                                  Update Dynmap.csproj

                                                                    46debc865a7cbd8 2016-10-26 19:11:55

                                                                    Add files via upload

                                                                      4d5fae6b955a8c8 2016-10-26 19:07:25

                                                                      anothor one

                                                                        ca7e7121ff042de 2016-09-28 15:23:40

                                                                        WIndows Build

                                                                          e9c0708a8a943be 2015-10-28 22:22:51

                                                                          Added dynmap.dat file creation when it doesn't exist.

                                                                            5d7780fa4f94628 2015-10-28 22:22:28

                                                                            Fixed bug, where positions on small and large maps wouldn't show correctly.

                                                                              0e690ba68602fc2 2015-10-28 22:21:43

                                                                              Added error message for uploading too big file

                                                                                fa521283a7891e0 2015-10-27 19:15:33

                                                                                Removed outdated TODO list

                                                                                  91940a5f9230048 2015-10-27 19:12:53

                                                                                  Added support for vanish mode

                                                                                    ba0db09e2a9fcd5 2015-10-27 11:42:12

                                                                                    Added some functions

                                                                                      10c82af63c61c42 2015-10-27 11:40:45

                                                                                      Edited config

                                                                                        122f67ac9c9e35e 2015-10-27 11:38:39

                                                                                        Added files od Dynmap

                                                                                          Download

                                                                                          Build #35
                                                                                          By downloading this file, you agree to our license terms.

                                                                                          Repository

                                                                                          github.com

                                                                                          License

                                                                                          MIT

                                                                                          Author

                                                                                          Alec123445