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

Pages: [1] 2 3
Themes / Re: Game Station Theme v2.6.3 (Support 4:3 & Wide Screen now)
« on: October 24, 2017, 12:14:07 PM »
Is there any way to hide the ROM information that is displayed at the very bottom-center of the screen?

Find these lines in the layout.nut

Code: [Select]
local titleText = fe.add_text( "[DisplayName] > [FilterName] > [Title] [ [Name] ]", flx*0.06, fly*0.97, flw*0.7, flh*0.022  );
 titleText.alpha = 210;

and delete them or comment them out like this:

Code: [Select]
// local titleText = fe.add_text( "[DisplayName] > [FilterName] > [Title] [ [Name] ]", flx*0.06, fly*0.97, flw*0.7, flh*0.022  );
// titleText.alpha = 210;

Sorry if this is a noob question, but how do you get the Number of Players to be accurate? For MAME I guess it gets that info from the .dat file.. Is it possible to have accurate number of players for all systems? Thanks!

For MAME they come from the nplayers.ini mostly found in the "folders" subdirectory in your MAME directory. For other systems? I don't know. You should ask this in a seperate thread in the General forum here.

General / Re: Rom path for external usb
« on: June 27, 2017, 10:31:54 PM »
I don't know retropie at all, but it's a Linux system, which I do have knowledge about.

According to this article retropie mounts external drives unter /media like most of today's Linux distributions. As described in the article, you can see the path to the mounted drive via the command "df -h" or simply "mount". Then, you can dive deeper into the folders with the commands "ls -l" (list the contents of the current folder) and "cd <foldername>" (go into the specified folder) until you know the whole path to attract mode's files (e.g. /media/usb0/mame).

Maybe retropie's terminal console even has tab completion to ease the typing. Then, you'd only have to type some first letters of a command or argument (e.g. the folder's name) and the tab key will complete them. Double-tabbing will show you all possible folders for the typed characters so far. Using this method, a simple "cd /media" (without pressing the Enter key!) followed by (double) tabbing and giving it some first letters of the next folder(s) could show you the whole path at the end.

I hope I could make myself somewhat clear. :) If that doesn't help, you may have to wait until someone with more retropie knowledge shows up.

edit: On the second thought, an easier way could be to learn the usb path under /media (like /media/usb0) as described above and then just add the rest of the path on the drive you can look up on any other system. Sometimes, I think too complicated.  8)

Themes / Re: [download v1.0] FLAT BLUE theme released
« on: June 27, 2017, 10:22:19 AM »
My pleasure. :)

Themes / Re: [download v1.0] FLAT BLUE theme released
« on: June 25, 2017, 10:28:36 PM »
There just seems to be a global setting, not a rotation setting on a per display basis. I don't know maybe I am missing something? Any help would be greatly appreciated. Thanks!

Yes, Attract Mode stores the layout settings based on the layouts in the "layouts" folder, not for the displays that use them. You can see that in the attact.cfg.
  • Make a copy of your flat_blue layout, e.g. to "flat_blue_vertical".
  • In the Layout Options of your vertical display, set the "Layout" field to the copy.
  • Now you can choose different settings for both.

Themes / Re: [download v1.0] FLAT BLUE theme released
« on: June 24, 2017, 02:11:09 AM »
I found the error: The artwork path has to be named "icon", not "icons".

I converted my icons from ico to png and it works now. Thanks!

edit: I mistook your "---" for a signature divider and thus overlooked your second reply. :)

I would use the unzipped version – if it worked on my system (Kubuntu Linux 14.04). See my reply above.

Themes / Re: [download v1.0] FLAT BLUE theme released
« on: June 23, 2017, 01:24:55 PM »
Alas, it doesn't work for me. My emulators/mame.cfg:

