Jump to content
LaunchBox Community Forums

Autoboot Command / Script for MAME SWL (Computer Systems)


SiriusVI

Recommended Posts

10 minutes ago, orphen92 said:

hello i have probleme with Acorn electron rom.
I have passing this argument:
image.thumb.png.1f101a76e512f91aa27d0be665fdc0e4.png

But whern i start a game i have this error:
image.thumb.png.1668a2e34d72e7aac5951e5fb5fbfe45.png

Can you help me ?

I use "mame.exe electron -cart1" for electron .rom files.

 

Link to comment
Share on other sites

  • 1 month later...
On 5/6/2020 at 1:02 AM, SiriusVI said:

Tandy Radio Shack Color Computer

flop

 

 

flop (Pac-Man)

coco3 -autoboot_delay 2 -autoboot_command run\"pacman\"\n -flop1

 

flop (Donkey Kong)

coco3 -autoboot_delay 2 -autoboot_command run\"donkey\"\n -flop1

 

flop (Donkey Kong Remix)

coco3 -autoboot_delay 2 -autoboot_command loadm\"dkremix\":exec\n -flop1

 

There is a long wait (over 1 minute) before Donkey Kong Remix opens!

 

flop (Assembly Demo)

coco3 -autoboot_delay 2 -autoboot_command loadm\"asm-demo\":exec\n -flop1

or

coco3 -autoboot_delay 2 -autoboot_command loadm\"asm-auto\":exec\n -flop1

Thank you so much for this!  I wanted to loop back around and let you know you were instrumental in giving me the nudge I needed to implement coco autoboot in Batocera Linux! (I don’t actively use LaunchBox and I think it’s pretty awesome how knowledgeable y’all are of all these command line options in this crew!)

I’ve run into the next step of the evolution of the code I wrote - what do y’all do to autoboot software that is either:

  1. on two sides of a cassette (so you need to “turn over” or technically choose a second cassette image file) or
  2. multiple disks (that you need to swap when prompted - this is particularly true of OS/9 software I found out today)

I reviewed the rest of this thread and didn’t see any chat related to the File Manager though there were a few mentions of MAME’s lua scripting so wondering if this is the key?

If anyone has been successful automating a disk change in MAME, I’d love to hear how ya did it!

 

Link to comment
Share on other sites

  • 4 months later...

Does somebody has an overall working command line for the Exelvision EXL100 system?
The first one loading carts is fine, but when loading tape software (only WAV are supported, no k7) with EXELBASIC I always get a typing error after the first letter L.

The tape loading command for EXL100 is:

Quote

LOAD"1"
((ENTER))
ESC
((F2 for playing tape + INSERT key to speed up the loading time))
RUN


Here's my command-line, which is all fine until the autoboot_command:

Quote

exl100 -skip_gameinfo -cart exl100 -skip_gameinfo -cart exelbas autoboot_command "load”1“\n" -autoboot_delay 3 -cass

Thanks for you help!

Edited by balduin
Link to comment
Share on other sites

56 minutes ago, balduin said:

Does somebody has an overall working command line for the Exelvision EXL100 system?
The first one loading carts is fine, but when loading tape software (only WAV are supported, no k7) with EXELBASIC I always get a typing error after the first letter L.

The tape loading command for EXL100 is:


Here's my command-line, which is all fine until the autoboot_command:

Thanks for you help!

dash autoboot_command  (no space between)

-autoboot_command

 

Link to comment
Share on other sites

Thanks, but still nothing more than the first letter L and then Err22:

Quote

exl100 -skip_gameinfo -cart exl100 -skip_gameinfo -cart exelbas -autoboot_delay 3 -autoboot_command "load”1“\n" -cass


After pressing Enter you also would need to press the ESC key (\n) on the EXL100 so that the tape can be read but MAME would be needed to be in keyboard focus mode otherwise you exit MAME ;).

My question here: Are there also commands for ESC, SHIFT etc?

Edited by balduin
Link to comment
Share on other sites

2 hours ago, balduin said:

Thanks, but still nothing more than the first letter L and then Err22:


After pressing Enter you also would need to press the ESC key (\n) on the EXL100 so that the tape can be read but MAME would be needed to be in keyboard focus mode otherwise you exit MAME ;).

My question here: Are there also commands for ESC, SHIFT etc?

Without making attempts to fire this system up myself, when you run the system in MAME itself, are you able to load the cassettes there (along with ExelBASIC)?  If not, any further consideration is a moot point.

 

