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 - Sea Monkey

Pages: [1]
1
Themes / Re: Arcadeflow theme v 9.2 [Release] Updated 30 October 2020
« on: November 08, 2020, 12:13:56 AM »
Where are the system logos stored that are used by the Displays menu? I can't seem to find them.  Also, Could you please add Neo Geo CD as a recognized console?

2
General / [Linux] Different Behavior When Launched from Terminal vs. Desktop
« on: September 13, 2020, 01:41:49 PM »
I use a script for launching PCSX2 with per-game configs and memory cards.  It works fine if attract is launched from the terminal, but when launched from the desktop, PCSX2 doesn't appear to launch at all. In order to use the script when launching Attract Mode from the desktop, in the .desktop file, I must change `Terminal=false` to true.  Can anyone explain why this is?  Here is the script in question:

Code: [Select]
#!/bin/bash
## This script makes it possible to user individual per game configuration files for PCSX2.
## Make sure your default PCSX2_ui.ini has Slot1_Filename set to default.ps2.
## This script only seems to work correctly with Attract Mode when attract is launched via terminal.
## Tested with PCSX2 1.5.0 through 1.7.0.
## Credit to parasven for the RetroPie script that was the basis for this.

pcsx2_ini="$HOME/.config/PCSX2/PCSX2-reg.ini"
game_configpath="$HOME/.config/PCSX2/game_configs"
memcardpath="$HOME/.config/PCSX2/memcards"
pcsx2_config_default="$HOME/.config/PCSX2/inis"
fullfilename=$1
filename=$(basename "$fullfilename")
title_id="${filename%.*}"
memcard="$title_id.ps2"

## If no parameter was passed, set default path and exit.
if [[ ! $1 ]]
then
        ## Exchange the configpath
        sed -i s@"^SettingsFolder=.*"@"SettingsFolder=\"$pcsx2_config_default\""@g "$pcsx2_ini"
        exit
fi

