NWjs version of Bad Time Simulator not playing bgm

Viewed 272

I found a game online, or which the source code is here, and I wanted to mod it. However, after modding it online on Github for a while, I was being driven crazy, by the github pages load time and my browser cache, which seemed to defy all attempts at deletion.

Finally, I attempted to use NWjs to load it. But, now the audio doesn't play at all. How do I fix this?
Note, the sounds, like the ding and select noise play, but not the bgm. All of them are .ogg files.
I'm using windows 10.
Another note, I pushed my version to Github and then checked out the gh-pages, which worked. So it's probably a problem with NWjs or my computer or both.

3 Answers

I downloaded the files you linked. I put that folder inside another called "game". Made a game/package.json file with this:

{
  "main": "c2-sans-fight-gh-pages/index.html",
  "name": "example"
}

Downloaded the Win 64 SDK version of NW.js v0.55.0.

Dumped those files into the game folder so nw.exe was next to package.json and then ran it, and it worked fine. All audio played normally. I did not need to pull in the modified ffmpeg at all.

I cleared all things I could find, so ~/AppData/Local/nwjs and ~AppData/Local/<projectname> and ~/AppData/Roaming/<projectname> all got deleted, then I ran it again and it worked.

EDIT: It seems that I have to re-delete the cache files again and again before each launch. Guess I'll write a python script to handle this.

Related