| Author |
Message |
|
Helix
Ambassador
Joined: Wed Nov 12, 2008 8:57 am Posts: 3554 Location: Long Beach, CA
|
 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
_________________ Helix Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars. Lest we forget I had to ask myself WWSGD?
|
| Wed May 23, 2012 11:07 am |
|
 |
|
Mongoose
Commander
Joined: Mon Oct 29, 2001 3:00 am Posts: 1096 Location: Tucson, AZ
|
 Re: Parsing the Corp Planet List
Pardon, but what's this "top-down list" you keep talking about?
_________________ Suddenly you're Busted!
|
| Wed May 23, 2012 4:40 pm |
|
 |
|
Helix
Ambassador
Joined: Wed Nov 12, 2008 8:57 am Posts: 3554 Location: Long Beach, CA
|
 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
_________________ Helix Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars. Lest we forget I had to ask myself WWSGD?
|
| Wed May 23, 2012 8:59 pm |
|
 |
|
T0yman
Veteran Op
Joined: Sat Dec 29, 2007 5:06 pm Posts: 2059 Location: Oklahoma
|
 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.
_________________ T0yman (Permanently Retired since 2012) Proverbs 17:28 <-- Don't know it, most should it would stop a lot of the discussions on here.
|
| Wed May 23, 2012 9:26 pm |
|
 |
|
Helix
Ambassador
Joined: Wed Nov 12, 2008 8:57 am Posts: 3554 Location: Long Beach, CA
|
 Re: Parsing the Corp Planet List
Thanks, will do.
H
_________________ Helix Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars. Lest we forget I had to ask myself WWSGD?
|
| Thu May 24, 2012 4:58 am |
|
 |
|
LoneStar
Commander
Joined: Fri Jun 09, 2006 2:00 am Posts: 1401 Location: Canada
|
 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.
Attachments:
File comment: Citadel Filter Thingy
TL04.ts [21.74 KiB]
Downloaded 533 times
_________________ ---------------------------- -= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.
|
| Thu May 24, 2012 6:29 am |
|
 |
|
Mongoose
Commander
Joined: Mon Oct 29, 2001 3:00 am Posts: 1096 Location: Tucson, AZ
|
 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?
_________________ Suddenly you're Busted!
|
| Thu May 24, 2012 2:08 pm |
|
 |
|
Helix
Ambassador
Joined: Wed Nov 12, 2008 8:57 am Posts: 3554 Location: Long Beach, CA
|
 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.
_________________ Helix Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars. Lest we forget I had to ask myself WWSGD?
|
| Thu May 24, 2012 8:03 pm |
|
 |
|