Verified:

Celphi Game profile

Member
EE Patron
6349

Jan 10th 2015, 20:06:43

$pci = (22.5*(1-.35)*(1+(($networth/$land)/90000))*(1+(2*($ent/$land)))*$bustech*$gvtpcibonus);

Something is getting rounded off. Any idea which one it is? I'm making a program for when a casher should start cashing but the PCI is off by a little bit. And I was sure that each turn 0 population joined.
Resistance is futile. You will be assimilated.

Skulls of Dominion Game profile

Member
248

Jan 10th 2015, 20:29:28

Yours looks like mine kinda of

Maximum PCI = 22.5 * (1-TaxRate) * (1 + NW/Land/18000) * (1 + 2*Ent/Land) * BusTech% * GvtPCIBonus

Celphi Game profile

Member
EE Patron
6349

Jan 10th 2015, 20:35:07

It's 18000 and not 90000? Interesting... i'll try it out.
Resistance is futile. You will be assimilated.

Skulls of Dominion Game profile

Member
248

Jan 10th 2015, 20:36:05

When your done with you progaram i would appreciate if i can give it a try. I run cashiers a lot and i was tthinking of doing something lke this my self

Celphi Game profile

Member
EE Patron
6349

Jan 10th 2015, 20:38:06

Dude- you're awesome-. It works! Someone needs to update wiki.

Do you know php?
Resistance is futile. You will be assimilated.

Skulls of Dominion Game profile

Member
248

Jan 10th 2015, 20:44:57

Not to much, i dabbled with here and there. I just never took the time to mess with it. Was thinking about learning it tho to help with the AI bots

Celphi Game profile

Member
EE Patron
6349

Jan 10th 2015, 21:01:04

It's an easy language to learn. If you want to make a separate thread labeled PHP and ask your PHP questions there., I can answer any question/term you have in it. I'm sure it would benefit others too.
Resistance is futile. You will be assimilated.

braden Game profile

Member
11,480

Jan 10th 2015, 21:20:53

this is for me right? can we name the program 'bradens not having to think calculator'? ;p

Furious999 Game profile

Member
1452

Jan 10th 2015, 21:24:42

No one thinks, braden.

Name it "braden's brain".

Celphi Game profile

Member
EE Patron
6349

Jan 10th 2015, 21:36:57

Something wrong with this one too. I'm not getting max population either...

$maxpopulation = (1-0.95*$taxrate)*(24*$res+12*$land)*$restech*$gvtpop*$biofactor;
Resistance is futile. You will be assimilated.

Celphi Game profile

Member
EE Patron
6349

Jan 10th 2015, 21:41:41

It's short on population....
Resistance is futile. You will be assimilated.

Celphi Game profile

Member
EE Patron
6349

Jan 10th 2015, 21:43:24

Unless Restech is calculated beyond the 4 digit number under research.
Resistance is futile. You will be assimilated.

Skulls of Dominion Game profile

Member
248

Jan 10th 2015, 22:42:18

12*Land * (1 - 0.95*TaxRate) * (1 + 2*Res/Land) * ResTech% * GovtPopBonus

Celphi Game profile

Member
EE Patron
6349

Jan 10th 2015, 23:18:18

That formula gave exact output. Something is off.
Resistance is futile. You will be assimilated.

Celphi Game profile

Member
EE Patron
6349

Jan 10th 2015, 23:23:00

Actually I did a typo. The numbers are close enough. Off by like 15 civilians, but i'm also losing a 1-2 a turn. So this works.

Man this program is great. I can fool around with different #s now and see how bus/res buildings and tech effect income.
Resistance is futile. You will be assimilated.

Skulls of Dominion Game profile

Member
248

Jan 10th 2015, 23:28:31

Lol ya i just toss my stuff in excel really does the job for me. But i might take you up on the php. Im going though a move in RL so maybe after ill take some time out to learn.

Celphi Game profile

Member
EE Patron
6349

Jan 10th 2015, 23:30:24

You want me to crunch any #s for you. I just tested trying more res vs more bus and vice versa. It turns out, you must have exactly half to get best revenue possible.
Resistance is futile. You will be assimilated.

Celphi Game profile

Member
EE Patron
6349

Jan 10th 2015, 23:31:19

Your networth- has very small impact on revenue.
Resistance is futile. You will be assimilated.

Celphi Game profile

Member
EE Patron
6349

Jan 10th 2015, 23:32:35

It's about 50k more per 1 million networth. As a republic.
Resistance is futile. You will be assimilated.

Celphi Game profile

Member
EE Patron
6349

Jan 10th 2015, 23:35:02

Basically I can tell anyone based on turns left- if it's better for them to buy more res/bus tech or not with a click of a button.
Resistance is futile. You will be assimilated.

Skulls of Dominion Game profile

Member
248

Jan 10th 2015, 23:40:09

Yup thats how i have my excel set up, i even have predicted stock growth and using max mil texh so using basic destock prce of 35 i even get predicted net from turns left. All i do is keep updating my avg price i buy bushels at. Works great. I just made it yesterday to tell the truth.

Celphi Game profile

Member
EE Patron
6349

Jan 10th 2015, 23:42:17

Nice!
Resistance is futile. You will be assimilated.

Celphi Game profile

Member
EE Patron
6349

Jan 10th 2015, 23:46:18

Now I can finally compare demo casher vs republic.. brb.
Resistance is futile. You will be assimilated.

braden Game profile

Member
11,480

Jan 10th 2015, 23:54:41

