Author Topic: How to set up attract mode on a PC step by step  (Read 275916 times)

akafox

  • Hero Member
  • *****
  • Posts: 985
    • View Profile
How to set up attract mode on a PC step by step
« on: August 11, 2015, 12:25:19 PM »
How to set up Attract Mode:

   History of computer interfaces in a nut shell (you may skip this if you wish):

     Attract mode is called a "front-end" in technical terms. It can be thought of as a Graphical User Interface or (GUI, gui) for emulators. Think of it this way: The windows desktop is a gui to DOS (well it started that way, but that topic is not what this writing is about). DOS was text based. You had to type and memorize computer commands, or code words sort of speak. You would type them in to make the computer do stuff. A GUI does the same thing it just interfaces differently using clicks of a mouse or trackball. It looks pretty and makes it easier to run your computer. That is all it does.

   All modern operating systems have a command line interface (CLI, cli). You can run your entire computer from just the CLI. However it is not natural, it is not easy, and sure doesn't look as good! Your emulator uses the cli whether or not it has a gui interface or not. This is how Attract Mode gains is usefulness.

    Attract mode works much the same way as a computer desktop does to the command line. Instead of clicking with your mouse and needing a keyboard attached to your arcade cabinet or game machine (e.g. your home entertainment computer) you can use just a joystick. That is the idea behind a front-end like attract mode. It becomes a gui for your games.

Things to know:

Note: you MUST set up and configure your emulator separately from attract mode. Attract mode does not configure any emulators. All it does is make a list of games or systems that you have nothing more!

First you need to download your version that you need. I am going to assume that you have done that or you would not be reading this.

Default keys are as follows:
   TAB key enters the configuration menu from list mode (the main screen). Arrow keys move selector in that direction. The left ctrl key or enter key selects your choice. Esc key backs out to previous menu.
 
Getting started:

      When you first start attract mode it will ask you to pick a language. Do so. Then it takes you to the configuration screen. Here is where you will set up Attract Mode with your emulator. For this write up we will use MAME. If you have not configured mame you can read this thread to get it working. http://forum.attractmode.org/index.php?board=8.0

At the top of the list you will see the word emulators. Choose that and then you will be taken to a list of pre-configured emulators. Find mame and select it. There you will see a list of items to fill in. We will go step by step through this process:

1. Emulator Name
You can not change this. It is there so you can find this configuration from the previous list.

2. Executable
This is where you will put your path to mame so that you can start the program. Examples:
Windows C:\mame\mame64.exe
Linux /usr/games/mame
MAC OS ex. $HOME/mame/mame

3. Command arguments:
This is where you put any extra switches you want it run you game with. For now use [name]

4.  Rom paths:
This is where you put the path of your roms/games. Examples:
Windows C:\mame\roms
Linux $HOME/.mame/roms (notice the dot there before mame)
MAC OS ex. $HOME/mame/roms

5. Rom extensions:
This will very by emulator. For this write up you may leave it as it is. More then one extension can be used if separated by a semi-colon. (ex. .zip;.nes;.7z) If you do not add an extension that type of file will not be included in your list.

6. System identifier:
This is used in conjunction with the system/source scraper below when using the games.db selection.You would enter your system name here. (ex. arcade)

7. Info source scraper:
This is used to grab information for your list. Press up or down to choose from mame, mess, or gamesdatabase.db. Mame is used for the mame emulator, mess is used for the mess emulator, gamesdatabse.db grabs info from the Internet.  (here we choose listxml)

8. Additional import files
Type the path name of the files. Here you can use any files you want to add extra information to your list. This can be skipped but you will not be able to filter games if you skip this step. Valid files are nplayers.ini (number of players), catver.ini (category), controls.ini (controller types)

9. Minimum run time
This is used for steam games to set a delay. We can skip this.

10. exit hotkey
This can be used to set up a hot key to quit your emulator if you emulator does not close the way you need it to. For mame this can be skipped.

11. Flyer, marquee, snap, wheel and add artwork
We can skip this for now

12. Generate Collection/Rom List (See "My list is blank or I don't have a list: 4. You are using a Retroarch core and do not get a list" for more info if you are using retroarch)
   Press enter here and Attract Mode will start to build your list. The time will vary depending on your info source, how big your collection is, and how much extra information you wish to add. Just grab a cold drink from the fridge and come back it should be done.

13. Scrape Artwork
   If you have chosen gamesdatabase this option will attempt to match your game games with artwork and pull it down so that you can use it in attract mode. (the odds of it being perfect or working very. There are other ways to get artwork.) You may skip this if you wish.

14. Delete this emulator
    use this if you want to remove this emulator from your list

15. Back
    Takes you back to the emulator list (choose this)

Select back from the emulator list (or press esc) to go back to the main configuration menu and again to leave the configuration menu. Now you should be looking at your new list. From here you can press up or down to select a game and enter to start it. Hope this helped you and happy gaming! :)

Troubleshooting:

