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

Pages: [1] 2 3 ... 19
General / Re: RPi4 - Attract Mode with RPi3 image
« on: September 20, 2019, 10:21:17 AM »
I think you have made a mistake in the forum...
Here nobody is going to provide you with an img neither for pi 3 nor for 4.
This is a forum dedicated to the Attract-Mode frontend, not the Raspberry Pi, and not to the preconfigured images...

General / Re: RPi4 - Attract Mode with RPi3 image
« on: September 20, 2019, 10:19:48 AM »

package debian Buster

Code: [Select]
git clone attract
dpkg-buildpackage -rfakeroot

Emulators / Re: Launch Ranma ½
« on: September 19, 2019, 07:01:12 AM »
What about media, I mean I´ve forgot to paste the entire name , my problem is pcengine cd version:

Code: [Select]
Ranma ½ - Datou, Ganso Musabetsu Kakutou-Ryuu! (Japan)

Emulators / Launch Ranma ½
« on: September 19, 2019, 03:41:04 AM »
Im having problems launching "Ranma ½" games.
I  assume "½" character is the reason.
Because AM seems to be unable to show the media neither.

Scripting / Re: [ListSize]
« on: September 18, 2019, 03:50:37 PM »
This works, just need to set the right position and color.
I mean, you will need to show ListEntry and in this case system1 its like a fake ListSize with 3 less items.

