Page 2 of 8

Posted: Wed Jan 11, 2006 4:43 am
by agapooka
lol, I used pen[cil] and paper, I just put it on the calculator after to use the formula after much faster -- and to test it out. After all, that's why I went looking for it, to make calculating more efficient and faster :).

You see, the calculator doesn't fix anything, it just allows for me to fix it faster by letting me use all my thinking on solving the problem instead of dividing it between that and BEDMAS, FOIL and stuff to see if it works. It also happens to allow me to store programs so that I can write the formula there and remember it -- I lose papers a lot.

Posted: Wed Jan 11, 2006 9:51 am
by Grand Admiral Martin
thanks , you really should have sold it lol like 100uu and ppl get it , you could have made alot o fuu

Posted: Wed Jan 11, 2006 1:05 pm
by agapooka
Hah, maybe. Well, I'm planning on making an attack and spy calculator. the attack calculator might do things like give the probability to winning a battle, predict a range of losses, repair costs, etc.

The spy calculator will be used to sabotage efficiently. It will have options such as if you want to spy anonymously, the opponent alert level (which you can find out in various ways, I might offer documentation on how to do that), your race, spy level and etc.

That way, if you know their alert level, you won't be wasting spies on sabbing with double what you need if it's not on critical. If you don't care about anonimity, you can also have a special amount for that, and all that. I'll most probably charge for such a program as it will require research to make, but I can probably do it :).

Posted: Wed Jan 11, 2006 1:55 pm
by agapooka
Ok, I added a function to calculate Fleet costs in ascension. For those of you that have no idea what those are, I must keep you in ignorance :).

Again, the url is:

http://www.jason.streamdown.net/up.php

Posted: Wed Jan 11, 2006 1:56 pm
by Grand Admiral Martin
I Love Agapooka wrote:Ok, I added a function to calculate Fleet costs in ascension. For those of you that have no idea what those are, I must keep you in ignorance :).

Again, the url is:

http://www.jason.streamdown.net/up.php


is there one for calculating mothership costs on main?

Posted: Wed Jan 11, 2006 2:08 pm
by agapooka
hah, ok, I'll make one. It's easy as it's the same formula structure.

EDIT: done, I think the next thing I'll do is make a combo box to choose what you wanna calculate :P

Posted: Wed Jan 11, 2006 8:23 pm
by agapooka
DONE!

http://www.jason.streamdown.net/up.php :)

The new one does the same things as the old one, but looks MUCH nicer. If you find any bugs, please tell me.

Posted: Wed Jan 11, 2006 8:29 pm
by ZS Agent281
Slick Agapooka.

You know that it takes only 1.3 trillion Naq to get 40k UU a day! I know that is a lot of money, but think about how that builds up every day an extra 5k, then 10k, then 20k and before you know it you have 40k. Well, maybe not so quickly, but I can dream can't I... But look at it this way, you could get it in a week if you made 3.9 billion a turn. :roll:

Posted: Thu Jan 12, 2006 9:00 am
by ~Zekk~
some ppl make about half that a turn... so 2 weeks for them! :lol:

and have you thought about makeing a income calcuator Agapooka?

Posted: Thu Jan 12, 2006 9:28 am
by raistlin majere
Zekk wrote:and have you thought about makeing a income calcuator Agapooka?


that would not work to well for those woth a commander cuz you will have to imput the the sources of their income also.

Posted: Thu Jan 12, 2006 2:47 pm
by agapooka
Umm... income is the simplest thing ever, it's not like there is a complicated formula, but I guess I could make one -- maybe. Then again, with the miners, income IS more complicated, but not that much. How about a stat calculator that tells you how much naq, weapons and supers needed to get to let's say 1bil strike, for example.

Posted: Thu Jan 12, 2006 3:31 pm
by Ra-Amon-Ka
could you list the formulas please? because i prefer to put them in excel, its just faster for me

Posted: Thu Jan 12, 2006 4:02 pm
by agapooka
Unit Production Cost:

Code: Select all

(-1(a-b)/3)((15000((b-1)/3)+15000((a+2)/3))/2)

Ascended Fleet Cost:

Code: Select all

(-1(a-b))(((5000(b-1)+5000(a+4))/2))

MS Weapon Capacity Cost:

Code: Select all

(-1(a-b))(((10000(b-1)+10000(a+2))/2))

MS Shield Capacity Cost:

Code: Select all

(-1(a-b))(((12000(b-1)+12000(a+(10/12)))/2))

Spy Levels:

Code: Select all

(60002^(c-1))

Replicator Spy Levels:

Code: Select all

0.9(6000*2^(c-1))


But I still think http://www.jason.streamdown.net/up.php is more useful :P

Posted: Sun Jan 15, 2006 9:23 am
by agapooka
Ok, heregoes, I'll post the PHP source of my script. Feel free to improove or criticise or whatever, just know that I wrote it, but I'm still a PHP newb, so yeah, be nice to me :P.

Code: Select all

<?php
$a = $HTTP_GET_VARS['a'];
$b = $HTTP_GET_VARS['b'];
$c = $HTTP_GET_VARS['c'];
$p = $HTTP_GET_VARS['p'];

$title = "Pookie's TGW Calculator";
$fname = "up.php";
$disclaimer = "Property of Jason Lambert (Agapooka)";

