Galaxy Legion Forum http://galaxylegion.com/forum/ |
|
Calculating colonization costs http://galaxylegion.com/forum/viewtopic.php?f=4&t=42584 |
Page 1 of 2 |
Author: | Tempest3 [ Wed Jan 21, 2015 6:57 pm ] |
Post subject: | Calculating colonization costs |
Since colonizing multiple planets is an n+1 type of problem, it can be extremely tedious/useless to figure out how much it would cost to fill your planet slots (especially if, like myself, you have ranked a lot very quickly over the Scruuge event without colonizing nearly enough planets). I was curious about figuring out my total costs, and didn't really enjoy calculus enough to derive the equation, so I wrote this simple calculator that anyone here can use by editing the values on lines 7 and 8 to match their ship stats (Planets Occupied and Rank). If you are a high-rank ship, you can already expect sticker-shock. If you plan to invade planets, the cost is... going to necessarily be significantly higher. Anyway, hope you all enjoy seeing how much capital you could lose if you wanted to max your planets but haven't. Edit: New and improved version with help from TexasToast http://repl.it/8cg |
Author: | Texas Toast [ Wed Jan 21, 2015 10:09 pm ] |
Post subject: | Re: Calculating colonization costs |
I like it! I created a sheet on my spreadsheet when I was getting ready for lone conquorer so I'd know how much invasion costs would be that laid things out, so that would be pretty easy to add. In fact, I played around with it a bit and here's some slight improvements you might want to consider: Code: #This calculator tells you the cost of colonizing all your empty planet slots. #You will need to change the numerical variables at lines 7 (n=10) and 8 (rank = 100) and then your calculation will be accurate for your ship. import math n = 75 #"Planets Occupied" on ship stats rank = 300 #Your ship rank maxPlanets = (rank/4) + 1 print str(maxPlanets) + " max planets (" + str(maxPlanets-n) + " more)" cost = 0 while (n < maxPlanets): cost += (math.pow((n+1), 3)) * 1000 n +=1 print "total cost: $" + "{:,}".format(cost) + " - $" + "{:,}".format(cost * 2) The only changes are on the two print lines. |
Author: | Tempest3 [ Wed Jan 21, 2015 10:14 pm ] |
Post subject: | Re: Calculating colonization costs |
I like the idea of showing the cost if you invade all the available slots... although that just makes me want to cry. But yeah, cool stuff! Thanks for helping with the print formatting -- I sometimes get lazy with it since I know what it means and just want to dump the variables. It would definitely help people who don't understand the code as well. |
Author: | kirkeastment [ Wed Jan 21, 2015 10:18 pm ] |
Post subject: | Re: Calculating colonization costs |
It may prove useful to know that 700 is the max # of planets you can own.(Based solely on NarayanAstra never going above that # of planets owned). |
Author: | Texas Toast [ Wed Jan 21, 2015 10:19 pm ] |
Post subject: | Re: Calculating colonization costs |
I've never used Python so it was fun looking up the syntax. |
Author: | Tempest3 [ Wed Jan 21, 2015 10:26 pm ] |
Post subject: | Re: Calculating colonization costs |
I remember wondering about max planets back when FRAIL was autoranking to 3000. Is there any confirmation at all from the high-ranks if this is true, or is the cost simply too prohibitive (play around with this calculator and you'll quickly see how bad it becomes if you aren't already aware)? |
Author: | kirkeastment [ Wed Jan 21, 2015 10:29 pm ] |
Post subject: | Re: Calculating colonization costs |
Tempest3 wrote: I remember wondering about max planets back when FRAIL was autoranking to 3000. Is there any confirmation at all from the high-ranks if this is true, or is the cost simply too prohibitive (play around with this calculator and you'll quickly see how bad it becomes if you aren't already aware)? Well NarayanAstra had 700 planets colonized, i saw that number personally, but he never went above it.(he was rank 2891 at the time, so certainly had more slots available), but he never went above that number. He would certainly have been able to afford the costs, so the only reason i can think of would be that there is/was a cap. I can confirm it myself in 98 planets time lol, but it'll take a few months :v |
Author: | Tempest3 [ Wed Jan 21, 2015 10:35 pm ] |
Post subject: | Re: Calculating colonization costs |
kirkeastment wrote: I can confirm it myself in 98 planets time lol, but it'll take a few months :v What, E+13 isn't that much... |
Author: | Chloron [ Wed Jan 21, 2015 10:51 pm ] |
Post subject: | Re: Calculating colonization costs |
You also want to look at your ship tab to see planets owned as that number is often different than when you go to the planets tab and sort by owned. |
Author: | Tempest3 [ Wed Jan 21, 2015 10:57 pm ] |
Post subject: | Re: Calculating colonization costs |
Tempest3 wrote: to match their ship stats (Planets Occupied and Rank). Yeah, the stats on your ship are the number you go by -- there are several ways to get planets without using planet slots, and the planet tab doesn't differentiate. |
Author: | juiceman [ Wed Jan 21, 2015 11:30 pm ] |
Post subject: | Re: Calculating colonization costs |
I dlove for shockwave or squishy to weight in on max planets owned. Surely they could have pushed past that quite a while back. Even topper should be able to answer. |
Author: | Tempest3 [ Wed Jan 21, 2015 11:32 pm ] |
Post subject: | Re: Calculating colonization costs |
juiceman wrote: I dlove for shockwave or squishy to weight in on max planets owned. Surely they could have pushed past that quite a while back. Even topper should be able to answer. Topper only has 580 occupied planets. |
Author: | kirkeastment [ Wed Jan 21, 2015 11:33 pm ] |
Post subject: | Re: Calculating colonization costs |
juiceman wrote: I dlove for shockwave or squishy to weight in on max planets owned. Surely they could have pushed past that quite a while back. Even topper should be able to answer. None of them are even close. Shock is only at 505 Squishy is in the 300's Topper is at 580 As it stands, i probably own the most planets right now. :v |
Author: | Darth Flagitious [ Thu Jan 22, 2015 12:43 am ] |
Post subject: | Re: Calculating colonization costs |
kirkeastment wrote: juiceman wrote: I dlove for shockwave or squishy to weight in on max planets owned. Surely they could have pushed past that quite a while back. Even topper should be able to answer. None of them are even close. Shock is only at 505 Squishy is in the 300's Topper is at 580 As it stands, i probably own the most planets right now. :v Pony has/had 653, FWIW. |
Author: | Tempest3 [ Thu Jan 22, 2015 1:10 am ] |
Post subject: | Re: Calculating colonization costs |
Darth Flagitious wrote: Pony has/had 653, FWIW. If he *doesn't* have a 700 planet cap (if there isn't one), then it would cost him over 100T to colonize enough planets to cap him. Assuming I figured out who he is since the name change. -_- |
Author: | Deigobene [ Thu Jan 22, 2015 1:25 am ] |
Post subject: | Re: Calculating colonization costs |
Tempest3 wrote: Darth Flagitious wrote: Pony has/had 653, FWIW. If he *doesn't* have a 700 planet cap (if there isn't one), then it would cost him over 100T to colonize enough planets to cap him. Assuming I figured out who he is since the name change. -_- MyLilPony is still listed in Chesterton Royal Academy, though he is clearly not "active" as his name is not on the rank leaderboards any more. |
Author: | Tempest3 [ Thu Jan 22, 2015 1:34 am ] |
Post subject: | Re: Calculating colonization costs |
Deigobene wrote: MyLilPony is still listed in Chesterton Royal Academy, though he is clearly not "active" as his name is not on the rank leaderboards any more. Ah, that makes sense. In that case, it would only be 462T credits for him to cap. |
Author: | Darth Flagitious [ Thu Jan 22, 2015 1:42 am ] |
Post subject: | Re: Calculating colonization costs |
Tempest3 wrote: Deigobene wrote: MyLilPony is still listed in Chesterton Royal Academy, though he is clearly not "active" as his name is not on the rank leaderboards any more. Ah, that makes sense. In that case, it would only be 462T credits for him to cap. Yeah... Don't need to worry about that ever happening. |
Author: | juiceman [ Thu Jan 22, 2015 4:13 am ] |
Post subject: | Re: Calculating colonization costs |
So my guess is, there may not be a hard cap, but practicality of cost sets an endemic one. I have 402 planets currently and invading is like 128? billion or so... at some point it would be super impractical to invade or even colonize...or would take so long to earn the credits to make it doable. |
Author: | Texas Toast [ Thu Jan 22, 2015 7:00 pm ] |
Post subject: | Re: Calculating colonization costs |
So what I hear you guys saying is...get as many of my greens as I can now, when I'm not even rank 300 yet, and save any planets I like for colonizing after invasions become prohibitively expensive or for sharing out to legionmates... |
Page 1 of 2 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |