WebMSX release 3.0

Page 2/3
1 | | 3

By gdx

Enlighted (4802)

gdx's picture

23-09-2016, 00:30

ppeccin wrote:

This is not a problem if you are doing so that we can configure the PC's joypad buttons as MSX's keys.

At the keyboard key configuration you can add joypad buttons in list or you might like the keyboard setting of SNES9X emulator for Mac. (That is to say the possibility to define mirror keys on button joystick)

ppeccin wrote:

I think you did not understand. I want to be able to change the controllers appearance dynamically. I do not want to use images.

You do not do the drawing from an image?

By Paulo Volkova

Expert (104)

Paulo Volkova's picture

23-09-2016, 02:13

Ppeccin.

In WebMSX v3.0, I think that the function "Save State" have a problem because when trying saving a game, only the State 1 (Ctrl + Alt + 1) and State 6 (Ctrl + Alt + 6) works because appears the message "State 1 Saved" or "State 6 Saved". The rest states (State 2, 3, 4, 5, 7, 8, 9 and 0) does not work.

By ppeccin

Champion (376)

ppeccin's picture

23-09-2016, 17:29

Paulo Volkova wrote:

Ppeccin.

In WebMSX v3.0, I think that the function "Save State" have a problem because when trying saving a game, only the State 1 (Ctrl + Alt + 1) and State 6 (Ctrl + Alt + 6) works because appears the message "State 1 Saved" or "State 6 Saved". The rest states (State 2, 3, 4, 5, 7, 8, 9 and 0) does not work.

That's very odd. What are you saving?

It may be a size problem. Each browser allows a limited space to save those kind of things per website or application. If you already saved a very big state in slots 1 and 6, like a state with a disk stack having several disks, that may explain. You are only able to save on slots 1 and 6 because them you "replace" the space being used, but in any other slot there is no available space! If that is the case, there is not much we can do... Its a browser limitation...

If losing states 1 or 6 is not a problem to you, try saving a small state on those slots (like just the system with no disks or carts inserted), and it will free some space! Remember you can always save the state to a file, for backups.

Please tell me if that was the case!

By giuseve

Paladin (744)

giuseve's picture

23-09-2016, 18:37

What a great Job.
Let me think...
A Web-Based emulator that runs also in local (without any internet connection)
A weblink that works as a command line
Could be useful to create an HTML file with all the entries from a folder (maybe with an image too) working as weblinks to the emulator.
Maybe a tool can create this?
Someone knows how?

By ppeccin

Champion (376)

ppeccin's picture

23-09-2016, 19:04

gdx wrote:

At the keyboard key configuration you can add joypad buttons in list or you might like the keyboard setting of SNES9X emulator for Mac.

I prefer the way I did it, because differently from a SNES, you have to use the keyboard to type real letters on a MSX emulator. That's why I made the Joykeys concept (Keyboard Joystick emulation), because that way you can turn it on/off without interfering with the real keyboard mapping for letters. Its better to configure which keys you like to press for each joystick command in Joykeys emulation in a different place, using a Joypad as reference.

gdx wrote:

You do not do the drawing from an image?

No, I do the drawing from scratch, from what I imagine of a generic Gamepad.
Didn't you see that it is a "WMSX" brand controller? LOL!
Directionals and A B buttons are real MSX buttons. The other are virtual buttons that can press keyboard keys.

By Paulo Volkova

Expert (104)

Paulo Volkova's picture

24-09-2016, 00:41

ppeccin wrote:

That's very odd. What are you saving?

It may be a size problem. Each browser allows a limited space to save those kind of things per website or application. If you already saved a very big state in slots 1 and 6, like a state with a disk stack having several disks, that may explain. You are only able to save on slots 1 and 6 because them you "replace" the space being used, but in any other slot there is no available space! If that is the case, there is not much we can do... Its a browser limitation...

If losing states 1 or 6 is not a problem to you, try saving a small state on those slots (like just the system with no disks or carts inserted), and it will free some space! Remember you can always save the state to a file, for backups.

Please tell me if that was the case!

Ppeccin.

I played the game "Athletic Land" and tried to make some savegames to test the functionality "Save State".
But as you said, the problem is because the MSX emulator runs in HTML in a browser, and it brings some limitations. I take this opportunity to congratulate you on the wonderful WebMSX project.

By ppeccin

Champion (376)

ppeccin's picture

24-09-2016, 01:55

Paulo Volkova wrote:

I played the game "Athletic Land" and tried to make some savegames to test the functionality "Save State".
But as you said, the problem is because the MSX emulator runs in HTML in a browser, and it brings some limitations. I take this opportunity to congratulate you on the wonderful WebMSX project.

Thank you!
If you're saving a game that is like just one disk, or one cartridge, you should be able to get all 12 Savestate slots working. Maybe its some other problem... I will have a look.

Which platform and which browser are you using?

By gdx

Enlighted (4802)

gdx's picture

24-09-2016, 02:32

ppeccin wrote:

I prefer the way I did it, because differently from a SNES, you have to use the keyboard to type real letters on a MSX emulator. That's why I made the Joykeys concept (Keyboard Joystick emulation), because that way you can turn it on/off without interfering with the real keyboard mapping for letters.

Of course, the SNES has no keyboard. I gave this example for the principle only. To set a mirror to the keys, it is also possible to create a contextual menu for each key.

ppeccin wrote:

Its better to configure which keys you like to press for each joystick command in Joykeys emulation in a different place, using a Joypad as reference.

If you define mirror key from the keyboard instead of the joypad it changes nothing except the logic. You emulate an MSX so it's MSX hardware that should be the basis.

ppeccin wrote:

No, I do the drawing from scratch, from what I imagine of a generic Gamepad.
Didn't you see that it is a "WMSX" brand controller? LOL!
Directionals and A B buttons are real MSX buttons. The other are virtual buttons that can press keyboard keys.

Your drawing is very pretty but it does not correspond with MSX joysticks nor my PC joystick. With a MSX joypad drawing, I would see at least the hardware that is emulated.

By ppeccin

Champion (376)

ppeccin's picture

26-09-2016, 17:20

gdx wrote:

If you define mirror key from the keyboard instead of the joypad it changes nothing except the logic. You emulate an MSX so it's MSX hardware that should be the basis.

It is! With the Joykeys you are mapping HOST KEYBOARD KEYS to MSX Joystick buttons. Not Joystick buttons to Keys, not mirror keys. Its different... You have to tell which HOST key you want to be mapped to each Joystick button on the displayed Gamepad, not the contrary. Its just 6 buttons to be mapped. It does not make sense to use a keyboard interface for this, much less a MSX keyboard.

The way you seem to prefer, you would need to display the HOST keyboard and not the MSX keyboard (which is a very big problem since there are infinite host keyboard layouts depending on country/language). You would need to add a menu for the user to choose which Joystick button to assign to each key (ugly!), you would have to display all that info mixed with the other key mappings. Very messy and confusing in my opinion...

You want to use the Joykeys? Just pass the mouse over the Joystick button you want to map and press the key on your keyboard. It can't get simpler than this.

But anyway, thanks for the suggestions!

By ppeccin

Champion (376)

ppeccin's picture

26-09-2016, 19:21

Coming next version: Mobile (phone/tablet) interface, with virtual on-screen touch controls! :-)

Page 2/3
1 | | 3