Installing Brownian Overviewer for Minecraft

Overviewer is sweet; here’s a screenshot:

This post will cover how to quickly get your overviewer working locally; it will not cover setting up IIS so that it will work over the internet.  For that, you’ll have to wait :).

Prereq’s

  • Download the latest windows binary of Brownan Overviewer from the gethub page.
  • Extract the download into a folder.

The Process

  • Getting this to work locally is very simple; overviewer is just an executable which reads a specified world folder and exports a website that’s ready-to-go.
  • NOTE: The first run will take a long time, but once the cache is created subsequent runs will be a lot faster.
  • Create a batch file with the following code (modify paths as necessary)
    gmap.exe --cachedir="<PathToCacheDir>" "<PathToWorldDir>" "<OutputPath>"
  • Then, use Task Scheduler to run this batch file at a regular interval.

Troubleshooting

  • If you get the following error, you need to install DotNet Framework:
    The application has failed to start because its side-by-side configuration is incorrect. Please see the application log for more details.
Advertisements

Installing Minecraft 1.4 with CraftBukkit as a Service

So, this has been a long-time coming; sorry folks. Next time, bug me with comments and I’ll move faster :P.

This is similar to my last post on the subject about getting Hey0 working, with a few tweaks.

Downloads

  1. Download YAJSW from the YASJW SourceForge files page.
  2. Download the latest Minecraft Server build from the Minecraft Downloads page.
  3. Download the latest CraftBukkit from the Bukkit Instructions Page.

Prep Work

Set up your folders like so:

  • C:\Program Files\
    • Minecraft_Server\
      • yajsw\
        • bat\
        • build\
        • conf\
        • …etc
      • craftbukkit-b###.jar
      • run.bat
      • minecraft_server.jar

Installation Process

I followed my instructions for Minecraft /w Hey0, but when I ran genConfig it kept throwing the error: “ERROR: no classpath found -> abort”. My wrapper.conf file would end up blank.

To get around this, I performed the following steps:

  1. Open the ‘run.bat’ file provided by the craftbukkit download. Find the line that actually calls java, and add the following parameter respective of the actual craftbukkit version.
    -classpath "C:\program files\minecraft_server\craftbukkit-b617.jar"
  2. Now, double-click ‘run.bat’ to run the craftbukkit server.
  3. Open up task manager and find the PID of the java process running the craftbukkit server.
  4. Open a command prompt and nagivate to “C:\program files\minecraft_server\yajsw\bat”
  5. Run the following command:
    genConfig.bat <PIDNumber>
  6. Close the craftbukkit server you started in step 2, then run the following command to test your yajsw settings:
    runConsole.bat
  7. If everything looks ok, open up your wrapper.conf file and change the following settings as you see fit:
    wrapper.ntservice.name=Minecraft
    wrapper.ntservice.displayname=Minecraft 1.4
    wrapper.ntservice.description=Minecraft 1.4 with CraftBukkit.
  8. Then, run the following command to install the service:
    installService.bat

Helpful Hints

Here is my wrapper.conf file in case you’re having trouble. My directory names might be different, so take care.
wrapper.working.dir=
wrapper.console.loglevel=INFO
wrapper.console.title=yajsw
wrapper.ntservice.name=MC14v3
wrapper.ntservice.displayname=Minecraft 1.4 (v3)
wrapper.ntservice.description=Minecraft 1.4 with CraftBukkit.
wrapper.daemon.run_level_dir=${if (new File('\/etc\/rc0.d').exists()) return '\/etc\/rcX.d' else return '\/etc\/init.d\/rcX.d'}
wrapper.tray = true
wrapper.tray.port = 15002
wrapper.on_exit.0=SHUTDOWN
wrapper.on_exit.default=RESTART
wrapper.filter.trigger.0=Exception
wrapper.filter.script.0=scripts\/trayMessage.gv
wrapper.filter.script.0.args=Exception
placeHolderSoGenPropsComeHere=
wrapper.java.app.jar = C:\\program files\\minecraft_server_3\\craftbukkit-b617.jar
wrapper.java.command = C:\\Program Files\\Java\\jre6\\bin\\java.exe
wrapper.java.classpath.1 = C:\\program files\\minecraft_server_3\\craftbukkit-b617.jar
wrapper.app.parameter.1 = -classpath
wrapper.app.parameter.2 = C:\\program files\\minecraft_server_3\\craftbukkit-b617.jar
wrapper.java.additional.1 = -Xincgc

Installing the Hey0 Minecraft Server Mod as a Windows Service

Update 4 – Refer to the new post for CraftBukkit

Update 3! Look here for the new Hey0 update that works with B_1.30. Note, I haven’t tested this personally!

Minecraft Hey0 Update – Works with B1.3

UPDATE 2! Look here for the new Hey0 update that works with B_1.20.

Minecraft Hey0 Update — Works with b1.2_01

UPDATE! Hey0’s mod is dead. Long live bukkit, which isn’t released yet. 😦 sadface.

http://bukkit.org/

I’ll update this post with bukkit instructions as soon as it congeals a bit.

Minecraft is sweet, but it’s sweeter with mods!

References:

Installation

To install Hey0:

  • Download the ‘latest build’ of the Hey0 mod here: hMod Server mod
  • Download the ‘latest build’ of the Minecraft Server itself here: Minecraft Server
  • Construct your minecraft server directory as follows:
    • .\Minecraft_Server\<hey0 extracted files and folders>
    • .\Minecraft_Server\Bin\minecraft_server.jar
    • .\Minecraft_Server\Bin\world
  • Add yourself to the ‘ops.txt’ file in .\bin
  • If you’re in x64, edit .\bin\server_nogui_x64.bat, and change “program files (x86)” to “program files”.
  • Now, run server_nogui_x64.bat to see if everything works.

