osuBancho icon indicating copy to clipboard operation
osuBancho copied to clipboard

Started implementing score functionality

Open Azukee opened this issue 9 years ago • 13 comments

I am starting to implement the score functions (GetScores, Submit Scores etc) If you plan on merging these builds please give credit, it would help alot <3<3<3

Azukee avatar Mar 03 '16 18:03 Azukee

It looks good, but as I commented at the source, in my point of view, this is not advisable because it would increase the number of requests received by Bancho, but as it does not seem to be a very big problem, and scores in bancho seems a good idea for when the person does not have an apache, I will merge, but I prefer to wait a little more to merge, as it still does nothing.

Igoorx avatar Mar 04 '16 02:03 Igoorx

I can understand, just felt like already putting this here for the future. If you want me to do anything (if you're too lazy or don't understand it) go ahead and tell me about it

Azukee avatar Mar 04 '16 10:03 Azukee

I'm too lazy to make a list of friends, if you do it would help :v This problem that you mentioned in commit can be because you isn't setting the id in the response, and I had not noticed before, but you can get the parameters just using context.Request.QueryString, no need to split at all.

Igoorx avatar Mar 05 '16 00:03 Igoorx

Oh wow I'm an idiot. Also which ID do you mean?

Azukee avatar Mar 05 '16 12:03 Azukee

beatmapId, but you it put then took so I guess it's not that..

This is an old code that i used to test (in php)

2|false|648339|<?php echo $mapid; ?>|0
0
[bold:0,size:20]Artista|Titulo
9.19141
149646854|<?php echo $username; ?>|9883498|528|192|4|524|0|2|84|1|24|<?php echo $userid; ?>|1|1440523252|1
149646854|<?php echo $username; ?>|9883498|528|192|4|524|0|2|84|1|24|<?php echo $userid; ?>|1|1440523252|1

As you see, it is necessary to have 2 score or one white line and an score

Igoorx avatar Mar 06 '16 01:03 Igoorx

http://i.imgur.com/KGC1Wrf.jpg Ahahaha, wow. The dual score sending worked now. ´That took long xD. Thanks!

Azukee avatar Mar 06 '16 10:03 Azukee

do you perhaps have the code to decrypt AES that actually works? mine doesnt work and i cant figure out why

Azukee avatar Mar 07 '16 14:03 Azukee

No, but it is not difficult to make with the help of google .. I can try to help if you provide the code used

Igoorx avatar Mar 07 '16 22:03 Igoorx

If you do not have a score on the map, the first score line should be empty.

avail avatar Mar 11 '16 15:03 avail

yeah i got that. sending /n is good for that i am not working on this anymore, cant get aes to work and im too lazy to figure it out.

Azukee avatar Mar 11 '16 15:03 Azukee

It should be something like this: http://pastebin.com/D19G5sWC

most likely with rj.BlockSize = 256;

Igoorx avatar Mar 11 '16 20:03 Igoorx

Update: Submitting Scores and Getting them works flawlessly now. (time is a little messed up, but meh fair enough) (also if being forked pls give me credits)

Azukee avatar Mar 13 '16 16:03 Azukee

Nice, I'll get a better look in the commits later.

Igoorx avatar Mar 24 '16 21:03 Igoorx