-
Notifications
You must be signed in to change notification settings - Fork 1
Dynmap On Xenon Hosting Service, courtesy of mavbear
So as many people have noticed by now, running DynMap as-is on Xenon or several other full-time hosting services does not work, and attempting to access the page brings you to a black screen. This tutorial will hopefully help you get around that in just a few simple steps. It requires that you have your own webhosting service (in my case, 1and1.com)
First of all, download the latest version of DynMap here: http://webbukkit.org/jenkins/public/dynmap/dynmap-recommended-bin.zip - and upload the contents to your MC server like you would any other Bukkit plugin.
Unzip the file above to somewhere in your hard drive, open your FTP application (FileZilla is very good) and log into your webhosting service. You'll have to put the JS files that Xenon won't allow, into a folder somewhere on your webhost. Don't forget to copy "config.js" which is not in the /js/ folder. Remember the URL to this folder. (for me it's www.mavbear.com/map/web/js/)
Open whatever text editor you prefer and open up the "web/index.html" file on your hard drive. You will see several lines like this:
<script type="text/javascript" src="js/jquery.json.js"></script>
The part to focus on is "js/jquery.json.js" - you will have to rename it to your exact folder address. So for this instance, for me it would be "http://www.mavbear.com/map/web/js/jquery.json.js"
Do this for every one of those lines whose source tag starts with just "js", also do the same for the "config.js" line at the bottom of the list.
Save the index.html file and upload it over-top of the existing one in your MC server.
Next, open up map.js, go to line 330 (in v0.19.2 - may change with newer versions):
loadjs('js/' + configuration.type + '.js', function() {
Replace it with:
loadjs('(YOUR URL HERE)/js/' + configuration.type + '.js', function() {
Reupload the 'map.js' file to your webhosting service (not the MC server).
This part is necessary to see players on the map, and to use the chat function, otherwise you will just see the map.
This concludes my totally halfassed tutorial on making DynMap work. I'll probably do a video tutorial later on. Hope this helps!