Code: [Select]
# Generated by Attract-Mode v2.2.1-50
executable           $HOME/bin/mame64
args                 -video bgfx [name]
rompath              $HOME/mame/roms
romext               .zip;.7z;<DIR>
system               Arcade
import_extras        $HOME/mame/mame.xml;$HOME/mame/catver.ini
exit_hotkey          Escape
artwork    flyer           $HOME/mame/cabinets;$HOME/mame/flyers
artwork    icons           $HOME/mame/icons
artwork    marquee         $HOME/mame/marquees
artwork    snap            $HOME/mame/snap;$HOME/mame/videosnaps
artwork    wheel           $HOME/mame/wheel-missing;$HOME/mame/wheel

The flat_blue portion of my attract.cfg:

Code: [Select]
layout_config flat_blue
param                crt_shader Disabled
param                game_info_1 Year
param                game_info_2 Manufacturer
param                layout_rotation None
param                menu_art_type Icon
param                menu_video Disabled
param                scanline_strength Weakest
param                shadow_strength Medium
param                show_wheel Enabled

My icons are in .ico format. Which file formats are supported?

edit: There is an error about a missing "panels" index. I don't think that it is connected to the icons problem, but here it is nonetheless:

Code: [Select]
AN ERROR HAS OCCURED [the index 'panels' does not exist]

*FUNCTION [constructor()]  line [74]
*FUNCTION [main()]  line [92]

[layout_settings] TABLE
[test_resolution] INSTANCE
[layout] INSTANCE
[vargv] ARRAY
[this] TABLE
Script Error in /home/user/.attract/layouts/ (flat_blue/layout.nut) - the index 'panels' does not exist
 - Loaded layout: /home/user/.attract/layouts/ (flat_blue/layout.nut)

Themes / Re: [download v1.0] FLAT BLUE theme released
« on: June 22, 2017, 10:41:59 PM »
Another matter:

How do I point the theme to my icons folder for icons instead of snaps in the sidebar? I tried to set an artwork folder names "icons" to the icons folder, but it didn't work.

*gentlypush* :)

Since I had tried this way but there was no result:

Code: [Select]
"pad": [ "Ball & Paddle", "Breakout"] ---> for Arkanoid game, but not learn icon.

That's because there is no images/pad.img. Try this and you'll see the act.png for "ball" games:

Code: [Select]
"act": [ "action","platformer", "platform", "ball" ],
Some other genres can not be loaded either, for example:

Code: [Select]
"avg": [ "adventure" ],
"slg": [ "strategy"]
"rpg": [ "rpg", "role playing", "role-playing", "role playing game" ],

Are there any games with these genres in your catver.ini? Not in mine. I suppose they are for other systems where those genres are more common, like consoles for example.

Could you help solve this problem?

I'll look into it as soon as I have the time, stay tuned.

sorry, but i can't fint the download, is the GamestationHD? it didn't work to me. Please can someone post me the link to download it?

In this forum, you can only see download links and images when you're logged in. The links to Game Station HD and Game Station are right beneath their pictures 1.jpg and 2.jpg in the first post of this thread.

You have a reason, in my romlist file missing some key words, I put your line in my romlist file and the result was that the image appeared, my doubt and how I will make for a new romlist to see the correct information, you know to say

This is how I built my romlist, but it may have some Linux specific details you'll have to do a little bit different on Windows. For example, I use "/" as divider in path names, not "\" like in Windows. "AM" in path names means your Attract Mode config folder.
  • Rename AM/romlists/mame.txt to AM/romlists/mame.bak.
  • Make a mame.xml file with the command "mame -listxml > mame.xml". (May be "mame64.exe -listxml > mame.xml" in Windows.)
  • Search the web for the file catver.ini for your specific mame version (I don't know if the forum rules allow a link to it so I won't do that.) 
  • Put both mame.xml and catver.ini into your main mame folder.
  • Edit AM/emulators/mame.cfg and put the complete paths to mame.xml and catver.ini separated by a semicolon in the line "import_extras". Here's the line in my mame.cfg:
