-
Notifications
You must be signed in to change notification settings - Fork 428
Dynmap with IIS
This page assumes:
- The root directory of your webserver is found at
C:\Inetpub\wwwroot\
. - You have IIS and CraftBukkit running on the same machine.
- You have ASP.NET enabled in IIS (http://support.microsoft.com/kb/315122).
Start:
- To start, create the directory
C:\Inetpub\wwwroot\dynmap\
. - Create the directory
C:\Inetpub\wwwroot\dynmap\tiles\
. - Copy the contents of the
web
directory found in the repository toC:\Inetpub\wwwroot\dynmap\
.
You should now have the following file: C:\Inetpub\wwwroot\dynmap\up.aspx
.
-
Go to
minecraft_server/plugins/dynmap/configuration.txt
and make sure you have the propertytilespath
set toC:\Inetpub\wwwroot\dynmap\tiles\
:# The path where the tile-files are placed. tilespath: C:\Inetpub\wwwroot\dynmap\tiles
-
Restart your Minecraft server.
-
Join your Minecraft server and place a few blocks (randomly) to trigger dynmap to generate tiles for your map.
If everything went alright, you should now find some new .png
files in C:\Inetpub\wwwroot\dynmap\tiles\
. You can also go to http://yourwebserver/dynmap/ in your browser. It should display the map, but also display an error not being able to update (player locations and map changes).
Create or open the file C:\Inetpub\wwwroot\dynmap\standalone\config.js
in Notepad and replace the contents with the following:
var config = {
url: {
configuration: 'up.aspx?path=configuration',
update: 'up.aspx?path=world/{world}/{timestamp}',
sendmessage: 'up.aspx?path=sendmessage',
login: 'up.aspx?path=login',
register: 'up.aspx?path=register',
tiles : 'tiles/',
markers : 'tiles/'
}
};
Now refresh your browser. It should now display online players on http://mywebserver/dynmap/, keeping them up-to-date.
Go to your webserver and open up a browser there. Go to http://localhost/dynmap/up.aspx?path=configuration. It should show some text representing the configuration you have in configuration.txt
. If it shows some sort of error, analyse the error. If you can't figure out what to do, please come to IRC or the forums.
Also, some version of IIS (7.x in any case) will not automatically assign the proper MIME type for the *.json files that can be needed by dynmap (resulting in a 406 error when attempting to load these files, such as those used by the Markers API). To address this, follow the procedure here - http://support.microsoft.com/kb/942050 - to define the MIME type 'application/json' to the 'json' file extension.
Also, for more details on how to get IIS6 and IIS7 handing JSON properly, see http://www.sencha.com/forum/showthread.php?33266-Some-Problem-with-JSON&p=229858&viewfull=1#post229858
- Base Plugin Settings
- Web Setup
- Storage Setup
- HD Map Configuration
- World and template settings
- Guides
- Advanced Map Configuration
- Component Configuration
- Configuration of worlds
- Exporting World Data in Wavefront OBJ Format
- External Webserver Advanced
- Support for Minecraft Servers other than CraftBukkit
- Support for MinecraftForge based mods
- Support for Tekkit
- Custom Block Definitions
- Model Definition Files
- Texture Definition Files
- Defining a Block using a Custom Block Renderer
- Defining a Block using a Volumetric Model
- Defining a Cuboid Block
- Defining a Simple Block
- Defining Cuboid Models
- Defining Volumetric Models
- Special texture file types
- Using custom block renderers
- Incompatible mods