Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Alpha Centauri > AC-General/Help/Strategy > Unit Hurry Cost Revisited!
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
16.Sep: ZAKHAROV TURNS ELEVEN
15.Sep: `POSSIBILITY` IS ALL FOR NOW
15.Sep: THE SINGULARITY CONNECTION

bottom of page
  - ALPHA CENTAURI PC $9.99 - Centauri Dawn $6.50 - Dragon Sun $6.99 - Twilight of the Mind $6.99 - Power of the Mindworms $8.95 - ALPHA CENTAURI MAC $19.99
Author
Thread   
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
Santiago_Claus is offline Santiago_Claus
Warlord

Mar 2004
time: 05:36
  Old Post 14-05-2004 15:13
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Unit Hurry Cost Revisited! Get a bigger avatar today!

Just when you thought you'd seen it all ... just when you thought the poor old nag of a dead horse had been beaten into soap ... out pops another UNIT HURRY COST FORMULA! WOOHOO!

Everything I've done here is based on what others did before, I just made it work in a spreadsheet. How it works is that you enter the hurry cost and base production, and the spreadsheet returns 2 costs: minimum build cost & 10-surplus build cost.

Okay, so you've hit "hurry" on a unit and a cost pops up. How many minerals does that represent? We know we can look it up on the chart, but a formula would be better for a spreadsheet.

Let the full hurry Cost be "C". Inverting the famous x^2 / 20 + 2x equation means we must take the positive root of the quadratic formula:

10 * ((C / 5 + 4) - 2)

Rounded to the nearest integer, this exactly matches the chart!

The actual spreadsheet formula (where "B4" is the cell containing variable "C") looks like this:

ROUND(10 * (SQRT(B4 / 5 + 4) - 2))

Let's call that answer "M". (Mineral cost remaining.)

Now the Unit Cost = C / M, call that "U".

Let base production be "P".

Now the Exact Cost = ROUNDUP((M - P) * U)
And the 10-Over Cost = ROUNDUP((M - P + 10) * U)

The formulas I've given should be easy to plug into a spreadsheet (considering I just read them off mine to post this). Never look stuff up on tables again!

P.S. If you're under 10 stored minerals you'll have to halve the input cost and double the output cost for the formulas to work, and for prototype rush-builds you're on your own.

Skanky Burns is offline Skanky Burns
Deity
Skanky Bastard Quartermaster
Aug 2001
time: 14:36
  Old Post 14-05-2004 19:11
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Help yourself to an AD-FREE life

Nice work.

Jamski is offline Jamski
Deity
lol ED&D is officially full PvP LOL
May 2002
time: 05:36
  Old Post 14-05-2004 19:14
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Lose 30 kilos (of popups)

I have a faster, simpler and easier way to do it in my head without counting a single mineral.

And I'm not going to share it with you*

Ok, my way is only 95% accurate, but I can live with 2-3 wasted ecs.

*Well, I think you can guess anyway...

-Jam

Maniac is offline Maniac
Emperor
Gent, Belgium
Jul 1999
time: 06:36
  Old Post 14-05-2004 19:50
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Remove this text

I haven't got a clue what you're talking about. If I have to deal with an unrounded number of credits for one mineral, I just take a calculator and divide the hurry cost by the amount of minerals left. Much easier.

Lazerus is offline Lazerus
King
Empires were built by dictators, not democracies.
Jul 2002
time: 05:36
  Old Post 15-05-2004 06:01
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy Call to Power 2

24minerals left to build , 48 ec cost ... my base is producing 12 minerals that leaves 12 so if i spend 24 then i'll get it done next turn !

.........

WTF !?!?!?!? 2 turns left to build
"Cannot make more then one hurry payment per turn"

****ing mofo gimme my 24ec back !!!



Santiago_Claus is offline Santiago_Claus
Warlord

Mar 2004
time: 05:36
  Old Post 15-05-2004 06:57
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Call to Power 2

The purpose of the formula is to simplify the inputs as much as possible.

You look at the base's production and plug that into one cell. You hit the "Hurry" button and put the number that comes up into another cell. The answers appear.

