Where to find the analysis scripts

Updated 2024-03-03, for Game Server 6.026

Depending on what computer you use, the way to obtain and access this script (and other data analysis scripts) may be a bit different.

To better understand this section, it is useful to keep in mind that for the script to work, two components must be present: the shell script itself and the JAR files that contained compiled code (byte code) of the Java classes invoked by the script.

If you're working on a host that runs Game Server built from source

The Analyze Transcripts tool, along with various other auxiliary tools, is automatically installed on every machine where the Game Server has been built from source code (Option B or C in the Setup Guide), as described in the Rule Game Server build Guide.

If you, for example, have used ~/w2020/game as the build directory on your machine (as suggested in the guide), then the top-level shell scripts will be in the directory ~/w2020/game/scripts.

On several UW machines, including sapir and on our CAE host (ie-r108304.ie.wisc.edu), the build directory for the Game Server was /home/vmenkov/w2020/game, so the top-level scripts are in /home/vmenkov/w2020/game/scripts; this path will be used in some of the illustrative examples below.

For convenience, you may want to add the script directory (such as /home/vmenkov/w2020/game/scripts, or whatever it is on your machine) to your PATH.

If you're working on a host that runs Game Server installed using WAR files

You may be working on a computer on which you have installed the Game Server by downloading its WAR file. (This is Option A in the Setup Guide). In this case, you have all the necessary JAR files already (they came packed in the WAR file, and Tomcat unpacked them into /opt/tomcat/webapps/w2020/WEB-INF/lib or a similar location), but you don't have the shell scripts yet. In this case, to be able to use analysis scripts, you can do the following:

When you invoke the analysis script, it will attempt to look for the JAR files with Java classes first in the locations where they would have been if the Game Server on this host had been compiled from source (e.g. under ~/w2020/lib etc); if those don't exist, it will fall back to the JAR files that Tomcat had unpacked in its own webapps directory from the WAR files that you have downloaded.

If you're working on a host that has no Game Server at all

If your host has no Game Server installed, and you have no plan to install one, but you want to run analysis scripts here, it means that you intend to use this host as an analysis host for data accumulated on Game Servers elsewhere (e.g. on the Plesk hosts), meaning that you'll need to learn how to learn how to pull from remote servers.

To be able to use the analysis script on your host, you still will need to install some (but not all) of the same components that would be required if you were installing the Game Server (as described in the Setup Guide). Specifically:

This is all you need to do; now your scripts should be in ~/w2020/game/scripts, and should be usable.


[Main tools page]   [Main documentation page]