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 - RetroMacGamer

Pages: [1] 2
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
Thanks again and yes I agree the Mac Attract community is small ;)

Yes the sh script launches the app and then closes itself, once the Application that was launched is closed after some time by the user, something else seems to steal the focus or Attract doesn't know that the user has closed the application.  Clicking on Attract manually straight away resumes Attract Mode where it left off.  I guess having to avoid the click to resume Attract is the solution we want to achieve.

Any idea on what this script should you mentioned should look like?  Scripting is not my strength.  What details or files do you need from me to test this?  Anyone else have any suggestions? 

3
Thanks Keilmillerjr,  if I amend the .sh scrip that launches the game to (just to test that Terminal is not causing the issue)
Code: [Select]
open -a "Zen Pinball 2"
killall Terminal

Zen Pinball 2 does launch, Terminal is closed but still no return to Attract Mode.

I'm not sure what the other method you mentioned re the key combo to spread all windows is?  You mean F3?

Upon testing several more other Mac Applications, the verdict is when closing some applications, Attract does "wake up' and returns focus, with other Applications it loses focus and I return to the desktop, so it's hit and miss.  For example Kodi does launch and on exit returns to Attract Mode

Any other ideas or suggestions guys?  Maybe the Mac Applications can be launched a different way or more code added to the .sh script?

Appreciate any input from Mac or Linux users

4
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

5
General / Re: help switching to linux
« on: September 09, 2018, 10:23:32 AM »
Just thought I would provide another alternative, Attract + Retroarch + several standalone emulators works excellent on Mac OSX, been building a few setups for a few years with nobugs or crashes that I can recall.

6
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

7
General / Re: Error, could not find default font
« on: August 25, 2018, 03:13:28 AM »
Fixed the issue by editing attract.cfg it was showing different, now changed the default fontand font path ta as showing below.

Code: [Select]
general
language             en
exit_command         commandline
default_font         Arial
font_path            /Library/Fonts/;$HOME/Library/Fonts/

8
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? 

9
General / Re: Dolphin Emulator on MacOS
« on: February 02, 2018, 04:11:19 PM »
Remove the “-b” in command arguments

In Dolphin you need to do a few things

1. Launch Dolphin, in Options>Hotkey Settings, select your controller under “Device” then map the Exit Key, (right analog stick button works well)
2. In Options/Graphics Settings, tick Use Full Screens, tick V-Sync only if you have a low end or onboard GPU to reduce tearing.
3. In Dolphin/Configure/Interface, untick Confirm on Stop (Very Important

Happy days

10
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

11
Announcements / Re: Version 2.3 Released
« on: February 01, 2018, 01:18:31 AM »
Thanks  ;)  Happy to do any further testing

12
General / Re: Nintendo Switch Pro Controller anyone using one?
« on: January 30, 2018, 05:58:30 AM »
SOLVED

1) Updated firmware on switch controller via Nintendo Switch
2) Reduced Joystick Threshold to 20

Now working correctly

13
Announcements / Re: Version 2.3 Released
« on: January 29, 2018, 08:25:24 PM »
Thanks for the link keilmillerjr.

This is the error I'm getting, anything I can do to fix it?

Last login: Tue Jan 30 14:47:10 on ttys001
Alexs-MacBook:~ alexmacbook$ /Applications/Attract.app/Contents/MacOS/attract
dyld: Library not loaded: /usr/local/opt/sfml/lib/libsfml-graphics.2.4.dylib
  Referenced from: /Applications/Attract.app/Contents/MacOS/attract
  Reason: image not found
Abort trap: 6
Alexs-MacBook:~ alexmacbook$

Cheers

14
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?

15
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] 2