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.


Topics - RetroMacGamer

Pages: [1]
1
As I am a macOS user this is fully operational on macOS with Attract Mode & RetroArch for macOS.  As these both applications are cross platform, with small change to the paths I would say this could also work in Windows & Linux

The concept is this;

Attract Mode from the args line can launch Bezels (RetroArch overlays), the following code will look for a "game" bezel, if not found then a "system" bezel will be loaded.

Bezels would normally need to be in the RetroArch config/emulator folder which can cause conflict eg Genesis Plus GX is used for 10 systems or more, many of these systems have the same game eg NBA Jam meaning you couldn't have multiple different bezels with the same name in this emulator folder.

Launching the bezels via Attract Mode means we can have the bezel folders wherever we want on our system.

This is a huge leap forward as with this method we can set per Attract Mode Emulator Bezels rather than per RetroArch emulator bezels, basically we have a lot more control!

The Emulator cfg would look like this;

Code: [Select]
# Generated by Attract-Mode v2.2.0-3
#
executable           /Applications/RetroArch.app/Contents/MacOS/RetroArch
args                 -L /Applications/RetroArch.app/Contents/Resources/cores/mednafen_psx_libretro.dylib "[romfilename]" --appendconfig "$HOME/Documents/RetroArch/overlays/configs/SonyPSX.cfg|$HOME/Documents/RetroArch/overlays/configs/PSX/[name].cfg"
rompath              /Volumes/Roms/psx
romext               .zip;.7z;.cue;.img;.mdf;.pbp;.toc;.cbn;.m3u
system               Sony Playstation
info_source          listxml
artwork    boxart          /Volumes/Roms/psx/boxart
artwork    cartart         /Volumes/Roms/psx/cartart
artwork    flyer           /Volumes/Roms/psx/flyer
artwork    marquee         /Volumes/Roms/psx/marquee
artwork    snap            /Volumes/Roms/psx/snap
artwork    wheel           /Volumes/Roms/psx/wheel

The args explained above;

Code: [Select]
-L /Applications/RetroArch.app/Contents/Resources/cores/mednafen_psx_libretro.dylib "[romfilename]" this part launches the rom

Code: [Select]
--appendconfig "$HOME/Documents/RetroArch/overlays/configs/SonyPSX.cfg this section loads the system bezel in this case SonyPSX and this bezel will stay if no game bezel found.

Code: [Select]
|$HOME/Documents/RetroArch/overlays/configs/PSX/[name].cfg" the last section of the args looks for a game bezel, if a game bezel cfg exists in the folder, the game bezel will load, if not then the system bezel will load.

The correct aspect ratio can also be set in the system bezel cfg (eg this is handy for odd aspect ratios or handhelds)

To understand the folder structure of the bezels well this is kinda a RetroArch thing and not Attract Mode but I guess as these bezels are launched from Attract Mode from different locations then it doesn't hurt to mention this briefly here;

We will continue to use the example above for Sony PSX

There are two config files that are used with this. The first config file “points” to a second config file. The second config file is located in the same folder as the bezel PNG file is. Retroarch can’t be told to “load a PNG”....it can only be told to “use a config file” for knowing what bezel PNG file to use.

These second config files (along with the PNG bezel files) are stored in a nominated folder.

Retroarch uses these two config files in conjunction with one another in order to know what bezel PNG file to use.

The first part of the -appendconfig points to the 1st cfg file for the system bezel it looks like this;
Code: [Select]
input_overlay = "~/Documents/RetroArch/overlays/borders/Sony-PlayStation.cfg"
That next cfg file (paired with a png) looks like this;
Code: [Select]
overlays = 1
overlay0_overlay = Sony-PlayStation.png
overlay0_full_screen = true
overlay0_descs = 0

So the first CFG file tells RetroArch to input an overlay, the second cfg file (which is paired with a png) tells RetroArch which actual actual bezel.png to load

For the per game Game Bezels which is the second half of the --appendconfig this points to a rom [name] cfg which will only trigger for that particular game and that looks like this; (This cfg name must match the rom file name)
Code: [Select]
input_overlay = "~/Documents/RetroArch/overlays/borders/GameBezels/PlayStation/Crash Bandicoot (USA).cfg"
That next cfg file (paired with a png) looks like this;
Code: [Select]
overlays = 1
overlay0_overlay = "Crash Bandicoot (USA).png"
overlay0_full_screen = true
overlay0_descs = 0