My list says funny things like dkong or mrdofix or sf2ua:
    You need to make sure that your path to your mame.exe is correct. For windows and mac you must have the full path and program name listed! The examples above are just that examples. You put your own information to your path..where ever it is you have put your mame program! Sometimes in your gui file program you can go to the folder and there is a "address bar" or "location bar" that information there is what you need to put in the executable line of attract mode. Linux users can just put mame no need for a full path. You need to make sure the you have chosen the right info source. Use listxml in this case.

I don't like the parentheses in my list:

    Goto the general option in the configuration menu and then make "hide brackets in game title" change it to yes

Ok the display is great but I am bored of it now:
    Go to the displays option in the configuration menu and choose your emulator from the list. from there choose the layout option. Now you can cycle the list of layouts you have and choose the one you want. Questions about individual layouts should be addressed by the author.

Attract mode does not cover my entire desktop:

   This is set up by default as a safety measure and convenience. Once everything is set up the way you want you can change to full screen. Once in full screen everything is covered and you can not get to any other programs or computer settings! You want it this way so that other people can not get to your computer and mess up your hard work. Go to the general option in the configuration menu. Then go to window mode.

Window - make Attract mode a windowed program.You can minimize it and move and resize it like you would any other windowed program. (Great for trouble shooting and such)
Fill screen - will fill the screen but leave the task bar (or side bar in the case of ubuntu) visible but hide the desktop.
Full screen -will hide everything and make attract mode the center of attention. (If you are building a dedicated game machine/cabinet that is the one you want.)

