Has anyone ever seen.......
| Author |
Message |
|
HiTechRedneck
Chief Warrant Officer
Joined: Sat Jun 05, 2010 2:05 pm Posts: 152 Location: Indiana (blah)
|
 Has anyone ever seen.......
I'm looking for a script that will take 2 planet numbers, 1 as a dump to planet and 1 as a "taxi" planet... I need the taxi planet to go to all the planets in the TL (except itself and the dump planet) and pull colonist to about 1k below optimum level in F, O and E... Once the taxi is full, it should go to the dump planet, transfer colos up to that planets optimum levels, then go back where it left off...
For example, in the game I am currently playing I am using primarily 2 types of planets... H has optimum levels of 75k, 50k and 50k... M has optimum of 25k, 25k, 25k... So the script would need to be told what class to use what levels on... With 55 planets and growing rapidly, this task is quickly becoming very tedious, and needs to be done every few days to keep production close to maximum...
Has anyone ever seen a script like this, or would anyone be willing to attempt writing one in either Swath (java), TWX or Mombot???
_________________ The lord helps those who help themselves... For everyone else, there's democrats...
|
| Mon Dec 06, 2010 2:44 am |
|
 |
|
Wildstar
Lieutenant
Joined: Fri Apr 05, 2002 3:00 am Posts: 580 Location: USA
|
 Re: Has anyone ever seen.......
I had one. Did all of that and it also had an option to move planets and other good stuff.
It was called 5.Wildstar Planet Farmer
It was up on Grimeys. IF it is not there, I am sure you can get it from someone. I am sure it is floating around
_________________ My scripts can be downloaded at http://www.grimytrader.com/.
Ore *****.
Even in my signature it's blocked out.
|
| Mon Dec 06, 2010 1:44 pm |
|
 |
|
Parrothead
Commander
Joined: Wed May 03, 2006 2:00 am Posts: 1722 Location: USA
|
 Re: Has anyone ever seen.......
Nope was not at Grimy's WildStar everything there was Zipped up and moved to Navhaz and helixs site for D/L and I didnt see it in your Zip pack. Most of your older scripts don't work in the new twx anyway.
The problem is in Optimum levels. There is no way to tell what this is until you are Overloaded.
You could have the script move one load at a time until the math no longer showed an overload.
Or you could feed the script the information.
_________________ Coconut Telegraph (ICQ)#586137616 Team Speak3@ 220.244.125.70:9987 Founding Member -=[Team Kraaken]=- Winner of Gridwars 2010 - Ka Pla
 Jesus wounldn't Subspace Crawl
|
| Mon Dec 06, 2010 3:38 pm |
|
 |
|
Singularity
Veteran Op
Joined: Thu Jun 02, 2005 2:00 am Posts: 5558 Location: USA
|
 Re: Has anyone ever seen.......
As long as you only work w/ planets that are overloaded, you could figure this out. And that would be easy to do. The problem is that the TL doesn't have sector numbers in the old pre-beta release, so you'd have to plug in the sector numbers manually.
But...
You have the ratio, and you have the colo level. If daily production < colo/ratio, then you know you're overloaded.
Like lets say you've got 80,000 cols, 2:1 ratio, and only 30,000 daily prod. From that, you can figure out the max production level.
80000/2 = 40000. You should have 40000 prod. If you only get 30000, then you're 10000 shy. At 2:1, that's 20000. (80000 - (20000/2)) = 70000. 70k max. At 70k, you'd have 35k prod. At 60k you'd have 30k prod, at 80k you've got 30k, etc.
So...
if ((total_cols / ratio) < production) { excess_cols = ((total_cols/ratio - production) * ratio)/2 }
Should work. At least, I think so. Someone double check my math.
But yeh, as long as you're only working with overloaded planets, you could do this.
As for the dump planet, you could dump several rounds at a time, then correct for overload afterwards.
_________________ May the unholy fires of corbomite ignite deep within the depths of your soul...
1. TWGS server @ twgs.navhaz.com 2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads 3. Open IRC chat @ irc.freenode.net:6667 #twchan 4. Parrothead wrote: Jesus wouldn't Subspace Crawl.
*** SG memorial donations via paypal to: dpocky68@booinc.com
|
| Mon Dec 06, 2010 4:02 pm |
|
 |
|
Parrothead
Commander
Joined: Wed May 03, 2006 2:00 am Posts: 1722 Location: USA
|
 Re: Has anyone ever seen.......
Pack 2 Planetinfo already has a subroutine and flag for this.
Landing on the planets and telling IF they are overloaded is easy.
Telling how much is a different story and requires some math..see above post.OR you could pull 2000 or 8 loads..somewhere in there and recheck status. IF the script were run fairly often then it shouldn't be too slow. Then move to next planet in sector.
All u would need is a list of sectors to farm and let it fly.
_________________ Coconut Telegraph (ICQ)#586137616 Team Speak3@ 220.244.125.70:9987 Founding Member -=[Team Kraaken]=- Winner of Gridwars 2010 - Ka Pla
 Jesus wounldn't Subspace Crawl