Code: [Select]

 ::OBJECTS <- {

system1= fe.add_text("",0, 25, 640, 30)


function transition_system(ttype, var, ttime)
    switch ( ttype )
        case Transition.ToNewList:
case Transition.StartLayout:
case Transition.ToNewSelection:
case Transition.FromOldSelection:

local display1 = fe.list.size - 3
OBJECTS.system1.msg = display1;


fe.add_transition_callback("transition_system" );


Scripting / Re: [ListSize]
« on: September 17, 2019, 11:36:24 AM »
I think I know exactly what you want.
I made something similar some time ago, dukpoki helped me.

You need to modify this functions with fe.CurrentList , so attrack mode will check the size of your list,rest 3 and ten, return (list -3) as the result,
If you cant make the function Ill try to make the code this weekend.

Scripting / Re: [ListSize]
« on: September 17, 2019, 10:07:48 AM »
I think you can´t use magic tokens for this purpose.
I suppose you need to create a function with "fe.CurrentList"

Code: [Select]
#### `fe.CurrentList` ####

This class is a container for status information regarding the current display. The instance of this class is the fe.list object. This class cannot be otherwise instantiated in a script.


    name - Get the name of the current display.
    display_index - Get the index of the current display. Use the fe.set_display() function if you want to change the current display. If this value is less than 0, then the 'Displays Menu' (with a custom layout) is currently showing.
    filter_index - Get/set the index of the currently selected filter. (see fe.filters for the list of available filters).
    index - Get/set the index of the currently selected game.
    search_rule - Get/set the search rule applied to the current game list. If you set this and the resulting search finds no results, then the current game list remains displayed in its entirety. If there are results, then those results are shown instead, until search_rule is cleared or the user navigates away from the display/filter.
    size - Get the size of the current game list. If a search rule has been applied, this will be the number of matches found (if > 0)

Scripting / Re: fe.signal Q:
« on: September 09, 2019, 02:40:07 PM »
The problem here its you are adding this:

Code: [Select]
when = Transition.ToNewSelection,
I suppose you are using this code in your grid sega genesis mini.
Up,down,left and right is like a new selected game.
So, just avoid this part.
Look into my savestate plugin.
Im using fe.get_input_state, but what I want to do is almost the same.

Code: [Select]
local is_statesnap = fe.get_input_state ("J+Joy0 PovXneg")
if (is_statesnap) {
local alpha_bgstate = {
              property = "alpha", start = 0 end = 255, time = 500 easing = Easing.In,
        animation.add( PropertyAnimation( bgstate, alpha_bgstate ) );

Last problem its the animation will be triggered again when you press left...
But not when you press the other signals...

I forgot to mention I've attached a beta version on the first post.
All seems to work fine.

Scripting / [Plugin WIP] SavestateLoader (only for retroarch-windows)
« on: August 26, 2019, 10:12:44 AM »
This plugin allows you to launch your retroarch savestates directly from AM.


First of all Im not responsable for .cfg corrupted filed, lost savestates...
Use the plugin under your own responsability.
Be aware that the plugin deletes the main auto savestate file from your retroarch folder.

As always I must thank all the community for the help (specially keilmillerjr).

So, Ill try to explain how it works.All paths and config files should be precisely created, otherwise the plugin doesnt work propertlly.

retroarch.cfg (emulator main .cfg file)

Code: [Select]
savestate_auto_index = "false"
savestate_auto_load = "true"
savestate_auto_save = "false"
savestate_directory = ":\states"
savestate_thumbnail_enable = "true"
savestates_in_content_dir = "false"
auto_overrides_enable = "false"

emulator.cfg (AM emulator example .cfg file to understand where you need to create your appendconfig_emulator.cfg file)

Code: [Select]
# Generated by Attract-Mode v2.2.1
executable           cmd
args                 /c cd "Y:\Attrack Mode\systems\RetroArch" & start /wait retroarch -L cores\emulator.dll "[romfilename]" --appendconfig "Y:\Attrack Mode\systems\RetroArch\config\AutoSavestate\appendconfig_emulator.cfg"

Every emulator (AM) needs an 'appendconfig_emulator.cfg'

Code: [Select]
savestate_directory = ":\states\emulator"

I'm using 'emulator' as the main name, should be 'Atari 5200','Game Boy'...

Inside your retroarch installation should be a states folder.
A hard link shell shortcut needs to be created from the emulator to the plugin folder.

This program can make it and its free.

atract.cfg  (AM main .cfg file)

Code: [Select]
plugin SavestateLoader
enabled              yes
param                command SavestateLoader.bat
param                extension_1 .state1
param                extension_2 .state2
param                extension_3 .state3
param                slash /

To launch your savestates you need to asign three 'signal_str' , I've chosen this ones.

Code: [Select]
toggle_rotate_right  T
toggle_flip          Y
toggle_rotate_left   U

   toggle_rotate_right  T ("savestate_1")
   toggle_flip          Y ("savestate_2")
   toggle_rotate_left   U ("savestate_3")

plugin.nut  (plugin main .nut file)

Code: [Select]
show_statesnap ---> fe.get_input_state ("G")
hide_statesnap ---> fe.get_input_state ("H")

Default keys to show or hide your savestates.

And that's it  ;)

It doesnt matter because its a copy of your .state1, .state2 or .state3 file.
But I advise you to test the plugin propertly creating and launching your savestates before putting this file alongside your plugin.nut

Scripting / Re: [Plugin WIP] SumatraPDF reader (only for windows)
« on: July 15, 2019, 11:40:22 AM »
Solved, thanks to Oomek.

Just change

Code: [Select]

Code: [Select]

Scripting / Re: [Plugin WIP] SumatraPDF reader (only for windows)
« on: July 14, 2019, 05:33:16 AM »
The plugin doesnt work with the new daily builds.
Freezes AM and I have to close it manually.

Anyone can help me?
All my crashes and speed problems has been solved with the last daily updates.
Since attract-daily_06_17_2019
But now I cant read my manuals and guides... :'(

General / Re: Daily Windows Build available.
« on: July 14, 2019, 02:36:18 AM »
This version solves all my extrange am closes.
But now my sumatra pdf plugin makes am to crash when I close the reader.

Any suggestion?


Scripting / Re: Script for abbreviation of current display name.
« on: June 20, 2019, 11:28:53 AM »
Sorry I forgot a to paste the most important part.

Code: [Select]
fe.add_transition_callback( this, "on_transition" );

function on_transition( ttype, var, ttime )

//Update filter highlight
                for ( local i = 0; i < ui_underline.len(); i++ )

                    ui_underline[i].visible = false;
                    ui_underline[fe.list.display_index].visible = true;


Scripting / Re: Script for abbreviation of current display name.
« on: June 09, 2019, 10:20:16 AM »
I'm trying to develop a theme but I'm not good at programming. Would someone help me with a script that abbreviated the name of the display I'm using?

Example: Capcom Play System III for CPSIII.

Thank you all and sorry for my English.

someone helped me with this

Code: [Select]
[b]       // System   
        for ( local i = 0; i < fe.displays.len(); i++ ) {
            local filter = fe.displays[i];
            local shortname =;
            local offset = 90 * i;
            switch( {
                //prefer known abbreviations
               case "Sega Model 2":
                    shortname = "SM2";
                case "Sega Model 3":
                    shortname = "SM3";
        case "Sega Naomi":
                    shortname = "NAO";
                case "Commodore 64":
                    shortname = "C64";
                case "Nintendo Entertainment System":
                    shortname = "NES";
                case "Super Nintendo Entertainment System":
                    shortname = "SNES";
                case "Microsoft MSX":
                    shortname = "MSX";
                case "Sega Mega Drive":
                    shortname = "MD";
                case "Nintendo DS":
                    shortname = "NDS";

                //grab the first three letters as the short name
if (shortname.len() > 4)
shortname = shortname.slice(0, 4);
            local newfilt = fe.add_text(shortname, -98 + offset, 10, 300, 80);
                newfilt.set_rgb( 255, 255, 255 );
                newfilt.font = "CODE";
                newfilt.charsize = 30;
       = Style.Bold;

            local underline = fe.add_image("images/red.png", 22 + offset, 70, 60, 3);
            underline.set_rgb( 240, 0, 0 );
    underline.visible = false ;

            if (i == fe.list.display_index)
                underline.visible = true;


fe.add_transition_callback( this, "on_transition" );[/b]

Pages: [1] 2 3 ... 19