## When the config folder does not exist, create it and copy over the default inis from the default ini folder.
if [[ ! -e "$game_configpath/$title_id"  ]]
then
        ## Create folder based on the filename of the game.
        mkdir -p "$game_configpath/$title_id/"
        ## Copy over the default inis from default directory for a start.
        cp -a "$pcsx2_config_default"/*.ini "$game_configpath/$title_id/"
fi

## If game-specific memory card does not exist, then create it using blank default.
if [[ ! -e "$memcardpath/$memcard"  ]]
then
## Copy default memcard
cp "$memcardpath"/default.ps2 "$memcardpath/$memcard"
fi

echo "memcard = $memcard"

# Load relevant memory card.
sed -i "s|default.ps2|$memcard|g" "$game_configpath/$title_id/"PCSX2_ui.ini

# Launch PCSX2 using the relevant config folder.
/usr/games/PCSX2 --fullscreen --fullboot --cfgpath="$game_configpath/$title_id" "$1" &

# Close PCSX2 when Attract Mode's 'Exit Emulator' hotkey is pressed. 
cleanup() {
        echo "Caugh Signal ... terminating PCSX2."
        pkill PCSX2
        exit
}
trap cleanup INT TERM
read var
cleanup

3
Emulators / Re: How do I add PCSX2 to Attract Mode
« on: March 14, 2020, 07:51:28 PM »
Here's what I cobbled together.  attract must be launched via terminal to work correctly with this script.  Alternatively, you can modify the .desktop file and change `Terminal=false` to `Terminal=true`.

Code: [Select]
#!/bin/bash
## This script makes it possible to use individual per game configuration files for PCSX2.
## Make sure your default PCSX2_ui.ini has Slot1_Filename set to default.ps2.
## This script only seems to work correctly with Attract Mode when attract is launched via terminal.
## Works with PCSX2 1.5.0.
## Credit to parasven for the RetroPie script that was the basis for this.

pcsx2_ini="$HOME/.config/PCSX2/PCSX2-reg.ini"
game_configpath="$HOME/.config/PCSX2/game_configs"
memcardpath="$HOME/.config/PCSX2/memcards"
pcsx2_config_default="$HOME/.config/PCSX2/inis"
fullfilename=$1
filename=$(basename "$fullfilename")
title_id="${filename%.*}"
memcard="$title_id.ps2"

## If no parameter was passed, set default path and exit.
if [[ ! $1 ]]
then
        ## Exchange the configpath
        sed -i s@"^SettingsFolder=.*"@"SettingsFolder=\"$pcsx2_config_default\""@g "$pcsx2_ini"
        exit
fi

## When the config folder does not exist, create it and copy over the default inis from the default ini folder.
if [[ ! -e "$game_configpath/$title_id"  ]]
then
        ## Create folder based on the filename of the game.
        mkdir -p "$game_configpath/$title_id/"
        ## Copy over the default inis from default directory for a start.
        cp -a "$pcsx2_config_default"/*.ini "$game_configpath/$title_id/"
fi

## If game-specific memory card does not exist, then create it using blank default.
if [[ ! -e "$memcardpath/$memcard"  ]]
then
        ## Copy default memcard
        cp "$memcardpath"/default.ps2 "$memcardpath/$memcard"
fi

echo "memcard = $memcard"

# Load relevant memory card.
sed -i "s|default.ps2|$memcard|g" "$game_configpath/$title_id/"PCSX2_ui.ini

# Launch PCSX2 using the relevant config folder.
/usr/games/PCSX2 --fullscreen --fullboot --cfgpath="$game_configpath/$title_id" "$1" &

# Close PCSX2 when Attract Mode's 'Exit Emulator' hotkey is pressed. 
cleanup() {
        echo "Caugh Signal ... terminating PCSX2."
        pkill PCSX2
        exit
}
trap cleanup INT TERM
read var
cleanup

4
Emulators / Re: How do I add PCSX2 to Attract Mode
« on: March 14, 2020, 08:20:58 AM »
here

Compiling of psisotool failed in Mint 19.3, but if I could get the script to simply use the .gz filename as the folder name for the config, that would be fine.  That was actually my initial plan anyhow.

https://pastebin.com/i28yjYx4

5
Themes / Re: Arcadeflow theme v 6.7 [Release] Updated 27 February 2020
« on: March 14, 2020, 07:54:55 AM »
Went to Layout Options and...

Does it work in 6.6? From version 6.6 there's a new options system so there are no more options in the standard options page. Can you send a log obtained running
Code: [Select]
attract-console.exe > log.txt

You should not see that menu but the new options menu both using hotkeys or you can try from the layout to go in the utility menu (up) and from there layout options.

I went in through the utility menu and got the new config screen.  Thanks!

Here's the log if you still want to look.

6
Themes / Re: Arcadeflow theme v 6.7 [Release] Updated 27 February 2020
« on: February 29, 2020, 11:35:37 AM »
Extracted 6.7 archive to ~/.attract/layouts/Arcadeflow 6.7
Fired up AM
Opened Displays
Changed one of my systems to use 6.7
Went to Layout Options and...


7
Emulators / Re: How do I add PCSX2 to Attract Mode
« on: February 22, 2020, 03:50:40 PM »
I've recently migrated my primary system from Windows to Linux and would like to get per-game profiles working with PS2 via Attract Mode.  I previously accomplished this by using RocketLauncher with the PCSX2 AutoHotkey module.  I'm not much of a coder, and I'm sure someone else could accomplish porting this over to a bash script that could be used in place of launching PCSX2 directly.  Anyhow, here's the PCSX2 module for RocketLauncher if anyone wants to take a shot at it.


8
Emulators / Re: How do I add PCSX2 to Attract Mode
« on: February 22, 2020, 03:36:47 PM »
is there way to hide the log text when launching ps2 emulator

Sony PlayStation 2.cfg (emulator configuration file)
# Generated by Attract-Mode v2.6.0
#
executable           \Emulators\PCSX2\pcsx2.exe
args                 --nogui --fullscreen --fullboot "[romfilename]"
rompath              \Roms\Sony PlayStation 2
romext               .cso
system               Sony Playstation 2
info_source          thegamesdb.net

9
Themes / Re: Arcadeflow theme v 6.0 [Release] Updated 2 December 2019
« on: December 20, 2019, 06:27:12 PM »

Quote
You can obtain the same result in the menu where you set ARcadeflow as displays menu, just set the value to "Default" and it will use the list as displays menu

Strangely enough, this set it back to the Basic layout and editing the config was the only way I managed to get it back.  I haven't experimented with it further, but I figured whatever function ArcadeFlow uses to generate the Displays menu doesn't run every time a system is loaded, but rather only when ArcadeFlow is set as the theme for a system.  I could be completely wrong.  I was just happy I figured out how to fix it.

10
Themes / Re: Arcadeflow theme v 6.0 [Release] Updated 2 December 2019
« on: December 18, 2019, 10:41:02 PM »
I made the mistake of defining Arcadeflow 6.0 as the layout type for the Displays menu and realized that this did not set it to the auto-generated list, but rather the default Arcadeflow layout used by the systems themselves.  I eventually figured out that the fix was to edit attract.cfg and set menu_layout to undefined (no text after 'menu_layout'). Noting this here in case anyone else runs into the same issue.

11
Themes / Re: Arcadeflow theme v 6.0 [Release] Updated 2 December 2019
« on: December 16, 2019, 04:24:30 PM »
I use Skyscraper with the screenscraper module, which returns multiple comma-delimited categories for many games.  The result is that these games don't display any category image.  It would be neat if the theme could parse these and cycle through the relevant category images for these games.  Alternatively, and probably much easier to implement, you could have it omit everything after the first comma thereby only using the image for the first category listed.

12
Themes / Re: Arcadeflow theme v 6.0 [Release] Updated 2 December 2019
« on: December 15, 2019, 02:02:31 PM »
In layout.nut, Ln 63 and 64, you have misspelled 'Displays' as 'Displyas'. Also, all instances of

Code: [Select]
options = " ",
can be removed with no perceived ill effects.  It still doesn't fix the fact that the dividers have selectable options, but so far, I don't know how to fix that.

Pages: [1]