Page 1 of 2

Warrior Stat Calculator

Posted: 03 Feb 2013, 16:59
by GARRETTtheGREAT
I'm working on a stat calculator for warrior builds.

Would any warriors out there mind checking it out and telling me what you think?

Thanks!

http://tmw.gjr.gr/warrior.php

edit: I suppose you don't have to be a warrior, but if anyone can put their stats in and make sure the numbers work out, that would be awesome!

Re: Warrior Stat Calculator

Posted: 03 Feb 2013, 17:50
by Nard
Wow that's nice and helpful! The results were a bit surprising to me though I suspected someting like that. I'd like to have that on TMW web site.
In case you have extra time, This page could help though it needs a strong update to fit TMW: http://ro.doddlercon.com/calc/calcx.html

Edit: I include a link to your page on the Stats wiki page.

Re: Warrior Stat Calculator

Posted: 03 Feb 2013, 18:10
by GARRETTtheGREAT
Thank you! I'll be adding more calculators and such as time goes on :D

Re: Warrior Stat Calculator

Posted: 03 Feb 2013, 18:14
by Nard
2 questions though:
  1. Does the weapon have to be equipped? Setzer, Rock Knife and Ice gladius have now the same +110 damage, setzer reduces attack delay.
  2. Do the status improvement items have to be equipped for strength and agil, or is base status the only important thing?

Re: Warrior Stat Calculator

Posted: 03 Feb 2013, 18:43
by GARRETTtheGREAT
1. When you provide your current attack damage and delay, the algorithm will calculate what I call your "base attack" and "base delay", which include your weapon, focus skill, etc. (everything except for your agility and strength). These "base stats" are essentially what your attack and delay would be if your strength and agility were both 1. I've verified this in-game by re-rolling.

2. You should be fully geared up as you would want to be normally. Items will affect your stat points and your "base attack" and "base delay" as will the speed skill. The raging skill does not appear to affect your "base stats". I've added some instructions to make this more clear. I haven't tested +stat items yet, but I think these will be accounted for automatically by the calculator and the bonus should be ignored.

Re: Warrior Stat Calculator

Posted: 06 Feb 2013, 00:50
by borgomatic
This looks pretty reasonable, though I hesitate to say that DPS is the major parameter for a Warrior. Lower attack delay can result in faster kills due to more hits per minute if your hit percentage is less than 100. I have verified this by comparing time to kill with and without using a concentration potion.

Of course ping time to server has a big effect on that too. Though I have an attack delay of 499, a 230 ping results in a real attack delay of 1009. I'd really like to see the round trip ping time subtracted somehow from the attack delay.

Re: Warrior Stat Calculator

Posted: 06 Feb 2013, 01:30
by GARRETTtheGREAT
borgomatic wrote:This looks pretty reasonable, though I hesitate to say that DPS is the major parameter for a Warrior. Lower attack delay can result in faster kills due to more hits per minute if your hit percentage is less than 100. I have verified this by comparing time to kill with and without using a concentration potion.

Of course ping time to server has a big effect on that too. Though I have an attack delay of 499, a 230 ping results in a real attack delay of 1009. I'd really like to see the round trip ping time subtracted somehow from the attack delay.
In your example, using 1009 as your attack delay would yield the result you are looking for.

I will eventually have PvM and PvP statistics, but it will require extensive research into the combat system that I don't quite have time for at the moment.

Re: Warrior Stat Calculator

Posted: 12 Feb 2013, 11:33
by Ichimaru Leon
its nice calculator Gareth...
thanks... :lol: :lol: :lol:

Re: Warrior Stat Calculator

Posted: 12 Feb 2013, 11:56
by fuadfauzi
Ichimaru Leon wrote:its nice calculator Gareth...
thanks... :lol: :lol: :lol:
Yes sure, its a very handy & useful tools. But, i wonder if there would be other tools to calculate other type such as Archer, Mage . . . Hope so . . . :)

Re: Warrior Stat Calculator

Posted: 13 Feb 2013, 00:20
by GARRETTtheGREAT
fuadfauzi wrote:
Ichimaru Leon wrote:its nice calculator Gareth...
thanks... :lol: :lol: :lol:
Yes sure, its a very handy & useful tools. But, i wonder if there would be other tools to calculate other type such as Archer, Mage . . . Hope so . . . :)
Yes, there will be many tools sometime in the future.

Re: Warrior Stat Calculator

Posted: 13 Feb 2013, 04:30
by fuadfauzi
GARRETTtheGREAT wrote: Yes, there will be many tools sometime in the future.
BTW, I have litle knowledge about PHP programming. What can I do to help you realize the tools. So the future will be fasten come true. :D

Re: Warrior Stat Calculator

Posted: 13 Feb 2013, 16:58
by o11c
This would be better done in pure HTML + javascript. None of the numbers involved get high enough for the numerical instability to come into play ... but you *will* need to make sure all your divisions truncate toward zero.

Re: Warrior Stat Calculator

Posted: 15 Feb 2013, 00:33
by GARRETTtheGREAT
fuadfauzi wrote:
GARRETTtheGREAT wrote: Yes, there will be many tools sometime in the future.
BTW, I have litle knowledge about PHP programming. What can I do to help you realize the tools. So the future will be fasten come true. :D
The calculator is a very simple program. It is less than 500 lines of code!

The main issue is finding the algorithms to calculate the stats. There are many complex relationships between stats, items, focus skills, monster stats, status effects, etc. that are difficult to break down into simple mathematical functions.

Here is the function for calculating the number of stat points needed for a given stat level:

Code: Select all

$statpts_agi = 5 * (pow(floor(($input_agi - 1) / 10), 2) + 3 * floor(($input_agi - 1) / 10) ) + (($input_agi - 1) % 10) * (floor(($input_agi - 1) / 10) + 2);
Stat point cost is very easily measurable and is a function that is only dependent upon the level of the stat.

Consider what the function would look like for the actual damage dealt to a monster. Your actual damage is based on strength, dexterity, luck, items, skills, monster stat points, status effects, and more than likely a random roll for the player attack and monster defense.

For the DPS calculator, it was easy to reverse-engineer the formulas based on the information easily gained from the client, but most important data is not so easy to obtain and will not be easy to reverse-engineer. These stats will require extensive research into the code of the server.
o11c wrote:This would be better done in pure HTML + javascript. None of the numbers involved get high enough for the numerical instability to come into play ... but you *will* need to make sure all your divisions truncate toward zero.
I don't program in JS very often and so it takes me much longer to develop. The final version will be at least AJAX so it will update the fields automatically, but polishing the UI is much less of a priority to me than having accurate calculations.

Re: Warrior Stat Calculator

Posted: 19 Feb 2013, 21:38
by Avenn
The calculator is nice i cant wait for archer and mage calculator :mrgreen:

Re: Warrior Stat Calculator

Posted: 19 Mar 2013, 01:32
by Zopar
Cool calculator. Nice work! Can't wait for archer. I hope your still planning to do archer.
:mrgreen: