cRPG

Strategus => Strategus Issues => Topic started by: Keshian on October 29, 2011, 12:30:03 am

Title: Village troop upkeep not working properly
Post by: Keshian on October 29, 2011, 12:30:03 am
Currently you pay upkeep once you get over 49 troops, even though the calculation for troops in fiefs is set so that you dont pay upkeep until 91 troops unlike on characters.  Can this be looked into as it may mean troops in villages are paying the same upkeep as troops carried on characters.  Thanks.
Title: Re: Village troop upkeep not working properly
Post by: Keshian on October 29, 2011, 07:58:25 am
Correction, completely screwed up.  Dropped it down to 40 troops and losing 6 gold an hour in the village.  It is not working at all, let alone the reduced rate for placing troops in fiefs.  You need to check your math calculations. for troops in fiefs upkeep.
Title: Re: Village troop upkeep not working properly
Post by: Tears of Destiny on October 29, 2011, 07:59:45 am
I thought it was 39 :/

I need to read up on Strat more.
Title: Re: Village troop upkeep not working properly
Post by: Keshian on October 29, 2011, 08:11:29 am
Now down to 25 troops and losing 2 gold an hour.  Its not working whatever it is.
Title: Re: Village troop upkeep not working properly
Post by: Gristle on October 29, 2011, 09:22:01 am
Brought it down to exactly 1 troop this hour and still paid 1 gold. Something is wrong.
Title: Re: Village troop upkeep not working properly
Post by: Digglez on October 29, 2011, 09:26:21 am
I thought it was 39 :/

I need to read up on Strat more.

hes talking about troops stationed/garrisoned in the village itself, not kept on the player armies.  they're supposed to be half the upkeep, although I only thought that applied to castles
Title: Re: Village troop upkeep not working properly
Post by: Gristle on October 29, 2011, 10:15:34 am
Another hour at 1 troop, another 1 gold gone.

Does this mean it is more expensive to hold troops in villages than it is to keep them on yourself?

1 troop in village: 1 gold an hour
50 troops on yourself: 1 gold a day
Title: Re: Village troop upkeep not working properly
Post by: Bjarky on October 29, 2011, 12:23:24 pm
it's a bug, it was supposed to be cheaper.
try to get on irc and nag the devs about it asap.
Title: Re: Village troop upkeep not working properly
Post by: chadz on October 29, 2011, 05:03:17 pm
i checked the formula, players have:
ceil((pow($troops, 1.03) * 1.8 - 100)/24)
locations have:
ceil((pow($troops, 1.02) * 1.0)/24)

so it's getting cheaper when you put more troops in it. we'll discuss it and see if this needs changing.
Title: Re: Village troop upkeep not working properly
Post by: Keshian on October 29, 2011, 05:09:26 pm
Something to consider, since the new max population is 300 for player-owned villages, how about no upkeep up to the 200 troops (similar to players up to 49), which would place it similar tot he traditional 500.
Title: Re: Village troop upkeep not working properly
Post by: Dehitay on October 29, 2011, 08:08:37 pm
i checked the formula, players have:
ceil((pow($troops, 1.03) * 1.8 - 100)/24)
locations have:
ceil((pow($troops, 1.02) * 1.0)/24)

so it's getting cheaper when you put more troops in it. we'll discuss it and see if this needs changing.
For those of you wondering, the upkeep breaks even at about 103 troops. So if you have less than 103 troops, you should store it on a player. If you have more than 103 troops, you should store it in a fief.
Title: Re: Village troop upkeep not working properly
Post by: Bjarky on October 30, 2011, 06:37:23 pm
something i find a bit odd on the formula:
at 0 troops u really pay upkeep with 1 gold?
Title: Re: Village troop upkeep not working properly
Post by: Gristle on October 30, 2011, 10:54:04 pm
Not at 0, but we were paying with just 1 troop.
Title: Re: Village troop upkeep not working properly
Post by: Bjarky on October 30, 2011, 11:58:10 pm
ah ok, it's just when u check the formula it already starts with 1 gold at 0 troops, just wanted to be sure.
Title: Re: Village troop upkeep not working properly
Post by: Dehitay on October 31, 2011, 12:48:39 am
ah ok, it's just when u check the formula it already starts with 1 gold at 0 troops, just wanted to be sure.
I'm curious how you got that from the formula. Are you translating pow(X, Y) as YX?
It should be XY
01.02 is still 0.
Title: Re: Village troop upkeep not working properly
Post by: Bjarky on October 31, 2011, 01:50:00 am
I'm curious how you got that from the formula. Are you translating pow(X, Y) as YX?
It should be XY
01.02 is still 0.
nah i'm just using wolfram alpha, too lazy   :D
http://www.wolframalpha.com/input/?i=plot+ceil%28%28pow%28x%2C+1.02%29+*+1.0%29%2F24%29+x%3D0+to+50 (http://www.wolframalpha.com/input/?i=plot+ceil%28%28pow%28x%2C+1.02%29+*+1.0%29%2F24%29+x%3D0+to+50)
Title: Re: Village troop upkeep not working properly
Post by: Dehitay on October 31, 2011, 03:19:11 am
nah i'm just using wolfram alpha, too lazy   :D
http://www.wolframalpha.com/input/?i=plot+ceil%28%28pow%28x%2C+1.02%29+*+1.0%29%2F24%29+x%3D0+to+50 (http://www.wolframalpha.com/input/?i=plot+ceil%28%28pow%28x%2C+1.02%29+*+1.0%29%2F24%29+x%3D0+to+50)
In this case, 0 is an instance and since it doesn't have a dot where it would be, you can't see it. However, you still fail for not instantly knowing that 01.02*1/24=0
Title: Re: Village troop upkeep not working properly
Post by: Bjarky on October 31, 2011, 04:57:44 am
as i said, to lazy  :wink: