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.

Topics - mahuti

Pages: [1]
Scripting / Callback Segmentation Fault
« on: November 15, 2020, 09:53:25 AM »
I'm getting a segmentation fault when I use the check_key callback in a layout. I'm assuming it's because I'm calling other functions and objects from the callback, but not doing it correctly.

I'll look at some other layouts later to maybe learn a thing or two, but for now I need a break.  ;D Any suggestions would be appreciated.

Code: [Select]

local key = config['key'];
local slide_time = "350ms";

local key_delay = 250;
local last_check = 0;
function check_key( ttime )
    local is_down = fe.get_input_state( key );

    if (is_down)
        if ( ttime - last_check > key_delay )
            last_check = ttime;

            if (info_view==0) {

                if ( config["show_games_list"] == "Yes" )
                    // SEGFAULT IF THIS LINE EXISTS ////////////////////////////////////

Scripting / LEDSpicer Emitter Plugin
« on: November 05, 2020, 07:45:10 PM »
For those that use LEDSpicer on Linux platforms, I've written a plugin to interact with it.

The Emitter plugin for AttractMode works with LEDSpicer to change your lighting configuration based on your currently selected ROM in AttractMode.

There are two modes. Manual and Automatic. In Automatic mode, lighting profiles will be changed based on the currently selected rom after an editable period of inactivity. In Manual mode, a button press will change the profile based on currently selected rom.

Please check github for other important information.

I use LEDSpicer to show the keys that will be used when playing a specific game.... trackballs, spinners, etc. LEDSPicer can even change the colors of the buttons/joysticks to the original button color. This plugin just calls the LEDSpicer emitter app to change the profiles dynamically... you need LEDSpicer to do the real work though.

When I generate a romlist for MAME using extras (Catver.ini, players.ini, mame.xml, etc) I get a list that's duplicated. The first set of roms is correct, then at the end there's a second set of the same roms, but missing all of the information. It looks something like this:

Code: [Select]
1943;1943: The Battle of Midway (Euro);Arcade;;1987;Capcom;Shooter / Flying Vertical;2;270;joystick (8-way),joystick (8-way);good;1;raster;;;;2;;;;
... (a bunch of roms in this format)
... (a bunch of roms in this format)

Any ideas?

Scripting / [SOLVED] Read directory contents to an array
« on: June 05, 2017, 08:13:21 PM »
I reviewed the docs, and the squirrel docs themselves.... I could use help scanning the contents of a directory into an array.

Basically, I have about 10 files, and I want one of them to randomly display. Any help would be appreciated. Meanwhile, I'll keep reviewing the docs.

Scripting / [SOLVED] Screensaver Info?
« on: June 02, 2017, 07:02:38 PM »
I'm working on a custom screensaver. I was hoping to add the play count and playtime of the displayed game, rather than the *current* game behind the screen saver. Is this possible? Looking in the docs I didn't find anything obvious, but I may be looking in the wrong docs. Any help would be greatly appreciated.

Scripting / [SOLVED] Configure AM using script instead of Tab key
« on: May 30, 2017, 08:54:37 PM »
I would like to be able to pick a menu item to launch the "tab" menu, rather than having to hit the tab key itself. Why? So I don't have to have a dedicated key just for "tab" or a keyboard, and I would only like setup to launch from the setup screen itself.

So I started poking around the internet... before I go off deep in the weeds testing a bunch of stuff out, I wondered if anyone had any input on this.

I was wondering if setting the "!! Press TAB to configure" to be a bash script with some kind of xdotools or something similar would work. I haven't poked around in the code too much yet, just wondered if someone else had already done something like this.

General / RGBcommander 0.4 released
« on: March 17, 2017, 10:30:59 PM »

Also of note, RGBcommander works on Windows (though needs more version testing) as well as linux and Raspberry Pi. Take a look at the link above for more info.

Scripting / Display an image after game quit
« on: March 14, 2017, 04:42:09 AM »
Is there a script floating around to display a game over image after you quit a game? I started messing with a script with transition.fromgame (and it works) but it's too fast. Before I start investigating all the properties and methods, I was curious if there was a "known" script out there that does this already.

Scripting / Same Layout Different options
« on: March 07, 2017, 10:08:10 AM »
Is it the case that if you use a layout in 2 different displays that the layout options saved in one display carry over into the other display? That's what I'm seeing, and I did not assume that was the case when I was developing my current theme.

What I assumed was when I went to

nintendo-nes -> display-edit -> layout-options and changed the options those options would not also save for
genesis -> display-edit -> layout-options

When I change one display's layout options, it's changing the other displays as well. Is this a feature? Or flaw? Poor coding? Any thoughts?

General / Ultrastikcmd / Ultrastik360 Plugin
« on: January 25, 2017, 12:08:18 AM »
So I can run the Ultrastikcmd on the RP3 and it works great via command line. When I run the Ultrastik360 plugin however, nothing happens. I added some debug stuff, and I can see the paths are set correctly, but the Ultrastik's config is not changed.

Anyone have any insight as to how and why I can run via command line, but Attractmode isn't getting it to execute?

Themes / Very simple daphne theme
« on: January 15, 2017, 01:55:25 AM »
This is a very simple daphne theme based off of the assets from a Hyperspin theme. I'm not totally in love with it, but I haven't decided on anything else yet.

  • Videosnaps playing inside crystal ball looks pretty cool
  • Snap: use video snaps from emumovies
  • Wheel: wheel logos from hyper spin

[attachment deleted by admin]

Themes / Handheld Desktop Themes
« on: January 15, 2017, 01:39:14 AM »
I created several themes for handhelds living in their natural environments. On desks.

They are intended to be used with Hyperspin Wheel images, Boxart and Emumovies video snaps.

Themes / OlRoom 4x3 Themes
« on: January 15, 2017, 01:13:54 AM »
This wasn't originally my theme. This is based off of OlRoom theme found here:
Please give them the credit for the original. Apologies to the original creators for the liberties I've taken with their work. OlRoom was done very well, but it doesn't work for my setup, so I had to create my own versions. Since my themes are 4:3 and use slightly different code I decided to create my own thread.

  • Themes are 4:3 ratio
  • Does not use a spinning wheel (but does use wheel logos)
  • Contains changed console images and controller images. I tried to adjust the scaling and perspective to be in tighter range.
  • Image/Names are based on US console versions

These themes all assume the use of Hyperspin & Emumovies assets for videosnaps, flyers, etc. I'll note what is required in the description of each one.

If you need the PSD (Photoshop) file, you can download it here. It's fairly large (200+mb), but well organized: 

UPDATE ---------------------

You can download the individual themes elsewhere in this thread, but I've made a unified layout so you only need one theme folder to handle multiple emulators. It displays:

Atari 2600
Nintendo NES
Nintendo SNES
Nintendo 64
Sega Genesis
Sony Playstation
Generic PC
Generic TV

If you want any other system added to this theme please let me know.

Usage Instructions:
There are 2 methods:

a. Name your lists like the above and it will change styles automatically when switching between supported emulators.
I was unable to find a dynamic method within AttractMode to change the style based on the emulator (the variables were only for display, not for evaluation) so it changes based on list name.

b. If you don't want to use specific list names, duplicate the layout (name it whatever you want) and set the "Selected System" option to the specific style you want.

The download is attached to this post. I'll update it if I make additional changes or additions.

 I've noticed a few scaling issues with the "played time" I'll be fixing that soon.

[attachment deleted by admin]

Pages: [1]