forum

osu! level calculator

posted
Total Posts
37
Topic Starter
Howl

Introduction

Hey there.
Pretty scared about posting this because maybe people will says "this thing is useless", bla bla bla. But well, I try to post this.
Like a month ago in #italian we were discussing about level in osu!. You know, that thing in your userpage that actually shows nothing about your skill but it's cool to see it growing. So, since about that there was only a topic showing not all the score needed for the levels, I decided to make a tiny script in php, not only meant to be used only by me but also to be open source for people who wanted to use it to create something more cool than I can ^^
So, in a few words, this is a tiny script were
you write a level and it outputs the score needed for that level.
Not very good looking for the style, but I did my best.
Enjoy.


Github, website etc

Website
| GitHub | Release | Release (zip file)

Translation

To translate, go and follow this guide: https://github.com/TheHowl/OsuLevelCalc ... ranslating
Flanster
I do believe there was a google doc chart for score requrements on levels.
Topic Starter
Howl
That's because you use the file in locale, and fore some reason (maybe because WAMP or the program you're using doesn't support the require function of php for the form) it doesn't work.
And I also know about that, but from what I remember it was until level 105. Here you can write every number.
SPOILER
Until you get a result like 1.9002693119083E+14.

Oh, btw. Noticed just now that for some reason subdomain doesn't work. Use this unitl it returns to normal status
Chiyo-chan_old
please space the digits with commas
Topic Starter
Howl

Chiyo-chan wrote:

please space the digits with commas
You mean to do numers like this? 23,000,000?
I'll may do it.

EDIT 23:23: Yay.
Also pushed to github, release file doesn't contain update but Downloading this will have it.
- Marco -
Why not use osu! api to do a calculation on how much score do you need it?

example: for level 87 i need 4,361,785,906 score, i have 3,955,724,571 so i need 406,061,335 more points
Sentient_DELETED
awesome tool! really helpful.
good job :)
Topic Starter
Howl

Manu-kun wrote:

awesome tool! really helpful.
good job :)
Thank you ^^

marcostudios wrote:

Why not use osu! api to do a calculation on how much score do you need it?

example: for level 87 i need 4,361,785,906 score, i have 3,955,724,571 so i need 406,061,335 more points
Well, since I'm an idiot I yet used the API for a nosense thing and at those times I didn't know nothing about php's API. Now, before I made the final commit for version 1.0, I yet sended a mail to osu! support to change the API on 17/03, but I had no answer, so may one day I'll have an answer but... Well, since then I can't do very much... With an exception for doing another page with a different form that supports inserting actual score and level to reach. Maybe after studying this evening I'll code that part.
XPJ38
Why would you ask for a change of osu!api for this? I am not sure you understood what marcostudios meant. He wants a form on your website in which you could enter a username and a level. On submit, your code would fetch the user's ranked score with osu!api, then calculate the score needed to reach the desired level (basically what your website currently does) and finally make a simple substraction to get the difference and send it to the client.

TheHowl wrote:

I yet sended a mail to osu! support to change the API on 17/03, but I had no answer
Just so you know, all questions/issues/requests regarding osu!api must be posted here, not via email.
Topic Starter
Howl

XPJ38 wrote:

Why would you ask for a change of osu!api for this? I am not sure you understood what marcostudios meant. He wants a form on your website in which you could enter a username and a level. On submit, your code would fetch the user's ranked score with osu!api, then calculate the score needed to reach the desired level (basically what your website currently does) and finally make a simple substraction to get the difference and send it to the client.
I think it was like that, more or less.
Or well, I could also do something without putting nicknames using a foreach loop I think, but I'm still learning how to use them.

XPJ38 wrote:

TheHowl wrote:

I yet sended a mail to osu! support to change the API on 17/03, but I had no answer
Just so you know, all questions/issues/requests regarding osu!api must be posted here, not via email.
Oh.
But on the page there was write to do it via... nvm, thanks for the info.
AyaMiku_old
Lol,it's awesome

XPJ38

TheHowl wrote:

But on the page there was write to do it via... nvm, thanks for the info.
That's for API access changes, not API changes. The difference is subtle :P
Topic Starter
Howl

XPJ38 wrote:

TheHowl wrote:

But on the page there was write to do it via... nvm, thanks for the info.
That's for API access changes, not API changes. The difference is subtle :P
Hmmm... Don't know if I'm right, maybe I wrote bad and you misunderstand, so there is a little problem here :P
The problem in my case is that I registered an API access with this info:

And the problem here is that I wrote those info completely random like one year ago, so now I need to change that with some serious info to make an access to the API.
Or well, if the API works with the key even if the website isn't exact going to code that part with the API immediatly :P But, if I rightly understand, the access to the API with that API key it's available only if the website requesting it is the one written in the API.
So, that's why I contacted support :roll:
XPJ38
Oh, my bad, seems like I misunderstood you. But don't worry about outdated information in your api profile, you are still allowed to use it anyway so go ahead.
Topic Starter
Howl
Great! Going to developing on a separate branch this evening then :D
Topic Starter
Howl
In last hours I coded some sort of API integration. Now I'm exhaust of all this code, but the result is fantastic.
Now: Your nickname, the gamemode: perfect! Now you got the score that you must get (or farm *coff coff*) to get to the next level.
Ofc I'm going to make a release now or later: the API integration is so cool.
- Marco -
\o/
Topic Starter
Howl
Teaser.
huehuehue

