I kinda assume this means something is wrong with my pathing edits in the freezify.py file.
Some general notes about my proces:
I am currently still on windows. (the forced upgrade is coming, I will attempt to move to linux but havent moved yet)
I followed the steps.
Installed Git. (I almost never use git, I dont like it.)
Installed Emscripten SDK (they unhelpfully put the ‘oh, btw if you’re on windows, use these commands instead’ a couple lines lower under a new header)
Installed Python 3.12
used the python3.12 makepanda/makepanda.py command to compile Panda3D.
It spit out a bunch of warnings below the active line in PowerShell, which was a bit confusing, didnt know it was done till I scrolled up.
It was bumpy but I’m reasonably sure I got through these steps correctly.
I’d really like to be able to build for web with panda3d, so I can stick with it. Godot is easier to build for web with but I find the mix of editor and code to be needlessly fuzzy and it makes making changes and restructuring things way more complicated.
That did work for me for the asteroids sample project that comes with panda3d. That is good. Thanks.
edit: do test if the webgame accepts inputs. I had a mysterious issue where my builds stopped accepting inputs. Havent figured out why yet, if it happens to you my best guess is maybe try rebooting? So far I’ve been unable to recreate whatever circumstances resulted in the build not accepting keyboard input in the browser.
@roadsidegravel i also am building a panda3d game and it’s quite big and complex ( it was originally for windows only ) . but something broke the task system and now not even the debugging works. i just wanted to know that if you had any similar experiences and or have any solutions or suggestions for such kinds of issues ?
With Pybag I’m getting this error now in the debug console when locally hosting:
ImportError: Could not load dynamic lib: /data/data/org.python/assets/build/env/panda3d/static.cpython-312-wasm32-emscripten.so
RangeError: WebAssembly.Compile is disallowed on the main thread, if the buffer size is larger than 8MB. Use WebAssembly.compile, compile on a worker thread, or use the flag --enable-features=WebAssemblyUnlimitedSyncCompilation.
No idea what to do about it, that flag is not a pygbag flag.
Completely unable to build for web now, bit of a bummer.
The lesson here I guess dont forget to build for web every now and then because it might stop working and it’s better to know that early.
@ rdb, there is only one installation. I dont know why it wouldnt be able to find panda3d when the other one does. I suspect it’s because something Windows is doing.