What softlist cassettes are you using?  (I didn't see any that were associated with the system.)

Your command line loads the exl100 system and then attempts to load the [non-existent] cart exl100.  Probably remove that part (-cart exl100).

To add a literal " (quote) inside the command line, I believe you just need to double it.  load""1"" 

You can't switch the ui_active mode (keyboard mode) from within an autoboot script to be able to press keyboard Esc and then UI F2 (play).  But I'm sure you can accomplish that via a LUA script.  This guy's made quite a few, though not one the EXL 100. But you could use one of them as an example and modify it for exl100.

https://github.com/Bob-Z/RandoMame/tree/main/autoboot_script

 

To find what keys are assigned for Shift and Esc on that system, [you might be able to] start it then go into the Tab menu and look at what's assigned there. 

Looking at your original how-to, you have in there ((ENTER)) and ((F2)) which appear to be literal keys.  Whereas ESC is not inside double parenthesis which would lead me to believe it's the 3 individual letter keys.  Maybe it's just semantics. But in print, they appear different.

 

To me, all this seems like a lot of work for a system that's marked as Preliminary and only has 16 carts (plus however many cassettes you may have come across). But that's just me. ;) 

Link to comment
Share on other sites

Thanks for your reply!
Loading cassettes (.wav only) in MAME is working fine when typing the LOAD"1" command manually and the Return and ESC.
I  own the real thing, so I know how it works and that's why I love to add it in LaunchBox.
I just thought to give this a chance in LaunchBox as it's very handy just putting auto-command lines.
I know that I've put "-cart" twice so that I can also run cart-only software directy, so it's not the problem here.

The issue here is that somehow it's stucking after the first letter "L" and then it skips to the return (\n) command, instead of typing LOAD"1". Maybe it needs some slowing down thingy, that it will type correctly?

Link to comment
Share on other sites

5 hours ago, balduin said:

Thanks for your reply!
Loading cassettes (.wav only) in MAME is working fine when typing the LOAD"1" command manually and the Return and ESC.
I  own the real thing, so I know how it works and that's why I love to add it in LaunchBox.
I just thought to give this a chance in LaunchBox as it's very handy just putting auto-command lines.
I know that I've put "-cart" twice so that I can also run cart-only software directy, so it's not the problem here.

The issue here is that somehow it's stucking after the first letter "L" and then it skips to the return (\n) command, instead of typing LOAD"1". Maybe it needs some slowing down thingy, that it will type correctly?

Likely it is issue with the natural keyboard emulation within the driver for this system. Autoboot requires it to work properly.  Fiddling with the command within MAME directly you can see that it doesn't matter what is after the first letter in quotes after issuing command as it won't type anything after (doesn't matter the character).  Looking at the driver code at GitHub shows comments that keyboard emulation isn't complete.  As this is prelim with many of the carts shown as not working and keyboard emulation needs to work fully for autoboot, there likely isn't much to do. I tried some crazy spacing /combos and it would type additional characters but not in way could control to type "load" (much less the 1 in quotes).  The command line should type out whatever you put in after quote, so definitely some parsing issue with the driver.  So I think you are out of luck on this one until more work done of the driver.

One note for future is that anything requiring quotes needs three quotes on each side of character so would be """1"""  (see below). 

Screenshot2024-11-15134926.thumb.png.56175efb7c3017402752acc9d9126447.png

Edited by sundogak
forgot screenshot
  • Thanks 1
Link to comment
Share on other sites

I tried to adapt a LUA script from Bob-Z (https://github.com/Bob-Z/RandoMame/tree/main/autoboot_script) to auto-run the C7420 Home Computer Module for the VIDEOPAC+.
All is working except F2 (Play), INS (Speed-Up) and the "RUN" type-command in the end.

Here's my LaunchBox commandline:

Quote

videopacp -cart1 homecomp -autoboot_script "..\..\Bios\mame\autoboot_script\c7420.lua" -cass

 

c7420.lua

Edited by balduin
Link to comment
Share on other sites

If all you want to do is load the Videopac+ Home Computer Module and auto open it's BASIC screen, use the parameters
videopacp -autoboot_delay 1 -ab "0" -cart1
and point the LaunchBox Launching entry to the homecomp zip

But if you are trying to get the Videopac Home Computer Module's BASIC to load and run a cassette then I would imagine something like
videopacp -cart1 homecomp -autoboot_delay 1 -script scripts/c7420.lua -cass
where c7420.lua is in a sub-folder of MAME called scripts - edit my location to suit yours.
And point the LaunchBox Launching entry to the cassette.

By the way, I wasn't aware that there were tape games available for the Videopac+. There's no cassette software list and I've never came across a No-Intro cassette set or similar.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...