How to completely recode a CSS: lesson 1

Also, going to rewrite all the code of calc.php integrating it with index.php basing on Pizza Kun's suggestions.
XinCrin
Great job on this :D
Topic Starter
Howl
Hey
Everything just got updated
ishtar
lol

1~100lv = 26,931,190,828 score

100->101 lv = 100000000001 score...XD
Topic Starter
Howl
Actually trying to integrate languages, currently not working but it will be back soon!


Edit: Now back! As italian users can see, the website is now multilingual! For the moment there are only English and Italian as languages, but YOU can help! More info in the readme and asap also on the first post.
Topic Starter
Howl
Added German translation thanks to givenameplz
Topic Starter
Howl
Added polish translation.
Then, I ask to someone that is polish to check if the site is working. I'm not sure on how substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2) and his values, so I need that someone polish to check that it is displaying everything in the polish language.
DarkStoorM
Yep, it works c:

[edit] I'm not sure, but the menu links might be confusig a bit without separators or such. I'd still prefer something button-like ;P
Topic Starter
Howl
SPOILER
goooooood, no damn long and boring script for language to do 8-)
Topic Starter
Howl
since I'm a silly guy (maybe?) try to go to classic mode and insert:
1 - "nsfw" or also "666", they do the same thing.
2 - "9000"
obv remove 2 - 1 - and notes
Just a taste of the easter eggs I inserted and I'll insert huehuehue xD

EDIT: Also, all easter eggs can be disabled by simply doing "666n" or "9000n", if you want to see the score. So, just add n at the end to the number if you found an easter egg to calculate normally.
And, for all of you that will try searching all the codes in the source code, I'll not commit the code of the easter egg :P Or maybe I'll commit it, but it will be an external script so you can't see anything hue
Ayesha Altugle
Gotta be more active on playing

/me runs
Nub1
It gonna be a loong way to go..

Topic Starter
Howl
Oh, right, I forgot to announce this new feature From now on, you can choose a "target level". So if you are at level 90 you can choose to calculate score to lv 100 tho.
Topic Starter
Howl
Added French translation thanks to MrCraftCod! ♥
Topic Starter
Howl
Added an API with JSON response (in development).
Use: see on the Wiki
Example: http://olc.howl.moe/api.php?method=sim&ltr=32
LoupDuQc
Works nicely,
What I think that could be done to improve it is changing the colors of things because we can't see the text areas very well and the placeholder text in it isn't very noticeable, so it was a little bit confusing at first (maybe you got a screen that have more contrast for those colors them me?).
I think that just dark border around the text area or something like that could help a lot with very little work to do.
Topic Starter
Howl

LoupDuQc wrote:

Works nicely,
What I think that could be done to improve it is changing the colors of things because we can't see the text areas very well and the placeholder text in it isn't very noticeable, so it was a little bit confusing at first (maybe you got a screen that have more contrast for those colors them me?).
I think that just dark border around the text area or something like that could help a lot with very little work to do.
Ohey! Thanks!
Replying to the first thing, yeah I might need to edit the CSS a bit. It's just that the code is so horrible I'm even pretty scared about touching it again. Expecially that... uuuuuhrghhhh CSS. but well yeah I might consider editing that a bit!

anyway, just wanted to announce that the code is being completely rewritten into a more well-done code. Probably for the next changes you won't notice nothing on the front end, but on the back end I can assure you that the code you can breathe is more well-done than the old one... urghhh it's scary even thinking about the old one.

by the way: HTTPS is now on the website. but that doesn't matter much since you probably won't send sensitive data to it :P
DarkStoorM
IMO it looks a bit better when you change the background color from #F7F7F7 to #EEEEEE.


.submit class


button element


Change both to #EEEEEE (or something similar, #EEE looks nice for me).

You might also want to add :focus event with the inset shadow*:




*from 0.10 to 0.25 opacity, check which looks better :D
[Kanzaki Ranko]
Typing a non-numerical string to Target Level won't give you an exception, but treat it as 1. Sent a pull request along with the PT-BR translation.
Topic Starter
Howl

API deprecation notice

I've decided recently to move thehowl.it over to my new domain, howl.moe. Since thehowl.it must be renewed in october and I don't want to waste money in a domain I'm not going to use anymore, the domain won't be renewed. How will this affect you? If you intended to use osu! level calculator normally, without the API, well, now the new domain (as stated in the OP) is http://olc.howl.moe - all links to the old domain are automatically redirected to the new one. If you used the API I highly encourage you to change the domain from where to get the data in your application from osulevelcalc.thehowl.it to olc.howl.moe. All requests are being automatically redirected with a 301 (Moved/redirect) HTTP status to the new website, although there won't be any redirect after the 11th of October, and that's why I encourage you to change the domain. If what you're using in your application isn't smart and doesn't follow 301 redirects, the data returned is still there for the time being, so it won't break your app.
Please sign in to reply.

New reply