In order for that to happen the spreadsheet must calculate backwards from the energy cost to how many minerals are being purchased, and for that you must use the quadratic formula.

The end result is clean and elegant: put the cost and production in, get the 2 optimized costs out (exact and +10).

Sikander is offline Sikander
King
Boulder, Colorado, United Snakes of America
Jan 2000
time: 22:36
  Old Post 17-05-2004 08:47
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Put an end to popups!

I simply do the whole thing in my head. Even when I'm completely exhausted I don't make a mistake. Base production minus ten divided by two, which is subtracted from the hurry cost. Pay the man. For SPs divide by four and don't subtract the ten from base production.

Chaos Theory is offline Chaos Theory

King
Missouri / Misery; CC
Oct 2002
time: 04:36
  Old Post 17-05-2004 11:16 Visit Chaos Theory<br><a href=/members><img src=/forums/images/supporter-icon.gif border=0></a><BR>'s homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

Sure, facilities and SPs are easy, but unit costs are more complicated and involve division with decimals. You can do the math in your head, but it takes a few seconds and getting it wrong by even 1 can cost a turn of production.

anarchie is offline anarchie
Chieftain

Jan 2004
time: 05:36
  Old Post 17-05-2004 13:18
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

C = M^2 / 20 + 2M
U = C / M

U = M/20 + 2

M is available from the F4 screen. This is much easier than you make it out to be.

EC = (M - P) * U

EC = C - P*U

EC10 = C - (P - 10)*U

Jamski is offline Jamski
Deity
lol ED&D is officially full PvP LOL
May 2002
time: 05:36
  Old Post 17-05-2004 13:21
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Increase the size of your Attachments

quote:
You can do the math in your head, but it takes a few seconds and getting it wrong by even 1 can cost a turn of production.


Which is why I do a rough estimate and then add one to make sure.

Its not like the overpayment is wasted, you get the minerals towards the next item anyway

-Jam

Snowflake is offline Snowflake
Princess
falling, once again
Apr 2003
time: 23:36
  Old Post 17-05-2004 21:37
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Remove this text

I don't understand why all the hassle. When I do the hurry I always use the full hurry cost, less 2*(base production - 10), if the base production is greater than 10. Is that not right?

For example, if the full hurry cost is 48 and my base production is 18, I put in 48-2*(18-10)=32.

Why do you need a spreadsheet to do that?

Enigma_Nova is offline Enigma_Nova
King

Nov 2003
time: 14:36
  Old Post 17-05-2004 21:55
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Put an end to popups!

Go go gadget mathematics!

It costs x ECs to rush y remaining minerals of a project.
your base is producing z minerals.

If you want to avoid wasting minerals but want the most complete rush possible, take
(y - z + 10)*(x/y)
So indeed you are incorrect.

Skanky Burns is offline Skanky Burns
Deity
Skanky Bastard Quartermaster
Aug 2001
time: 14:36
  Old Post 17-05-2004 22:28
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Increase Your PM Length

quote:
Originally posted by Jamski
Its not like the overpayment is wasted, you get the minerals towards the next item anyway

-Jam


It is if you calculate it to have exactly 10 minerals left over.

Snowflake is offline Snowflake
Princess
falling, once again
Apr 2003
time: 23:36
  Old Post 17-05-2004 23:22
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

quote:
Originally posted by Enigma_Nova
Go go gadget mathematics!

It costs x ECs to rush y remaining minerals of a project.
your base is producing z minerals.

If you want to avoid wasting minerals but want the most complete rush possible, take
(y - z + 10)*(x/y)
So indeed you are incorrect.


(y - z + 10)*(x/y) = x - (z-10)*(x/y)

The only difference then is I suppose x/y is not necessarily 2. I know that for SPs it is 4. But under normal circumstances wouldn't that formula apply to most cases?

Let's see. My formula will make sure I get the production done by the next turn. However it may mean some waste if (x/y) is greater than 2. So that is what Jamski meant, since most of the times it is not much greater than 2 so the end result is that the waste is not bigger than a couple minerals most of the time, if any. And not having to open up a spreadsheet or try to look up what y is and do a calculation precise to the second decimal point, the savings of ones time and brain is certainly worth it.

