forum

[Archived] osu! to osu!mania HitObjects conversion calculation

posted
Total Posts
3
Topic Starter
ThermalShock
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.
Full Tablet
The lane assignments use a pseudo-random number generator, so it would be hard to replicate.
Autoconverts (osu! standard maps played in osu!mania mode) aren't very popular, so not being able to replicate them for the emulation might not be a problem (depending on what are you going to do with the emulator).
Topic Starter
ThermalShock
Thanks Full Tablet.

Still be nice if I could use it. I can certainly just assign them the same calculation as mania, but it would be really nice to be one-to-one if at all possible. I totally understand and agree there isn't any obvious point but just purely for my preference, it would be nice to know the formula. As mentioned below in my case I would get 3, 2, 1, 0 and I'd much prefer to get the autoconvert of 1, 3, 2, 1 instead. If you can humor me I'd really appreciate it.

By the looks of it even though its pseudo-random, it is able to produce the same layout every time, or perhaps that is cached per song.

No big deal if its not worth the time to extract for me. I totally get it.

Perhaps I can contact you again if I have other mode conversion questions.

Thanks again.
Please sign in to reply.

New reply