Author Topic: Variables to use under default-emulator.cfg  (Read 3425 times)

cybermat

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Variables to use under default-emulator.cfg
« on: May 18, 2021, 02:55:19 AM »
Hello,
i would like to know what kind of variables i can use with default-emulator.cfg , i see there is [emulator] but in my case i would like to use something like [system]

[system] = system identifier

Under menu-art i usually put the name of the system "Nintendo Nes" "Sega Naomi" "Sammy Atomiswave" and so on
For roms the same, in order to have just one folder per system, games/Sega Naomi games/Nintendo Nes and so

Example :

If i add 2 emulators (Nestopia and Punes) for Nintendo and 2 emulators for Sega Naomi (Demul and Retroarch) i need to use something like [system] variables in order to use just one folder.

args                 "[romfilename]"
rompath              games/[system]
romext               .zip
artwork    flyer           menu-art/[system]/flyer
artwork    marquee         menu-art/[system]/marquee
artwork    snap            menu-art/[system]/snap
artwork    wheel           menu-art/[system]/wheel

I don't know if it's feasible.

Futhermore , i would need a full documentation about all the voices i can use on attract mode, in order to avoid to continuously bother you.
Regarding artwork i read somewhere there is "cartart" values... but by default i don't have this voice.

« Last Edit: May 18, 2021, 03:00:41 AM by cybermat »

ReBirFh

  • Jr. Member
  • **
  • Posts: 12
    • View Profile
Re: Variables to use under default-emulator.cfg
« Reply #1 on: May 18, 2021, 05:16:12 AM »
AM is flexible you can create all the kind of arts woy want, just add the path of the artwork.

For Cartar. Go to Configure -> Emulators -> "Your emulator/system" -> Add Artwork -> Label it as cartart and put the path.

In the layout you can call it with "fe.add_artwork ( "[cartart]", 0, 0, 0, 0 );"

cybermat

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Re: Variables to use under default-emulator.cfg
« Reply #2 on: May 18, 2021, 06:05:14 AM »
Ok so it's layout dependent, you can create and recall them from layout's code. Good!

Regarding variable to use, do you think that it's feasible what i need ?

hermine.potter

  • Hero Member
  • *****
  • Posts: 767
    • View Profile
Re: Variables to use under default-emulator.cfg
« Reply #3 on: May 27, 2021, 10:48:47 AM »
@cybermat
if you edit your default-emulator.cfg (your_attract_folder\default-emulator.cfg) to this:
Code: [Select]
executable           C:\attract\EMU\[emulator]\.exe
args                 "[romfilename]"
rompath              C:\attract\EMU\[emulator]\ROMS
romext               .zip
info_source          thegamesdb.net
exit_hotkey          Escape
artwork    marquee         C:\attract\scraper\[emulator]\marquee
artwork    snap            C:\attract\scraper\[emulator]\video;C:\attract\scraper\[emulator]\flyer

the output, after adding a new system, is (for example : SNES):
Code: [Select]
executable           C:\attract\EMU\[emulator]\.exe
args                 "[romfilename]"
rompath              C:\attract\EMU\SNES\ROMS
romext               .zip
info_source          thegamesdb.net
exit_hotkey          Escape
artwork    marquee         C:\attract\scraper\SNES\marquee
artwork    snap            C:\attract\scraper\SNES\video;C:\attract\scraper\SNES\flyer

the executable-line don't adopt the settings.

-so change this settings in AM manually or on file-level (your AM-folder\emulators\your_system.cfg)
or
-edit attractmode-sourcecode to get the executable-line too
or
use batch or whatever to get [emulator] correct and automated replaced
AM Version : 2.6.1
Input : Mad Catz Brawlstick; Mouse; Keyboard; Xbox360 Wireless
Cabinet : Yes
OS : Windows10 Pro
System : Dell Precision T3500 ; Intel X5650 ; 12GB RAM

rand0m

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
Re: Variables to use under default-emulator.cfg
« Reply #4 on: May 27, 2021, 11:47:04 AM »
These defaults templates work really well though. Adding a new system (specially if using something like retroarch) becomes very easy/ less time consuming.

cybermat

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Re: Variables to use under default-emulator.cfg
« Reply #5 on: May 28, 2021, 11:30:05 AM »
Maybe i didn't understand how AM works (and i'm here to learn!) , but when you insert an emulator you should have the chance to use the belonging system. Of course you should be able to use [system] variable

I can have multiple emulators per system, so if i set bsnes, snes9x and retroarch for SNES with a template with [system] would be easier have all artwork and roms recognized

# Generated by Attract-Mode v2.6.1
#
executable           emulators\demul\Demul07_CRTGeomMOD.exe
args                 -run=naomi -rom="[name]"
rompath              games/[system]
romext               .zip
system               Sega Naomi
import_extras        mame.xml
artwork    bezels          menu-art/[system]/bezels
artwork    boxart          menu-art/[system]/boxart
artwork    cabinets       menu-art/[system]/cabinets
artwork    cartart         menu-art/[system]/cartart
artwork    fanart          menu-art/[system]/fanart
artwork    flyer            menu-art/[system]/flyer
artwork    marquee      menu-art/[system]/marquee
artwork    snap            menu-art/[system]/snap
artwork    wheel          menu-art/[system]/wheel

[emulator] variable is used to fill romlist