powder.js and powder.wasm files

  • Ingot
    11th February Member 0 Permalink
    I want to create an online version of The Powder Toy that runs in a web browser. but I need the powder.wasm and powder.js files and can't seem to find them, The Script Manager and the Cracker1000 mod will be included in the online version. I would also like to make sure TPTMP works in this online version.
  • LBPHacker
    11th February Developer 0 Permalink
    These files are available on the releases page on github; you're on your own in getting them hosted though. This is not supported and documented anywhere because there's no good reason for someone to try to host them; online functionality won't work due to cross-origin isolation. Further, TPTMP uses the socket API, which is not available in emscripten builds. Also, c1k's mod is not a script; you'd have to use his codebase instead of the vanilla codebase, that is *especially* unsupported and I don't recommend trying.
  • Ingot
    11th February Member 0 Permalink
    Thanks for the info, I understand but I will still try to do it
  • ALumpOfPowderToy
    12th February Member 0 Permalink

    @Ingot (View Post)

     You can try building it yourself if you're familiar with emcmake and meson