Code: [Select]
import_extras        $HOME/mame/mame.xml;$HOME/mame/catver.ini
  • Generate the romlist either with the menu command under "Emulators -> mame -> Generate Collection / ROM List" or with the command "attract -b mame"
  • Now you should have a new romlist AM/emulators/mame.txt with the game categories from catver.ini
If you have any problems, please search the forum for threads about building the romlist or open another thread for it in the "General" forum, because this has nothing to do with Game Station.

In the matter of the error message you may want to search the whole layout.nut for other occurrences of unknown.png. I don't know, though, if you'll have to use the backslash on Windows, since I have Linux where the slash is the path divider. But all other paths in the layout.nut use the slash, so I don't really think that's the cause of the error.

As a workaround you could copy the file unknown.png from the folder "images" to the main folder of the theme (the one where the layout.nut resides).

However, the picture shows that the unknown.png is displayed correctly. The theme just don't seem to know or recognize the genre of the game(s). Maybe there's something wrong with the genre entries in your romlist. Did you include the catver.ini in the romlist? Please show us the line for brvblade from your romlist. Here's mine for comparison, note the genre "Shooter / Flying Vertical". My Game Station Theme shows the correct Shooter icon.

Code: [Select]
brvblade;Brave Blade (World);mame;;2000;Eighting / Raizing;Shooter / Flying Vertical;2P sim;270;joystick (8-way),joystick (8-way),joystick (8-way),joystick (8-way);imperfect;1;raster;coh1002m;;;

Thanks for the reply. I don't know if I understand your code correctly. Why did you add the index_offset and tolower to fe.game_info?

My goal is to process "dual" player numbers (e.g. "4P alt / 2P sim") in a way that I can have two different filters for alt and sim games and AM displays the corresponding number of players (e.g. 4 for alt and 2 for sim). Whether the number is shown by text or an image is secondary. I, for my part, want to modify the Game Station Theme which displays the players in text.

In terms of coding, I think about something like this:

  • Split a "dual" number strings into two normal ones.
  • Extract the players number and mpmode from both.
  • Display the players number whose mpmode corresponds with the filter name ("alt" or "sim").

Scripting / Re: Current display name WITHOUT using magic token?
« on: June 18, 2017, 05:31:08 AM »
In case you or others still need this:

Code: [Select]
function dname()
    local current_display = fe.displays[fe.list.display_index];

You can use this function as a Magic Token so it will be updated like one:

Code: [Select]
local print_display = fe.add_text( "Display: [!dname]", x, y, w, h );

Mind the "!" before the function's name. It marks custom Magic Tokens.

This will split lines like "4P alt / 2P sim" (e.g. '88 Games) into an array that will hold the separate parts in index 0 and 1.

Code: [Select]
local plparts = split(fe.game_info(Info.Players), "/");
The next step would be to combine this with the above function plnum() and display the player number that corresponds to the currently selected filter (one for "alt" multiplayer games and one for "sim"). The current filter can be accessed like this:

Code: [Select]
function fname()
    local current_filter = fe.filters[fe.list.filter_index];
local fname =;
return fname;

Alas, all my attempts to do this with if…then or foreach statements have failed so far. Help would be very appriated.

Update: Two friends who know their RegEx helped me write this function:

Code: [Select]
function plnum()
  local ex = regexp(@"(\d+)P(?: (alt|sim))?");
local plinfo = fe.game_info(Info.Players);
  local plex = ex.capture(plinfo);
local plnum = plinfo.slice(plex[1].begin,plex[1].end);
local mpmode = plinfo.slice(plex[2].begin,plex[2].end);
return plnum;

Given fe.game_info(Info.Players) in the format "2P alt" etc. it returns the number of players with one or more digits. As a bonus, the multiplayer mode "alt" or "sim" will be stored in the variable mpmode.

Because I am very new at Squirrel and coding overall, it may be not very optimized. Feel free to tinker with it.

edit: sorry for cross-posting, I realized only after I wrote this that it also was fitting for my own thread here.  :-[

Pages: [1] 2 3