Suppose, for example, that the web server you use can access your ~/WWW directory and its subdirectories. Let's say then that you want to install the code in the directory ~/WWW/netrek/classes.
A number of universities and institutions such as CMU, Stanford, and MIT have based their computer systems on the Andrew File System. If your site supports AFS, you are in luck, as you will probably have direct access to the original Java Netrek code. All you have to do in that case is make a symbolic link:
% ln -s /afs/athena.mit.edu/user/t/t/ttonchev/java/classes ~/WWW/netrek/classes
If you do not have AFS connection to MIT, the above approach will not work. You will instead have to create the ~/WWW/netrek/classes directory and then download and uncompress this ZIP file in there.
With this, the installation is complete.
<APPLET CODEBASE="classes" ARCHIVE="NetrekClasses.zip" CODE="viewer.class" width=1003 height=620> <PARAM NAME=RECORDING VALUE="classes/recordings/rewl.prec"> Your browser does not understand Java, sorry... </APPLET>The meaning of the above tags and parameters is the following:
To avoid this problem you should design your pages so that the user has to press the "Back" button of the browser to go to the previous page. Have a look at the examples document to see what I mean.
Also, try to avoid placing several viewers in the same document. It is usually not a problem, but I don't think anyone can or wants to look at two recordings at once anyway :)
<PARAM NAME=parameter_name VALUE=parameter_value>The Netrek Viewer applet understands the following parameters:
| Parameter | Value Type | Default | Description |
|---|---|---|---|
| RECORDING | URL | none | Required! The netrek recording to be replayed.
Relative to the document URL. |
| IMAGELIB | URL | "ships.dir" | The image library used by the applet.
This URL is relative to CODEBASE. |
| VIEW | One of ALL, TACTICAL, GALACTIC | ALL | The view mode. States whether to show the tactical map,
the galactic map, or both. |
| OBSERVER | One of YES, NO | NO | States whether the recording was made as an observer.
This parameter may be set automatically in the future. |
| START | Positive integer | 1 | The packet to start replaying from.
Could be used to skip the pre-game period. |
| DELAY | Positive integer | 160 | The desired interval between frames in milliseconds.
Adjust this value if the game has not been recorded
with 5 updates per second. |
The VIEW parameter can significantly change the dimensions of the applet. As applets cannot resize themselves within Netscape, it is important that you set the applet size correctly within the <APPLET> tag. Here are the suggested dimensions for the different values of VIEW:
| VIEW | WIDTH | HEIGHT |
|---|---|---|
| ALL (default) | 1003 | 620 |
| TACTICAL | 503 | 620 |
| GALACTIC | 500 | 580 |
Once you have JDK installed, you have to set the environment variable CLASSPATH to the path of the Java Netrek classes. Given the setup suggested above, you should type the following (assuming csh):
% setenv CLASSPATH ~/WWW/netrek/classes
Having done that, you will be able to run the editor. Its command line syntax is the following:
% java editor [-obs] [-lib <imagelib>] <recording>
where both <imagelib> and <recording> can be file names or URLs. The -obs option enables observer mode, and the -lib option sets the path to the image library.
When run, the editor will allow you to replay the recording you have given it as an argument, and let you mark and save fragments to disk.
ttonchev@mit.edu