Re: [Ohrrpgce] SVN: james/13444 Add nightly build for ohrrpgce web/emscripten port
On Fri, Dec 29, 2023 at 8:55 PM Ralph Versteegen wrote: > > > On Sat, 30 Dec 2023 at 12:37, James Paige > wrote: > >> On Fri, Dec 29, 2023 at 6:07 PM Ralph Versteegen via Ohrrpgce < >> ohrrpgce@lists.motherhamster.org> wrote: >> >>> Hurrah! >>> Come to think of it, we probably want to upload both as a .zip, for the >>> Distribute menu, and as plain files in a subdirectory so that people can >>> run it without starting a server themselves. It would be nice if there were >>> some way for people to upload just an .rpg somewhere and run it with the >>> web port of the engine (or even better, if they could point it at a .zip, >>> but it looks like this will require a zip parser implemented in JS). But >>> I'm not sure whether you would want to host that traffic. >>> >> >> Yes, I think at some point I'll try hosting a web-playable version >> somewhere on hamsterrepublic.com (or maybe I'll finally repurpose >> ohrrpgce.com to do something more interesting than a redirect) >> >> I'll wait until we are further along and things are better tested though. >> Save games will have to be resolved too. And in addition to uploading >> games, it would be nice to be able to download them too (for custom) and I >> don't know if anything can be done about hspeak :shrug: :D >> > > I think we have three options for hspeak on the web: compile hspeak as a > library and link Custom to it (have euc produce .c to feed to emscripten; > but I have no idea what's involved in creating a library from euphoria); or > embed micropython and run physpeak in it (physpeak still needs work, in > particular to add error messages. In either case, we need to emulate a > terminal for display), or even host hspeak on a server and use an http > request to send scripts to compile. > It looks like OpenEuphoria development isn't dead, they're still talking > about releasing 4.2 some time soonish with ARM64 support. > Cool, good to know we have some options to look forward to on the hspeak front :D > >> >>> Is it correct that emscr.sh is called without -sb to skip rebuilding the >>> image every night? >>> >> >> Yes, that is correct. I want to be able to make changes to the Dockerfile >> without having to do manual steps on the machine that has the cron job >> scheduled. >> > > Is that expensive, or is it cached ? > Nah, its cheap. Docker caches layers, so when a Dockerfile changes, only the layers related to commands at and after the first changed line have to be rebuilt. So the rebuild generally has nothing to do. I'll probably change the Linux nightly builds to be docker-based soon also. They are SO much faster and easier to maintain than the VMs Oh, also, looks like we have an emscripten-only crash in battle mode [image: image.png] > >> >> >>> >>> On Sat, 30 Dec 2023 at 10:29, subversion--- via Ohrrpgce < >>> ohrrpgce@lists.motherhamster.org> wrote: >>> james 2023-12-29 13:29:25 -0800 (Fri, 29 Dec 2023) 50 Add nightly build for ohrrpgce web/emscripten port --- U wip/nightly/check_nightly_wip.sh U wip/nightly/ohr_nightly_vm.sh A wip/nightly/wrap-nightly-web.sh ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org >>> ___ >>> Ohrrpgce mailing list >>> ohrrpgce@lists.motherhamster.org >>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org >>> >> ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
Re: [Ohrrpgce] SVN: james/13444 Add nightly build for ohrrpgce web/emscripten port
On Sat, 30 Dec 2023 at 12:37, James Paige wrote: > On Fri, Dec 29, 2023 at 6:07 PM Ralph Versteegen via Ohrrpgce < > ohrrpgce@lists.motherhamster.org> wrote: > >> Hurrah! >> Come to think of it, we probably want to upload both as a .zip, for the >> Distribute menu, and as plain files in a subdirectory so that people can >> run it without starting a server themselves. It would be nice if there were >> some way for people to upload just an .rpg somewhere and run it with the >> web port of the engine (or even better, if they could point it at a .zip, >> but it looks like this will require a zip parser implemented in JS). But >> I'm not sure whether you would want to host that traffic. >> > > Yes, I think at some point I'll try hosting a web-playable version > somewhere on hamsterrepublic.com (or maybe I'll finally repurpose > ohrrpgce.com to do something more interesting than a redirect) > > I'll wait until we are further along and things are better tested though. > Save games will have to be resolved too. And in addition to uploading > games, it would be nice to be able to download them too (for custom) and I > don't know if anything can be done about hspeak :shrug: :D > I think we have three options for hspeak on the web: compile hspeak as a library and link Custom to it (have euc produce .c to feed to emscripten; but I have no idea what's involved in creating a library from euphoria); or embed micropython and run physpeak in it (physpeak still needs work, in particular to add error messages. In either case, we need to emulate a terminal for display), or even host hspeak on a server and use an http request to send scripts to compile. It looks like OpenEuphoria development isn't dead, they're still talking about releasing 4.2 some time soonish with ARM64 support. > >> Is it correct that emscr.sh is called without -sb to skip rebuilding the >> image every night? >> > > Yes, that is correct. I want to be able to make changes to the Dockerfile > without having to do manual steps on the machine that has the cron job > scheduled. > Is that expensive, or is it cached ? > > > >> >> On Sat, 30 Dec 2023 at 10:29, subversion--- via Ohrrpgce < >> ohrrpgce@lists.motherhamster.org> wrote: >> >>> james >>> 2023-12-29 13:29:25 -0800 (Fri, 29 Dec 2023) >>> 50 >>> Add nightly build for ohrrpgce web/emscripten port >>> --- >>> U wip/nightly/check_nightly_wip.sh >>> U wip/nightly/ohr_nightly_vm.sh >>> A wip/nightly/wrap-nightly-web.sh >>> >>> ___ >>> Ohrrpgce mailing list >>> ohrrpgce@lists.motherhamster.org >>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org >>> >> ___ >> Ohrrpgce mailing list >> ohrrpgce@lists.motherhamster.org >> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org >> > ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
Re: [Ohrrpgce] SVN: james/13444 Add nightly build for ohrrpgce web/emscripten port
On Fri, Dec 29, 2023 at 6:07 PM Ralph Versteegen via Ohrrpgce < ohrrpgce@lists.motherhamster.org> wrote: > Hurrah! > Come to think of it, we probably want to upload both as a .zip, for the > Distribute menu, and as plain files in a subdirectory so that people can > run it without starting a server themselves. It would be nice if there were > some way for people to upload just an .rpg somewhere and run it with the > web port of the engine (or even better, if they could point it at a .zip, > but it looks like this will require a zip parser implemented in JS). But > I'm not sure whether you would want to host that traffic. > Yes, I think at some point I'll try hosting a web-playable version somewhere on hamsterrepublic.com (or maybe I'll finally repurpose ohrrpgce.com to do something more interesting than a redirect) I'll wait until we are further along and things are better tested though. Save games will have to be resolved too. And in addition to uploading games, it would be nice to be able to download them too (for custom) and I don't know if anything can be done about hspeak :shrug: :D > Is it correct that emscr.sh is called without -sb to skip rebuilding the > image every night? > Yes, that is correct. I want to be able to make changes to the Dockerfile without having to do manual steps on the machine that has the cron job scheduled. > > On Sat, 30 Dec 2023 at 10:29, subversion--- via Ohrrpgce < > ohrrpgce@lists.motherhamster.org> wrote: > >> james >> 2023-12-29 13:29:25 -0800 (Fri, 29 Dec 2023) >> 50 >> Add nightly build for ohrrpgce web/emscripten port >> --- >> U wip/nightly/check_nightly_wip.sh >> U wip/nightly/ohr_nightly_vm.sh >> A wip/nightly/wrap-nightly-web.sh >> >> ___ >> Ohrrpgce mailing list >> ohrrpgce@lists.motherhamster.org >> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org >> > ___ > Ohrrpgce mailing list > ohrrpgce@lists.motherhamster.org > http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org > ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
Re: [Ohrrpgce] SVN: james/13444 Add nightly build for ohrrpgce web/emscripten port
Hurrah! Come to think of it, we probably want to upload both as a .zip, for the Distribute menu, and as plain files in a subdirectory so that people can run it without starting a server themselves. It would be nice if there were some way for people to upload just an .rpg somewhere and run it with the web port of the engine (or even better, if they could point it at a .zip, but it looks like this will require a zip parser implemented in JS). But I'm not sure whether you would want to host that traffic. Is it correct that emscr.sh is called without -sb to skip rebuilding the image every night? On Sat, 30 Dec 2023 at 10:29, subversion--- via Ohrrpgce < ohrrpgce@lists.motherhamster.org> wrote: > james > 2023-12-29 13:29:25 -0800 (Fri, 29 Dec 2023) > 50 > Add nightly build for ohrrpgce web/emscripten port > --- > U wip/nightly/check_nightly_wip.sh > U wip/nightly/ohr_nightly_vm.sh > A wip/nightly/wrap-nightly-web.sh > > ___ > Ohrrpgce mailing list > ohrrpgce@lists.motherhamster.org > http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org > ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
[Ohrrpgce] SVN: james/13453 Enable to check so that the web nightly build only runs when there are c
james 2023-12-29 15:03:15 -0800 (Fri, 29 Dec 2023) 78 Enable to check so that the web nightly build only runs when there are changes --- U wip/nightly/wrap-nightly-web.sh ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
[Ohrrpgce] SVN: james/13452 Fixes to web build nightly wrapper
james 2023-12-29 15:02:09 -0800 (Fri, 29 Dec 2023) 34 Fixes to web build nightly wrapper --- U wip/nightly/wrap-nightly-web.sh ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
[Ohrrpgce] SVN: james/13451 Remove loop-nightly.bat, it has not been used in ages
james 2023-12-29 14:34:14 -0800 (Fri, 29 Dec 2023) 53 Remove loop-nightly.bat, it has not been used in ages --- D wip/nightly/loop-nightly.bat ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
[Ohrrpgce] SVN: james/13450 Split apart ohr_nightly_vm.sh ohr_nightly_docker.sh
james 2023-12-29 14:34:11 -0800 (Fri, 29 Dec 2023) 318 Split apart ohr_nightly_vm.sh ohr_nightly_docker.sh The machine that runs the vms can't be upgraded without breaking the Mac VM, and its version of docker is too old and has a bug that blocks the emscripten docker container from building, so I need to schedule to cron job for docker containers on a different machine --- A wip/nightly/ohr_nightly_docker.sh U wip/nightly/ohr_nightly_vm.sh ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
[Ohrrpgce] SVN: james/13449 Run docker containers with --rm so the containers are cleaned up after s
james 2023-12-29 14:34:07 -0800 (Fri, 29 Dec 2023) 84 Run docker containers with --rm so the containers are cleaned up after stopping them --- U wip/docker/ohrrpgce-build-env-android/andr-oldstyle.sh U wip/docker/ohrrpgce-build-env-emscripten/emscr.sh ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
[Ohrrpgce] SVN: james/13448 Remove some unneded comments from emscripten dockerfile
james 2023-12-29 14:34:04 -0800 (Fri, 29 Dec 2023) 55 Remove some unneded comments from emscripten dockerfile --- U wip/docker/ohrrpgce-build-env-emscripten/Dockerfile ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
[Ohrrpgce] SVN: teeemcee/13447 Fix a win64 build error and some warnings (based on patch from Matthew)
teeemcee 2023-12-29 14:01:06 -0800 (Fri, 29 Dec 2023) 126 Fix a win64 build error and some warnings (based on patch from Matthew) But win64 builds don't actually work, nor can I test. --- U wip/os_windows.bas ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
[Ohrrpgce] SVN: teeemcee/13446 scons: fix a transpiledir= race condition
teeemcee 2023-12-29 14:00:58 -0800 (Fri, 29 Dec 2023) 346 scons: fix a transpiledir= race condition It seems scons runs Actions in parallel so sometimes a file Copy was run before the destination directory's Mkdir. Half-rewrote ohrbuild.copy_source_actions yet again to use a custom Action, but in future it can be deleted if we make SCons 4.5.0 a requirement. This also reduces the file copying spam. --- U wip/SConscript U wip/ohrbuild.py ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
[Ohrrpgce] SVN: james/13442 Add web build output to .gitignore
james 2023-12-29 13:29:20 -0800 (Fri, 29 Dec 2023) 34 Add web build output to .gitignore --- U wip/.gitignore ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
[Ohrrpgce] SVN: james/13445 Add a few test games to the web distrib for now
james 2023-12-29 13:29:28 -0800 (Fri, 29 Dec 2023) 47 Add a few test games to the web distrib for now --- U wip/distrib-web.sh ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
[Ohrrpgce] SVN: james/13443 Add distrib-nightly-web.sh, simple wrapper around distrib-web.sh
james 2023-12-29 13:29:23 -0800 (Fri, 29 Dec 2023) 64 Add distrib-nightly-web.sh, simple wrapper around distrib-web.sh --- U wip/distrib-linux.sh A wip/distrib-nightly-web.sh U wip/distrib-web.sh ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
[Ohrrpgce] SVN: james/13441 Add distrib-web script for emscripten build
james 2023-12-29 13:29:12 -0800 (Fri, 29 Dec 2023) 115 Add distrib-web script for emscripten build This is just a skeleton, just supports the player-only build right now --- A wip/distrib-web.sh U wip/ohrpackage.py ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
[Ohrrpgce] SVN: james/13440 Remove the localwebserver.sh because the python way is much easier.
james 2023-12-29 13:29:09 -0800 (Fri, 29 Dec 2023) 122 Remove the localwebserver.sh because the python way is much easier. (mention the python way in emsrc.sh and in README.txt) --- U wip/README.txt U wip/docker/ohrrpgce-build-env-emscripten/emscr.sh D wip/docker/ohrrpgce-build-env-emscripten/localwebserver.sh ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
[Ohrrpgce] SVN: james/13444 Add nightly build for ohrrpgce web/emscripten port
james 2023-12-29 13:29:25 -0800 (Fri, 29 Dec 2023) 50 Add nightly build for ohrrpgce web/emscripten port --- U wip/nightly/check_nightly_wip.sh U wip/nightly/ohr_nightly_vm.sh A wip/nightly/wrap-nightly-web.sh ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
[Ohrrpgce] SVN: james/13439 Enable mouse controls in turntest.rpg
james 2023-12-29 13:29:04 -0800 (Fri, 29 Dec 2023) 37 Enable mouse controls in turntest.rpg --- U wip/testgame/turntest.rpg ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org