JakubCisowski / lichess-chesscom-soundpack

JS userscript for Lichess.org - fixed version of mickael_r's Chess.com soundpack
2 stars 0 forks source link

No sounds in puzzle storm #1

Open Sakuya-Izayoi opened 1 year ago

Sakuya-Izayoi commented 1 year ago

There are no sounds for puzzle storm (https://lichess.org/storm) specific events such as puzzle completion or fail

JakubCisowski commented 1 year ago

There are a lot of sound events that are missing. There are roughly 32 sound files on Lichess (all sounds link), the problem is to find all equivalents from Chess.com which is not open source. I've managed to find the 9 most essential sounds for standard gameplay.

I've established that the Chess.com files are located in one of these URLs: http://images.chesscomfiles.com/chess-themes/sounds/_MP3_/default/move-self.mp3 https://www.chess.com/bundles/web/sounds/move-self.mp3

However, I don't know how to edit/explore these URLs to get all of the sounds, if someone knows how I would greatly appreciate that and edit the script immediately.

Sakuya-Izayoi commented 1 year ago

I was able to find Puzzle Rush sounds by executing this line of code on the Puzzle Rush page: [...document.getElementsByTagName("audio")].map(x => x.currentSrc) This gave me only 10 sounds, which probably does not entail all of the chess.com sounds.

https://www.chess.com/bundles/web/sounds/correct-2-15.mp3 https://www.chess.com/bundles/web/sounds/countdown-2-15.mp3 https://www.chess.com/bundles/web/sounds/incorrect-2-15.mp3 https://www.chess.com/bundles/web/sounds/result-bad-2-15.mp3 https://www.chess.com/bundles/web/sounds/result-good-2-15.mp3 https://www.chess.com/bundles/web/sounds/result-ok-2-15.mp3 https://images.chesscomfiles.com/chess-themes/sounds/_WEBM_/default/tenseconds.webm https://www.chess.com/bundles/web/sounds/opponent-correct.mp3 https://www.chess.com/bundles/web/sounds/opponent-fail.mp3 https://www.chess.com/bundles/web/sounds/opponent-incorrect.mp3

I've also tried [this](https://stackoverflow.com/questions/54609843/trying-to-find-sporadic-audio-source-in-chrome) method, but it didn't work for me unfortunately.
JakubCisowski commented 1 year ago

Another problem is, I don't think the original Lichess puzzle failure sound (there is no puzzle success sound) is not included in Lichess open source repository, so it's hard to track down which of the sounds should be replaced. Also, I don't think there are any other original sounds on puzzle storm than puzzle failure, are there?

Sakuya-Izayoi commented 1 year ago

Another problem is, I don't think the original Lichess puzzle failure sound (there is no puzzle success sound) is not included in Lichess open source repository, so it's hard to track down which of the sounds should be replaced. Also, I don't think there are any other original sounds on puzzle storm than puzzle failure, are there?

puzzle storm has a puzzle success sound, also a session end sound. these also could be found in puzzle streak and I believe in racer.

Also I found out that by setting lichess sounds to standard, I am somehow not hearing the original lichess sounds when there are replacements, and do hear them when there are none. Am I tripping or is it real?