** IMPORTANT ** A few Minor settings need to be completed in RetroArch and these can be found in this part series https://www.youtube.com/watch?v=S6_XMC1pLZ4&t=1353s

Core remaps will not be affected, some core overrides may affect the display of a systems bezels.

The overlays can very easily be stopped or removed by simply renaming the folder that contains the cfg files

The Bezel Project are doing an amazing job creating all the thousands of individual game bezels that we can all enjoy. https://github.com/thebezelproject?tab=repositories

This new method was implemented in Hyperpie 2 for macOS with success.

Sing out if you have any further queries.

2
Attract Mode 2.41 on macOS High Sierra

I have added an emulator and display for Mac Games, this is to launch App Store Games and Games in the /Applications folder.  Mainly to have Zen Pinball 2 running from Attract Mode

I am launching them via /bin/bash and a .sh rom file with a path in it.

I can successfully launch the game but it exits back to the desktop and Attract Mode is as if minimised or in the background, when I click on Attract Mode it opens again, it seems that Attract Mode doesnt know that Zen Pinball has closed.

The Exit Emulator button doesn't work.  NB Mode Wait set to 1, if 0 then the Game launches in the background.

Does anyone have any ideas on why this is happening?  Any suggestions please are welcomed.

More details below

Mac Games.cfg

Code: [Select]
# Generated by Attract-Mode v2.4.1
#
executable           /bin/bash
args                 "[romfilename]"
rompath              /Volumes/Roms/macgames
romext               .sh
system               Mac Games
nb_mode_wait         1
artwork    boxart          /Volumes/Roms/macgames/boxart
artwork    cartart         /Volumes/Roms/macgames/cartart
artwork    flyer           /Volumes/Roms/macgames/flyer
artwork    marquee         /Volumes/Roms/macgames/marquee
artwork    snap            /Volumes/Roms/macgames/snap
artwork    wheel           /Volumes/Roms/macgames/wheel

Here is the contents of the Zen Pinball 2.sh
Code: [Select]
open -a "Zen Pinball 2"
Here is the Terminal details when running in console mode;

Code: [Select]
Alexs-iMac:~ alexmartens$ /Applications/Attract.app/Contents/MacOS/attract
Attract-Mode v2.4.1 (OSX, SFML 2.4 +SWF)
avcodec 58.18.100 / avformat 58.12.100 / swscale 5.1.100 / avutil 56.14.100 / swresample 3.1.100

Warning: Attract-Mode was compiled to look for its default configuration files in: ../config/, which is not available.
Config: /Users/alexmartens/.attract/attract.cfg
Error loading language resource file: en

*** Initializing display: 'Computers'
 - Loaded master romlist 'Computers' in 0 ms (9 entries kept, 0 discarded)
 - Constructed 2 filters in 0 ms (18 comparisons)
 ! Unexpectedly lost focus to: Unknown

***
*** WARNING: PreserveArt module version mismatch.
*** PreserveArt version installed: 1.1
*** PanAndScan expecting version: 1
***

 - Loaded layout: /Users/alexmartens/.attract/layouts/HP2-Sub-Menu/ (layout.nut)
 - Constructed 1 filters in 0 ms (12 comparisons)
 - Loaded layout: /Users/alexmartens/.attract/layouts/HP2-Main-Menu/ (layout.nut)

*** Initializing display: 'Computers'
 - Loaded master romlist 'Computers' in 0 ms (9 entries kept, 0 discarded)
 - Constructed 2 filters in 0 ms (18 comparisons)

***
*** WARNING: PreserveArt module version mismatch.
*** PreserveArt version installed: 1.1
*** PanAndScan expecting version: 1
***

 - Loaded layout: /Users/alexmartens/.attract/layouts/HP2-Sub-Menu/ (layout.nut)

