Can confirm that it works on Firefox (Windows/OSX), and Safari (OSX), both stable and nightly/developer versions, and that it doesn't work on Chrome.
On Chrome I notice an error message on the JS console: "Emulation aborted due to nested emulation timeout." This is right before the "App './DIGGER.COM' is runned" message. The "Emulation aborted" message doesn't exist in Firefox, so I guess this is the culprit. I would start with looking for the error message in the dosbox source code and see what causes it. Still strange that it only happens in Chrome, but before writing a ticket on the Chrome bug tracker I would try to find out what exactly causes the error message, and may be create a simplified test, or at least a build with more detailed error messages around that location. Cheers, -Floh. Am Montag, 2. Oktober 2017 06:52:02 UTC+2 schrieb caiiiycuk: > > Hi guys. Maybe you know I have a site with hosted emdosbox. I maintain > compiled version of emdosbox called js-dos.js and now all games that works > before not work in chrome. I have user reports about this problem, games > work in all other browsers. I write there not in v8 tracker because I don't > have idea what goes wrong, and maybe someone can point on problem. Test > project: > > Digger: > http://plnkr.co/edit/yoEIKQ?p=preview > > If you run it in any browser then game starts, but in chrome only dosbox > start but not game. I don't see any error except: > ``` > Looks like you are rendering without using requestAnimationFrame for the > main loop. You should use 0 for the frame rate in emscripten_set_main_loop > in order to use requestAnimationFrame, as that can greatly improve your > frame rates! > ``` > > but I suppose that it's warning. > > The game works as follows: > 1. borwser loads js-dos.js; it's dosbox compiled with emscripten (DOSBox > version c38b35d built with Emscripten 1.26.1 2145cc9) > 2. after that script loads archive with game and upack it (through libz) > 3. after that script mount archive in dosbox > 4. after that script run game in dosbox > > This js-dos.js is compiled with old Emscripten, because it's first > version, and I plan to release v2 in future, this version will be legacy > but should work! > > Thank you! > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
