Fallout Nevada and Sonora in the browser

roginvs

First time out of the vault
Hi all, I've made a website where people can play Fallout Nevada and Sonora from the browser.
- English version is available for both Nevada and Sonora
- No installation needed, no worries about unknown .exe files, everything is safe
- Savegames are saved into browser storage and available after reboot
- It is possible to download/upload savefiles
- It works on any device including M-based macs, mobiles, tablets.

I am using fallout2-ce and emscripten with asyncify, also I am doing asyncify for file fetching. Game files are loaded when they are requested so no need to load whole game to start playing (though it is possible to preload all to have fully offline mode).

Here it is https://fallout-nevada.ru/

You can take a look on the codebase too https://github.com/alexbatalov/fallout2-ce/compare/main...roginvs:fallout2-ce:main

Feel free to test and please let me know about any issues!
 

Attachments

  • Screenshot from 2024-11-15 16-26-42.png
    Screenshot from 2024-11-15 16-26-42.png
    1.6 MB · Views: 44
Last edited:
It's working great on my laptop Brave browser.

I tried it on safari on IOS 16.4, but it crashed on the Villa screen after the first movement.

Bug reports here? Or over on github?
 
It's working great on my laptop Brave browser.

I tried it on safari on IOS 16.4, but it crashed on the Villa screen after the first movement.

Bug reports here? Or over on github?
Yes, I can confirm that there is an error "RangeError: Maximum call stack size exceeded." on ios 16. Thanks for the report, I will investigate
 
That was tough. It crashes on iOS but only when compiled with -O2 or -O3 flags. I changed optimization into -O1 and looks like it works fine now.

Unfortunately slightly more CPU usage but it works.

Quite weird that it worked on Chrome for me for a while, probably some difference with WebAssembly stack. I've seen similar weird issues when some undefined behavior was in place (https://github.com/alexbatalov/fallout2-ce/pull/324) so quite probably something inside fallout2-ce causes optimizer to go wild.
 
Doesn't seem to work with Firefox, at least for me. It says "загрузка", so loading. Works fine on Edge though.
 
Things are still buttery smooth on Brave, but I noticed a 'crash' to red letters once on Safari on Monterey. Sorry I don't have more detail. However, the crash only occurred after exiting the game, when the browser was trying to return from full-screen, I think. Up until then it ran well.

On my lap top Safari, 17.4, it fails to load, with the message 'Load failed undefined'

Second try on 17.4 it loaded. I may have clicked the 'Start Game' before 'web assembly' or some other pre-loading element, had loaded..

Also on Safari, the mouse is not captured well in full-screen. It leaves the edge, and appears as a regular cursor, making it difficult to click buttons on the main menu. Out of full-screen the mouse is captured correctly.
 
Last edited:
Back
Top