beatoraja icon indicating copy to clipboard operation
beatoraja copied to clipboard

[Request] Add much needed functionality to the "Illegal BMS" dialogue

Open produKtnz opened this issue 1 year ago • 3 comments

Simple - send output of illegal song discovery to a txt file so we can actually do something about it. I added a new event i found and wanted to play and got an illegal BMS error message. Folder is HUGE, so unless ther's that one person on the planet who can identify an illegal BMS just by title, then the rest of us have NO CHANCE at fixing the issue.

produKtnz avatar May 19 '24 12:05 produKtnz

Same as #487 FYI but no resolution provided there. I poked around in sqlite and didn't see a schema for Illegal BMS, so i couldnt identify them that way either.

Stuck =|

produKtnz avatar May 19 '24 13:05 produKtnz

Illegal BMS hashes are hard-coded, you can write a script to find them

Catizard avatar Jun 25 '24 06:06 Catizard

Found this issue and was curious if I could help.

I don't know Java, but briefly poked around and see the illegal hashes listed here:

https://github.com/exch-bms2/beatoraja/blob/91d975358619fb0cb9acc3b267897a2872d29ec5/src/bms/player/beatoraja/song/SongUtils.java#L33

I am assuming these are just sha256 hashes with no extra funny business and that the "illegal" files are .bms files. I don't have access to any "illegal" files to test this.

I wrote up a quick Powershell script that should hopefully help out.

https://gist.github.com/jmctune/cbb402274dcdd5585a263ffa9f03aa02

Download the script and pass it the top level directory of your BMS directory and it'll scan all .bms files looking for hashes listed as "illegal" and output the path to them.

jmctune avatar Dec 05 '24 01:12 jmctune