New Online MSX emulator

Страница 44/48
37 | 38 | 39 | 40 | 41 | 42 | 43 | | 45 | 46 | 47 | 48

By ren

Paragon (1302)

Аватар пользователя ren

09-07-2016, 07:40

Theoretically it's possible to have more than 128KB installed in your SCC+ cart no? Smile

Quote:

Regarding the 60/50Hz, you are right. BUT.... In AUTO mode, I could detect if the host machine is 50Hz/60Hz and based on that launch the American/European/Japanese machines automatically.

How do you go about that? Though I suppose you could use geolocation to determine where the host is located? Smile

Quote:

Also, I must warn everybody that WMSX is very dependent on V-Synch for smooth emulation. Its almost impossible to achieve good timing inside the browser (for realtime rendering and audio) without hardware v-synch.

You're using requestAnimationFrame right? Any other tricks you're using regarding v-sync?

By abslide

Rookie (32)

Аватар пользователя abslide

09-07-2016, 08:32

I'm tested the WebMSX 2.0g. There are suggestions.

From example.html :

‹script src="http://Home_URL/wmsx.js"›‹/script›

‹script›
WMSX.ALLOW_URL_PARAMETERS = true;
‹/script›

In the script tag

WMSX.CARTRIDGE1_URL = "http://Different_URL/romimage.rom";
WMSX.CARTRIDGE1_URL = "http://Different_URL/romimage.zip";
WMSX.DISKA_URL = "http://Different_URL/dskimage.dsk";
WMSX.DISKA_URL = "http://Different_URL/dskimage.zip";
WMSX.TAPE_URL = "http://Different_URL/casimage.cas";
WMSX.TAPE_URL = "http://Different_URL/casimage.zip";

"Could not load file: http://Different_URL/romimage.zip" error message is displayed.
Can not import an image file from Different URL?

By ren

Paragon (1302)

Аватар пользователя ren

09-07-2016, 08:54

abslide: the script and your files must be on the same domain, due to the "same-origin" policy (as explained by ppeccin earlier).

Thoug I believe it should work if you setup HTTP access control (CORS) (which requires you to be able to configure the response of the server that hosts the files (disks/roms) that you want to download/run).

By tfh

Paragon (1853)

Аватар пользователя tfh

09-07-2016, 12:45

ppeccin wrote:
tfh wrote:

But for a game like Twinbee I need to add [KonamiSCC] to the filename to make it work, but when I do this end up with a working game thanks to the [KonamiSCC], but it's missing the SCC+ Sound Smile

The emulator now accepts any sized ROMs if you force the format to SCCIExpansion.

**BUT**: I have to point something out.

If you use the [SCCIExpansion], the emulator will auto-insert an SCC-I cartridge and automatically load the ROM to its memory. Much like what loaders like SCROM do.

But I think that hacked TwinBee ROM you are using is broken. It will not work in a real machine with a real SCC-I cartridge, as Manuel said. You won't get SCC-I audio.

That is because it assumes the cartridge (the SCC-I cartridge) will start in SCC-I mode, which is FALSE. The real SCC-I carts start in SCC compatibility mode. That is why you can load SCC ROM games (like SpaceManbow, for example) to the memory, and they will work. Games designed to use the SCC-I cartridge (like Snatcher) must explicitly set the correct mode of operation, which your hacked ROM does not do.

If that ROM works in other emulators, it must be because they are somehow detecing the problem and fixing it. I won't try this solution.

So, I have created a new special Mapper format, called "KonamiSCCI", which seems more adequate to me. That is exactly what your hacked ROM is... A game that uses the SCC-I mapper as if it were a hard-coded mapper cartridge that does not exist.

Please, use the new format and hint the filename with "[KonamiSCCI]" for those ROMs, and everything will work.

Peccin

That is a very good solution indeed. Thanks! I'm going to play around with it in the next few days. Thanks again for your support and thinking with us for this solution!

Btw: have you done a news submit on msx.org for v2.0?

By ppeccin

Champion (344)

Аватар пользователя ppeccin

10-07-2016, 02:03

ren wrote:

How do you go about that? Though I suppose you could use geolocation to determine where the host is located? Smile

Maybe a combination of host video frequency and browser language. Japanese + 60Hz => Japanese machine. European languages + 50Hz => European machine. Anything else => American machine.

ren wrote:

You're using requestAnimationFrame right? Any other tricks you're using regarding v-sync?

Yes, I must use requestAnimationFrame. But I can't rely on that blindly, so I have a method to detect the host native video frequency (there os no API for querying that...), and then I decide if I can trust requestAnimationFramem and if it matches the freqs I need... If not, normal timers are used, which cannot be as precise.

By ren

Paragon (1302)

Аватар пользователя ren

10-07-2016, 09:56

Quote:

Maybe a combination of host video frequency and browser language. Japanese + 60Hz => Japanese machine. European languages + 50Hz => European machine. Anything else => American machine.

Yes, browser language could work.. Smile Though as stated earlier, I figure nearly no one will use a display @50hz (well, I do at times, but do find it to be a bit of an hassle Wink), mostly, if not all, will be 60hz or higher, so I guess you can drop that idea to base this kind of detection upon that?

Still curious which ROM's you're using for the machines (of course, I could do checksum searching, but asking is easier Wink), and if I'm correct (Northern) 'American' is just a hacked European right? Someone using a real MSX in the USA uses a model that either boots at 50hz or 60hz (so I guess you can't really decide for them what is 'right'.. Wink)

By tfh

Paragon (1853)

Аватар пользователя tfh

10-07-2016, 20:48

I can't use the emulator for adding the demos to my site as they are still to glitchy, but I've had quite some fun playing games in it so I added some of my favourite games to my website: www.file-hunter.com
Just follow the Go Play MSX link. I will probably be adding some more later on. I still have to do something about the lay-out. I've used an old CSS from the MEP, and it sucks quite bad :)

By ppeccin

Champion (344)

Аватар пользователя ppeccin

11-07-2016, 03:50

tfh wrote:

Btw: have you done a news submit on msx.org for v2.0?

News submit? What is that? Smile
Can you point me in the right direction?

By ppeccin

Champion (344)

Аватар пользователя ppeccin

11-07-2016, 03:51

tfh wrote:

I can't use the emulator for adding the demos to my site as they are still to glitchy

I will contact you via PM. Could you help me figure out what is going wrong with the demos?

By ppeccin

Champion (344)

Аватар пользователя ppeccin

11-07-2016, 03:55

ren wrote:

Still curious which ROM's you're using for the machines

As WMSX does not try to emulate specific machines, I though about offering a Japanese machine (because of the characters, Kanji), and also International variations in 60Hz and 50Hz.
I used the most "generic" ROMs I could find on the web as a base. I also found some source code, which I studied to find where/how several things are initialized. Then based on that, I modified the ROMs to my needs.

Страница 44/48
37 | 38 | 39 | 40 | 41 | 42 | 43 | | 45 | 46 | 47 | 48