MAME games Android problem

I made two short videos for you to see what exactly happens

BIOS boot only here

Start .cmd game file here

I will try to create a .log file thank you for your help :slight_smile:

@Duimon I managed to create a .log file here is its content here

parse path failed! path=-ui_active.

-ui_active is also a standalone MAME switch, is not needed, and is last so interpreted as the path.

Just remove it from the command line.

To be clearā€¦ your command line looks correct in your log except for the last bit.

Change

fmtmarty -cdrom "/storage/emulated/0/ROMS/Marty/Flashback.cue" -rompath "/storage/emulated/0/RetroArh/system/mame/roms" -ui_active

To

fmtmarty -cdrom "/storage/emulated/0/ROMS/Marty/Flashback.cue" -rompath "/storage/emulated/0/RetroArh/system/mame/roms"

and you should be good to goā€¦ as long as your config/MAME/fmtmarty.opt has the mame_softlists_enable = "disabled" in it.


Edit. To actually get this to work I had to switch the order of the -rompath and the -cdrom targets. I also had to encapsulate the entire MAME command by adding an extra " at the end. (The beginning would also work.)

My command isā€¦

ā€œE:/RetroArch/retroarch.exe" -L ā€œE:/RetroArch/cores/mame_libretro.dllā€ "fmtmarty -rompath ā€œE:/Temp/fmtmartyā€ -cdrom ā€œE:/Temp/fmtmarty/4d.chdā€"

Here is a shot of it running in the Mega Bezel with my FM-Towns-[STD]-[Guest]-[Monitor] preset.

@Duimon thank you for your help here is the content of my .cmd file:

fmtmarty -rompath "/storage/emulated/0/RetroArh/system/mame/roms" -cdrom "/storage/emulated/0/ROMS/Marty/Flashback.cue"

As you can see I changed the order of the commands the BIOS statement is first I removed the -ui_active command & the slashes are the right way round (/) :slight_smile:

I also disabled this option: mame_softlists_enable = "disabled"

Despite all these changes I still have a black screenā€¦ I do not know what to do ??? I would like to know why you show me the example with the Windows version of MAME libretro & not that of Android ?!

Can you do the test on your phone ? Thanks

[EDIT] the bezel is beautiful :heart_eyes:

Because I do not have an android phone. I do have an android device in the closet I may break out. I have some concerns. Mostly that @sanchezmike01 is using the ā€œ-ui_activeā€ switch, which shouldnā€™t work.

And I just wanted to show off. :grin:


Try this. Create an fmtmarty.ini in your ā€œRetroarch/system/mame/iniā€ folder.

Inside have the linesā€¦

rompath                   /storage/emulated/0/RetroArh/system/mame/roms
inipath                   /storage/emulated/0/RetroArh/mame\ini

Then add the lineā€¦

mame_read_config = "enabled"

to your fmtmarty.opt file. If itā€™s still a rompath issue this should solve it. You should also be able to remove the rompath line from your command.

Please post another log with your results.

@Duimon Here are the changes I made:

  1. I unpacked the fmtmarty BIOS into a folder:

-rp /storage/emulated/0/RetroArch/system/mame/roms/fmtmarty/

  1. I converted my Flashback game from .bin / .cue to .chd & changed the argument like this:

-cdrom /storage/emulated/0/ROMS/Marty/Flashback.chd

  1. I created an fmtmarty.opt file which I copied into /storage/emulated/0/RetroArch/config/MAME/ here is its contents:

         mame_alternate_renderer = "enabled"
         mame_altres = "640x480"
         mame_auto_save = "disabled"
         mame_boot_from_cli = "disabled"
         mame_boot_to_bios = "disabled"
         mame_boot_to_osd = "disabled"
         mame_buttons_profiles = "enabled"
         mame_cheats_enable = "disabled"
         mame_cpu_overclock = "default"
         mame_lightgun_mode = "none"
         mame_mame_4way_enable = "disabled"
         mame_mame_paths_enable = "disabled"
         mame_media_type = "cdrom"
         mame_mouse_enable = "disabled"
         mame_read_config = "disabled"
         mame_saves = "game"
         mame_softlists_auto_media = "disabled"
         mame_softlists_enable = "disabled"
         mame_throttle = "disabled"
         mame_write_config = "disabled"
    

But despite all this nothing works I still have a black screen Iā€™m going crazy !!! Why is nothing working ???

Here is the latest .log file here

[EDIT] in the fmtmarty.opt file I changed the line mame_media_type = "rom" in mame_media_type = "cdrom" I donā€™t know if this is a good idea ?!

@haojiezhu why did you delete your posts ??? I would like to try your method thank you !

You need mame_boot_from_cli = "enabled"

Ui_active may not be necessary for this system, but on Android it does work on the ini file or cmd fileā€¦I do it via batch file so I keep it always in there just in caseā€¦sord M5 is such a system that if u donā€™t have it there, u will need to press scroll lock on the keyboard beucase the tab button wonā€™t workā€¦also not all android keyboards have the scroll lock buttonā€¦

Makes sense since there is no keyboard.

Interesting then that the first log showed an error related to it. Iā€™m starting to wonder if something else is causing an issue, this really shouldnā€™t be this hard.