|
| Mon Dec 06, 2010 4:16 pm |
|
 |
|
HiTechRedneck
Chief Warrant Officer
Joined: Sat Jun 05, 2010 2:05 pm Posts: 152 Location: Indiana (blah)
|
 Re: Has anyone ever seen.......
What I am looking for is a bit simpler (I think)... Something that will take inputs like
A] Taxi Planet # B] Dump Planet # C] Planet Class 1 = 'TXT' a) Max Fuel Colos = # b) Max Org Colos = # c) Max Equ Colos = # D] Planet Class 2 = 'TXT' a) Max Fuel Colos = # b) Max Org Colos = # c) Max Equ Colos = # E] etc, etc, etc for maybe 3 or 4 planet types...
Script then takes the taxi to the first sector, lands on each planet and grabs anything over the set max levels... Since I have already overloaded all the planets, I already know what the optimum levels are for production, and would figure 1k or so lower so I wouldn't have to run it every day... Once the taxi is full (literal maximum in 1 or more groups) it would then go to the dump planet, drop as many colos as it can, and return to where it left off... Stopping when either the dump planet is full, or all planets have been equalized...
I know that the Swath database contains planet #, sector and class information, although I'm not certain how often it updates itself... I would presume that the TWX and Mombot databases also store this info... I just have no idea how to write the script needed to pull this off...
_________________ The lord helps those who help themselves... For everyone else, there's democrats...
|
| Tue Dec 07, 2010 4:43 am |
|
 |
|
Scrat
Chief Warrant Officer
Joined: Sun Jan 20, 2008 5:15 am Posts: 142
|
 Re: Has anyone ever seen.......
That doesn't seem like a very efficient method of maintaining population levels as you are moving each load of colos twice. Even if it's an unlimitied turn game you're still taking twice as long as you need. You might want to consider just having an under populated dump planet in each sector that way you can just move the surplus onto it. Then when your dump planet is full move one of the planets out and move in or create a new dump planet. Also you don't mention what the production rates are on the planets. I normally optimize the population in the product with the best production then just move surplus colos into the product with the second best production. It's fast and takes no turns to do if you use a planet to move between sectors. You can use the Corp planet listing to quickly identify which planets need attention by their current production. I've managed 400-500 stock O's and H's before using this method without needing any special scripts.
|
| Tue Dec 07, 2010 10:22 am |
|
 |
|
Singularity
Veteran Op
Joined: Thu Jun 02, 2005 2:00 am Posts: 5558 Location: USA
|
 Re: Has anyone ever seen.......
Problem is managing this across sectors in a big bubble.
If you had lots of mobiles, u could use them as the dump planet and save time. But what if you want to dump across dozens of sectors onto developing planets? That's where something like this could come in handy.
_________________ May the unholy fires of corbomite ignite deep within the depths of your soul...
1. TWGS server @ twgs.navhaz.com 2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads 3. Open IRC chat @ irc.freenode.net:6667 #twchan 4. Parrothead wrote: Jesus wouldn't Subspace Crawl.
*** SG memorial donations via paypal to: dpocky68@booinc.com
|
| Tue Dec 07, 2010 10:42 am |
|
 |
|
HiTechRedneck
Chief Warrant Officer
Joined: Sat Jun 05, 2010 2:05 pm Posts: 152 Location: Indiana (blah)
|
 Re: Has anyone ever seen.......
That's pretty much what I am looking for Sing... Any chance you could throw something together for me??? Or point me to a "for dummies" guide to twx scripting???
_________________ The lord helps those who help themselves... For everyone else, there's democrats...
|
| Wed Dec 08, 2010 2:57 am |
|
 |
|
Promethius
Ambassador
Joined: Mon Feb 09, 2004 3:00 am Posts: 3141 Location: Kansas
|
 Re: Has anyone ever seen.......
HiTechRedneck wrote: That's pretty much what I am looking for Sing... Any chance you could throw something together for me??? Or point me to a "for dummies" guide to twx scripting??? viewtopic.php?f=15&t=21677&p=185609&hilit=script+help+document#p185609This might be of some help on scripting.
_________________
/ Promethius / Enigma / Wolfen /
"A man who has no skills can be taught, a man who has no honor has nothing."
|
| Wed Dec 08, 2010 12:30 pm |
|
 |
|
HiTechRedneck
Chief Warrant Officer
Joined: Sat Jun 05, 2010 2:05 pm Posts: 152 Location: Indiana (blah)
|
 Re: Has anyone ever seen.......
That helps a little Promethius, but what I really need is a listing of all the available commands with syntax and usage examples... Also, does TWX support multidimensional arrays, or just single dimension??? Also, while the TWX help file shows some various commands and what they are, it says nothing about syntax or usage, and I also don't see anything about getting planet numbers from sectors even though I'm guessing that the TWX database stores this info... Are all variables in TWX string ($A), or are numeric variables (A) also allowed???
_________________ The lord helps those who help themselves... For everyone else, there's democrats...
|
| Thu Dec 09, 2010 1:12 pm |
|
 |
