Re: subsec.csh
In reply to #88 subsec.csh by Glenn Fernandez
> From: (Glenn Fernandez) [email removed] > This is a really intersting "little ditty", but Iam at a little lost > on it is to be used. Has anyone used it yet? And if so can you explain how? I've used it! What it does is extract a single subsector's world data from a whole sector's worth of world data. As all Traveller veterans are well familar, a sector is an array of 32 X 40 hexes, and is subdivided into sixteen 8 X 10-hex subsectors as follows (I hope my A-R, omitting I and O lettering was correct -- somebody correct me should my memory be faulty): X COORDINATE 01 .. 08 | 09 .. 16 | 17 .. 24 | 25 .. 32 _________|__________|__________|_________ | | | | | 01 | | | | | Y .. | A | B | C | D | 10 | | | | | C ___|_________|__________|__________|_________| O | | | | | O 11 | | | | | R .. | E | F | G | H | D 20 | | | | | I ___|_________|__________|__________|_________| N | | | | | A 21 | | | | | T .. | J | K | L | M | E 30 | | | | | ___|_________|__________|__________|_________| | | | | | 31 | | | | | .. | N | P | Q | R | 40 | | | | | |_________|__________|__________|_________| The official form of storing mass amounts of world data (as declared by Traveller prime originator Mark Miller) is in a file representing an entire sector, with each line of the file representing a single world. The gensec program I wrote produces a format very similar to Mr. Miller's format (it has a few added columns). Sometimes it is nice to extract the data for a single subsector, for example to create a detailed subsector map (ala mapsub, the subsector mapping program, for instance). What is desired is a program that given a sector file, produces a subsector file by throwing out all the worlds not belonging to a single sector of interest. A shell script has been written to do this, called subsec.csh. Given a sector file, "Spinward", and a desire to look at subsector "G" only, one could type to the UNIX Shell: subsec.csh 3 2 Spinward >Regina This would create a new file, "Regina" which contains only those worlds from Spinward which are also in the G subsector region. The 3, 2 is the x, y coordinates of the "G" subsector in the overall sector picture above (The origin is at the upper right corner of the subsector map). Now what to do with the subsector data? Well, you can show the data to your players, or map it into a pretty hex grid with the mapsub program. Naturally to use subsec.csh, you need to be running UNIX and have the csh command shell. I don't mean to offend if this is a simpler explanation than was desired. I know there are some people out there not very familiar with Traveller and I hoped to write something at a novice level to help them out. - ---------------------------------------------------------------------- James T. Perkins Traveller Mailing List Administrator Tektronix Logic Analyzers "Load Auto/Evade, Beowulf!" - ---------------------------------------------------------------------- INTERNET: [email removed] CSNET: [email removed] UUCP: {decvax,gatech,hplabs,ihnp4}!tektronix!dadla!traveller-request