Now open-source TGW calculator

Forum for all general ingame discussion.
Post Reply
agapooka
Semper Ubi Sub Ubi
Posts: 2607
Joined: Thu Mar 31, 2005 4:34 am
ID: 0

Honours and Awards

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.
Agapooka wrote:The argument that because a premise cannot be proven false, it must be true, is known as a Negative Proof Fallacy in logic.
Mister Sandman wrote:Nothing at all near the negative proof fallacy in logic. If it cannot be proven false, it has to be true.
Pooka's UU Market Loyalty Card:

Rudy Pena: 1 stamp!

A Spider: 1 stamp!
User avatar
Grand Admiral Martin
Forum Expert
Posts: 1428
Joined: Sun Jan 01, 2006 2:46 pm
Alliance: I serve only myself.
Race: Ascended Irish
ID: 33984
Location: Unknown

thanks , you really should have sold it lol like 100uu and ppl get it , you could have made alot o fuu
agapooka
Semper Ubi Sub Ubi
Posts: 2607
Joined: Thu Mar 31, 2005 4:34 am
ID: 0

Honours and Awards

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 :).
Agapooka wrote:The argument that because a premise cannot be proven false, it must be true, is known as a Negative Proof Fallacy in logic.
Mister Sandman wrote:Nothing at all near the negative proof fallacy in logic. If it cannot be proven false, it has to be true.
Pooka's UU Market Loyalty Card:

Rudy Pena: 1 stamp!

A Spider: 1 stamp!
agapooka
Semper Ubi Sub Ubi
Posts: 2607
Joined: Thu Mar 31, 2005 4:34 am
ID: 0

Honours and Awards

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
Agapooka wrote:The argument that because a premise cannot be proven false, it must be true, is known as a Negative Proof Fallacy in logic.
Mister Sandman wrote:Nothing at all near the negative proof fallacy in logic. If it cannot be proven false, it has to be true.
Pooka's UU Market Loyalty Card:

Rudy Pena: 1 stamp!

A Spider: 1 stamp!
User avatar
Grand Admiral Martin
Forum Expert
Posts: 1428
Joined: Sun Jan 01, 2006 2:46 pm
Alliance: I serve only myself.
Race: Ascended Irish
ID: 33984
Location: Unknown

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?
agapooka
Semper Ubi Sub Ubi
Posts: 2607
Joined: Thu Mar 31, 2005 4:34 am
ID: 0

Honours and Awards

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
Agapooka wrote:The argument that because a premise cannot be proven false, it must be true, is known as a Negative Proof Fallacy in logic.
Mister Sandman wrote:Nothing at all near the negative proof fallacy in logic. If it cannot be proven false, it has to be true.
Pooka's UU Market Loyalty Card:

Rudy Pena: 1 stamp!

A Spider: 1 stamp!
agapooka
Semper Ubi Sub Ubi
Posts: 2607
Joined: Thu Mar 31, 2005 4:34 am
ID: 0

Honours and Awards

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.
Agapooka wrote:The argument that because a premise cannot be proven false, it must be true, is known as a Negative Proof Fallacy in logic.
Mister Sandman wrote:Nothing at all near the negative proof fallacy in logic. If it cannot be proven false, it has to be true.
Pooka's UU Market Loyalty Card:

Rudy Pena: 1 stamp!

A Spider: 1 stamp!
ZS Agent281
Forum Intermediate
Posts: 960
Joined: Fri Dec 16, 2005 9:21 am
ID: 0
Location: At the edges of the universe, waiting, replicating.

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:
By Haktar-
Image
Image
User avatar
~Zekk~
Forum Addict
Posts: 3787
Joined: Sat Oct 15, 2005 8:07 am
Alliance: Universal Consciousness
Race: Magi
ID: 616
Location: The Temple

some ppl make about half that a turn... so 2 weeks for them! :lol:

and have you thought about makeing a income calcuator Agapooka?
Image
Image--by Miko Miko, for KonataChan, of animesuke. *borrows without permission, but with credits* ~_^

Anyone Play Go?
Omoc wrote:
S*rew the equality!

I LOVE WHEN MY GIRLFRIEND DOMINATES ME! :lol: :lol: :lol:
raistlin majere
Forum Elite
Posts: 1584
Joined: Wed Nov 09, 2005 2:46 am
Alliance: Withheld
Race: Nanotimaster
ID: 8675309
Location: NorCal

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.
Psi Kiya Trist wrote:ZOMG IT"S RAI!!!
Image
agapooka
Semper Ubi Sub Ubi
Posts: 2607
Joined: Thu Mar 31, 2005 4:34 am
ID: 0

Honours and Awards

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.
Agapooka wrote:The argument that because a premise cannot be proven false, it must be true, is known as a Negative Proof Fallacy in logic.
Mister Sandman wrote:Nothing at all near the negative proof fallacy in logic. If it cannot be proven false, it has to be true.
Pooka's UU Market Loyalty Card:

Rudy Pena: 1 stamp!

A Spider: 1 stamp!
Ra-Amon-Ka
Forum Grunt
Posts: 76
Joined: Sun Sep 11, 2005 3:00 pm

could you list the formulas please? because i prefer to put them in excel, its just faster for me
agapooka
Semper Ubi Sub Ubi
Posts: 2607
Joined: Thu Mar 31, 2005 4:34 am
ID: 0

Honours and Awards

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
Agapooka wrote:The argument that because a premise cannot be proven false, it must be true, is known as a Negative Proof Fallacy in logic.
Mister Sandman wrote:Nothing at all near the negative proof fallacy in logic. If it cannot be proven false, it has to be true.
Pooka's UU Market Loyalty Card:

Rudy Pena: 1 stamp!

A Spider: 1 stamp!
agapooka
Semper Ubi Sub Ubi
Posts: 2607
Joined: Thu Mar 31, 2005 4:34 am
ID: 0

Honours and Awards

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;
   }
?>
Agapooka wrote:The argument that because a premise cannot be proven false, it must be true, is known as a Negative Proof Fallacy in logic.
Mister Sandman wrote:Nothing at all near the negative proof fallacy in logic. If it cannot be proven false, it has to be true.
Pooka's UU Market Loyalty Card:

Rudy Pena: 1 stamp!

A Spider: 1 stamp!
SGC_Sam Fisher
Forum Spammer
Posts: 311
Joined: Sun Oct 23, 2005 6:14 pm
ID: 0
Location: In a ventilation shaft about to infiltrate a terrorist hideout. In other words, a pretty normal day.

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,
Image
The forces of SGC_Sam Fisher subdued those of JUAN.
The armies of JUAN were forced out of the realm of SGC_Sam Fisher in a none to glorious fashion! The defending forces were simply too much for them. It is sure that SGC_Sam Fisher will be considering a return visit to JUAN!

Aaaaaawwwwwww Yeeeeaaahhhhh!
Post Reply

Return to “StarGateWars General”