| www.ClassicTW.com http://classictw.com/ |
|
| Parsing the Corp Planet List http://classictw.com/viewtopic.php?f=15&t=33231 |
Page 1 of 1 |
| Author: | Helix [ Wed May 23, 2012 11:07 am ] |
| Post subject: | Parsing the Corp Planet List |
I find myself copying the planet list and manually editing it to get the info I need to manage my planets. Whats the best way to parse the list and pull the sector numbers for planets that need upgrading, planets @ L6 with colos, etc. Then writing the sector numbers to a topdown list. I am assuming I would need to do this for each type of condition. For instance, in one game we have 997 planets, ~450 of which have cits, the rest were used to build ports and now i want to strip those planets without cits and blow them. And of the 450 that have cits I want to pull all of the colos off of them once they have reached L6. H |
|
| Author: | Mongoose [ Wed May 23, 2012 4:40 pm ] |
| Post subject: | Re: Parsing the Corp Planet List |
Pardon, but what's this "top-down list" you keep talking about? |
|
| Author: | Helix [ Wed May 23, 2012 8:59 pm ] |
| Post subject: | Re: Parsing the Corp Planet List |
For this,it is a list of sectors, one sector to a line. Many of the existing tools use this type sector list. for example 12922 11 32 3855 13922 ... ... ... H |
|
| Author: | T0yman [ Wed May 23, 2012 9:26 pm ] |
| Post subject: | Re: Parsing the Corp Planet List |
There are several snippets you could use instead of making your own. Rip into Prom Citbuilder script, it grabs the sectors and sorts. Might save you some time unless you just want to learn it. Examples are the best teachers. |
|
| Author: | Helix [ Thu May 24, 2012 4:58 am ] |
| Post subject: | Re: Parsing the Corp Planet List |
Thanks, will do. H |
|
| Author: | LoneStar [ Thu May 24, 2012 6:29 am ] | ||
| Post subject: | Re: Parsing the Corp Planet List | ||
Forgot I had this little TL sort/filter thingy (attached). It's for the older version of the TWGS. I'm sorry that I'm not in any game where I can test it (it's been a long time since I've worked on it (file stamp says 2009)). But hopefully you'll find a use for it.
|
|||
| Author: | Mongoose [ Thu May 24, 2012 2:08 pm ] |
| Post subject: | Re: Parsing the Corp Planet List |
Helix wrote: For this,it is a list of sectors, one sector to a line. So, no particular order? Isn't $SECTORS always in order of distance from the current sector? |
|
| Author: | Helix [ Thu May 24, 2012 8:03 pm ] |
| Post subject: | Re: Parsing the Corp Planet List |
Mongoose wrote: Helix wrote: For this,it is a list of sectors, one sector to a line. So, no particular order? Isn't $SECTORS always in order of distance from the current sector? I believe it is in order from 1-20k if you dont use other criteria in your script to set a different order. |
|
| Page 1 of 1 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|