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: 95
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.
 
Firefox - kopia.png

On Windows 10.
I think I solved the issue though, had to deactivate and then reactivate all my plugins.
 
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:
Suggestion:

The loading messages are appearing in plain text at the top of the screen. You might want to include a more visually appealing load message/window, and more importantly, maybe a message to note that loading assets only happens once? Or can be sped up by downloading to 'offline'?
 
There are things to improve, I agree. I will keep this in mind, thanks.

Right now I am focused on solving "memory access out of bounds" error which happens from time to time. Probably it is some issue in the C code of fallout2-ce and not related to WebAssembly itself, but still very annoying one.
 
Hi,

First of all, sincere thanks for this work! It's impressive that you've managed to put it together, and very helpful for those of us who don't have access to our computer or can't install the mod for some reason.

I wanted to draw your attention to two issues;

1) Error messages when playing the game of darts in Vault City

In Vault City, during the early game, the character is invited to play darts by two people. If you equip the darts and 'attack' the dart target, everything works fine. But if you try to use the 'aim shot' attack option and click on the dart target, you get a number of error messages. See below:

QGOu7aI.png



2) No sound on iPad

This may be just me, so take it with a grain of salt. But although the game runs fine on the iPad, I've found that there is no sound. Oddly enough, if you tap your fingers on the screen enough times, eventually you get a popup message from iOS asking if you want to remain on full screen; when I tapped 'yes', suddenly the sound worked. But when I came back to the game the following day (real life day, not in-game day), the sound was back to not working, and no amount of tapping or popup window answering made it come back. Apologies if I'm not too precise here.



All the best.
 
1) Error messages when playing the game of darts in Vault City
2) No sound on iPad
Thanks for bug reports!

I was hunting this "Memory access of bounds" error for a while. I got multiple Sentry reports with this error but I did not know how to reproduce it. Now I reproduced it locally so I hope things will move forward.

Regarding no sound on iPad: this might be some issues with WebAudio and permissions, I will try to check
 

First issue is fixed (https://github.com/fallout2-ce/fallout2-ce/pull/9), but there are still several other places with similar issues, I hope to go through them and fix too.

Regarding iPad: what iPad and ios version are you using? I do not have iPad at home but I've tried using browserstack.com and I've got sound but only after the first click in the game. I have workaround in my mind but I would like to be able to reproduce initial problem first to be sure that workaround actually does something.
 
Back
Top