cRPG

Strategus => Strategus General Discussion => Topic started by: chadz on October 11, 2011, 06:48:48 pm

Title: Strategus changelog / formulas:
Post by: chadz on October 11, 2011, 06:48:48 pm
Ok, let's see.. formulas:
troop upkeep for heroes:
ceil((pow($troops, 1.03) * 2.5 - 100)/24)
troop upkeep for locations:
ceil((pow($troops, 1.02) * 1 - 100)/24)

faraway goods bonus:
round(pow($distance_percent*100, 1.26)-80)

movement speed:
$speed = (0.25 * ($terrain['speed']/100));
$troop_influence = (pow($troops, $terrain['troops_influence']/200)/100); #capped at 0.99
$speed = $speed * (1-$troop_influence);

terrain look distance:
(distance_in_pixel/(($my_geo['look_out']/100)*($other_geo['look_in']/100)) < 100 )

terrain:
http://strategus.c-rpg.net/geo_calradia.png


movement table:
color
name
speed

troops_influence
look_out
look_in
000080Sea010025050
22b14cPlains100100100100
c3c3c3Hills60100140140
ffffffSnow Plains70100100100
003e00Plain Forest601107020
008080Snow Forest501107030
535353Mountains30140200120
00a2e8River0100100100
96924fSteppe100100100100
697801Steppe Forest701108040
000000Cliffs0100100100
f000ffRoad18010040170
fff200Desert100100100100
53a600Desert Forest801109050
b45e34Bridge1015010030







Title: Re: Strategus changelog / formulas:
Post by: LLJK_Korea1 on October 11, 2011, 07:19:03 pm
ok thats cool
Title: Re: Strategus changelog / formulas:
Post by: Damug on October 11, 2011, 07:20:35 pm
Is it intentional that it's 3 times quicker to cross a mountain range than to walk across a bridge?
Title: Re: Strategus changelog / formulas:
Post by: Erasmas on October 11, 2011, 07:25:13 pm
Lovely... thx.

Hold on... ROADS? No roads on the map as far as I can see...  :D Nice one  :D
Title: Re: Strategus changelog / formulas:
Post by: Flawless on October 11, 2011, 07:36:43 pm
Im hoping its a future add on.
Title: Re: Strategus changelog / formulas:
Post by: Jarlek on October 11, 2011, 07:40:05 pm
Fuck yeah, roads! Can I build them in Stronghold mode, pretty please with sugar on top?
Title: Re: Strategus changelog / formulas:
Post by: Bjarky on October 11, 2011, 07:42:19 pm
start building 'em roads.
uh, somebody make a "Bob the builder" clan heh  :P
Title: Re: Strategus changelog / formulas:
Post by: dynamike on October 11, 2011, 08:24:32 pm
Desert should have lower speed for realism purposes. I suggest the same as snow: 70

Also, thanks for the changelog <3
Title: Re: Strategus changelog / formulas:
Post by: Malaclypse on October 11, 2011, 08:30:23 pm
What do the look out/look in values denote?
Title: Re: Strategus changelog / formulas:
Post by: 22nd_King_Plazek on October 11, 2011, 09:10:34 pm
I should hope and imagine that they are viewing distances :)
Title: Re: Strategus changelog / formulas:
Post by: Siiem on October 11, 2011, 09:49:34 pm
I want waypoints!
Title: Re: Strategus changelog / formulas:
Post by: PhantomZero on October 12, 2011, 12:30:42 am
Upkeep is still per day right?
Title: Re: Strategus changelog / formulas:
Post by: Earthdforce on October 12, 2011, 12:39:55 am
Lovely... thx.

Hold on... ROADS? No roads on the map as far as I can see...  :D Nice one  :D
Im hoping its a future add on.
Did chadz not say that roads well be able to be built? (like, between fiefs) I coulda sworn I read that somewhere.
Title: Re: Strategus changelog / formulas:
Post by: Dehitay on October 12, 2011, 12:50:53 am
Thanks for the documentation. This was really desired and is really helpful.

But I have to ask. Just looking at the code you gave, it seems possible to walk into a sea, river, or cliff pixel and be eternally stuck till the end of days. Is there a warp back to non-zero movement land if you actually land on zero movement land? This could explain why it seems like there's 12 people stuck on the cliff around Tulbuk

