Attract-Mode Support Forum
Attract-Mode Support => General => Topic started by: Sebiohazard on August 25, 2020, 03:28:43 PM
-
Good evening everyone !
I would like to make Attract Mode portable. That is to say that whatever the installation folder of my Attract pack, there is no conflict in the paths of the roms, emulators, media ...
Here is an example configuration for a Dreamcast emulator:
# Generated by Attract-Mode v2.6.1
#
executable c:\attract\emulators\demul\demul.exe
args -run=dc -image="[romfilename]"
rompath c:\attract\games\dreamcast
romext .gdi
artwork boxart c:\attract\menu-art\boxart\dreamcast
artwork cartart c:\attract\menu-art\cartart\dreamcast
artwork flyer c:\attract\menu-art\flyer\dreamcast
artwork marquee c:\attract\menu-art\marquee\
artwork snap c:\attract\menu-art\snap\dreamcast
artwork wheel c:\attract\menu-art\wheel\dreamcast
How do I replace C: with an environment variable that would allow me to install my Attract pack in any folder on my computer ?
Greetings !
-
\ = root of the drive
. = this folder
.. = previous folder
..\.. = two folders back
..\..\.. = three folders back
For you, c:\attract becomes a period (.).
# Generated by Attract-Mode v2.6.1
#
executable .\emulators\demul\demul.exe
args -run=dc -image="[romfilename]"
rompath .\games\dreamcast
romext .gdi
artwork boxart .\menu-art\boxart\dreamcast
artwork cartart .\menu-art\cartart\dreamcast
artwork flyer .\menu-art\flyer\dreamcast
artwork marquee .\menu-art\marquee\
artwork snap .\menu-art\snap\dreamcast
artwork wheel .\menu-art\wheel\dreamcast
-
Hello thank you for your reply !
Unfortunately it doesn't work... I also tried this:
# Generated by Attract-Mode v2.6.1
#
executable $home\emulators\demul\demul.exe
args -run=dc -image="[romfilename]"
rompath $home\games\dreamcast
romext .gdi
artwork boxart $home\menu-art\boxart\dreamcast
artwork cartart $home\menu-art\cartart\dreamcast
artwork flyer $home\menu-art\flyer\dreamcast
artwork marquee $home\menu-art\marquee\
artwork snap $home\menu-art\snap\dreamcast
artwork wheel $home\menu-art\wheel\dreamcast
Do you have another solution ?
Greetings !
-
Look at the last_run.log or run attract-console.exe to see what the problem is.
-
Hello here are the feedback from lastrun.log:
*** Initializing display: 'Dreamcast'
- Loaded master romlist 'Dreamcast' in 1 ms (2 entries kept, 0 discarded)
- Constructed 2 filters in 0 ms (4 comparisons)
Attract-Mode Version: v2.6.1
Screen aspect ratio: 16x9
Resolution: 1920x1080
Shader GLSL available: 1
OS: Windows
using settings[16x9][aspectDepend][res_x] : 1920
using settings[16x9][aspectDepend][res_y] : 1080
using settings[16x9][aspectDepend][maskFactor] : 1.9
- Loaded layout: C:\Attract\layouts/Sega Dreamcast/ (layout.nut)
- Working directory: .\emulators\retroarch
*** Running: .\emulators\retroarch\retroarch.exe -L cores\flycast_libretro.dll ".\games\dreamcast/Donald Duck - Quack Attack.chd"
Error executing command: '.\emulators\retroarch\retroarch.exe -L cores\flycast_libretro.dll ".\games\dreamcast/Donald Duck - Quack Attack.chd"'
-
Just to be clear, you haven't actually moved the "Attract" folder yet, right?
With the example I gave above did the artwork show up properly in AM layouts?
To test where the problem is try this:
# Generated by Attract-Mode v2.6.1
#
executable .\emulators\demul\demul.exe
args -run=dc -image="[romfilename]"
rompath c:\attract\games\dreamcast
romext .gdi
artwork boxart .\menu-art\boxart\dreamcast
artwork cartart .\menu-art\cartart\dreamcast
artwork flyer .\menu-art\flyer\dreamcast
artwork marquee .\menu-art\marquee\
artwork snap .\menu-art\snap\dreamcast
artwork wheel .\menu-art\wheel\dreamcast
-
Hello !
So indeed the problem only comes from the executable & the game path:
executable .\emulators\demul\demul.exe
rompath .\games\dreamcast
For the media it works... how to proceed ?
Greetings !
-
Can you try having 2 dots at the beginning of those lines and see?
executable ..\emulators\demul\demul.exe
rompath ..\games\dreamcast
I'm wondering where Attract's starting directory is in relation to those two lines. Does it start in the "attract" directory or does it start in the "attract\emulators" directory (where the various emulator config files are)?
It seems for artwork, it sets the "attract" folder as it's starting directory to find the artwork files. I'm curious if those two lines use the "attract\emulators" directory instead (in which case you'd need to go up 1 directory to find the "games" directory").
You could also try this for the executable:
executable .\demul\demul.exe
-
Hello !
I have tried everything:
1. executable .\demul\demul.exe
2. executable ..\demul\demul.exe
3. executable ..\..\demul\demul.exe
4. executable ..\..\..\demul\demul.exe
Nothing works...
-
based on your OP it would be
executable .\emulators\demul\demul.exe
Try these and provide the output and results for each
# Generated by Attract-Mode v2.6.1
#
executable .\emulators\demul\demul.exe
args -run=dc -image="[romfilename]"
rompath ..\..\games\dreamcast
romext .gdi
artwork boxart .\menu-art\boxart\dreamcast
artwork cartart .\menu-art\cartart\dreamcast
artwork flyer .\menu-art\flyer\dreamcast
artwork marquee .\menu-art\marquee\
artwork snap .\menu-art\snap\dreamcast
artwork wheel .\menu-art\wheel\dreamcast
# Generated by Attract-Mode v2.6.1
#
executable \attract\emulators\demul\demul.exe
args -run=dc -image="[romfilename]"
rompath \attract\games\dreamcast
romext .gdi
artwork boxart .\menu-art\boxart\dreamcast
artwork cartart .\menu-art\cartart\dreamcast
artwork flyer .\menu-art\flyer\dreamcast
artwork marquee .\menu-art\marquee\
artwork snap .\menu-art\snap\dreamcast
artwork wheel .\menu-art\wheel\dreamcast
-
Hello !
Unbelievable !!!
It is this command set that works:
# Generated by Attract-Mode v2.6.1
#
executable \attract\emulators\demul\demul.exe
args -run=dc -image="[romfilename]"
rompath \attract\games\dreamcast
romext .gdi
artwork boxart .\menu-art\boxart\dreamcast
artwork cartart .\menu-art\cartart\dreamcast
artwork flyer .\menu-art\flyer\dreamcast
artwork marquee .\menu-art\marquee\
artwork snap .\menu-art\snap\dreamcast
artwork wheel .\menu-art\wheel\dreamcast
Thank you very much greetings !
-
Hello !
Unbelievable !!!
It is this command set that works:
# Generated by Attract-Mode v2.6.1
#
executable \attract\emulators\demul\demul.exe
args -run=dc -image="[romfilename]"
rompath \attract\games\dreamcast
romext .gdi
artwork boxart .\menu-art\boxart\dreamcast
artwork cartart .\menu-art\cartart\dreamcast
artwork flyer .\menu-art\flyer\dreamcast
artwork marquee .\menu-art\marquee\
artwork snap .\menu-art\snap\dreamcast
artwork wheel .\menu-art\wheel\dreamcast
Thank you very much greetings !
Thank you very much. ;)
-
Don't get too excited. Two of those are absolute paths and not relative paths. They won't accomplish what you were looking for. They were meant to be tests for you to show the command line feedback.
-
Aie aie aie !
Indeed I moved my Attract folder in c:\programs (x86) & nothing works anymore !!!
I do not know what to do ???
-
- move it back
- update your emulator.cfg files with the new location using the full paths or absolute paths
- continue trying to get relative paths working
Some emulators (not AM) have issues with relative paths. I don't recall if demul is one of them. I personally use absolute paths because of this.
You might also try setting the "working directory" for that emulator. It might or might not help. You should also consider testing with another emulator to see if demul has issues with relative paths.
-
Hello !
I tried with RetroArch & the problem is the same...
I think you are right, you have to define the working path in Attract ! Why is there not this option ?
Greetings !
-
Configure-->Emulators-->your_emulator_name-->Working Directory