# I've pretty much figured out Taiko pp

Good job, that shows some work behind the pp system in taiko and gives us something else to look at. #### _Gezo_ wrote:

May I host it on my website? You will be credited for that awesome work. Sure Another thing I would like to point out is that I made an OD table some time ago. It would be useful as they all contain the "300" values and follow a formula for EZ and HR, and values are multiplied by their factor with DT and HT. It will be much easier to use for this aspect. Instead of constantly looking for what 7+DT+HR is, or 3+EZ+DT, or 5.5 being inaccurate, the program will get the values on their own.

#### _Gezo_ wrote:

Another thing I would like to point out is that I made an OD table some time ago. It would be useful as they all contain the "300" values and follow a formula for EZ and HR, and values are multiplied by their factor with DT and HT. It will be much easier to use for this aspect. Instead of constantly looking for what 7+DT+HR is, or 3+EZ+DT, or 5.5 being inaccurate, the program will get the values on their own.
That sounds fantastic! Where can I get it?
https://www.dropbox.com/s/kaqumg6u91yt6 ... D.pdf?dl=0

There are different formulas but yeah I'll probably try to figure them out again
Update 1.1: I removed the "your combo" box, because of the way Taiko calculates pp, this value can be calculated from the number of misses. Same download link as before. (Also means one less box to fill in :p)
I love you #### _Gezo_ wrote:

https://www.dropbox.com/s/kaqumg6u91yt6hh/ULTIMATE%20OD%20TABLE%20FIXED.pdf?dl=0

There are different formulas but yeah I'll probably try to figure them out again
I tried to figure out the formulas and came up with this:

https://www.dropbox.com/s/p3v6p1oxbqge5 ... .xlsx?dl=0

Maybe try it (?)
.
I've finally figured out the formulas in a clean way (these are on the spreadsheet as well):
`NM OD:    Initial OD		EZ OD:	OD/2HR OD:	OD*1.4DT OD:    ROUND(OD/1.5+5.5) TO 2 DECIMALS		HT OD:    ROUND(OD/0.75-5.5) TO 2 DECIMALSEZ+DT OD: ROUND(EZ OD/1.5+5.5) TO 2 DECIMALSHR+DT OD: ROUND(HR OD/1.5+5.5) TO 2 DECIMALSEZ+HT OD: ROUND(EZ OD/0.75-5.5) TO 2 DECIMALSHR+HT OD: ROUND(HR OD/0.75-5.5) TO 2 DECIMALS300 Hit window: ROUND(49.5-(OD/0.5)*1.5) TO 1 DECIMAL	`
Hope it helps EDIT: Here's the new and better (???) taiko pp calculator (automated 300 hit window calculation based off _Gezo_'s od table): https://www.dropbox.com/s/52mikcnntehqn ... .html?dl=0
Wow, great job. Thank you for sharing this with us.

#### Pohm wrote:

I've finally figured out the formulas in a clean way (these are on the spreadsheet as well):
`NM OD:    Initial OD		EZ OD:	OD/2HR OD:	OD*1.4DT OD:    ROUND(OD/1.5+5.5) TO 2 DECIMALS		HT OD:    ROUND(OD/0.75-5.5) TO 2 DECIMALSEZ+DT OD: ROUND(EZ OD/1.5+5.5) TO 2 DECIMALSHR+DT OD: ROUND(HR OD/1.5+5.5) TO 2 DECIMALSEZ+HT OD: ROUND(EZ OD/0.75-5.5) TO 2 DECIMALSHR+HT OD: ROUND(HR OD/0.75-5.5) TO 2 DECIMALS300 Hit window: ROUND(49.5-(OD/0.5)*1.5) TO 1 DECIMAL	`
Hope it helps EDIT: Here's the new and better (???) taiko pp calculator (automated 300 hit window calculation based off _Gezo_'s od table): https://www.dropbox.com/s/52mikcnntehqn ... .html?dl=0
Sweet! I thought DT was just the 300 hit window times 2/3, and HT was the 300 hit window times 4/3. I figured out the 300 hit window as 49.5-(3*OD) (edit: actually, that's the exact same as yours, because dividing by 0.5 is equal to multiplying by 2, and then that times 1.5 is 3), but both your formula and mine return OD6.5 as 30 ms, when it's in fact 29.5. This is just about the only thing I've been stuck on.
I'm a bit late to the party, but I've recently picked back up on my Taiko pp calculator and I remember failing to find a clean formula to calculate the hitwindow from the OD. What I did instead was hard code specific decimals to subtract from the hit window. Actually, have a look at the function I wrote:
`private double GetHitWindow300(){    string ODstr = map.GetTag("Difficulty", "OverallDifficulty");    if(ODstr.Length > 3)        throw new Exception("Error, OD has more than one decimal place");    double OD = Convert.ToDouble(ODstr);    if(((int)mods & (int)Modifiers.HardRock) > 0)        OD *= 1.4;    else if(((int)mods & (int)Modifiers.Easy) > 0)        OD *= 0.5;    OD = Dewlib.Clamp(OD, 0, 10);    //Calculate the integer part of OD first, then modify later based on the decimal    double window = 49.5 - 3 * Math.Floor(OD);    //If OD has a decimal place    if(OD % 1 != 0)    {        //Avoid precision bugs - round to one decimal place        double ODdecimal = Math.Round(OD - Math.Floor(OD), 1);        if(0.1 <= ODdecimal && ODdecimal <= 0.3)            window -= 1;        else if(0.4 <= ODdecimal && ODdecimal <= 0.6)            window -= 2;        else if(0.7 <= ODdecimal && ODdecimal <= 0.9)            window -= 3;    }    if(((int)mods & (int)Modifiers.DoubleTime) > 0 || ((int)mods & (int)Modifiers.Nightcore) > 0)        window /= 1.5;    else if(((int)mods & (int)Modifiers.HalfTime) > 0)        window /= 0.75;    return window;}`
If anyone needs an explanation I can explain it, but yea, OD is weird when it comes to decimals...
Fixed the broken OD calculations by everyone, made some checkboxes pretty, made the calculation realtime, added a nice hosted domain.

I might add input validation and more CSS later.

http://pp.mon.im/

#### montymintypie wrote:

Fixed the broken OD calculations by everyone, made some checkboxes pretty, made the calculation realtime, added a nice hosted domain.

I might add input validation and more CSS later.

http://pp.mon.im/
Awesome :0!!
...Do you mind if I copy your OD calculation function? It's much cleaner than my implementation haha. I'll give credit if you're ok with it.
Go for it, no worries
Nice, thanks!

By the way, it looks like you forgot to clamp od after applying the multiplier from HR/EZ http://puu.sh/rixFO/7e3a6e8060.jpg
Fixed. Also added display of OD with mods applied.
Thank you very much for this work! ><
Well America actually has the greatest educational system, but Is GG thanks to you guys?