Pack scanning support
------UPDATE------
Update: 04-06
I found another bug. The client will use the translated title/artist/subtitle when one is available. I had to re-index the packs/songs and modify the server code to check for that. Once I did that pack detection accuracy went up again and for me I went from 140 packs detected to 155. Please run /scan again if you haven't since this update.
------UPDATE------
------UPDATE------
Update: 04-05
There was a bug in the scanning which didn't handle packs where the unique identifier had special/foreign characters in it (utf8 string). This caused some packs to not be detected. I fixed this problem and now for me it is detecting 140 packs vs 130. I suggest everyone re-run a /scan.
------UPDATE------
------UPDATE------
Pack scanning has been enabled on the regular server.
Run /scan to scan packs. Keep in mind if your far away from the server it can take a minute or two. It must be ran from within a room.
Run /commonpacks to see what packs you have in common with others in the room. Keep in mind as of now only about half of the packs have abbreviations set so you will get comma's with no value as that means the pack has not been assigned a value yet. Also it won't display unless everyone has ran /scan (it will say which user needs to run it when you run /commonpacks).
------UPDATE------
I know this feature has been requested a lot. Originally I didn't think implementing something like this would be possible but this is kind of a hack around not modifying existing game protocol.
So after I spent some time indexing the packs I found that 1150 of the ~1300 packs listed on the site have at least one unique song in them and thus packs can be identified from the song assuming the client has not deleted songs out of their pack folders.
I added a /scan command (currently only on the beta server) that has the server go through the list to figure out what packs you have.
Currently the server just prints what packs it thinks you have.
As soon as I implement it (probably in the next few days or this weekend) the server should be able to store whac packs you have in the db (so just need to /scan when you add packs) and then a /commonpacks command you can run that will be able to check all the users in the room and print out what packs people have in common.
I would appreciate if some people would go on the beta server and test this feature out and see if it looks like the server is getting all (or most) of your packs and report back on how it worked (as well as how slow it was) by commenting on the forum.
It only took around 20 seconds to scan though 1150 packs on my home machine but being <5ms away from the server means it would go much quicker than foreign folks. When the final product is done it likely will only check the top 20-30% of the packs and not all in order to increase scan time.
The beta server as always is port 9999 so connect to:
stepmaniaonline.net:9999
Then make a room and then type /scan
Thanks!
-HoukouonchiStatistics: Posted by houkouonchi — Tue Apr 02, 2013 1:45 am
]]>