• HomeBoards
  • RulesRules
  • HelpHelp
  • WikiWiki
  • Donate

Author Topic: openMSX 0.10.0  (Read 14861 times)

Game Dude

  • Posts: 88
Re: openMSX 0.10.0
« Reply #20 on: January 11, 2014, 02:15:53 pm »


Ah, I see that I didn't include a README in the OPK.

Code: [Select]
d-pad = MSX cursors and joystick direction
A = MSX joystick trigger A
B = MSX joystick trigger B
X = MSX Shift key
Y = MSX Space key
START = toggle on-screen keyboard
SELECT = toggle on-screen menu
L / R = change volume

on-screen keyboard:
A = press key
B = hold key

on-screen menu:
A = confirm
B = cancel
Use d-pad left/right to scroll through lists one page at a time.

openMSX itself allows remapping of key bindings, by the way, but there is no GUI for it. You can script it by placing Tcl scripts in ~/.openMSX/share/scripts. This document describes all the scripting commands that are available. You can find the code that sets the default key bindings here. If you want to script openMSX, it's probably easier to test with the desktop version, which has a Quake-style OSD console (open it with F10 on PC or Cmd-L on Mac) on which you can enter commands, then move your scripts to the Zero when they work.

This is the first time I am talking about actual code so I lack experience. Can anyone make a video somewhere explaining how to do it. I kind of understand what you are saying Mth because I know about DOS commands (in fact I taught myself how to modify quotes just now by looking at the patterns in the text box. Don't judge because this is the first forum I am on), but I do not know how to code.  I just need a video demonstration on how to remap one button (if that's possible). BTW I have read the scripting instructions.

Manuel

  • Posts: 31
Re: openMSX 0.10.0
« Reply #21 on: January 11, 2014, 02:32:02 pm »
Let me first ask this: what exactly do you want to remap and why?

TimeDevouncer

  • Posts: 231
Re: openMSX 0.10.0
« Reply #22 on: January 11, 2014, 02:41:45 pm »
Let me first ask this: what exactly do you want to remap and why?

For example: menu and codec keys for Metal Gears. Yes, we can use the keyboard, but i think it's too slow.

Look behind you! A three-headed monkey!

Game Dude

  • Posts: 88
Re: openMSX 0.10.0
« Reply #23 on: January 11, 2014, 02:49:20 pm »
In Metal Gear 2 Solid Snake you have use the N and Space Key in conjunction to crawl. Using the on screen keyboard to do this is cumbersome.

Manuel

  • Posts: 31
Re: openMSX 0.10.0
« Reply #24 on: January 11, 2014, 03:09:15 pm »
So, you want to map buttons to F1-F5?

Check this doc: http://openmsx.sourceforge.net/manual/commands.html#bind

It contains this example:

Code: [Select]
Map button 8 of joystick 1 to F2-key:
bind "joy1 button8 down" "keymatrixdown 6 0x40"
bind "joy1 button8 up" "keymatrixup 6 0x40"

That 6 and 0x40 refer to row 6 of the keyboard matrix and bit 6 (0100 0000 = 0x40). This matches with the position of F-2 in the tables shown on this web page: http://map.grauw.nl/articles/keymatrix.php

So, for F3 you need 6 0x80, for F4 you need 7 0x01, and for F5 you need 7 0x02. You get what I mean now, I guess.

And button 8... I don't have a GCW Zero myself, so I don't know which buttons map to which button numbers in SDL... 8 is just an example here. If it works like the Dingoo A320, the buttons aren't mapped to joystick buttons at all, and the "joy1 button8" stuff is not applicable... then you would have to use the key name instead, like this example:

Code: [Select]
unbind TAB
bind TAB "keymatrixdown 6 0x40"
bind TAB,release "keymatrixup 6 0x40"

