Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - wrybread

Pages: [1] 2 3 ... 7
1
I just finished getting Attract Mode setup on a Pi 3, so adding my notes in case they're useful to anyone.

I flashed the SD card using Raspberry Pi Imager:

https://www.raspberrypi.com/news/raspberry-pi-imager-imaging-utility/

The image I flashed is retropie-buster-4.8-rpi2_3_zero2w.img.gz.

Go to options in the installer and set whatever options you want (I enable the SSH server) but make sure the username is set to "pi". I learned the hard way that using a custom username breaks Retropie and I had to reinstall.

After install run the Retropie setup utility:

Code: [Select]
sudo RetroPie-Setup/retropie_setup.sh
Go to Manage Packages -> Experimental Packages and install Attract Mode. I like to also install Mame4All (also under experimental packages) since it's a bit easier to use than the Libretro core version of MAME that is the default version, but it's optional.

The default MAME installed (mame-libretro) uses MAME 0.78 aka Mame2003 roms, Mame4All uses MAME 0.37b5 aka Mame2000 roms.

The Libretro MAME runs this command to start a ROM:

Code: [Select]
/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ mame-libretro "/home/pi/RetroPie/roms/mame-global/roms-mame2000/digdug.zip"
(Obviously adjust the path to your ROMs in the above command).

My emulator file for MAME looks like this:

Code: [Select]
executable           /opt/retropie/supplementary/runcommand/runcommand.sh
args                 0 _SYS_ mame-libretro [romfilename]

rompath /home/pi/RetroPie/roms/mame-global/roms-mame2000/

romext .zip;.ZIP

system               MAME
info_source          listxml

artwork    flyer           /home/pi/RetroPie/roms/mame-global/flyer
artwork    marquee         /home/pi/RetroPie/roms/mame-global/marquee
artwork    snap            /home/pi/RetroPie/roms/mame-global/snap
artwork    wheel           /home/pi/RetroPie/roms/mame-global/wheel
artwork    cabinet           /home/pi/RetroPie/roms/mame-global/cabinet

To get AttractMode to start automatically run retropie_setup.sh and go to Tools/configuration and tell it to start emulation station manually, then click the option to edit the config file "emulationstation" to "attract". Or I think you can edit the text file with this command: sudo nano /opt/retropie/configs/all/autostart.sh.

The only other emulator I set up is NES. It's installed by default, and runs this command:

Code: [Select]
/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ nes "/home/wrybread/RetroPie/roms/nes/roms/Super Mario Bros. (World).zip"
Obviously you'll need to upload your own ROMs and adjust the path above.

The stock "Nintendo Entertainment System.cfg" file in Attract Mode's emulator directory works out of the box.















2
General / Re: Will this work in Android?
« on: January 07, 2024, 03:19:14 PM »
Ancient thread I know. But if anyone has happened to get this working on Android, please post. In the era of $30 Android TV devices like Chromecasts and Firesticks, it would be so nice to be able to run AttractMode on Android. MAME works well on my Chromecast with Google TV HD.

3
General / Re: Bluetooth Keyboard not usable in menu
« on: January 04, 2024, 03:23:44 PM »
Ancient topic I know, but did you ever happen to find a solution to this? I'm having the same problem.

Thanks for the tip about hitting a key during bootup to force the KB to be recognized before Attract Mode launches. But as you say not ideal.

4
General / How to avoid showing commandline text when selecting a game?
« on: January 03, 2024, 10:07:11 AM »
I'm using Attract Mode on Linux, and when I select a game it briefly shows the commandline window before the rom loads. I remember there was a fix for this but I can't remember what it was or find it. Any ideas by chance?

5
Ideally I'd love to switch to a given romlist and then load a specific rom when attract mode is launched. Is there some clever way to do that?

6
General / Re: Problem running mame's hiscore plugin from attract mode
« on: June 07, 2022, 09:12:24 PM »
And it looks like another way to fix it could be to use the hiscore.ini file as described here:

http://forum.arcadecontrols.com/index.php?topic=156579.0

That's probably a better option, but I can't figure out where to put hiscore.ini. I tried the mame folder, the plugins folder, and the plugins/hiscore folder, but no joy.

Code: [Select]
hi_path /home/wrybread/test

7
Aha, got it working by modifying the plugin. On my system that's ~/.attract/mame/plugins/hiscore/init.lua.

(And note that I'm using version 1.0.0 of the hiscore plugin, current version is 1.0.1 but that doesn't work with my version of MAME).

I had to hard code the "hiscore_path". The line was:

local hiscore_path = "hi";

I changed that to:
   
local hiscore_path = "/home/wrybread/.attract/mame/high";

And now all is well in the world.

And here's an odd one though: it doesn't work if I set that path to "/home/wrybread/.attract/mame/hi", which is the normal path it would be using, since that's the subfolder of mame. That was a tough one to figure out, since it made me think hard coding the path wasn't working. If I set it to any subfolder other than "hi" it works fine.

That was a bunch of tricky issues, but I'm super psyched to have high scores finally working on my cabinet. Previously I was using "save state", which kind of works but that means the games are already running when someone starts a game, which is clunky. And it often loses the high scores anyway.


8
General / Problem running mame's hiscore plugin from attract mode
« on: June 07, 2022, 02:09:31 PM »
This is driving me nuts, I wonder if anyone has a theory. I'm running mame version 0.175 on Ubuntu, and the hiscore plugin works fine when I run it directly:

Code: [Select]
/home/wrybread/.attract/mame/mame64wry2 -rompath /home/wrybread/.attract/mame/roms -skip_gameinfo -pluginspath /home/wrybread/.attract/mame/plugins -plugin hiscore -verbose mspacman

