Changing default setup

By animator75

Resident (33)

animator75's picture

04-04-2021, 10:15

Hi!
I have openMSX in one of my arcade cabs and I have used "Keyjoystick1.triggb lctrl" to bind left CTRL to firebutton B. This works only when starting a openMSX session from Catapult. If I start the emulator directly as my arcade frontend does the default MSX configuration is started and not the configuration I have done in Catapult. Any ideas?
Thanks!
/Tobias

Login or register to post comments

By animator75

Resident (33)

animator75's picture

05-04-2021, 12:27

Update and clarification:

using "Keyjoystick1.triggb lctrl" in the console only works if the openMSX session is started from Catapult. If I start openMSX directly and enter "Keyjoystick1.triggb lctrl" in the console I get "LCTRL" as reply but it still does not work. pressing left CTRL does nothing. If I again start openMSX from catapult Left CTRL is again registred as Button B.

By Manuel

Ascended (17786)

Manuel's picture

05-04-2021, 13:02

The command is: set keyjoystick1.trigb LCTRL

Also, this sets the configuration of keyjoystick1. That means it only has effect if keyjoystick1 (which is a virtual joystick) is actually plugged into joystick port A (or B). Probably you have set this in Catapult. If you start up openMSX without Catapult, you still have to plug keyjoystick1 into the joystick port. You can do this via the console (plug joyporta keyjoystick1) or via the OSD menu (Hardware -> Connectors -> Joystick Port A).

By animator75

Resident (33)

animator75's picture

06-04-2021, 11:03

Thanks!
Everything works now after (plug joyporta keyjoystick1).

Edit:
The (Joyporta keyjoystick1) setting does not stick, I have to redo it for every session of openMSX. I use the (save_settings) command and I assume these settings are savedto the settings.xml file but nothing is added to the settings.xml file. I added the command manually to the xml file but that did nothing.

Edit again:
I got it working by adding the commands to the frontend (Mgalaxy) script instead.

By Manuel

Ascended (17786)

Manuel's picture

06-04-2021, 13:40

"Plugs" are not settings and do not stick indeed. They are part of the state of the MSX.
Plug commands cannot be added to the settings.xml in any way, that's no use.

However, there is a script called autoplug.tcl in share/scripts which can be changed to automatically plug in certain things.
On the other hand, the method you used is of course also fine.

I suppose we should add some kind of setting on what pluggable should be auto-plugged into which connector, instead of having that in some script. I created a ticket for it: https://github.com/openMSX/openMSX/issues/1341

By animator75

Resident (33)

animator75's picture

06-04-2021, 15:03

Now that you mention it, it makes perfect sense that plugs are not "saved" Smile
Thanks for directing me to the autoplug script.

By Manuel

Ascended (17786)

Manuel's picture

07-04-2021, 00:07

You're welcome! Enjoy openMSX! Let me know if you have any further questions.

By animator75

Resident (33)

animator75's picture

07-04-2021, 11:07

Well, I do have one more question.
I want to play disk-games and these work when loaded from catapult, I use a Philips VG8235 with diskdrive for this. when starting openMSX directly or from my frontend the MSX is booted with C-bios so my question is how do I change this so that it boots for instance the Philips VG8235?

Edit:
Found the answer! Smile