Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

271
Visualizações
NWjs version of Bad Time Simulator not playing bgm

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.

about 4 years ago · Juan Pablo Isaza
3 Respostas
Responde à pergunta

0

You probably need proprietary codecs.

Easiest way:

  • Switch to the latest version supported by the prebuilts (currently 0.55.0)
    • https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases
  • Download the version you need, unzip, and place it with your NW.js files.

More details:

  • https://nwjs.readthedocs.io/en/latest/For%20Developers/Enable%20Proprietary%20Codecs/
about 4 years ago · Juan Pablo Isaza Relatório

0

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.

about 4 years ago · Juan Pablo Isaza Relatório

0

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.

  • http://dl.nwjs.io/v0.55.0/nwjs-sdk-v0.55.0-win-x64.zip

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.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda