Now open-source TGW calculator

Forum for all general ingame discussion.
Post Reply
Tok`ra

YES!!!!!!!!! EXE VERSION OF TEH POOKIE CALC!
Epic
Fledgling Forumer
Posts: 157
Joined: Sun Aug 13, 2006 1:53 pm
ID: 0
Location: UK
Contact:

Post on the AK boards when ur done Luc, i don't always check this forum.
Image
Goldor
Forum Grunt
Posts: 55
Joined: Sat Oct 29, 2005 7:21 am
ID: 34480

I know it might just be a stupid idea... But I'll tell you anyway! :-D

I thought it would be nice, for example with the Unit Production part at first, if we could enter the amount of naquadah we have available and the UP we have now to know how much bonuses we can put and what we would get.

But seeing the equation it might be too difficult to do that... :?

I'll give it a try now, maybe I'll get something. :)
-----------------------------------------------------------------------------------
EDIT: Okay... I'm just completely stuck now... I used the formula Agapooka provided in his first post and tried to isolate B. A and B represent the same thing here, and C represents the naquadah required, or the naquadah available in that case.

So, from:
C=(-1(A-B)/3)(((15000((B-1)/3))+(15000((A+2)/3)))/2)

I got this:
(3C/2500)+A^2+A=B^2+B

I'm almost there, but I'm just stuck... Maybe somebody can solve it farther than I did...
agapooka
Semper Ubi Sub Ubi
Posts: 2607
Joined: Thu Mar 31, 2005 4:34 am
ID: 0

Honours and Awards

C=(-1(A-B)/3) (((15000((B-1)/3))+(15000((A+2)/3)))/2)

Well, I'll simplify it a bit, since I do realise that it looks ridiculous, but I did write it a while back.

Okay, so I tried to rewrite it a bit simpler... maybe I made a few errors, but eh... I need my sleepies...

C = (B - A) * (A + B + 1) * 2500 / 3

So... what you want to do is use A and C to get B, instead of A and B to get C. I haven't done this stuff in about a year now... :P Damn my programme and its more linguistic aspects. :P

C = (-A + B) * (A + B + 1) * 2500 / 3
C = (-A^2 - A + B^2 + B) * 2500 / 3
3C/2500 = B^2 + B - A^2 - A
B^2 + B = (3C/2500) + A^2 + A

I got stuck too, but I found a pattern, where the square root of any B^2+B is always B + <0.5. :)

Therefore, by rounding down, I can have the answer. ;)

B = round(sqrt((3C/2500) + A^2 + A))

:)

J
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!
Goldor
Forum Grunt
Posts: 55
Joined: Sat Oct 29, 2005 7:21 am
ID: 34480

Thanks! It works like a charm now! I can't believe you found the answer to that!

It would be very nice if you could add it to your online calculator, but it's only a suggestion. :wink:

Thanks again for solving it!
agapooka
Semper Ubi Sub Ubi
Posts: 2607
Joined: Thu Mar 31, 2005 4:34 am
ID: 0

Honours and Awards

I'll try to add it tomorrow... we'll see :D
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!
Tok`ra

Pookie, make a DLable version of teh calc damnit! :P
agapooka
Semper Ubi Sub Ubi
Posts: 2607
Joined: Thu Mar 31, 2005 4:34 am
ID: 0

Honours and Awards

Implemented new calculation for UP calc.

May start working on an EXE downloadable version, soon. :)

Report any bugs hear, please. There shouldn't be any, but hey, I make typos all the time... :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!
Goldor
Forum Grunt
Posts: 55
Joined: Sat Oct 29, 2005 7:21 am
ID: 34480

Awesome! Thanks for the update, it is really appreciated! Tried it with a few amounts and it worked out nicely! Thanks! :D

EDIT: I don't want to ask for more than what has already been done, but if the calculator could say automatically the number of upgrades we can input in the field before clicking on upgrading, it would be really nice! Like when you ask for how much naq it will cost to get from A to B UP, it also says the number of upgrades which can be made. Only this last touch and it would be awesome! 8)

Although you are not obliged to add it! :P
agapooka
Semper Ubi Sub Ubi
Posts: 2607
Joined: Thu Mar 31, 2005 4:34 am
ID: 0

Honours and Awards

Added :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!
Tok`ra

Hey pookie, for UP and MS slots, could you add the following function


AXB=CD

A = naq your going to spend
B = current number of upgrades (UP, or MS slots)
C= Number of upgrades to select
D= total portion of the naq avalible that you will need.


Basicly, you put your current level, how much you have, and it tells you how much you can get.

So I have 1bil naq, 1337 MS wep slots, I input those, and it tells me I can buy X MS wep slots for Y naq out of the 1bil naq.
agapooka
Semper Ubi Sub Ubi
Posts: 2607
Joined: Thu Mar 31, 2005 4:34 am
ID: 0

Honours and Awards

You could jsut have said:

Can you do the same thing you jsut did to UP with the MS calculations? :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!
Tok`ra

Agapooka wrote:You could jsut have said:

Can you do the same thing you jsut did to UP with the MS calculations? :P



I didnt read teh earlier stuff :P
Goldor
Forum Grunt
Posts: 55
Joined: Sat Oct 29, 2005 7:21 am
ID: 34480

Thanks! :-D
agapooka
Semper Ubi Sub Ubi
Posts: 2607
Joined: Thu Mar 31, 2005 4:34 am
ID: 0

Honours and Awards

By the way... does my calc still calculate Ascended Fleets properly?

I heard that it changed in how the cost is determined, but I haven't been able to check for myself, as I quit.

J
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!
Post Reply

Return to “StarGateWars General”