Problem Details:
I'm writing an emulator of sorts and I'm somewhat new to osu!. I look at some osu! files and I see the mode is 0 for osu! but yet in the application they show up at 4K when I'm in osu!mania mode. I'm wondering what calculation is used to determine key assignments in this situation. I know the X coordinate in an osu!mania 4K map key values is basically key = (int)(x / 512/4) for instance, but what about osu! maps.
For instance, lets say I have the follow X values and I choose 4K, 404 (slider), 332 (circle), 236 (circle), 116 (slider). If I apply the calculation above I get 3, 2, 1, 0 for key assignments, however if I play in osu! I get lanes. 1. 3. 2. 1. I get the correct combination of slider, circle, circle, slider, but I can't figure out how it is coming up with those lane/key assignments so I can emulate it.
This is the raw data -
[HitObjects]
404,288,6454,6,0,P|416:248|412:184,1,99.9999999999999,4|2,0:0|0:0,0:0:0:0:
332,100,8002,1,0,0:0:0:0:
236,172,8777,1,2,0:0:0:0:
116,164,9551,2,0,P|104:124|112:64,2,99.9999999999999,0|2|0,0:0|0:0|0:0,0:0:0:0:
Thanks so much for the help.
I'm writing an emulator of sorts and I'm somewhat new to osu!. I look at some osu! files and I see the mode is 0 for osu! but yet in the application they show up at 4K when I'm in osu!mania mode. I'm wondering what calculation is used to determine key assignments in this situation. I know the X coordinate in an osu!mania 4K map key values is basically key = (int)(x / 512/4) for instance, but what about osu! maps.
For instance, lets say I have the follow X values and I choose 4K, 404 (slider), 332 (circle), 236 (circle), 116 (slider). If I apply the calculation above I get 3, 2, 1, 0 for key assignments, however if I play in osu! I get lanes. 1. 3. 2. 1. I get the correct combination of slider, circle, circle, slider, but I can't figure out how it is coming up with those lane/key assignments so I can emulate it.
This is the raw data -
[HitObjects]
404,288,6454,6,0,P|416:248|412:184,1,99.9999999999999,4|2,0:0|0:0,0:0:0:0:
332,100,8002,1,0,0:0:0:0:
236,172,8777,1,2,0:0:0:0:
116,164,9551,2,0,P|104:124|112:64,2,99.9999999999999,0|2|0,0:0|0:0|0:0,0:0:0:0:
Thanks so much for the help.