What do the look out/look in values denote?
These values are used in the formula to see how far you can see other people from where you are
Title: Re: Strategus changelog / formulas:
Post by: caki on October 12, 2011, 05:58:15 am
You are surprising me :D Thanks, this is helpful.
Title: Re: Strategus changelog / formulas:
Post by: Erasmas on October 12, 2011, 11:15:25 am
OK, what is a "Quick March" - I mean how quick is "quick"? Anyone? Mine is going to end in 300 minutes...
Title: Re: Strategus changelog / formulas:
Post by: chadz on October 12, 2011, 11:16:09 am
I'll let you guys figure that one out yourselves, it's easy :P
Title: Re: Strategus changelog / formulas:
Post by: Erasmas on October 12, 2011, 11:17:50 am
OK, I did not refresh the page. Speed doubled (more than doubled - 0,58 on plains)... is there any limit on that? Like 300 minutes? Overall, or for this specific run?

EDIT:

I stopped, and than moved again, and the quick march time did not reset, or stopped. Bug, or intended?
Title: Re: Strategus changelog / formulas:
Post by: Phazey on October 12, 2011, 11:17:53 am
Double speed for six hours, then half speed for twelve? Just guessing, ofcourse...  :wink:
Title: Re: Strategus changelog / formulas:
Post by: Gristle on October 12, 2011, 02:47:06 pm
Roads?
(click to show/hide)

Quick March?
(click to show/hide)
Title: Re: Strategus changelog / formulas:
Post by: Jarlek on October 12, 2011, 05:35:26 pm
I'll let you guys figure that one out yourselves, it's easy :P
I'm guessing... increased speed?

Trololol.

But the real question is how long does it last, how does the boost work and what happens when it ends?
Title: Re: Strategus changelog / formulas:
Post by: Bjarky on October 12, 2011, 06:49:48 pm
i see that with some few 23 troops you already loose a good amount of speed (0.23801), couldn't there be some kind of low limit before the speed drag gets active?
something like 30 or 40 troops?
Title: Re: Strategus changelog / formulas:
Post by: RandomDude on October 13, 2011, 03:30:45 am
I was hoping someone else would ask and get an explanation so I wouldnt look dumb but no1 else has yet so here goes:

I dont understand this stuff:

(click to show/hide)

Could someone explain it in terms of 100/500/1000 men, something like that? I dont get ceil or pow either. Its been many years since i used a programming language and that was just pascal.
Title: Re: Strategus changelog / formulas:
Post by: Dehitay on October 13, 2011, 03:39:43 am
I was hoping someone else would ask and get an explanation so I wouldnt look dumb but no1 else has yet so here goes:

I dont understand this stuff:

(click to show/hide)

Could someone explain it in terms of 100/500/1000 men, something like that? I dont get ceil or pow either. Its been many years since i used a programming language and that was just pascal.
pow() takes two paramaters and then makes an exponential function out of them. The first paramater is the base and the second is the power. ceil() just rounds up to the highest whole number if it's not already a whole number.

Edit: Just realized you wanted a run through. But I'm too lazy to do it for multiple situation so I'll just do it with 100 troops and and regular Plains.

troop upkeep for heroes:
ceil((pow($troops, 1.03) * 2.5 - 100)/24) = ceil((pow(100, 1.03) * 2.5 - 100)/24) = 8
troop upkeep for locations:
ceil((pow($troops, 1.02) * 1 - 100)/24) = ceil((pow(100, 1.02) * 1 - 100)/24) = 1

faraway goods bonus: (using a distace percentage of 50%)
round(pow($distance_percent*100, 1.26)-80) = round(pow(0.5 * 100, 1.26)-80) = 58

movement speed:
$speed = (0.25 * ($terrain['speed']/100)) = (0.25 * (100/100)) = 0.25
$troop_influence = (pow($troops, $terrain['troops_influence']/200)/100) = (pow(100, 100/200)/100) = 0.1
$speed = $speed * (1-$troop_influence) = 0.25 * (1-0.1) = 0.225

terrain look distance: (using 100 pixel distance and looking into hill terrain)
(distance_in_pixel/(($my_geo['look_out']/100)*($other_geo['look_in']/100)) < 100 ) = (100/1.4 < 100) = true (so basically you can see 100 pixels into hills from the plains)

Btw, math gets really easy when you use 100s for pretty much all the values
Also, why bother putting in the *1 in the troop upkeep for locations formula?
Title: Re: Strategus changelog / formulas:
Post by: Generalissimo on October 13, 2011, 03:46:16 am
Could someone explain it in terms of 100/500/1000 men, something like that? I dont get ceil or pow either. Its been many years since i used a programming language and that was just pascal.

Dehitay's got the explanations down, so I guess I'll handle the next part.

If I have it right:
100 troops cost 8 gold per hour.
500 troops cost 59 gold per hour.
1000 troops cost 124 gold per hour.