Net Warrior is offline Net Warrior
King
Long Island, New York
Sep 2003
time: 00:36
  Old Post 17-05-2004 23:39
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Remove this text

HongHu,

I use a variation on your formula to figure out the hurry cost with no minerals left over:

48-2*18

This formula has never failed me, but I never figured out how to adjust it for 10 minerals leftover.

Sikander,
Thanks for the heads up on the SP hurry formula. I was never able to figure that one out either.

geesh, this is my 3rd edit

4th edit : : HongHu, I've thought about it some more and now I agree with you. This is the last time I post from work without playtesting my ideas.

Last edited by Net Warrior on 18-05-2004 at 00:56

Jamski is offline Jamski
Deity
lol ED&D is officially full PvP LOL
May 2002
time: 05:36
  Old Post 18-05-2004 00:03
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Inflate your Upload Space

My point exactly HongHu

I mean if I have 120 bases, and say 40 rushes each turn, I want it simple. With my method I can do the math instantaniously in my head (its just practice) and maybe waste 1 or 2 ecs in a turn. Rushing facs and SPs means there is never any waste.

-Jam

Snowflake is offline Snowflake
Princess
falling, once again
Apr 2003
time: 23:36
  Old Post 18-05-2004 00:06
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

What you got there is that you won't have any mineral carry over NW.

[edit] And this is my 3rd edit too.

Last edited by Snowflake on 18-05-2004 at 00:19

Net Warrior is offline Net Warrior
King
Long Island, New York
Sep 2003
time: 00:36
  Old Post 18-05-2004 00:14
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Support Apolyton or Terrorists Win

lol HungHu, I already edited my post

Snowflake is offline Snowflake
Princess
falling, once again
Apr 2003
time: 23:36
  Old Post 18-05-2004 00:16
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Support Apolyton, buy Civilization 2

Say you need 48 ecs to fully rush a production.

If your base production is less than 10 you rush it for 48 ecs and carry the min over.

If your base production is 10 you rush it for 48 ecs and carry the 10 min over.

If your base production is 11 you rush it for 46ecs (=48-2*(11-10)) and use 1 mineral and carry the rest 10 min over.

If your base production is 12 you rush it for 44 ecs (=48-2*(12-10)) and use 2 mineral and carry the rest 10 min over.

If your base production is 13 you rush it for 42 ecs (=48-2*(13-10)) and use 3 mineral and carry the rest 10 min over.

...

If your base production is 18 you rush it for 32 ecs (=48-2*(18-10)) and use 8 mineral and carry the rest 10 min over.

Snowflake is offline Snowflake
Princess
falling, once again
Apr 2003
time: 23:36
  Old Post 18-05-2004 00:17
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Lose 30 kilos (of popups)

quote:
Originally posted by Net Warrior
lol HungHu, I already edited my post


And I edited mine too.

Santiago_Claus is offline Santiago_Claus
Warlord

Mar 2004
time: 05:36
  Old Post 18-05-2004 05:07
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Support Apolyton or Terrorists Win

I don't like counting mineral rows. You'd have to be a fighter pilot to enjoy distinguishing between bright blue, blue, and dull blue blocks on a dark blue background.

It is much easier on my eyes for me to take the ec figure from clicking "Hurry" as one of my inputs (and the equally easy-to-read "net mineral income" number on the right of the city resource display as my other.)

Buildings and SP's are, as someone else noted, "trivial", but units are ugly; I'd sooner extract a tooth than a root every time I want to rush a unit, so I let the spreadsheet do it for me.

However, I'm always open to new ideas, so ... here's the challenge:

Devise an approximating formula for optimized unit payments simple enough to do in one's head which takes ONLY hurry cost and production as inputs. The formula must be fail-safe: it must never under-pay!

HongHu gets the ball rolling, taking advantage of the fact that unit cost will never be less than two:

Approximation = Cost - 2 * Production

