View unanswered posts | View active topics It is currently Mon Apr 20, 2026 11:56 am



Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
 proMassCitBuilder v 0.7 
Author Message
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post 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 517 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
Profile ICQ
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post 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
Profile ICQ
Veteran Op
User avatar

Joined: Sat Dec 29, 2007 5:06 pm
Posts: 2059
Location: Oklahoma
Unread post 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
Profile ICQ YIM WWW
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post 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
Profile
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post 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
Profile ICQ
Veteran Op
User avatar

Joined: Sat Dec 29, 2007 5:06 pm
Posts: 2059
Location: Oklahoma
Unread post 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.

Attachment:
Info_Dump.zip [30.55 KiB]
Downloaded 502 times

_________________
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
Profile ICQ YIM WWW
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post 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
Profile ICQ
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post 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
Profile ICQ
Veteran Op
User avatar

Joined: Sat Dec 29, 2007 5:06 pm
Posts: 2059
Location: Oklahoma
Unread post 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
Profile ICQ YIM WWW
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post 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.

Attachment:
File comment: Version 0.9
proMassCitBuilder.zip [10.19 KiB]
Downloaded 512 times


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
Profile ICQ
Veteran Op
User avatar

Joined: Sat Dec 29, 2007 5:06 pm
Posts: 2059
Location: Oklahoma
Unread post 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
Profile ICQ YIM WWW
Boo! inc.
User avatar

Joined: Fri Jul 27, 2007 4:42 pm
Posts: 376
Location: California
Unread post Re: proMassCitBuilder v 0.7
Finally got a chance to use this script. Great work, Prom.


Mon Mar 07, 2011 7:07 pm
Profile ICQ YIM
Chief Warrant Officer

Joined: Tue Nov 23, 2010 10:46 am
Posts: 128
Unread post 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
Profile
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post 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
Profile ICQ
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post 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
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 20 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.