Some people have said that you can have 60-some troops before upkeep kicks in for heroes, but the formula appears different from the last time it was posted. If I didn't mess this up, the new number is 35.
Title: Re: Strategus changelog / formulas:
Post by: Earthdforce on October 13, 2011, 03:56:47 am
...per hour? :(
Title: Re: Strategus changelog / formulas:
Post by: Braeden on October 13, 2011, 04:07:46 am
Dehitay's got the explanations down, so I guess I'll handle the next part.

If I have it right:
100 troops cost 8 gold per hour.
500 troops cost 59 gold per hour.
1000 troops cost 124 gold per hour.

Some people have said that you can have 60-some troops before upkeep kicks in for heroes, but the formula appears different from the last time it was posted. If I didn't mess this up, the new number is 35.

This is correct.
Title: Re: Strategus changelog / formulas:
Post by: RandomDude on October 13, 2011, 04:34:57 am
Thanks a lot guys
Title: Re: Strategus changelog / formulas:
Post by: Bjarky on October 13, 2011, 04:43:27 am

movement table:
color
name
speed

troops_influence
look_out
look_in
b45e34Bridge1015010030




don't know if you misstyped on the speed data.
but i think it's rather extreme to have only speed 10 + the "troops influence" on bridges, it's like an double nerf, it's way to hard, the troops influence can already do the intended slowdown itself, speed could be 90 or 80.
btw about the "look in", shouldn't it be rather easy to spot people on a bridge?
Title: Re: Strategus changelog / formulas:
Post by: Lt_Anders on October 13, 2011, 05:26:09 am
...per hour? :(

NM, the divide by 24 in the forumla is the conversion to per hour from day
Title: Re: Strategus changelog / formulas:
Post by: Digglez on October 13, 2011, 05:28:11 am
can we get some documentation on the stuck button?  I was tempting to press it to find out, but dont want to be teleported across the world or something like that
Title: Re: Strategus changelog / formulas:
Post by: Dehitay on October 13, 2011, 07:19:30 am
can we get some documentation on the stuck button?  I was tempting to press it to find out, but dont want to be teleported across the world or something like that
If I had to guess, I would think if you're currently on an area with a movement speed of 0 (in which case you would be eternally stuck), it likely moves you to the closest pixel that doesn't have zero movement speed. However, it looks like there are still some parts of the steppe that you can get spawned in and be stuck on a cliff with no way down. I wonder if it does anything about that, too
Title: Re: Strategus changelog / formulas:
Post by: chadz on October 13, 2011, 09:02:44 am
the stuck button is merely a zoom of your surrounding. It shows you in what direction you can move without hitting a barrier.
(it's a 100x100 image, showing 10x10 pixels, and your location as exact as possible (tiny red dot))
Title: Re: Strategus changelog / formulas:
Post by: Earthdforce on October 13, 2011, 09:27:30 am
I still wouldn't do it..
Title: Re: Strategus changelog / formulas:
Post by: neupreis on October 13, 2011, 09:40:05 am
I dont understand, why bridge crossing is on 10. Bridge is for me like a road. Or the bridge is made only with one really thin tree trunk? :)

But 180 troops_influence for an army is ok.
Title: Re: Strategus changelog / formulas:
Post by: SchokoSchaf on October 13, 2011, 10:34:48 am
I still wouldn't do it..
Did it, did not hurt at all.
Though I read this only afterwards and wondered at first, what the dirty square means. Btw the dot that shows your location is so tiny, you can't tell it's red. Thought it was some dust on my screen.
(click to show/hide)

Edit: I'm inside a thief right now, dunno if that influences anything.
Title: Re: Strategus changelog / formulas:
Post by: Digglez on October 13, 2011, 12:46:47 pm
Is there a cooldown timer or some negative side-effect to using quickmarch?

Only available for small bands of troops?
Title: Re: Strategus changelog / formulas:
Post by: Digglez on October 13, 2011, 01:03:20 pm
If I'm understanding this correctly, moving thru desert is as fast as plains? WHAT?  Shouldnt desert be the same as snow plain, and desert forest same as snow forest?

Besides making sense (moving thru sand is alot like snow) it is only fair, since like 1/2 of NA territory is SNOW.  Desert is just snow in the south, so should have same travel speed
Title: Re: Strategus changelog / formulas:
Post by: Bjarky on October 13, 2011, 01:16:54 pm
Is there a cooldown timer or some negative side-effect to using quickmarch?

Only available for small bands of troops?
EDIT 470 480min, 50% exhaustion (half speed)
Title: Re: Strategus changelog / formulas:
Post by: Dehitay on October 13, 2011, 03:36:14 pm
If I'm understanding this correctly, moving thru desert is as fast as plains? WHAT?  Shouldnt desert be the same as snow plain, and desert forest same as snow forest?

Besides making sense (moving thru sand is alot like snow) it is only fair, since like 1/2 of NA territory is SNOW.  Desert is just snow in the south, so should have same travel speed

May not make as much sense if you travel by car, but for those who travel on foot, walking across a desert is far more similar to walking across plains compared to walking across snow. Though you're right that it's a bit unfair for EU to have all the nice, quick land and NA to be half speed bumps.
Title: Re: Strategus changelog / formulas:
Post by: Digglez on October 13, 2011, 11:09:10 pm
May not make as much sense if you travel by car, but for those who travel on foot, walking across a desert is far more similar to walking across plains compared to walking across snow. Though you're right that it's a bit unfair for EU to have all the nice, quick land and NA to be half speed bumps.

No, walking thru either sand dunes isnt anything like plains.  Why do you think camels have HUGE WIDE feet, just like snow shoes but for sand
Title: Re: Strategus changelog / formulas:
Post by: Dehitay on October 14, 2011, 01:58:34 am
No, walking thru either sand dunes isnt anything like plains.  Why do you think camels have HUGE WIDE feet, just like snow shoes but for sand
I'm not saying it's like walking on grass, but between grass and snow, which one is sand far more similar to? Especially if you're just walking. Now if you're running, things will get a bit more messy.
Title: Re: Strategus changelog / formulas:
Post by: vinnytk on October 14, 2011, 07:00:46 am
Dehitay's got the explanations down, so I guess I'll handle the next part.

If I have it right:
100 troops cost 8 gold per hour.
500 troops cost 59 gold per hour.
1000 troops cost 124 gold per hour.

Some people have said that you can have 60-some troops before upkeep kicks in for heroes, but the formula appears different from the last time it was posted. If I didn't mess this up, the new number is 35.

Here is the graph http://www.wolframalpha.com/input/?i=plot+ceil%28%28pow%28x%2C+1.03%29+*+2.5+-+100%29%2F24%29+x%3D0+to+50 (http://www.wolframalpha.com/input/?i=plot+ceil%28%28pow%28x%2C+1.03%29+*+2.5+-+100%29%2F24%29+x%3D0+to+50)

Starts at 36 and grows by 1 gold every 8 troops
Title: Re: Strategus changelog / formulas:
Post by: Digglez on October 14, 2011, 08:29:02 am
also shouldnt mountains & hills grant see OUT bonuses?
Title: Re: Strategus changelog / formulas:
Post by: Slamz on October 14, 2011, 08:53:06 am
faraway goods bonus:
round(pow($distance_percent*100, 1.26)-80)

What is "distance_percent"?

e.g., Sargoth to Dhirim.
Title: Re: Strategus changelog / formulas:
Post by: SPQR on October 14, 2011, 09:00:08 am
I dont know the formula but Bazek to Ulburdan was +35%

So, you can use that as a guide.
Title: Re: Strategus changelog / formulas:
Post by: LLJK_Siggy on October 15, 2011, 03:08:06 pm
Logic would tell us that $distance_percent would be $distance_travelled/$max_distance. We know that $max_distance is 139km.

I'm not sure if this is correct, though. If you plug 1 into $distance_percent, which should be the max, you get 251. I'm fairly certain chadz said that 450% was the max bonus.
Title: Re: Strategus changelog / formulas:
Post by: Slamz on October 17, 2011, 09:46:19 am
I just want to chime in and say that bridges are ridiculous and that should be changed.

I have 31 troops on a bridge and I'm doing just slightly over 2 meters per minute.


Seriously?  2 meters per minute?  Is the bridge a single rope that each troop has to walk across, one at a time, single file?  Is the bridge actually a Luck Dragon which takes each troop individually on a magical journey of adventure where they help save the Lost Gem of Aberdash, capturing it from the Evil Wizard and returning it to the Empress, whereupon they are finally deposited on the other side?  Does each passing army burn the bridge behind them, causing the next army to have to build a new one?  What's the deal?


I appreciate that they are meant to be a major ambush point but really, can we set some reasonable minimum speeds?
Title: Re: Strategus changelog / formulas:
Post by: LLJK_Korea1 on October 17, 2011, 10:44:49 am
Seriously?  2 meters per minute?  Is the bridge a single rope that each troop has to walk across, one at a time, single file?

gis'd medieval wood bridge

visitors can't see pics , please register or login
Title: Re: Strategus changelog / formulas:
Post by: Overdriven on October 17, 2011, 01:02:55 pm
Is the bridge actually a Luck Dragon which takes each troop individually on a magical journey of adventure where they help save the Lost Gem of Aberdash, capturing it from the Evil Wizard and returning it to the Empress, whereupon they are finally deposited on the other side?

Yes.