*** Initializing display: 'Mac Games'
 - Loaded master romlist 'Mac Games' in 0 ms (8 entries kept, 0 discarded)
 - Constructed 2 filters in 0 ms (16 comparisons)
 - Loaded layout: /Users/alexmartens/.attract/layouts/HP2-Systems-Menu/ (layout.nut)
 - Working directory: /bin
*** Running: /bin/bash "/Volumes/Roms/macgames/Zen Pinball 2.sh"
 ! Unexpectedly lost focus to: Unknown


here is a Youtube Vide0 only goes for a few seconds of the error;

https://www.youtube.com/watch?v=0-4Y8jUU3hM

3
General / Launch Retroarch Bezels from Attract Emulator ARGs - Help Please
« on: September 09, 2018, 10:14:28 AM »
I'm trying to load a specific system bezel.cfg if the [name] bezel is not found.

I can load a specific Bezel via this args
Code: [Select]
-L /Applications/RetroArch.app/Contents/Resources/cores/nestopia_libretro.dylib "[romfilename]" --appendconfig "/Volumes/Roms/overlays/configs/NES.cfg"
I can load a bezel matching the rom name via this args
Code: [Select]
-L /Applications/RetroArch.app/Contents/Resources/cores/nestopia_libretro.dylib "[romfilename]" --appendconfig "/Volumes/Roms/overlays/configs/Nestopia/[name].cfg"
Can someone please help me how to amend the args so that if the [name] bezel is not found to then load the system bezel NES.cfg, have tried this and --appendconfig vice versa & not working.
Code: [Select]
-L /Applications/RetroArch.app/Contents/Resources/cores/nestopia_libretro.dylib "[romfilename]" --appendconfig "/Volumes/Roms/overlays/configs/NES.cfg --appendconfig "/Volumes/Roms/overlays/configs/Nestopia/[name].cfg"
Would appreciate if anyone can help, many thanks

4
General / Error, could not find default font
« on: August 25, 2018, 03:05:23 AM »
Running Attract Mode Version 2.41 macOS High Sierra, when starting Attract via Terminal, this error comes up - Error, could not find default font, I did add a line to a romlist via textedit app but upon checking it is all correct, attract fails to load/open.  Any suggestions what this error might be? 

5
General / Convert Hyperspin XML to Attract Romlist Mac OSX
« on: February 02, 2018, 09:21:20 AM »
Can some shed some light please on what the command is in terminal?

I have tried the following with no success

Last login: Sat Feb  3 03:43:47 on ttys000
Alexs-iMac:~ alexmartens$ cd .attract
Alexs-iMac:.attract alexmartens$ cd romlists
Alexs-iMac:romlists alexmartens$ attract --import-romlist Sega Dreamcast.xml Sega Dreamcast
-bash: attract: command not found
Alexs-iMac:romlists alexmartens$

Sega Dreamcast.xml is in the romlists folder, Sega Dreamcast emulator is present in emulators folder.

Many thanks

6
General / Nintendo Switch Pro Controller anyone using one?
« on: January 29, 2018, 08:08:05 PM »
OS: Mac OSX

Really strange, I am able to map the left analog stick to left (Joy0 Left) & down (Joy0 Down) but not up and right, have manually entered them into attract.cfg as Joy0 Up & Joy0 Right, no luck.  in TAB>controls unable to to select either up or right when mapping.

All buttons can be mapped just not up and right on both analog sticks

Working fine during gameplay

Joystick Mapper app no go either

Any ideas anyone?

7
OS - Mac OSX

I'm running a "Generate Favourites" shell script and it works fine, but its running in the background and Attract is frozen during the 10-20 seconds it takes to complete.

Would be nice if it can run on top of Attract Mode and show the user whats happening maybe with Terminal?  Opening the script in terminal works perfect spelling out the process until completion

Any suggestions?

These are the configs.

# Generated by Attract-Mode v2.2.0-3
#
executable           /bin/bash
args                 "[romfilename]"
rompath              $HOME/.attract/Attract Mode Setup
romext               .sh
artwork    flyer           $HOME/Attract Mode Setup/boxart
artwork    marquee         
artwork    snap            $HOME/.attract/Attract Mode Setup/snap
artwork    wheel           $HOME/.attract/Attract Mode Setup/wheel

Many thanks



Pages: [1]