|
Singularity
Veteran Op
Joined: Thu Jun 02, 2005 2:00 am Posts: 5558 Location: USA
|
 Re: Has anyone ever seen.......
HiTechRedneck wrote: That helps a little Promethius, but what I really need is a listing of all the available commands with syntax and usage examples... Also, does TWX support multidimensional arrays, or just single dimension??? Also, while the TWX help file shows some various commands and what they are, it says nothing about syntax or usage, and I also don't see anything about getting planet numbers from sectors even though I'm guessing that the TWX database stores this info... Are all variables in TWX string ($A), or are numeric variables (A) also allowed??? Included in the twxproxy install package is script.html. A copy can be found here: http://www.navhaz.com/files/script.htmlAnd yes, TWXproxy supports multidimensional arrays, but be very careful how big you make them. You can easily run out of memory. TWXproxy does not store planet numbers. This is why the TL list was changed to add planet number. That is only an option in the beta, so you will need to specify a list of sector numbers instead. You can kind of fudge this if you need to and count the number of planets per sector, then only go to those with X or more (as an option in the script). Variables are handled in $var format. But you can kind of fudge that w/ associative arrays if you must.
_________________ May the unholy fires of corbomite ignite deep within the depths of your soul...
1. TWGS server @ twgs.navhaz.com 2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads 3. Open IRC chat @ irc.freenode.net:6667 #twchan 4. Parrothead wrote: Jesus wouldn't Subspace Crawl.
*** SG memorial donations via paypal to: dpocky68@booinc.com
|
| Thu Dec 09, 2010 1:40 pm |
|
 |
|
Parrothead
Commander
Joined: Wed May 03, 2006 2:00 am Posts: 1722 Location: USA
|
 Re: Has anyone ever seen.......
I belive there is a farm script in the mombot module dir that should give you a place to start your scripts rather than doing so from scratch. At the end of the project you will have your very own Hitech Special Script but have learned to script any other script u want in the future.
_________________ Coconut Telegraph (ICQ)#586137616 Team Speak3@ 220.244.125.70:9987 Founding Member -=[Team Kraaken]=- Winner of Gridwars 2010 - Ka Pla
 Jesus wounldn't Subspace Crawl
|
| Thu Dec 09, 2010 8:28 pm |
|
 |
|
HiTechRedneck
Chief Warrant Officer
Joined: Sat Jun 05, 2010 2:05 pm Posts: 152 Location: Indiana (blah)
|
 Re: Has anyone ever seen.......
Singularity wrote: Included in the twxproxy install package is script.html. A copy can be found here: http://www.navhaz.com/files/script.htmlAnd yes, TWXproxy supports multidimensional arrays, but be very careful how big you make them. You can easily run out of memory. TWXproxy does not store planet numbers. This is why the TL list was changed to add planet number. That is only an option in the beta, so you will need to specify a list of sector numbers instead. You can kind of fudge this if you need to and count the number of planets per sector, then only go to those with X or more (as an option in the script). Variables are handled in $var format. But you can kind of fudge that w/ associative arrays if you must. I have that html file, but it says almost nothing about usage and syntax... It only lists some commands and the variables that those commands use... How do you tell TWXproxy to land on planet #161??? I saw a command that either gets or gives the planet names in the html file (again, nothing on usage in that file), but if I have 5 planets in sector 11, how do I tell it which planet to land on to take or leave something, since all of my planets have the same name??? Do I need to read a list of sectors and planet numbers from a file??? If so, which file is it??? Can I pull info from the Swath DB to use in TWX scripts, without doing an export each time I need to run a script in TWX??? Basic scripting I understand, barely, but some of it is like VB such as the WHILE and IF/THEN stuff... The TWX specific stuff is what I am having a hard time understanding... Kinda like the difference between VB and VBA... Thankfully, I have MSDN.net for help there...
_________________ The lord helps those who help themselves... For everyone else, there's democrats...
|
| Fri Dec 10, 2010 3:04 am |
|
 |
|
HiTechRedneck
Chief Warrant Officer
Joined: Sat Jun 05, 2010 2:05 pm Posts: 152 Location: Indiana (blah)
|
 Re: Has anyone ever seen.......
Parrothead wrote: I belive there is a farm script in the mombot module dir that should give you a place to start your scripts rather than doing so from scratch. At the end of the project you will have your very own Hitech Special Script but have learned to script any other script u want in the future. I have 5 farm scripts in there, farm.000.ts - farm.001.ts... They all start out the same way, with loadVar $xxx... Some of them I can understand like $bot_name... But what is $parm1 - $parm8 and $command??? Where is the script loading these variables from???
_________________ The lord helps those who help themselves... For everyone else, there's democrats...
|
| Fri Dec 10, 2010 3:29 am |
|
 |
|
Who is online |
Users browsing this forum: No registered users and 5 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
|
|