Using a test case 30-production base, 50-cost unit, 10 minerals pre-paid, we want to buy 10 more minerals to finish the unit early. (C - 2P) buys 25, which causes a waste of 5 units (20 ec).

I'll amend HH's formula with a "look-up table": 60, 160, 300 ec use production coefficients 3, 4, and 5. That is, at 60 ec the unit cost reaches 3, so you may safely discount 3 * P. You can remember the 60, 160, 300 breakpoints by remembering the pattern (3, 4, 5), (2, 4, 6):

3 * 2 * 10 = 60,
4 * 4 * 10 = 160,
5 * 6 * 10 = 300.

Or you could just buy me a better pair of glasses ...

Last edited by Santiago_Claus on 18-05-2004 at 05:13

Enigma_Nova is offline Enigma_Nova
King

Nov 2003
time: 14:36
  Old Post 18-05-2004 06:12
Edit/Delete Message Reply w/Quote
#22 Report this post to a moderator
Support Apolyton, buy Call to Power 2

F4 - production
You see the minerals made / total
Total - made = minerals left.

count them ECs and mins ya lazy bastards!

Snowflake is offline Snowflake
Princess
falling, once again
Apr 2003
time: 23:36
  Old Post 18-05-2004 08:04
Edit/Delete Message Reply w/Quote
#23 Report this post to a moderator
Enter the AD-FREE zone

There is no way I will look up production using F4 40 times per turn. Lazy or not is discussable but I could always find better ways to utilize my time.

Enigma_Nova is offline Enigma_Nova
King

Nov 2003
time: 14:36
  Old Post 18-05-2004 10:47
Edit/Delete Message Reply w/Quote
#24 Report this post to a moderator
Help yourself to an AD-FREE life

You mean you play your turns imperfectly?

You don't have time to count your mins, you don't have time to play your turns...
Why the hell are you still at Apolyton? Do you have a point to prove?

If so, I'll eagerly spend 72 hours waiting for you to prove it.

anarchie is offline anarchie
Chieftain

Jan 2004
time: 05:36
  Old Post 18-05-2004 11:54
Edit/Delete Message Reply w/Quote
#25 Report this post to a moderator
Got spare money?

If you start by managing all your rush-buying from the F4 screen, it's not anything of a bother to note the remaining minerals before opening a base, and that's only to check the base's production.

Snowflake is offline Snowflake
Princess
falling, once again
Apr 2003
time: 23:36
  Old Post 18-05-2004 12:19
Edit/Delete Message Reply w/Quote
#26 Report this post to a moderator
Support Apolyton

Hmmm do I have to prove a point to be at Poly?

* Snowflake reads the member agreement.

Nope.

Best wishes with your 72 hours.

GeoModder is offline GeoModder
Emperor
The most erratic Overlord!
Jan 2004
time: 06:36
  Old Post 18-05-2004 13:47
Edit/Delete Message Reply w/Quote
#27 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

Hear hear...

Minute Mirage is offline Minute Mirage
Prince
Helsinki
Aug 2003
time: 07:36
  Old Post 18-05-2004 14:33
Edit/Delete Message Reply w/Quote
#28 Report this post to a moderator
Help yourself to an AD-FREE life

Is there a problem with just using Nethog's table? I have it printed beside me when I play and it takes me only a few seconds to look up the cost of rush building.

Jamski is offline Jamski
Deity
lol ED&D is officially full PvP LOL
May 2002
time: 05:36
  Old Post 18-05-2004 16:39
Edit/Delete Message Reply w/Quote
#29 Report this post to a moderator
Support Apolyton or Terrorists Win

Why don't you have it memorised

-Jam

Enigma_Nova is offline Enigma_Nova
King

Nov 2003
time: 14:36
  Old Post 18-05-2004 17:27
Edit/Delete Message Reply w/Quote
#30 Report this post to a moderator
Inflate your Upload Space

Makes me wonder why you can't count the ECs manually, but using a table is an okay idea.

 
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:36.
Apolyton Time is 00:36.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0612 seconds (93.07% PHP - 6.93% MySQL) with 30 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net