| Author |
Message |
|
Promethius
Ambassador
Joined: Mon Feb 09, 2004 3:00 am Posts: 3141 Location: Kansas
|
 proMassCitBuilder v 0.7
ProMassCitBuilder v 0.7 (please look several posts below for v 0.9 - can't delete the file) The script will max upgrade all planets in a designated sector or from a sector list using a donar planet. The sector list may come from manual entry, a file list, or auto-generated from the TL list. When auto-generating a list, the planet will not go to sectors populated solely by L6 planets. Auto-generation will create a file containing a list of sectors that can be used later if desired. A second planet may be designated for use in the event the first planet runs low on product. This will require entry of the planet number and the sector it is in. The upgrade process will resume in the same sector that the first planet ran out of product in. Turn monitoring may be used with a preset minimum number of turns to stop at. A TWX window is used to allow monitoring of progress giving donar planet status, the sector being worked, sector x of y being worked in the list, planet number in sector being upgraded, and x of y planets in the sector being worked. Upon completion of the upgrades, the planet will return to its starting sector. A file is created of the results of the upgrade run as follows: ----------------------------------------------------------------------------- Planet: 12 | Sector: 8518 | Date: 1/23/2011 | 2 day(s) | Quasar Cannon Planet: 13 | Sector: 8518 | Date: 1/23/2011 | 3 day(s) | Planetary Defense Shielding Planet: 14 | Sector: 8518 | Date: 1/23/2011 | 3 day(s) | Planetary Defense Shielding Planet: 10 | Sector: 9201 | Date: 1/23/2011 | 3 day(s) | Quasar Cannon Planet: 11 | Sector: 9201 | Date: 1/23/2011 | 1 day(s) | Quasar Cannon Planet: 20 | Sector: 9201 | Date: 1/23/2011 | 3 day(s) | Planetary Defense Shielding Known issues: The script will sometimes hang at startup after getting the sector list. This can be corrected by dropping to the planet surface and hitting enter to display the planet information. This issue happens infrequently and I haven't been able to determine why it is happening at this point.
Please let me know of any bugs in the script. I have a couple of other ideas to implement, but would like any issues taken care of first. Thanks
Attachments:
File comment: Upgrade all planets in sectors to max using a donar planet.
proMassCitBuilder.zip [8.91 KiB]
Downloaded 516 times
_________________
/ Promethius / Enigma / Wolfen /
"A man who has no skills can be taught, a man who has no honor has nothing."
Last edited by Promethius on Sat Mar 12, 2011 12:01 am, edited 1 time in total.
|
| Sun Jan 23, 2011 2:56 pm |
|
 |
|
Promethius
Ambassador
Joined: Mon Feb 09, 2004 3:00 am Posts: 3141 Location: Kansas
|
 Re: proMassCitBuilder v 0.7
I haven't received any negative feedback on the Cit Builder so version 0.8 is attached. This version adds automatic routing of the planet upgrade path. The window will also display the amount of ore that would have been used on the non-routed path vs the routed. Testing shows over a 50% ore savings using this method, but that will vary according to the number of sectors and distances. I would be interested in knowing if the savings that show up are significant or trivial.
Attachments:
File comment: Version 0.8 with sector routing.
proMassCitBuilder.zip [9.62 KiB]
Downloaded 488 times
_________________
/ Promethius / Enigma / Wolfen /
"A man who has no skills can be taught, a man who has no honor has nothing."
|
| Tue Jan 25, 2011 12:10 pm |
|
 |
|
T0yman
Veteran Op
Joined: Sat Dec 29, 2007 5:06 pm Posts: 2059 Location: Oklahoma
|
 Re: proMassCitBuilder v 0.7
I have a game I think I archived that I had 300 planets working in, I will test it tonight and let you know.
_________________ T0yman (Permanently Retired since 2012) Proverbs 17:28 <-- Don't know it, most should it would stop a lot of the discussions on here.
|
| Tue Jan 25, 2011 12:32 pm |
|
 |
|
Thrawn
Commander
Joined: Fri Aug 20, 2004 2:00 am Posts: 1801 Location: Outer Rims
|
 Re: proMassCitBuilder v 0.7
Thanks, Promethius. Works fine on our end.
_________________ -Thrawn
But risk has always been an inescapable part of warfare.
--
Knight to Queen's Bishop 3
|
| Tue Jan 25, 2011 12:40 pm |
|
 |
|
Promethius
Ambassador
Joined: Mon Feb 09, 2004 3:00 am Posts: 3141 Location: Kansas
|
 Re: proMassCitBuilder v 0.7
T0yman wrote: I have a game I think I archived that I had 300 planets working in, I will test it tonight and let you know. That would be great. In my tests there were only 11 sectors with approximately 40 planets. I know I need to add a "safety" on the donar planet's ore so it doesn't leave the player stranded with a possible overload condition. I've thought that since I know the last sector to be upgraded, a calculation could be used from there back to the starting sector plus maybe 1,000 as the safety. @Thrawn - Cool. Glad it is working.
_________________
/ Promethius / Enigma / Wolfen /
"A man who has no skills can be taught, a man who has no honor has nothing."
|
| Tue Jan 25, 2011 12:41 pm |
|
 |
|
T0yman
Veteran Op
Joined: Sat Dec 29, 2007 5:06 pm Posts: 2059 Location: Oklahoma
|
 Re: proMassCitBuilder v 0.7
Initial Test Setup - on my Lan so ping of 90 ~ 98ms -------------------- Corp Assets vs Game -------------------- Corp fighters: 85307943 Game fighters: 113679908 Corp planets: 520 (520) Citadels Game planets: 1468 (1423) Citadels Single 112 Bubble I did get the hang at the citadel when it wanted to be at the planet prompt and then a display planet info. Crashed at an odd spot. re running my ZTM will retest again shorltly. Maybe a waitfor? Since I don't have the ts I am guessing. Could be that I am using a large amount of planets too but this is normal for a building game to have between 300 ~ 1500 planets. Settings Used Use second planet if first runs low on col/prod? y/n "n" Minimum turns to stop at or 0 for unlimited "0" Auto-generate a list of sectors? y/n "y" then "s" start Trigger dump for script: C:\TWX\scripts\Prom\proMassCitBuilder.cts Text Triggers: Text-Line Triggers: MYSECTOR = [:MYSECTOR, "in sector", ""] Text-Out Triggers: Delay Triggers: Event Triggers: I hit q * First jump was right next door where it should have been, then it jump to the second sector and lifted, jettison, yes, L , Land on which planet <Q to abort> ? WATE Trigger dump for script: C:\TWX\scripts\Prom\proMassCitBuilder.cts Text Triggers: Text-Line Triggers: Text-Out Triggers: Delay Triggers: Event Triggers: Waiting For: "Planet #Water" Sector planets are: Planets : <<<< (F) Ferrengal >>>> (Shielded) (H) sdt (O) Water (A) Metal (H) Telepad (H) Smokem if you Gotem Fighters: 1 (belong to your Corp) [Toll] I moved and ran from another sector to avoid the one and it got through 4 sectors then I got the same basic thing different planet name but same result. I am also including the list of variables from when it stopped and a screen cap in case you need any of that info as well.
_________________ T0yman (Permanently Retired since 2012) Proverbs 17:28 <-- Don't know it, most should it would stop a lot of the discussions on here.
|
| Tue Jan 25, 2011 8:34 pm |
|
 |
|
Promethius
Ambassador
Joined: Mon Feb 09, 2004 3:00 am Posts: 3141 Location: Kansas
|
 Re: proMassCitBuilder v 0.7
k, thank you. Definately some things going on there that shouldn't be and the cap file should help. I appreciate your taking the time to run it. I will see what I can find.
_________________
/ Promethius / Enigma / Wolfen /
"A man who has no skills can be taught, a man who has no honor has nothing."
|
| Tue Jan 25, 2011 10:15 pm |
|
 |
|
Promethius
Ambassador
Joined: Mon Feb 09, 2004 3:00 am Posts: 3141 Location: Kansas
|
 Re: proMassCitBuilder v 0.7
I see where it crash, now I need to find out why. I haven't tested against a beta twgs and I need to see what possible differences there are in the displays. The problem appears to be what I am triggering on to get the planet number so hopefully it will be something fairly simple.
_________________
/ Promethius / Enigma / Wolfen /
"A man who has no skills can be taught, a man who has no honor has nothing."
|
| Tue Jan 25, 2011 10:22 pm |
|
 |
|
T0yman
Veteran Op
Joined: Sat Dec 29, 2007 5:06 pm Posts: 2059 Location: Oklahoma
|
 Re: proMassCitBuilder v 0.7
I should have some time this morning and I will send the results. I am always glad to help testing scripts, gives me something to do 
_________________ 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 Jan 26, 2011 6:54 am |
|
 |
|
Promethius
Ambassador
Joined: Mon Feb 09, 2004 3:00 am Posts: 3141 Location: Kansas
|
 Re: proMassCitBuilder v 0.7
It appears I found the issue that T0yman found and documented (thank you) and it is now resolved. It seemed to be the use of getWord vs getText, which in my mind shouldn't have been a problem, but it works now. Other changes: Should not hang at the Cit prompt, planet fuel burn for routes is now accurate, formatting of the window is complete (comma routine, more info), safe fuel minimum added (last sector back to starting sector + 2k). I do have one more thing to add to this script, but that will probably wait for a while since I have to write it to be compatible with the new TWGS (using the new TL format) and the current version. It needs to detect the TWGS version and switch automatically for the addition. Before I forget again, thanks to Lewdpotato for requesting this script. The request prompted me to rewrite a script that I had been meaning to update, but something else was always more pressing. His request has resulted in a better script than I would have originally done.
_________________
/ Promethius / Enigma / Wolfen /
"A man who has no skills can be taught, a man who has no honor has nothing."
|
| Thu Jan 27, 2011 1:21 pm |
|
 |
|
T0yman
Veteran Op
Joined: Sat Dec 29, 2007 5:06 pm Posts: 2059 Location: Oklahoma
|
 Re: proMassCitBuilder v 0.7
Promethius wrote: It appears I found the issue that T0yman found and documented (thank you) and it is now resolved. It seemed to be the use of getWord vs getText, which in my mind shouldn't have been a problem, but it works now. Other changes: Should not hang at the Cit prompt, planet fuel burn for routes is now accurate, formatting of the window is complete (comma routine, more info), safe fuel minimum added (last sector back to starting sector + 2k). I do have one more thing to add to this script, but that will probably wait for a while since I have to write it to be compatible with the new TWGS (using the new TL format) and the current version. It needs to detect the TWGS version and switch automatically for the addition. Attachment: proMassCitBuilder.zip Before I forget again, thanks to Lewdpotato for requesting this script. The request prompted me to rewrite a script that I had been meaning to update, but something else was always more pressing. His request has resulted in a better script than I would have originally done. I was running it on the Beta TWGS for testing, worked fine with both TWX 2.04 and 2.05 for those wondering.
_________________ T0yman (Permanently Retired since 2012) Proverbs 17:28 <-- Don't know it, most should it would stop a lot of the discussions on here.
|
| Thu Jan 27, 2011 1:33 pm |
|
 |
|
T.R. Edwards
Boo! inc.
Joined: Fri Jul 27, 2007 4:42 pm Posts: 376 Location: California
|
 Re: proMassCitBuilder v 0.7
Finally got a chance to use this script. Great work, Prom.
|
| Mon Mar 07, 2011 7:07 pm |
|
 |
|
Klepto
Chief Warrant Officer
Joined: Tue Nov 23, 2010 10:46 am Posts: 128
|
 Re: proMassCitBuilder v 0.7
Amazing script Prom!!! This is going to make everything just a little bit easier!!! THANK YOU!!!
|
| Mon Mar 07, 2011 11:02 pm |
|
 |
|
Promethius
Ambassador
Joined: Mon Feb 09, 2004 3:00 am Posts: 3141 Location: Kansas
|
 Re: proMassCitBuilder v 0.7
Cool. I am glad it is working out for people. I can make it bot compatible if people want to use autogeneration of lists, file list, or a single sector. I tend to use it in autogeneration mode or single sector, but not sure if others are entering sectors manually or using files that contain the sector list. I still don't like botting players, but for those that do this might be good.
_________________
/ Promethius / Enigma / Wolfen /
"A man who has no skills can be taught, a man who has no honor has nothing."
|
| Tue Mar 08, 2011 1:31 am |
|
 |
|
ElderProphet
Commander
Joined: Tue Oct 07, 2003 2:00 am Posts: 1134 Location: Augusta, GA
|
 Re: proMassCitBuilder v 0.7
Hit me up if you think getword or gettext isn't behaving.
_________________ Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.
|
| Tue Mar 08, 2011 1:36 am |
|
 |
|