WebMSX - The online MSX Emulator - Release 2.1

Page 1/3
| 2 | 3

By ppeccin

Champion (376)

ppeccin's picture

21-07-2016, 03:06

Hey guys, WebMSX version 2.1 is online: http://webmsx.org

Its great for displaying MSX software running inside webpages. You can launch the emulator and load ROMs, DSK and CAS images with a single link.

We have some documentation and examples on how to set the URL parameters to load and display your content. Please refer to the Project Homepage.

New in Version 2.01

- The WebMSX website can now load files from any source in the web
- Display your games/software running with a single link to the WebMSX page
- Just open or drag & drop files and links directly from any website

Features

- 9 Generic machines (MSX1, MSX2, MSX2+). NTSC 60Hz or PAL 50Hz
- PSG, SCC, SCC-I, FM-PAC and MSX-MUSIC sound
- Cross platform HTML5/JS. Runs in any Browser, tested in Chrome/Firefox
- Put games or any MSX software in webpages easily
- Run it locally with a single HTML file, no install needed
- Play Cartridge ROMs, Disk and Tape images
- Powerful Drag & Drop system for loading media files
- Load several disks at once and easily switch disks
- Files as Disk" and "ZIP as Disk" emulation
- Savestates support. Export and share Savestate files
- Keyboard, Gamepad and Mouse controllers with auto-detection
- Easily toggle extensions like SCC, PAC, DOS2, etc.
- Adjustable speed, Pause and Frame-by-frame advance
- Copy & Paste text, Screen Capture, Debug modes
- Resizable Screen, Full Screen mode

Login or register to post comments

By ren

Paragon (1888)

ren's picture

21-07-2016, 14:52

Hey, that's cool!
+ You improved the PSG emulation, right?.. Wink

I do find the way to configure/instantiate WMSX a bit sub-optimal so to say.. I'd rather see something like this (e.g.):

let wmsx = new WMSX({
    machine: 'MSX2E',
    carta: 'blabla.rom',
    screen: {
        defaultScale: 1.1,
        defaultAspect: 1.1
    },
    ...
})

But not a real biggy biggy (for now anyway).. Smile Anyway cool you added some more documentation & features Smile

There are also ways to control WMSX from JS while it's running right? Plans to add docs on that? (Well, could figure out a thing or 2 by studying the source, but anyway.. Smile) (lots of anyways in this posts... Tongue)

Cheers!

By ppeccin

Champion (376)

ppeccin's picture

21-07-2016, 16:26

ren wrote:

I do find the way to configure/instantiate WMSX a bit sub-optimal so to say... I'd rather see something like this (e.g.):

let wmsx = new WMSX({
    machine: 'MSX2E',
    carta: 'blabla.rom',
    screen: {
        defaultScale: 1.1,
        defaultAspect: 1.1
    },
})

I designed the emulador to "self instantiate" and "self start", so it can easily be put in webpages without needing JS code to set things up, start, etc. If you just want the defaults, you have nothing to do. If you need changing any settings, you can do so by setting only the needed parameters and you're ready. You don't have to worry about instantiating things... I understand your point, of course, but I think its easier the way it is! Smile

Yes I plan to continue adding documentation. We'll have a complete list with all the parameters and presets, but really we already covered 90% of the most useful options. The JS API will also be documented.

Thanks!

By ren

Paragon (1888)

ren's picture

21-07-2016, 18:51

Hey Paulo,

I understand your point, just point to wmsx.js and you're done. Though when wanting a little bit more control my proposal perhaps suits better.. And the defaults could still be as easy as (just one extra line):

<script src="wmsx.js"></script>
<script>new WMSX</script>

Btw: I seem to miss ALLOW_URL_PARAMETERS from the docs (you removed it from the example.html (some (commented out) example config in there might be nice))? And perhaps you should make clear to configure the variables AFTER wmsx.js is loaded (example can also make clear). Also the documentation in README.md seems superfluous, as all that is already in /docs. I'd recommend to keep the README to the point/snappy then Smile
+ 2.1 or 2.01? 2.01 looks like 2.0.1, perhaps confusing.. Smile

By ren

Paragon (1888)

ren's picture

21-07-2016, 18:49

..Because I can imagine cases where you might want to have WMSX loaded/ready, but not instantiated immediately.
Another option: being able to set WMSX.SELF_INSTANTIATE = false or something, so you can instantiate it yourself via the API afterwards. Being able to script WMSX events would also be nifty.. Smile

By tfh

Prophet (3016)

tfh's picture

21-07-2016, 19:05

Great, thanks for the new version. I wil update it on my site tomorrow!

By edoz

Prophet (2400)

edoz's picture

21-07-2016, 20:21

wow! this is very cool!!

By tfh

Prophet (3016)

tfh's picture

22-07-2016, 10:14

Ehm, I think there is a small problem with the new version Smile It will not load save-states any more if I feed it like this:


	WMSX.STATE_LOAD_URL = "Valkyr.zip";

Drag & Drop does work though...

/edit/
Forget it: It seems the syntax has changed in this version Smile

By ppeccin

Champion (376)

ppeccin's picture

22-07-2016, 17:19

ren wrote:

..Because I can imagine cases where you might want to have WMSX loaded/ready, but not instantiated immediately.
Another option: being able to set WMSX.SELF_INSTANTIATE = false or something, so you can instantiate it yourself via the API afterwards. Being able to script WMSX events would also be nifty.. Smile

That already exists:

AUTO_START_DELAY: 1200, // -1 = no Auto-Start, >= 0 = start then wait specified milliseconds before Power-on

By ppeccin

Champion (376)

ppeccin's picture

22-07-2016, 17:28

tfh wrote:

Forget it: It seems the syntax has changed in this version Smile

Yes, the parameter has changed to "STATE_URL" in the last version.
Sorry about that, I should have kept the old one working through a synonym.

By tfh

Prophet (3016)

tfh's picture

22-07-2016, 17:30

ppeccin wrote:
tfh wrote:

Forget it: It seems the syntax has changed in this version Smile

Yes, the parameter has changed to "STATE_URL" in the last version.
Sorry about that, I should have kept the old one working through a synonym.

LOL... No problem at all Smile It gave me a good reason to have a look at the documentation Smile

Page 1/3
| 2 | 3