At this point, you should have the following commands available in-game.

  • /help and /help 2 will show you these commands also.
  • /playerlist – lists current players
  • /home – teleports you home
  • /sethome – sets your new home point
  • /warp – warps you to a preset warp location
  • /kit – gives a ‘kit’ or preselected list of items
  • /me – sends a chat message in 3rd person like /emote in wow.
  • /msg – whispers someone
  • /spawn – teleports you to ‘spawn’, whatever that means
  • /motd – displays MOTD
  • /compass – gives you a directional

In addition, you can now run any minecraft console command by prefacing it with a /#. For example, /#kick <player>. For a full list of MineCraft console commands, look here: Server Commands.

Users and Groups

Now, lets make an admins group! This will give yourself full access to all of the hey0 commands listed here: Hey0 Commands.

  1. Open .\bin\groups.txt, and add the following line. If the line’s already there, comment it out with a #. To make the squiggly S, use Alt+21 (21 must be typed with your numeric keypad).
    • Admins:c[admin] §f:*::2
  2. This created an ‘admins’ group. For syntax, look here: Flatfile Configuration

OK, now to add members to the group.

  1. Open .\bin\users.txt, and add the following line.
    • <username>:admins
  2. Done!

Running as a Service

This can be run as a service!

First, you want your directory structure to look like this:

  • .\Program Files\Minecraft_Server\<hey0 files>
  • .\Program Files\Minecraft_Server\bin\Minecraft_Server.jar
  • .\Program Files\Minecraft_Server\bin\world\<worldfiles>
  • .\Program Files\Minecraft_Server\yajsw\<yajso extracted files>

Next, follow my previous blog post called “How To Install A Minecraft Server” but make the following changes:

  • Skip the parts that are already done.
  • Use the file ‘Minecraft_Mod.jar’ instead of “Minecraft_Server.jar”
  • Working directory should be the .\minecraft_server\bin instead of just .\minecraft_server

It’s really hard to get the wrapper.conf right. Here’s a dump of the settings I use.

wrapper.java.initmemory=1024
wrapper.java.maxmemory=1024
wrapper.working.dir=C:\\Program Files\\Minecraft_server\\bin
wrapper.java.jar=minecraft_mod.jar
wrapper.console.loglevel=INFO
wrapper.console.title=MC25566
wrapper.ntservice.name=MC25566
wrapper.ntservice.displayname=Minecraft Server - 25566
wrapper.ntservice.description=Minecraft Server with Hey0 Mod.
wrapper.daemon.run_level_dir=${if (new File('\/etc\/rc0.d').exists()) return '\/etc\/rcX.d' else return '\/etc\/init.d\/rcX.d'}
wrapper.tray = true
wrapper.tray.port = 15002
wrapper.on_exit.0=SHUTDOWN
wrapper.on_exit.default=RESTART
wrapper.filter.trigger.0=Exception
wrapper.filter.script.0=scripts\/trayMessage.gv
wrapper.filter.script.0.args=Exception
placeHolderSoGenPropsComeHere=
wrapper.java.app.jar = C:\\Program Files\\minecraft_server\\bin\\Minecraft_Mod.jar
wrapper.java.command = C:\\Program Files\\Java\\jre6\\bin\\javaw.exe
wrapper.java.classpath.1 = C:\\Program Files\\minecraft_server\\bin\\Minecraft_Mod.jar
wrapper.app.parameter.0=nogui

Good to go!

How to Install Minecraft Server as a Service

Minecraft as a windows service! Not that bad, but a bit tricksy.

Refs:

Download the server files:

Installing the Server

  • create the folder: “C:\program files\minecraft_server”, and copy minecraft.jar to this folder.
  • create the folder “C:\program files\minecraft_server\yajsw” and extract the contents of the yajsw download file to this folder.
  • double-click minecraft.jar to start the server
  • open windows task manager, processes tab, view -> select columns, PID
  • task manager -> applications tab -> right-click “minecraft server” -> go to process
  • write down the “PID” that the javaw.exe process is using.
  • open a command prompt, and go to C:\program files\minecraft_server\yajsw\bat
  • run: genConf.bat <pid number>
  • open the ‘wrapper.conf’ file in .\yajsw\conf with notepad
  • edit the following settings. Use double slashes in the config file!
    • wrapper.console.title=Minecraft Server Console
    • wrapper.working.dir=”C:\\Program\ Files\\minecraft_server”
    • wrapper.ntservice.name=minecraft
    • wrapper.ntservice.displayname=Minecraft Server
    • wrapper.ntservice.description=Minecraft server.
  • No other wrapper.conf settings need changed, even if they look blank and mandatory.
  • in a command prompt, go back to the .\yajsw\bat folder
  • run: InstallService.bat

Configuring the Server

  • Edit “server.properties” and change any settings you want.
  • Note: I couldn’t get the ‘admins.txt’ to work, so I installed the Hey0 mod to help with administration instead.
  • Configure windows firewall to allow minecraft outgoing — it’s port 25566 by default.
    • open a command prompt, and run:
    • netsh advfirewall firewall add rule name="Minecraft Sever - 25566" dir=in action=allow localport=25566 protocol=tcp

Extras

If you want to run the Hey0 mod, check out this post: Installing the Hey0 Minecraft Server Mod (as a Windows Service)

To-Do \ Wishlist

  • Powershell script to add admins based off of an AD group: “Minecraft Admins”