]> git.pond.sub.org Git - empserver/blob - scripts/mapper/README
Import of Empire 4.2.12
[empserver] / scripts / mapper / README
1 To install mapper, edit makempeg and mapper and
2 (1) fix paths
3 (2) change names of countries to exclude
4 (3) add a crontab similar to the one in the file crontab.config
5
6 When starting, type:
7 make clean
8 make color.ppm
9
10 -children
11
12    This directory contains a number of scripts which output PPM format
13 files suitable for conversion to gif with the PBM utilities or MPEG
14 with mpeg_encode.  mpeg_encode is available from
15         http://s2k-ftp.cs.berkeley.edu:8000/multimedia/mpeg/
16 PBMPLUS is available from 
17         ftp://ftp.ee.lbl.gov/
18 Some of the scripts (mapper in particular) depend on a country
19 "mapper" being defined that can be logged into automatically using the
20 Empire client eif.  Modify to use the client and country name of your
21 choice.
22
23 -harmless
24
25
26
27 pgmmap.awk
28    A simple map making program.  Reads a deity dump file and produces
29 a grayscale .pgm file as output, with each color corresponding to a
30 country number.  To make a color coded map, scramble the colors.
31
32 pgmfallout.awk
33    Convert a deity census file into a PGM file with fallout levels.
34
35 randppm.awk
36    Generates random colors in a ppm file.  Useful for remmapping colors
37 from pgmmap.awk
38
39 over.awk
40    Reads in a report file and generates a text overlay of country names.
41 Requires pbmtext (part of netpbm) to work.
42
43 param.pl
44    Modify an mpeg parameter file to use map-*.gif files as input.
45 Reads the highest level file from the file 'frames' and skips over any
46 file not 300-500 bytes long (in a 64x32 blitz, the .gif files should
47 be ~400 bytes).  Larger worlds may require different size limits.
48 Disabling the size limits is not advised, as this is the only way
49 corrupt frames are eliminated.
50
51 makempeg
52    Log into the mapper country, capture new report files, and generate
53 a new .mpg file.  Also copies map.mpg and final.gif into the web space
54 directories so others can view them.  The web copy may be commented
55 out or modified to meet your local needs.
56
57 mapper
58    Log into mapper country and capture a map of the current owners of
59 the world (.gif format).  Games without fallout should comment out the
60 fallmap producing line.
61
62 archive.pl
63    Pushes the archived blitz records down the stack (in web space) and
64 prints out a new .html index.
65
66 -Drake (dld@chem.psu.edu)