But when I run mame from Attract Mode the plugin will run but it never loads any high scores.

Attract Mode's mame.cfg file looks like this:

Code: [Select]
executable           $HOME/.attract/mame/mame64wry2

args                 -rompath $HOME/.attract/mame/roms -skip_gameinfo -pluginspath /home/wrybread/.attract/mame/plugins -plugin hiscore  -verbose [name]
 
rompath              $HOME/.attract/mame/roms/
romext               .zip;.7z;<DIR>
system               Arcade
info_source          listxml
artwork    cabinet         $HOME/.attract/mame/cabinets
artwork    flyer           
artwork    marquee         $HOME/.attract/mame/marquees
artwork    snap            $HOME/.attract/mame/videos;$HOME/.attract/mame/snap
artwork    wheel           

When Attract Mode launches a mame ROM the command looks exactly like when I run it directly:

Code: [Select]
Config: /home/wrybread/.attract/attract.cfg

*** Initializing display: 'Every Cocktail Table Game'
 - Loaded master romlist 'cocktail_list' in 4 ms (790 entries kept, 0 discarded)
 - Constructed 2 filters in 0 ms (1580 comparisons)
 - Loaded layout: /home/wrybread/.attract/layouts/WryCadeVert/ (layout.nut)

Running: /home/wrybread/.attract/mame/mame64wry2 -rompath $HOME/.attract/mame/roms -skip_gameinfo -pluginspath /home/wrybread/.attract/mame/plugins -plugin hiscore  -verbose mspacman

But the hiscore plugin never finds any high scores. Every time I run it from AM it says:

Code: [Select]
Starting Ms. Pac-Man
hiscore: found hiscore.dat entry for mspacman
hiscore: scores read FAIL

Even though I can see it writing to the hiscore file during game play:

Code: [Select]
hiscore: write_scores
hiscore: write_scores output
hiscore: write_scores end

My theory is that it's an environmental variable that AM is setting? I tried setting the "workdir" variable in AM's mame.cfg file, but that didn't make any difference for me.

I don't imagine anyone has a theory?

(And on a sidenote, the hiscore plugin wouldn't even load until I put the full path to mame's plugin directory in AM's mame.cfg. In other words, this works: "-pluginspath /home/wrybread/.attract/mame/plugin" but this fails "-pluginspath $HOME/.attract/mame/plugin", even though they both translate to the same thing. )

9
Themes / Possible to format text in a layout? Trying to make "headers"
« on: April 12, 2021, 10:34:24 PM »
I'm trying to make section headers inside my layout's romlist. For example, in the following screenshot:



In that layout, the "Just the Classics" stays at the top of the screen, which is great. And the romlist scrolls, which is great. But I'd like to be able to have different sized entries in that romlist.

For example, maybe there would be a large item called "vertical games" in the romlist, that kind of thing. It would scroll with the other items in the romlist, but would be larger.

Is anything like that possible currently in the theme scripting?

Thanks for any help.

10
General / Re: Issue when changing screen resolution
« on: March 30, 2021, 11:41:20 AM »
Thank you! Works great.

11
General / Issue when changing screen resolution
« on: March 30, 2021, 03:13:37 AM »
I have a game that changes the screen resolution, and when I exit the game AM is no longer fullscreen. In other words:

- I start Attract Mode in 1024x768 resolution

- I launch a game that changes the screen resolution to 1680x1050

- when AM exits the game (and the screen resolution is still 1680x1050) the AM window now only takes up a small part of the screen.

I think I remember seeing a setting for dealing with this, maybe redrawing the window after exiting a game? I can't remember though.

Does anyone happen to have an idea?

Thanks for any help.

12
General / Re: Good emulator for SNES and AM?
« on: November 07, 2020, 07:56:11 AM »
That makes a lot of sense. And my experience (cabinets, since the 90s) and main use (mame) is the same as yours. But I do have one section of my cabinet for the best few games from each classic console. Fun to fire up Colecovision or NES or whatever when a friend who had that growing up is visiting and watch the memories come flooding back. And Retroarch sure is good for that, once I got past the learning curve. And once I learned to stop expecting it to behave like a normal emulator.

And yeah it was pretty mind boggling that I couldn't map controls from my second joystick encoder to player 1 controls. For example not being able to map Player 2 start to the global start button... The game pad theory makes a lot of sense, but really I think there's some design decisions that really get in that program's way. There's a lot of cases of form over function. Ultimately I can't complain, because with a little retooling (re-wiring a few buttons to use the first joystick encoder) I got great results from it. Ok maybe I can complain a little, ha.

13
Scripting / Re: Ultimarc Servo-Stik plugin for Linux
« on: November 04, 2020, 03:55:25 PM »
Awesome! And that reminds me, here's the updated Sero-Stik plugin that controls the Servo-Stik directly (as opposed to using a relay).

To use, download SetServoStik from here http://users.telenet.be/rgbcommander/ and place in the utils subfolder of Attract Mode (which you'll probably need to create. Or put it somewhere else and adjust the path below.


14
Scripting / Re: Joystick button to choose and launch a random game?
« on: November 04, 2020, 03:51:28 PM »
Thanks again rand0m. For anyone stumbling on this thread, I posted the working plugin here:

http://forum.attractmode.org/index.php?topic=3752.0

15
Scripting / Re: A plugin to choose and run a random ROM...
« on: November 04, 2020, 10:39:57 AM »
I know all that, but what does the & between the two signals you're sending do? I assume it's supposed to allow sending both signals in one line but it throws an error for me.  "bitwise op between 'null' and 'null'"

Pages: [1] 2 3 ... 7