I just unpacked my shield (recently moved)ā€¦I have that and a ton of non arcade games working on mame for RetroArch android including systems with no xmlā€¦thats another thingā€¦someone said to him to make sure u have an xmlā€¦no need for that with cmd filesā€¦I rename all my roms to insure a pacman from a computer system wonā€™t load with a bezel from the arcsde rom because they have the same identical rom nameā€¦between that and ppl stealing ur work and selling it, then saying they were the master mind of itā€¦lmaoā€¦the only roms I donā€™t rename are mame arcade romsā€¦literally everything else is renamed ā€¦u may think itā€™s too much work but itā€™s done in seconds with apps and batch scripts

All that sounds very impressive. Do you know the command to boot from a floppy and then run a CD?

One thing the hash XML does is automatically take care of that sort of thing. While the command line can greatly increase the playable rom count, it can also be limiting.


That being saidā€¦ I have no idea why the OP is having such a hard time getting this to run.

With enough patience I have never failed to get a non-arcade system up and runningā€¦ if it will run at all.


Not at all. I have hundreds of hours into my HTPC. It only needs to be done once and you may as well do it right.


I would really appreciate your insight to the bootable floppy >>> cdrom floppy thing.

Why donā€™t you give an example of the contents of your .cmd files ? No one replied to my last message ? I posted the .log & showed the latest changes I made but no one responded ? What must I do now ?

I replied. :innocent:

I think you have this disabled in your opt file. You need it enabled to use the command line.

(cli = command line)

@Duimon I just tried I activated the option in my two .opt files it doesnā€™t change anything I always have a black screenā€¦ itā€™s hopeless !

1 Like

I know it seems that way, but if someone else has it working then there is always hope. Can we see the latest log?

@sanchezmike01 Can I see a log of a successful launch so we can compare them. Iā€™m sure it has something to do with command line syntax. Questionā€¦ are you also launching a *.cmd as content?

U have to understand, I donā€™t mind helping outā€¦but I have a wife and 2 small girls and I work from 6am till 9pm 6 days a weekā€¦so if I didnā€™t post up , itā€™s most likely because I been out at work all day and when I unpacked my nvidia shield, my wife called me to spend time with meā€¦I donā€™t have the luxury of having tons of free personal timeā€¦I wake up at 430 everyday and try to be in bed early to do it all over again the next dayā€¦I just canā€™t load things up and then record and post it on hereā€¦sounds easy but when your family hasnā€™t seen u all day and want to spend time u have to make that executive decision to put the electronics down and be a husband and a father

As far as cmd files, all my mame systems including arcade games are launched via cmd filesā€¦even my chds are launched via cmd directlyā€¦meaning no zips files or subfoldersā€¦all my chds are loose in 1 folder with the cmd files in that same 1 folderā€¦as far as chds and disks, I wrote it all on the cmd fileā€¦so it will be something like -flop game name then the location and in the same file -cdrom game name and locationā€¦and it loads fineā€¦everything I write on the cmdā€¦like acorn archimedesā€¦it must have a specific bios written down to properly loadā€¦I also write diwn any auto boot commands so it can load directly instead of me having to do extra work to get it to loadā€¦the only physical part I have to do is press F2 for tape play

1 Like

Cool. When you have time Iā€™d like to see a log of a CHD successfully running so I can get a look at how the log shows the command line.

Please, take your timeā€¦ no one has a deadline here. :grin:

1 Like

Good evening friends ! I have very good news :slight_smile:

I started from scratch on my girlfriendā€™s phone & I did a lot of tests to understand betterā€¦ here is the summary of these tests :slight_smile:

I finally managed to launch the FM Town Marty console with my Flashback game !!! I will detail the procedure so that it can also be useful to other people.

Here is the content of my Flashback.cmd file which allows the launch of the game:

fmtmarty -rp "/storage/emulated/0/RetroArch/system/mame/roms/" -cdrom "/storage/emulated/0/ROMS/Marty/Flashback.chd"

  1. It is very important to declare the BIOS first on the command line. I tried to declare it in second position it does not work !

  2. It is very important to respect the case -> example: /RetroArch/ & not /Retroarch/

  3. It is necessary to declare the paths in quotes (" ") otherwise it will not work.

  4. The .cfg .opt .xml files are not necessary I deleted them voluntarily to test it works all the same.

  5. There is no need to unzip the BIOS just declare the correct path to .zip file

  6. For Marty console Flashback game in .cue / bin format works as well as .chd format

  7. It is not necessary to activate the CLI (command line) in the MAME.cfg file it works without.

I also tried another machine that I really like: the TRS-80 Color Computer. Here is the content of the .cmd file that allows the launch of the Donkey King game:

cocoe -rp "/storage/emulated/0/RetroArch/system/mame/roms/" -flop1 "/storage/emulated/0/ROMS/Color Computer/Donkey King.dsk" -autoboot_delay 2 -autoboot_command loadm\"donkey\":exec\n

Now I have a question because the game launches correctly but I remain stuck at a specific placeā€¦ indeed at this place it is necessary to press the space key on the Color Computer keyboard & on MAME libretro it does not there is no virtual keyboardā€¦ how to proceed ?!

Is there a way to have a virtual keyboard on RetroArch ?!

Greetings :slight_smile:

1 Like