Originally posted by Celphi:
Actually I did a typo. The numbers are close enough. Off by like 15 civilians, but i'm also losing a 1-2 a turn. So this works.

Man this program is great. I can fool around with different #s now and see how bus/res buildings and tech effect income.


that is something i have always done just during the reset (build more of one and guestimate difference from what i might be able to remember from what it was before.. again the thinking aspect ;p)

Celphi Game profile

Member
EE Patron
6349

Jan 11th 2015, 0:02:12

One of the values in the PCI formula must be rounded off. I'm using [a top 5 player] spy info and his PCI is coming up .20 off... and his max population is only off by 2.
Resistance is futile. You will be assimilated.

Skulls of Dominion Game profile

Member
248

Jan 11th 2015, 0:06:32

If he had a food shortage or no income shortage that effects pci but im not sure how. And no one i have talked to havent done any studies. So that alone can effect it

Edited By: Skulls of Dominion on Jan 11th 2015, 0:09:20
See Original Post

Skulls of Dominion Game profile

Member
248

Jan 11th 2015, 0:07:53

I just know it effects the total outcome just not sure how yet

Celphi Game profile

Member
EE Patron
6349

Jan 11th 2015, 0:22:46

So annoying that it's off. They carry some formulas over with no rounding but some of the variables they do round.
Resistance is futile. You will be assimilated.

Celphi Game profile

Member
EE Patron
6349

Jan 11th 2015, 0:29:58

Im now checking out the best tax rate.
Resistance is futile. You will be assimilated.

bstrong86 Game profile

Member
2482

Jan 11th 2015, 0:30:55

Try announcements for latest changes instead of wiki
The Death Knights

XI

Celphi Game profile

Member
EE Patron
6349

Jan 11th 2015, 0:35:23

OH INTERESTING!
Resistance is futile. You will be assimilated.

Celphi Game profile

Member
EE Patron
6349

Jan 11th 2015, 0:35:56

34% tax rate is BEST tax rate, not 35%.

:UPDATE, 36% is BEST unless food is above $47

Edited By: Celphi on Jan 11th 2015, 1:11:06
Resistance is futile. You will be assimilated.

Skulls of Dominion Game profile

Member
248

Jan 11th 2015, 0:39:22

Ya lol i never really botherd with it, next set ill try 34 you should check 36 some strats have that aswell.

Celphi Game profile

Member
EE Patron
6349

Jan 11th 2015, 0:42:34

It's not by much though- so I guess you lose the small benefit to cost of food. (since there's more people with 34% tax rate)

sh-4.2# php main.php
34% tax rate

Bustech: 177.41077034934
Restech: 177.41077034934
PCI: 59.341

Max population: 807119.65505811
Revenue: 16284610.066993

-==================================
35% tax rate

sh-4.2# php main.php

Bustech: 177.41077034934
Restech: 177.41077034934
PCI: 58.442

Max population: 795793.75147901
Revenue: 16277905.153844
Resistance is futile. You will be assimilated.

Celphi Game profile

Member
EE Patron
6349

Jan 11th 2015, 0:43:18

36% tax rate


Bustech: 177.41077034934
Restech: 177.41077034934
PCI: 57.543

Max population: 784467.84789991
Revenue: 16250780.001608
Resistance is futile. You will be assimilated.

Celphi Game profile

Member
EE Patron
6349

Jan 11th 2015, 0:43:55

based on 30k land 13k ent & 13k res
Resistance is futile. You will be assimilated.

Celphi Game profile

Member
EE Patron
6349

Jan 11th 2015, 0:44:24

Any values i put in though give 34% with slight more revenue.
Resistance is futile. You will be assimilated.

Celphi Game profile

Member
EE Patron
6349

Jan 11th 2015, 0:51:39

The difference in population is about 10k and each civilian eats .05 food.

500*30 = 15000
500*35 = 17500


16284610 - 16277905 = 6705

Actually I'm more inclined to say 36% is better because of food costs...
Resistance is futile. You will be assimilated.

Celphi Game profile

Member
EE Patron
6349

Jan 11th 2015, 1:02:56

795793 -784467 = 11326 more population *.05 = 566.3 more food

@food : (additional cost)
566.3 food
@30: 16989
@35: 19820.5
@40: 22652
@47: 26616 <----
@48: 27182.4
@49: 27748.7
@50: 28315


16277905 - 16250780 = 27125

So unless food is above $47 it's better to go 36% over 35%. Who knew?!
Resistance is futile. You will be assimilated.

Skulls of Dominion Game profile

Member
248

Jan 11th 2015, 1:05:12

;-)

Celphi Game profile

Member
EE Patron
6349

Jan 11th 2015, 1:09:59

The difference is so small though- not even really a factor.
Resistance is futile. You will be assimilated.

Celphi Game profile

Member
EE Patron
6349

Jan 11th 2015, 1:25:29

I can now map out entire x-casher on xpress (not including destock)

Only variables are tech prices, slight deviations in x-plore, earthquakes, and LGs made against me.
Resistance is futile. You will be assimilated.

Celphi Game profile

Member
EE Patron
6349

Jan 11th 2015, 1:27:15

Oh and also, the turn # in which the tech is bought at is a variable.
Resistance is futile. You will be assimilated.

Celphi Game profile

Member
EE Patron
6349

Jan 11th 2015, 1:32:31

25mil net on 9999k land xplore only. Perfectly doable.
Resistance is futile. You will be assimilated.

Celphi Game profile

Member
EE Patron
6349

Jan 11th 2015, 2:48:44

From the looks of my program, D casher > R casher.
Resistance is futile. You will be assimilated.