Newbie questions: How to make my openMSX arcade-cabinet friendly (hide messages)

By TheElectricMonk

Supporter (12)

TheElectricMonk's picture

04-06-2020, 21:38

Hello everyone, nice to be here!
I'm a long time gamer, but in my youth my computer of choice was the Amstrad CPC, and I never heard of the MSX until a few years ago. I finally took an interest in the MSX after hearing the recent five-part feature on the German "Retrokompott" podcast, and now that I've tried a few of the MSX games, I'd like to add openMSX to the collection of emulators on my home arcade cabinet.

So far I've managed to run openMSX from a batch file, load a cartridge automatically and start in fullscreen mode - easy enough. I've also managed to disable the widgets at the bottom of the screen.
Since I'm a married man with kids and sometimes need to interrupt my playtime for minor and major emergencies, I've included "save" and "load" buttons on my arcade cabinet. Using AutoHotKey I've managed to map my load/save buttons to Alt+F7 and Alt+F8, and using a few fancy batch file moves I've also managed for each game to have their own quicksave file.

However I still have two problems, and extensive googling and searching these forums didn't seem to get any results.

1. Is it possible to hide the "menu" button in the left corner on startup? I've heard some people manipulated the _osd_menu.tcl in the scripts folder, but I wouldn't know where to begin.

2. This may be related: Is it possible to hide the message that displays when a cartridge file is loaded?

I'd be grateful for any replies. Thank you!

Login or register to post comments

By TheElectricMonk

Supporter (12)

TheElectricMonk's picture

05-06-2020, 23:53

Sorry, it seems I was hasty in posting this topic. It turns out that blueMSX is better suited for my specific needs.
That's not saying blueMSX is the better emulator (I don't know enough about the MSX to make that call), just that rather than bending openMSX to force it to do something it wasn't designed to do, I'll go with the emulator that makes things easy for a casual user like me from the get-go.
Mods, feel free to delete the whole topic if you like. Sorry for any inconvenience.

By Manuel

Ascended (16625)

Manuel's picture

06-06-2020, 00:21

I can help you answer your questions on openMSX though Smile

1. Yes, by tweaking a script indeed. Look in share/scripts/osd_menu.tcl. The simplest is to change line 51 by adding && 0 as follows:

if {![regexp dingux "[openmsx_info platform]"] && 0} {

2. Are you using the menu to load a cartridge? Or when do you mean?

By TheElectricMonk

Supporter (12)

TheElectricMonk's picture

06-06-2020, 00:56

Thank you, that was enormously helpful!

Since I won't have many MSX games on my cab, I will be running each game via a batch file. This is a bit of a hassle to set up, but it gives me a way to store away the quicksave file so the next game won't overwrite it, and also to load an AutoHotKey script that changes each game's controls to my cabinet controls (Metal Gear, for example, uses F1 to F5, which will be remapped via script to my cab's buttons).

By Manuel

Ascended (16625)

Manuel's picture

06-06-2020, 01:04

Yes, but then you won't get that message, do you?

Note that instead of quicksave, you can also save to a particular filename.

Default keybindings are in share/scripts/keybindings.tcl. For instance, to save state (quickly):

        bind_default ALT+F8 savestate
        bind_default ALT+F7 loadstate

But you can also change that to:

        bind_default ALT+F8 savestate [guess_title]
        bind_default ALT+F7 loadstate [guess_title]

(which will try to guess the title of the game that's running and save under that name)

Or you put a new overriding keyboard binding in a Tcl file that you pass to openMSX on the command line in your batch file, but that's perhaps what you're already doing.

Perhaps you can share your scripts? Or a few examples? Then we can learn from them and perhaps we can improve them together to your needs.

By TheElectricMonk

Supporter (12)

TheElectricMonk's picture

06-06-2020, 01:47

I've listed my example batch file in the third and an AutoHotKey file in the fourth post here:
https://www.msx.org/forum/msx-talk/emulation/please-recommen...

I'm the first to admit it is inelegant, but it is entirely sufficient for my needs.

Again, thank you very much for your help!
I think for the moment I'm done. There are maybe ten MSX games in all that I want to play on my cab, so creating individual batch and AHK files for each isn't too much of a hassle.