My list is blank or I don't have a list:

 1. Did you generate a list? (configuration menu. Then emulators. Choose your emulator. Then at almost the bottom you will see generate collection/rom list press enter and wait. Once done it will put you back where you were.
2. Do you have your rom path set up right? Your rom path must be entered correctly or Attract Mode  can't find anything to make a list from.
3. Do you have the right extension(s) in the extension line?  the format is . (dot) extension (ex .zip) to add more than one  extension you use a semi-colon ( ; ) (ex .zip;.nes)
4. You are using a Retroarch core and do not get a list
You will need a REAL mame binary to make the list PERIOD. Attract Mode looks for the mame.exe file to make the .exe file cough up the xmllist file then Attract mode uses that information to build a list. Retroarch cores are not real mame binaries...thus you will not get a proper list from Attract mode. After you do that then you can change the executable back to the retroarch mame core settings if that is how you want to run mame.

I saw a video on (insert website name here) and it had movies and pictures and stuff. I want that too!
     Ok we'll set that up in the next write up. This was basic so that people could understand what they are doing and how attract mode works.


 Links (these are external links!)

catver.ini http://www.progettoemma.net/?catlist
nplayers.ini http://nplayers.arcadebelgium.be/
controls.ini http://controls.arcadecontrols.com/ if anyone knows of an updated one please let me know!
« Last Edit: April 03, 2020, 09:00:13 PM by akafox »
People want life easy..then complain about it

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: How to set up attract mode step by step
« Reply #1 on: August 11, 2015, 03:54:00 PM »
WOW!

Great work fox. It's obvious you put a lot of sweat equity into this. Great job man...

battlecat

  • Full Member
  • ***
  • Posts: 50
    • View Profile
Re: How to set up attract mode step by step
« Reply #2 on: September 04, 2015, 01:55:34 PM »
More INFO

I have uninstalled and purged the wallyweek MAME version.
I have installed the Ubuntu MAME package
I have tested the Ubuntu MAME package as working

When I run AttractMode I get a black screen. When I click the left arrow I get the seg fault.

Thanks,
BC

mondaiji

  • Full Member
  • ***
  • Posts: 46
    • View Profile
Re: How to set up attract mode step by step
« Reply #3 on: November 05, 2015, 02:19:06 AM »
controls.ini http://controls.arcadecontrols.com/ if anyone knows of an updated one please let me know!

Did you mentioned the above statement due to an error importing controls.ini? Does your import work for controls.ini?

Code: [Select]
[Import ..\Emulators\GroovyMAME_1.66\ini\catver.ini] - found info for 30164 entries.
[Import ..\Emulators\GroovyMAME_1.66\ini\nplayers.ini] - found info for 32192 entries.
Unsupported import_extras file: ..\Emulators\GroovyMAME_1.66\ini\controls.ini
 - Removing any duplicate entries...
 + Writing 32197 entries to: D:\Arcade\AttractMode\romlists/mame.txt

akafox

  • Hero Member
  • *****
  • Posts: 985
    • View Profile
Re: How to set up attract mode step by step
« Reply #4 on: November 05, 2015, 08:14:32 PM »
Yes controls.ini should work catver.ini and nplayers.ini as well..they can be used together. Point AM to your path C:\mame or $HOME/.mame then separate them with a semicolon ( ; )

example  C:\mame\catver.ini;C:\mame\controls.ini;C:\mame\nplayers.ini
« Last Edit: November 06, 2015, 10:38:52 PM by akafox »
People want life easy..then complain about it

mondaiji

  • Full Member
  • ***
  • Posts: 46
    • View Profile
Re: How to set up attract mode step by step
« Reply #5 on: November 06, 2015, 01:23:14 PM »
Thats exactly what I had, so I', not sure why it's not working.

Code: [Select]
import_extras        ..\Emulators\GroovyMAME_1.66\ini\catver.ini;..\Emulators\GroovyMAME_1.66\ini\nplayers.ini;..\Emulators\GroovyMAME_1.66\ini\controls.ini
If I look at my \romlists\mame.txt file though the control information is in there.
« Last Edit: November 06, 2015, 01:25:25 PM by lacanian »

akafox

  • Hero Member
  • *****
  • Posts: 985
    • View Profile
Re: How to set up attract mode step by step
« Reply #6 on: November 06, 2015, 10:38:06 PM »
That is odd.  ??? Try deleting your list and rebuilding it...however looks like it is made right. Remember not every theme shows the extra information. I am guessing that you are using the ../ to hide your full path when pasting here. However if not remember use the full path.

oh and to answer your question..that is the newest controls.ini. The controls.ini is not updated as often
« Last Edit: November 30, 2015, 07:24:02 PM by akafox »
People want life easy..then complain about it

dbinott

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Re: How to set up attract mode step by step
« Reply #7 on: June 11, 2016, 02:46:41 PM »
ok, maybe I am dense, but how do you get back into the config once your are in AM at the pacman screen?

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: How to set up attract mode step by step
« Reply #8 on: June 11, 2016, 03:59:52 PM »
Press tab...

dbinott

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Re: How to set up attract mode step by step
« Reply #9 on: June 11, 2016, 05:46:08 PM »
thanks

dbinott

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Re: How to set up attract mode step by step
« Reply #10 on: June 27, 2016, 01:25:29 PM »
Ok, what am I doing wrong? I have a a filtered mame.xml with about 1600 games I also have controls.ini. I put those 2 as additional import files and run generate rom list and it is giving me all roms. If i just use import_filelist option via cmd line with just mame.xml, it works fine, but then I don't have controls in there.  :-\


Code: [Select]
# Generated by Attract-Mode v2.1.0
#
executable           d:/mame/mame
args                 [name]
rompath              d:/mame/roms/
romext               .zip;.7z;<DIR>
system               Arcade
info_source          listxml
import_extras        c:\attractmode\mame.xml;c:\attractmode\controls.ini;c:\attractmode\nplayers.ini
artwork    flyer           d:\flyers\
artwork    marquee         d:\marquees
artwork    snap            c:\VideoSnaps;D:\snap
artwork    wheel           c:\attractmode\layouts\robospin\wheel

Nicodemus

  • Jr. Member
  • **
  • Posts: 20
    • View Profile
Re: How to set up attract mode step by step
« Reply #11 on: August 17, 2016, 08:07:50 PM »
I'm having difficultly setting AM up in Retropie, specifically the "arcade" emulator folder. I'm able to link the correct rom path but I think because the "arcade" emulator folder has the option of choosing either MAME or FBA, my roms just wont load. Any help?

SirClive

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: How to set up attract mode step by step
« Reply #12 on: August 28, 2016, 06:08:40 AM »
I'm having problems with the MAC version. I have generated my list and the games all show, but when I select one the window insets as if it is wanting me to choose a different program so I can't launch any games??

SirClive

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: How to set up attract mode step by step
« Reply #13 on: August 28, 2016, 01:08:44 PM »
Ignore me. Realised that I had downloaded the windows version of the framework instead of Mac (doh!). All up and running now :)

ZeroQI

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: How to set up attract mode step by step
« Reply #14 on: September 02, 2016, 10:36:45 PM »
SirPoounga August 27, 2012 wanted to pass the flame
http://forum.arcadecontrols.com/index.php/topic,122252.0.html
http://forum.arcadecontrols.com/index.php/topic,141058.0.html

This github project is 4 month old it seems https://github.com/yo1dog/controls-dat-json, seem the same in json format with mods so
He also posted there: http://forum.arcadecontrols.com/index.php/topic,150639.0.html

He wrote "I found the structure of the data in the controls.dat project a bit archaic, convoluted, and difficult to use. So I created a tool that will restructure the controls.dat JSON file in a way that (in my opinion) is much easier to work with. I think the JSON format makes this much easier compared to XML. I also expanded the structure so that more exact and meaningful information could be recorded. It also updates the way the MAME input ports are stored so it is compatible with the latest MAME (no more _EXT inputs)."

latest v0.141
http://controls.arcadecontrols.com/controls/dat/ini/controls.ini.0.140.1.zip
Can't seem to find latter than controls.ini version 0.111.5, Time=2008-06-20 18:27:09 below:
http://forum.arcadecontrols.com/index.php?action=dlattach;topic=91711.0;attach=122578
« Last Edit: September 02, 2016, 11:12:29 PM by ZeroQI »