How to get, install, run, and use
the GUB.
IMPORTANT: GUB is a Java 2 application. You must have either the JRE or JDK 1.2.2 (or higher) installed to run it (or any other Java application written to use the features available in Java 2). You can download these from http://java.sun.com/products. All instructions below assume that you are familiar with Java's CLASSPATH environment variable and that all Java binaries are in your PATH. GUB depends on fixes in the JVM version 1.2.2 or higher, and may not work correctly with versions 1.2 or 1.2.1. If your JVM is older than mid-July, '99, then you need to upgrade before running GUB. |
Getting GUB: |
Installation: |
There are several ways to do this, depending on how you want to install GUB and how knowledgable you are in configuring Java on your system. The method below is my "officially supported" method, and is what I believe to be the easiest for most people (compared to other methods of installing Java applications).
GUB can run without the JSDT files unless you try to run the network client or server, and which point
it will silently fail to do any network activity.
Note that the JAR with JSDT files is NOT the complete JSDT package. It's just the stuff you need to run
GUB. If you ever install the JSDT after installing my file, please delete my version of the files to be sure there
are no conflicts.
Before You Continue: |
One of GUB's primary design goals is the ability to painlessly transport game files from one system to another, without having to transport the images themselves (this assumes that each player has the game piece set). Painlessness has it's price, though, and in GUB this is the rigidity of the structure of the directories that GUB uses. This is described below:
GUB must have a data directory directly under it's "home" directory. So, if you have GUB
installed in C:\GAMES\GUB, then you must have the directory C:\GAMES\GUB\DATA. This is the tree
where GUB will store all game sets and saved games.
The exact structure under the data directory is not so important. All paths referenced in your game piece
sets and savegame files must refer to relative paths, starting from the directory where the game file lives. Let's
assume the following directory structure:
C:\GAMES\GUB +-\DATA +-\generic +-\maps +-\GEV +-gfx
And assume that I have a gev.pieces file in my GEV directory. (GEV,
by the way, is a game by Steve Jackson Games.) I keep all my piece graphics
under the gfx directory, but I keep my maps in generic\maps (because I can use them with almost
any game). The relative path to my maps folder from my GEV folder is ..\generic\maps.
This means that if I have a BOARD_FILE=... line in my pieces file (this tells the piece set which game
board to load), then it needs to look like this:
BOARD_FILE=..\generic\maps\forest.trails.jpg
The same rule applies to game piece graphics.
Since pieces and the game boards are loaded from relave paths, you must save your games to the same directory
as you originally loaded your pieces from. I'm sorry about this (really), but until I find a better way to
do it and still have portability, this is the way it needs to be.
Running GUB: |
GUB has an INI file which can control some features of GUB. You will find it in GUB's home directory.
If you like, edit gub.ini to your liking. Open it up with any text editor to see instructions for each
section. You may either leave gub.ini where it is or copy to your home directory (if you use Unix), C:\WINDOWS
for Win9x, C:\WINNT for WinNT[, and God knows where for OS/2 and Mac]. GUB does not require this
file.
That's it! Now you must install one or more game sets for GUB to be useful. GUB comes
with a checkers set configured to start up the first time you start GUB (if you run GUB from the directory
where it lives). Instructions for installing additional game piece sets are listed below.
(this assumes that the path to the JRE's executable is in your PATH. The JRE installs it's executables under C:\PROGRAM FILES\JavaSoft\JRE\[version]\BIN by default.)
jre -jar gub.jar
or, if you have the whole JDK installed, you can run it like this:
javaw -jar gub.jar or java -jar gub.jar
GUB does not yet have any command-line arguments. It will some day.
GUB should start up and be on your screen after a few seconds (be patient on a slower machine... Java applications
are not known for their speed). If you are starting GUB for the first time, you should see a checkers set on your
screen. In the next section I'll explain how to use that board and it's pieces.
Using GUB: |
I'm sorry to be so terse here. One day I'll have docs with screenshots and such. It's still changing so much that
I hate to go into too much detail about it.
How to install GUB Game Sets: |
This should create a data directory, and possibly other subdirectories, containing the graphics and such for the
game. Strictly speaking, the files do not HAVE to be kept in one place, but they SHOULD be kept in one place for
easy housekeeping. GUB's save/load support relies heavily on this because it aims to allow savegames that can easily
be transported between systems (for PBEM). Once you have this completed, start up GUB and click on the appropriate
button to load your game piece list (and your game board, if the game piece list doesn't load one for you). You
can set GUB to automatically load a default game piece list and game board by editing the sample gub.ini
that comes with the GUB distribution. When GUB starts up, it will first look in the current directory for gub.ini,
then it will look in your home directory (C:\WINDOWS for Win9x users). In the INI file, if you use relative
path names, they will work from the directory you start GUB from.
Each game set may have a license and/or copyright information contained in its archive, which lays out the rules
for its usage and distribution. Please pay heed to these.
An early version of GUB had a plugin to import V_MAP games. There have been
many, many internal changes to GUB which have broken this tool. But... I will be re-writing it once GUB's development
gets more solid, and I stop changing the API all the time. I will also write game import/export tools (or help
you to write them) as I have the need for them. I would love to import SMS files, but the format is just so strange.
Email me with installation/running problems.
Have fun!
----- Stephan Beal