Food/Cash usage...

Ask for help or introduce yourself to the community here. This is also an academy for new players/members.
User avatar
purekilla2k
Crazy Killa Arms Dealer
Posts: 318
Joined: Thu Jul 14, 2005 11:27 pm

Post by purekilla2k »

so they do hmmm thx for being pointy
39,841 workers
also WHAT does experience do?
to make this harder my race has bonuses :(
Vole -16% -6% +0% -14% -8% +14% +0% +0% +8% -8% -16% +4%
Offense Defense Build Costs Magic Industry Income Explore Market Food Runes Farms
www.exius-ent.com/forums
Gaming Elder www.mapleglobal.com
Eternal Protector Of Redwall
User avatar
Fresh Water Fighters
Legendary River Dog
Posts: 838
Joined: Sat Mar 20, 2004 1:07 pm
Location: Thialand (But I come form New Zealand)

Post by Fresh Water Fighters »

Can't some one look at the code and tell me?
I have looked but can't understand any of it.
*laughs*
User avatar
purekilla2k
Crazy Killa Arms Dealer
Posts: 318
Joined: Thu Jul 14, 2005 11:27 pm

Post by purekilla2k »

ok beatles/vernor/devari mind enlightening us *laughs*
www.exius-ent.com/forums
Gaming Elder www.mapleglobal.com
Eternal Protector Of Redwall
Veranor
FAF Co-Programmer
Posts: 310
Joined: Mon Mar 08, 2004 8:12 pm

Post by Veranor »

Here it is (must have missed this topic):

code: Select all

 Unit                    Food         Money
---------------------------------------------
Mice                    0.0625          1
Squirrels               0.03125         2
Hares                   0.015625        4
Otters                  0.0104167       6	
The values in the 1,000,000 table are correct except food and money are mixed up.

Code that calculates Food/Money expenses:

code: Select all

    foreach($config[troop] as $num => $mktcost)
        $expenses += $users[troop][$num] * ($config[troop][$num] / $config[troop][0]);

code: Select all

    foreach($config[troop] as $num => $mktcost) {
        $foodcon += $users[troop][$num] * 25 / $mktcost;
    }
Experience modifies your offensive points and defensive points. The formula is (where experience is the value listed on status page, may vary since that value is a composite of your def. exp and your off exp.):

points = points * (1 + (exp / 2000))

In dev, the op and dp listed on the status page include the experience modifier.
"The truth is a trap: you can not get it without it getting you; you cannot get the truth by capturing it, only by its capturing you." - Søren Kierkegaard
User avatar
Ruddertail
Promi Diplomacy ate my homework...
Posts: 4510
Joined: Wed May 12, 2004 11:39 pm
Location: Chances are, playing FAF.
Contact:

Post by Ruddertail »

Could you correct the 1,000,000 table? That'd be the easiest to see.
Empires:
WOA: Attila the Hun(#13)
BFR: ?
Founder and Leader of Hungry Huns (HH)
User avatar
Fresh Water Fighters
Legendary River Dog
Posts: 838
Joined: Sat Mar 20, 2004 1:07 pm
Location: Thialand (But I come form New Zealand)

Post by Fresh Water Fighters »

Veranor wrote:

code: Select all

 Unit                    Food         Money
---------------------------------------------
Mice                    0.0625          1
Squirrels               0.03125         2
Hares                   0.015625        4
Otters                  0.0104167       6	
So thats how much Food and Cash a unit eats a turn? (with the race bonices add on to that)

Or a i not understanding you right??
Veranor
FAF Co-Programmer
Posts: 310
Joined: Mon Mar 08, 2004 8:12 pm

Post by Veranor »

Fresh Water Fighters wrote:
Veranor wrote:

code: Select all

 Unit                    Food         Money
---------------------------------------------
Mice                    0.0625          1
Squirrels               0.03125         2
Hares                   0.015625        4
Otters                  0.0104167       6	
So thats how much Food and Cash a unit eats a turn? (with the race bonices add on to that)

Or a i not understanding you right??
Yes, that is how much for 1 of each troop type for 1 turn. Corrected table for 1 million of each:

Supplementary table: Food and cash consumed by 1,000,000 of each troop type.

code: Select all

Troop              Food               Cash
-------------------------------------------
Mice             62,500          $1,000,000
Squirrels        31,250          $2,000,000
Hares            15,625          $4,000,000
Otters           10,417          $6,000,000
Also workers and hawks both consume food. One worker consumes .01 food a turn and one hawk consumes .25 food a turn.

"The truth is a trap: you can not get it without it getting you; you cannot get the truth by capturing it, only by its capturing you." - Søren Kierkegaard
User avatar
Kyrodo
Rabbit
Posts: 723
Joined: Wed Jul 13, 2005 2:30 am
Contact:

Post by Kyrodo »

well that helps! :)
Image
Image
User avatar
Ruddertail
Promi Diplomacy ate my homework...
Posts: 4510
Joined: Wed May 12, 2004 11:39 pm
Location: Chances are, playing FAF.
Contact:

Post by Ruddertail »

Thanks! Otters are more efficient food wise, but overall, hares beat them out. Explains why it seemed I had more trouble trying to run IV with Otters...
Empires:
WOA: Attila the Hun(#13)
BFR: ?
Founder and Leader of Hungry Huns (HH)
User avatar
Nohc
Beware of Former Fangirls
Posts: 941
Joined: Mon Mar 08, 2004 8:36 pm

Post by Nohc »

Your experience is the average of your offensive and defensive exp, or is it the average?

So having 2000 offensive experience would make you twice as strong on the attack?
Veranor
FAF Co-Programmer
Posts: 310
Joined: Mon Mar 08, 2004 8:12 pm

Post by Veranor »

Nohc wrote: Your experience is the average of your offensive and defensive exp, or is it the average?

So having 2000 offensive experience would make you twice as strong on the attack?
1. The value on the status page under "Experience" is calculated like this:
round down(offensive exp*1000) + round down(defensive exp*1000). So while it may say Exp = 20, that could all be defensive exp or vice versa.

2. And the equation I posted before about exp's effects is slightly different. I gave you it according to the value on the status page, the game code uses the separate offexp and defexp values to calculate it separatly. But to answer your question, if that value is displayed as 2000 and it is all of one type then yes it would double that value. As I said these calculations are unnecessary since the op/dp values on the status page in Dev are listed with the exp values already factored in.
"The truth is a trap: you can not get it without it getting you; you cannot get the truth by capturing it, only by its capturing you." - Søren Kierkegaard
User avatar
Nohc
Beware of Former Fangirls
Posts: 941
Joined: Mon Mar 08, 2004 8:36 pm

Post by Nohc »

Sorry, I meant is the experience shown offense and defense combined, or the average. Now I know that it's the combined exp. Thanks, but why can't you just seperate them on the Status Page?
Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members