osu!mania Stage Centering Guide!~Below is the method to acquire the ColumnStart values to center the osu!mania stage. This method works
for all skins and
for all screen resolutions, be it windowed or full screen.
1. We'll use this equation:
columnStart = ((480 / (screenHeight / screenWidth)) / 2) - (columnSum / 2)- columnStart - value that we will put on each nK.ini file.
- screenHeight - height of your screen in pixels (or height of the osu! window if you play windowed)
- screenWidth - width of your screen in pixels (or width of the osu! window if you play windowed)
- columnSum - sum of all the values on the ColumnWidth field.
Note: Since we're dividing the screen height with the screen width, any values of the same ratio would make the same answer. This means that all 16:9 screen resolutions would have the same columnStart values (given that the columnSum is constant). Same goes with other screen ratios.
2. In order to get the value of columnStart, you need to know the values of each variable (remember that these values may vary depending on the key you're currently calculating). Let's have an example for this guide. Let's say I use a custom windowed resolution of
1200px by 700px. Below are the column sizes of the stages inside my nK.ini files.
- 4K: ColumnWidth: 46, 46, 46, 46
- 5K: ColumnWidth: 46, 46, 50, 46, 46
- 6K: ColumnWidth: 42, 42, 42, 42, 42, 42
- 7K: ColumnWidth: 40, 40, 40, 40, 40, 40, 40
- 8K: ColumnWidth: 38, 38, 38, 38, 38, 38, 38, 38
3. Let's start with 4K. The values we have now are:
- screenHeight: 700
- screenWidth: 1200
- columnSum: 46 + 46 + 46 + 46 = 184
We now have all values needed in order to solve for columnStart. Let's substitute the values to the equation:
columnStart = ((480 / (700 / 1200)) / 2) - (184 / 2)columnStart = ((480 / 0.58333) / 2) - (92)columnStart = (822.86 / 2) - 92columnStart = (411.43) - 92columnStart = 319.43columnStart ≅ 319since we can't use decimals for the columnStart value, we have to round it off to the nearest integer.Now that we know columnStart, we can go ahead and write the value inside 4K.ini.
4. Repeat the process for all the other keys. If you try to solve for the other values using the same situation, you should get the following values:
- 5K: 294
- 6K: 285
- 7K: 271
- 8K: 259
5. After getting all the values and putting them into their respective ini files, reload your skin. Now go ahead and play some osu!mania and notice how your stage is now perfectly centered on your screen!
Note: Due to the rounding off of values, the stage may be a bit off by 1 pixel to the left or right. If you followed the instructions above correctly, I assure you that the stage will never be off by 2 or more pixels from the center.