simple script for finding systems with interesting planets

A forum for the discussion and development of programs to assist working on or playing with the Vegastrike engine and data sets.
Post Reply
peter
Bounty Hunter
Bounty Hunter
Posts: 165
Joined: Sun Feb 11, 2007 3:40 am
Location: Halifax, NS, Canada

simple script for finding systems with interesting planets

Post by peter »

Ever wondered where you can find a couple Trantor planets and somewhere to sell the Industrial/Construction cargo you can buy there? Here's a perl script I cooked up that reads milky_way.xml and prints out

Code: Select all

...
Sol/Hei_299:     gg  mol  r r  
Sol/Hermes:      bd  bsm  mol  
Sol/Hesiod:      bd  f  fa  gd  gg  i i i  o o  t  v v  
Sol/Hesione:     bd bd  f f  i  o  r r  
...
It's a quick hack, I didn't even use XML::Parser, just regexes. :P
Look at the comments in the script for some ideas on grepping the output to find systems with multiple planets of given types.
You do not have the required permissions to view the files attached to this post.
"The gods confound the man who first found out how to distinguish the hours!
Confound him, too, who in this place set up a sundial, to cut and hack my day so wretchedly into small pieces!" -- Plautus, 200 BC
Sheltem
Trader
Trader
Posts: 24
Joined: Thu Oct 25, 2007 10:23 am
Location: Germany/Hessen

Post by Sheltem »

HI,
nice Reg Exps .
But how can I find a Star Fortress, where I can buy turrets in the output? What does the shortcuts bsm, gg, .. mean?

regards
Roman
Asus F3J, T5600, 2 GB RAM, X1700 Graphic and Windows Vista successful deinstalled.
Post Reply