$head = "<html><title>".$title."</title><head><center><h1>".$title."</h1></center></head>";
$body = "<body><center><table width=500 cellspacing=3 cellpadding=3 border=1>";
$tbl0 = "<tr><td width=100%><center><form action='".$fname."' method=get>";
$tbl1 = "</form></center></td></tr>";
$frma = "<input size=8 maxlength=8 value=0 name=a />";
$frmb = "<input size=8 maxlength=8 value=0 name=b />";
$frmc = "<input size=3 maxlength=3 value=0 name=c />";
$frm0 = "<input type=submit value='GO!' />"; 
$foot = "</table><small>".$disclaimer."</small></center></body><html>";

if ($p == '' || $p == '0')
   {
   $frmp = "<select name='p'>
   <option value=0 selected>Calculate:</option>
   <option value=1>Unit Production Cost</option>
   <option value=2>Ascended Fleet Cost</option>
   <option value=3>MS Weapon Capacity Cost</option>
   <option value=4>MS Shield Capacity Cost</option>
   <option value=5>Spy Levels</option></select>";
   echo $head,$body,$tbl0;
   echo $frmp,$frm0;
   echo $tbl1,$foot;
   }
if ($p == '1')
   {
   $frmp = "<select name='p'>
   <option value=0>Calculate:</option>
   <option value=1 selected>Unit Production Cost</option>
   <option value=2>Ascended Fleet Cost</option>
   <option value=3>MS Weapon Capacity Cost</option>
   <option value=4>MS Shield Capacity Cost</option>
   <option value=5>Spy Levels</option></select>";
   $currency = "Naquadah";
   $ans = (-1*($a-$b)/3)*((15000*(($b-1)/3)+15000*(($a+2)/3))/2);
   $answ = "<br />Cost: ".number_format($ans, 0, '.', ',')." ".$currency;
   echo $head,$body,$tbl0;
   echo $frma,$frmb,$frmp,$frm0,$answ;
   echo $tbl1,$foot;
   }
if ($p == '2')
   {
   $frmp = "<select name='p'>
   <option value=0>Calculate:</option>
   <option value=1>Unit Production Cost</option>
   <option value=2 selected>Ascended Fleet Cost</option>
   <option value=3>MS Weapon Capacity Cost</option>
   <option value=4>MS Shield Capacity Cost</option>
   <option value=5>Spy Levels</option></select>";
   $currency = "Dark Matter Units";
   $ans = (-1*($a-$b))*(((5000*($b-1)+5000*($a+4))/2));
   $answ = "<br />Cost: ".number_format($ans, 0, '.', ',')." ".$currency;
   echo $head,$body,$tbl0;
   echo $frma,$frmb,$frmp,$frm0,$answ;
   echo $tbl1,$foot;
   }
if ($p == '3')
   {
   $frmp = "<select name='p'>
   <option value=0>Calculate:</option>
   <option value=1>Unit Production Cost</option>
   <option value=2>Ascended Fleet Cost</option>
   <option value=3 selected>MS Weapon Capacity Cost</option>
   <option value=4>MS Shield Capacity Cost</option>
   <option value=5>Spy Levels</option></select>";
   $currency = "Naquadah";
   $ans = (-1*($a-$b))*(((10000*($b-1)+10000*($a+2))/2));
   $answ = "<br />Cost: ".number_format($ans, 0, '.', ',')." ".$currency;
   echo $head,$body,$tbl0;
   echo $frma,$frmb,$frmp,$frm0,$answ;
   echo $tbl1,$foot;
   }
if ($p == '4')
   {
   $frmp = "<select name='p'>
   <option value=0>Calculate:</option>
   <option value=1>Unit Production Cost</option>
   <option value=2>Ascended Fleet Cost</option>
   <option value=3>MS Weapon Capacity Cost</option>
   <option value=4 selected>MS Shield Capacity Cost</option>
   <option value=5>Spy Levels</option></select>";
   $currency = "Naquadah";
   $ans = (-1*($a-$b))*(((12000*($b-1)+12000*($a+(10/12)))/2));
   $answ = "<br />Cost: ".number_format($ans, 0, '.', ',')." ".$currency;
   echo $head,$body,$tbl0;
   echo $frma,$frmb,$frmp,$frm0,$answ;
   echo $tbl1,$foot;
   }
if ($p == '5')
   {
   $frmp = "<select name='p'>
   <option value=0>Calculate:</option>
   <option value=1>Unit Production Cost</option>
   <option value=2>Ascended Fleet Cost</option>
   <option value=3>MS Weapon Capacity Cost</option>
   <option value=4>MS Shield Capacity Cost</option>
   <option value=5 selected>Spy Levels</option></select>";
   $currency = "Naquadah";
   $ans = (6000*pow(2,($c-1)));
   $answ = "<br />Cost: ".number_format($ans, 0, '.', ',')." ".$currency;
   echo $head,$body,$tbl0;
   echo $frmc,$frmp,$frm0,$answ,"<br />Cost for Replicators: ",number_format(0.9*$ans, 0, '.', ',')," ",$currency;
   echo $tbl1,$foot;
   }
?>

Posted: Sun Jan 15, 2006 9:31 am
by SGC_Sam Fisher
Spy level 254 is....

8,684,406,692,798,722,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,