Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

alt.games.gb Frequently Asked Questions (Part 1 of 2)
Section - 24. How can I get a postscript map?

( Part1 - Part2 - Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Property taxes ]


Top Document: alt.games.gb Frequently Asked Questions (Part 1 of 2)
Previous Document: 23. What happens if I get a rotten home planet?
Next Document: 25. What is a move seg?
See reader questions & answers on this topic! - Help others by sharing your knowledge
"psmap" is a program written in C which, given the output of your
race's "stars" command, will produce a nice looking PostScript map
which looks really peachy keen on laser printers. :-)

GBII USERS:
The most recent version of gbII (2.6.0) comes with psmap built in. To
use it simply type 'psmap'. The output of gbII's psmap is a bit keener
than the original stand-alone psmap. Users of the gbII client will find
this a snappy feature.

HOW TO OBTAIN THE PROGRAM:
You can download the file containing actual PSMAP code from GB-page at
address <http://www.hut.fi/~rauta/gbhtml/others/psmap.c> (you may need
to grab it from a web archive). How the actual downloading happens depends
on your favorite netbrowser. Please do notice the file you will be
downloading is a source code written in C.

HOW TO COMPILE:
(The following instructions should work at least in Unix-environments!)
To turn psmap.c-sourcefile to executable program you need to compile
it. The following syntax (or one which closely resembles it) in
unix-shell should do the trick:

   cc -o psmap psmap.c

It will produce you an executable file named psmap. Please do remember
you could use you favorite C-compiler (like gcc) instead of cc.

HOW TO MAKE POSTSCRIPT MAP:
This one has two phases: 1) to get star-listing from the server and 2)
to turn that listing to the postscript format by using the program you
just compiled.

PHASE 1:
You need to get the output of "stars"-command from the server. The
easiest way to do it is to log it into file (You are using the client,
aren't you?) by typing after client prompt: stars > star.list This
will produce a file named star-list to your unix-directory. This
star.list should look something like this:

GB II Log File: Wed Feb 19 09:30:44 1997

( 0)                Bambi (       0,       0)  108676
( 1)               Fomori (  -27761,    9231)   88864
( 2)                Indus (  -29082,  -10185)  107207
( 3)             Callisto (    5868,   31080)   87259
( 4)               Tammuz (  -27412,  -14362)  111664
( 5)              Ascella (  -29025,    8470)   89218
( 6)            Hofstader (  -41276,   35805)   59642

[the rest is deleted]

PHASE 2:
You should give starlist as input to your psmap-program which you
could by typing in the unix shell the command:

   psmap 1 <star.list> psmap1.ps
   or
   psmap 2 <star.list> psmap2.ps

The command does process the listing of stars in file star.list and it
will generate a postscript file named psmap1.ps or psmap2.ps. The
difference between these two cases is: with argument 1 you get a neat
map with circles around your homesystem at 50000 unit intervals (good
for judging distances from your home system). With argument 2 you get
a plain map with just a names of the stars. psmap1.ps or psmap2.ps
file should look something like this:

%!PS-Adobe-2.0

0.5 72 mul 10.5 72 mul translate
/drawcircle
{
  newpath 0 360 arc stroke
}
def

/drawstar
{
  /starname exch def
  /ypos exch def
  /xpos exch def
  xpos ypos 2 drawcircle
  4 xpos add ypos moveto
  starname show
}
def

[the rest is deleted again]

HOW TO PRINT IT:
Just print it with your postscript-printer. If you don't know how to
print it try to become acquainted with lpr-command or its equivalent
(man lpr :). If you still have problems just contact you system
administrator.

HOW TO USE YOUR NEWLY PURCHASED PS-MAP:
It will help you to outline the form of the galaxy and help you to
contact other races...Just kill 'em all! :)

User Contributions:

Sanj
Report this comment as inappropriate
Nov 21, 2012 @ 4:16 pm
If you make a few life style changes you shulod be able to lose some weight if you need to lose weight. However, your height is determined mainly be genetics. This is a system that has worked well for me for overall weight loss and fitness, and several friends have also been successful with it.1. Eat three nutritious meals and three snacks everyday. Cut out junk food. You probably need about 1500 to 1800 calories a day. Many people make the mistake of not eating enough when they try to lose weight and then become discouraged.2. Drink lots of water at least 8 big glasses as day. Lots of water is essential. Stop drinking soda and other drinks with useless calories. Eat fresh fruit instead of fruit juices the juices are very high in calories.3. Begin a simple weight lifting program at home or at a gym. Ordinary household items (tins of soup, for example) can actually serve as weights for beginners. Buy yourself a good weight lifting book for women. Actually the dummies series of books has done a rather good one.4. Walk, walk, walk. Buy yourself a pedometer and aim for 10,000 steps a day.5. Record everything you eat and all your exercise to make sure you have a calorie deficit . Two of the sites I've included will help you do that. Basically buring more calories than you take in leads to weight loss. You need a deficit of 3500 calories to lose one pound.6. If you drive, do less of it and park at the back of the parking lot instead of close to the door. Always use stairs never the elevator or escalator.7. A mini stepper is an easy piece to equipment to have at home and gives great results. I bought mine at a second hand store for $4. even if you use it for a minute or two several times a day it can make a big difference.I hope these thoughts help. You can do this. Good luck with it.

Comment about this article, ask questions, or add new information about this topic:

CAPTCHA




Top Document: alt.games.gb Frequently Asked Questions (Part 1 of 2)
Previous Document: 23. What happens if I get a rotten home planet?
Next Document: 25. What is a move seg?

Part1 - Part2 - Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
gb-faq@galactic-bloodshed.com (GB FAQ Coordinator)





Last Update March 27 2014 @ 02:11 PM