(On Dingoo A320, TAB is mapped to the left shoulder key. So the above code would remove the mapping to of the left shoulder key from 'decrease volume'  (see mth's README) to press F2 on the MSX.)

Yes, it's a bit complicated, I warned you :)  But I hope this helps.

For crawling in MG2:SS I think you can just press button A and B at the same time, just like on a real MSX.
« Last Edit: January 11, 2014, 03:15:58 pm by Manuel »

Game Dude

  • Posts: 88
Re: openMSX 0.10.0
« Reply #25 on: January 12, 2014, 04:54:28 am »
I never used joysticks for bluemsx and that's why I never thought about them. Thanks for the help!

Manuel

  • Posts: 31
Re: openMSX 0.10.0
« Reply #26 on: January 12, 2014, 10:01:17 am »
You're most welcome.

spinmaster

  • Posts: 24
Re: openMSX 0.10.0
« Reply #27 on: June 01, 2014, 12:23:23 pm »
There have been some improvements in the latest version of openMSX: http://sourceforge.net/projects/openmsx/files/openmsx/0.10.1/README_release-notes.txt/view

Would it be possible to port the 0.10.1 release for the GCW? Many thanks and keep up the great work!

Manuel

  • Posts: 31
Re: openMSX 0.10.0
« Reply #28 on: June 01, 2014, 02:05:26 pm »
I already asked mth, but he rightfully says that there's hardly something new that makes it worth doing a new build for GCW.

Unless you found stuff in the change list that makes you disagree! :) Let us know.

spinmaster

  • Posts: 24
Re: openMSX 0.10.0
« Reply #29 on: June 01, 2014, 08:48:44 pm »
I already asked mth, but he rightfully says that there's hardly something new that makes it worth doing a new build for GCW.

Unless you found stuff in the change list that makes you disagree! :) Let us know.

Didn't have anything specific in mind. I guess I was just thinking of better overall accuracy and performance. But if there is currently nothing worth porting, then it's OK.  ;)

DPA09

  • Posts: 101
Re: openMSX 0.10.0
« Reply #30 on: June 06, 2014, 01:29:30 am »
Pardon my ignorance here but does this emulator have a preference for the format of the program it runs - .bin, .dsk, .rom or  zip?

Manuel

  • Posts: 31
Re: openMSX 0.10.0
« Reply #31 on: June 06, 2014, 02:38:35 pm »
What do you mean exactly with 'preference'?

openMSX can run almost/practically all MSX media.

DPA09

  • Posts: 101
Re: openMSX 0.10.0
« Reply #32 on: June 06, 2014, 03:38:10 pm »
Got it.  Was just going to delete my post.

Manuel

  • Posts: 31
Re: openMSX 0.10.0
« Reply #33 on: June 06, 2014, 03:39:11 pm »
OK, but feel free to ask more questions, I'd be glad to help out.

TimeDevouncer

  • Posts: 231
Re: openMSX 0.10.0
« Reply #34 on: March 22, 2015, 10:16:44 am »
I don't understand how to make a script for remap the controls. I want this configuration:

Y --> F2
A --> F3
Start --> F4
X --> M
Y --> Space

With this configuration, we can play Metal Gear 2 without use the keyboard. But...I don't know how to do it :(.

Anyone with a finished script for remap the controls? With other script I think I can change the keys.

Sorry for my bad english :P :-[
Look behind you! A three-headed monkey!

Manuel

  • Posts: 31
Re: openMSX 0.10.0
« Reply #35 on: March 22, 2015, 01:58:10 pm »

TimeDevouncer

  • Posts: 231
Re: openMSX 0.10.0
« Reply #36 on: March 22, 2015, 10:03:13 pm »
Did you see my post here? http://boards.dingoonity.org/gcw-releases/openmsx-0-10-0/msg92636/#msg92636

Yes Manuel, I understand how to put the "key" (F1, F2, etc) with this http://map.grauw.nl/articles/keymatrix.php,

But I don't know how to name the GCW Zero buttons, sorry, I'm a total noob with this emulator ???
Look behind you! A three-headed monkey!

Manuel

  • Posts: 31
Re: openMSX 0.10.0
« Reply #37 on: March 23, 2015, 11:49:02 am »
I also don't know the button numbers, but you can just try them... See the bind commands of that post I mentioned.

fiver

  • Posts: 84
Re: openMSX 0.10.0
« Reply #38 on: March 23, 2015, 03:35:15 pm »
What do you mean exactly with 'preference'?

openMSX can run almost/practically all MSX media.

I can't figure out how to get openMSX to run .dsk files.

Manuel

  • Posts: 31
Re: openMSX 0.10.0
« Reply #39 on: March 23, 2015, 04:19:33 pm »
The default MSX machine is C-BIOS, and that is a machine with an open source BIOS. But unfortunately, it doesn't support disks yet. To run with disks, install the system ROMs of real machines and select one with a floppy disk drive in the menu. See also http://openmsx.sourceforge.net/manual/faq.html#c-bios