spycat Posted February 23 Share Posted February 23 I recently came across this https://github.com/Bob-Z/RandoMame So far I've tested out the electron_cass.lua with my electron_cass softlist games and things work ok. Just for initial testing I added the electron_cass.lua file to my MAME root folder. I set my Default Command-Line Parameters for tapes as electron -autoboot_delay 2 -autoboot_script electron_cass.lua -cass 2 1 Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted February 23 Share Posted February 23 Nice find!! Thanks! I tested the same and it worked great! I subsequently tested putting the lua script into its own folder. I created a folder under MAME called softlists and placed the script in there. Then for the command line, just added the folder name and a / in front of the script. electron -autoboot_delay 2 -autoboot_script softlists/electron_cass.lua -cass 1 1 Quote Link to comment Share on other sites More sharing options...
spycat Posted February 23 Author Share Posted February 23 They are useful to have, and some could be either re-used or altered to make luas for systems that don't have them. I'll go with a subfolder too, to keep root clutter down. Quote Link to comment Share on other sites More sharing options...
spycat Posted March 3 Author Share Posted March 3 An autoboot lua script for use with MAME's mtx_cass software list games. The attached mtx_cass.zip contains the lua script. Unzip and move the mtx_cass.lua to where you keep your other lua scripts. My lua scripts are in a folder within MAME called scripts. If you keep your's in a different location, then alter the parameters below to suit. LaunchBox Default Command-Line Parameters: mtx512 -autoboot_delay 1 -autoboot_script scripts/mtx_cass.lua mtx_cass.zip Quote Link to comment Share on other sites More sharing options...
spycat Posted October 4 Author Share Posted October 4 Two lua scripts for use with Philips VG 5000 cassette (vg5k software list) emulation with MAME via LaunchBox. RandoMame's vg5k.lua plays the tape at normal speed and sends RUN once loaded. The two luas in the attached zip use tape fast loading; one is for games that require RUN once loaded, and the other is for games that don't. See the ReadMe in the attached zip for more information. vg5kLuaScripts.zip 2 Quote Link to comment Share on other sites More sharing options...
spycat Posted October 19 Author Share Posted October 19 Using RandoMame's svi318_cass.lua script with the Spectravideo svi318_cass software list / Spectravideo No-Intro set with MAME via LaunchBox. This lua handles BASIC and Binary games. My LaunchBox Default Command-Line Parameters (lua is in my MAME/scripts folder) svi328 -autoboot_delay 6 -script scripts/svi318_cass.lua -cass The lua worked fine with the vast majority of BASIC games. With a handful of BASIC games, however, the lua's sending of RUN arrived too soon and corrupted on screen, causing tape loading to fail. There's a custom lua in the attached zip for those games. I met two issues when using the lua with Binary games. The first issue was with the lua itself and affected the loading of all Binary games. Editing the lua and changing emu.keypost('BLOAD "CAS:",R\n') to read emu.keypost('BLOAD"CAS :",R\n') fixed that issue for me. The second issue (after fixing the first one) was not a lua one as such and affected some but not all Binary games. By default, the lua sends CLOAD which expects a BASIC game. A Binary game, by right, should reject CLOAD with a Device (I/O) error, causing the lua to rewind the tape and switch to using BLOAD. Some Binary games, however, fail to flag an error and so the lua, being none the wiser, continues with CLOAD. There's a custom lua in the attached zip for those games. The svi318 and svi328 systems use the same software list / No-Intro set, and the luas (RandoMame's and customs) are compatible with both. I came across the odd game that didn't work properly with svi318 but did with svi328, nothing to do with the luas. So I use svi328. svi318CustomLuas.zip 2 Quote Link to comment Share on other sites More sharing options...
launchretrogirl2562 Posted October 20 Share Posted October 20 (edited) On 3/3/2024 at 11:25 PM, spycat said: An autoboot lua script for use with MAME's mtx_cass software list games. The attached mtx_cass.zip contains the lua script. Unzip and move the mtx_cass.lua to where you keep your other lua scripts. My lua scripts are in a folder within MAME called scripts. If you keep your's in a different location, then alter the parameters below to suit. LaunchBox Default Command-Line Parameters: mtx512 -autoboot_delay 1 -autoboot_script scripts/mtx_cass.lua mtx_cass.zip 472 B · 5 downloads Does the mtx need a bios file and where do I put it? Do the roms need to be put in a special directory like mtx512 or other? By following the default command line LaunchBox Default Command-Line Parameters: mtx512 -autoboot_delay 1 -autoboot_script scripts/mtx_cass.lua I can't get the roms to boot? Edited October 20 by launchretrogirl2562 Quote Link to comment Share on other sites More sharing options...
sundogak Posted October 20 Share Posted October 20 (edited) 1 hour ago, launchretrogirl2562 said: Does the mtx need a bios file and where do I put it? Do the roms need to be put in a special directory like mtx512 or other? By following the default command line LaunchBox Default Command-Line Parameters: mtx512 -autoboot_delay 1 -autoboot_script scripts/mtx_cass.lua I can't get the roms to boot? No, don't move anything around. Your MAME setup and Software List sets need to all be working before using the scripts. You can test your MAME setup outside LB which helps identify issues as can see the command window as shown below: Assumptions on using below test line: 1) you are launching command window in MAME root directory outside of LB 2) using Gold Mine as a test game 3) your LUA file is in directory ...\MAME\scripts\mtx_cass.lua mame mtx512 goldmine -autoboot_delay 1 -autoboot_script scripts/mtx_cass.lua If doesn't work in command line won't work in LB. The command errors will likely give you insight on issue. A few possible reasons to double check if errors in command above (see snaps below): If the command above works and launched game then likely means you had setup MAME within LB using auto setup so you will need to alter the path in LB to include your Software List directory rompath or there is some specific issue with naming in LB. Helpful then if you have screen shots of your LB setup to help troubleshoot (MAME emulator settings, example game entry settings). If command doesn't work then likely one of these: your MAME.ini isn't pointing to your directory where your Software List files are located and set in the "rompath" entry in the INI file. This should point to the root Software folder. It will be the folder that contains: ...\MAME\software\mtx_cass\goldmine.zip for purpose of test above. you don't have a complete MAME roms Arcade set and/or the MAME files are not named properly as they will have the bios and needed files to run the MTX emulation you do not have a correct/current set of XML files in your MAME Hash directory: ..\MAME\hash\mtx_cass.xml you haven't downloaded the Software List Mame set which is separate and an addon to the MAME rom arcade files set (need both sets). Edited October 20 by sundogak added screen shots 2 1 Quote Link to comment Share on other sites More sharing options...
spycat Posted October 20 Author Share Posted October 20 The required bios is mtx512.zip There are 3 associated devices mtx_cfx.zip mtx_sdxbas.zip mtx_sdxcpm.zip I don't use any of these devices and the cassette games work ok. Not sure, but these devices may be related to the flop and hdd softlists. 1 Quote Link to comment Share on other sites More sharing options...
launchretrogirl2562 Posted October 21 Share Posted October 21 8 hours ago, sundogak said: No, don't move anything around. Your MAME setup and Software List sets need to all be working before using the scripts. You can test your MAME setup outside LB which helps identify issues as can see the command window as shown below: Assumptions on using below test line: 1) you are launching command window in MAME root directory outside of LB 2) using Gold Mine as a test game 3) your LUA file is in directory ...\MAME\scripts\mtx_cass.lua mame mtx512 goldmine -autoboot_delay 1 -autoboot_script scripts/mtx_cass.lua If doesn't work in command line won't work in LB. The command errors will likely give you insight on issue. A few possible reasons to double check if errors in command above (see snaps below): If the command above works and launched game then likely means you had setup MAME within LB using auto setup so you will need to alter the path in LB to include your Software List directory rompath or there is some specific issue with naming in LB. Helpful then if you have screen shots of your LB setup to help troubleshoot (MAME emulator settings, example game entry settings). If command doesn't work then likely one of these: your MAME.ini isn't pointing to your directory where your Software List files are located and set in the "rompath" entry in the INI file. This should point to the root Software folder. It will be the folder that contains: ...\MAME\software\mtx_cass\goldmine.zip for purpose of test above. you don't have a complete MAME roms Arcade set and/or the MAME files are not named properly as they will have the bios and needed files to run the MTX emulation you do not have a correct/current set of XML files in your MAME Hash directory: ..\MAME\hash\mtx_cass.xml you haven't downloaded the Software List Mame set which is separate and an addon to the MAME rom arcade files set (need both sets). I had to change my emulator settings for it to work. But your detailed explanation helped me cause I also forgot to add the path to the rompath list in mame. So thanks again. And include the bios ofcourse. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.