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 ... 18
1
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]
fe.plugin_command
for

Code: [Select]
fe.plugin_command_bg

2
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.

http://forum.attractmode.org/index.php?topic=2324.msg20822#new

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... :'(

3
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.

http://forum.attractmode.org/index.php?topic=1927.0

Any suggestion?

Update:Solved

http://forum.attractmode.org/index.php?topic=1927.0

4
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;

}

5
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 = filter.name.toupper();
            local offset = 90 * i;
           
            switch(filter.name) {
                //prefer known abbreviations
               case "Sega Model 2":
                    shortname = "SM2";
                    break;
                case "Sega Model 3":
                    shortname = "SM3";
                    break;
        case "Sega Naomi":
                    shortname = "NAO";
                    break;
                case "Commodore 64":
                    shortname = "C64";
                    break;
                case "Nintendo Entertainment System":
                    shortname = "NES";
                    break;
                case "Super Nintendo Entertainment System":
                    shortname = "SNES";
                    break;
                case "Microsoft MSX":
                    shortname = "MSX";
                    break;    
                case "Sega Mega Drive":
                    shortname = "MD";
                case "Nintendo DS":
                    shortname = "NDS";
                    break;

                //grab the first three letters as the short name
                default:
if (shortname.len() > 4)
shortname = shortname.slice(0, 4);
                    break;
            }
           
            local newfilt = fe.add_text(shortname, -98 + offset, 10, 300, 80);
                newfilt.set_rgb( 255, 255, 255 );
                newfilt.font = "CODE";
                newfilt.charsize = 30;
                newfilt.style = 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;
            ui_filters.push(newfilt);
ui_underline.push(underline);

        }

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

6
Im having problems with ambiance and multiple drop shadow objects.
AM sudenly closes on w10, tried on w8.1 too.

https://www.youtube.com/watch?v=gAHBYvKDsds

7
Themes / Re: Arcadeflow theme v 4.4 [Release] Updated 9 May 2019
« on: May 19, 2019, 12:25:20 PM »
You are a genius :)

8
Scripting / Re: houston we have a problem....
« on: May 19, 2019, 12:15:42 PM »
https://github.com/mickelson/attract/blob/master/config/plugins/RotationControl.nut


Code: [Select]
fe.layout.base_rotation = RotateScreen.Left;

https://github.com/mickelson/attract/blob/master/Layouts.md

Code: [Select]
base_rotation - Get/set the base (i.e the default) orientation of the layout. This can be one of the following values:

    RotateScreen.None (default)
    RotateScreen.Right
    RotateScreen.Flip
    RotateScreen.Left

toggle_rotation - Get/set the "toggle" orientation of the layout. The toggle rotation is added to the base_rotation to determine what the actual rotation is at any given time. The user can change this value using the Rotation Toggle inputs. This can be one of the following values:

    RotateScreen.None (default)
    RotateScreen.Right
    RotateScreen.Flip
    RotateScreen.Left


Not tested.

9
Anyone is having msvcrt.dll and ntdll.dll errors randomly using tis drop shadow feature.
I made som changes to the hyperpie layout from carls and when I move inside my gamelist, attract mode crashes and is returning me those two dll errors.
Tested on three diferent computers with w8.1 and attrackt 2.5.1

10
Scripting / Re: shuffle module Q: regards animation
« on: February 17, 2019, 03:40:05 AM »
I made this , can send you the code if you want.
Dont know if works with lastests shuffle version.

https://www.youtube.com/watch?v=5h8fs_w_Ytg

11
General / Re: How to add filter rule [a]
« on: February 02, 2019, 02:18:29 PM »
Ill keeptrying, thanks for the suggestions.

Tried this , but failed.

Code: [Select]
filter               NEC
rule                 Name contains NEC
rule                 Name not_equals "NEC PC Engine-CD (Redump)"

Trying to exclude this emulator fom NEC filter.

12
General / Re: How to add filter rule [a]
« on: January 26, 2019, 09:06:22 AM »
Ok , final question, can I make a filter like 'rompath contains...'?
Thanks.

13
General / Re: How to add filter rule [a]
« on: January 26, 2019, 04:19:23 AM »
Thanks again.
What about names like this?

Quote
Afteroids (1988)(Zigurat Software)(ES)

I want to include '(ES)' games only on a filter.

14
General / Re: How to add filter rule [a]
« on: January 21, 2019, 05:18:07 AM »
Thanks, now is working.

15
General / How to add filter rule [a]
« on: January 20, 2019, 01:29:36 PM »
I have some "duplicated" names containing "[a]" ,  "[a2]" , "" ...

Tried:

Code: [Select]
|[a2]|[a3]|[t]
rule                 Name not_contains "[h CEZ]"
rule                 Name not_contains "[h MSX Games bOX]"
rule                 Name not_contains "[cr King Soft]"

But doesnt work.
How can I filter this names?

Pages: [1] 2 3 ... 18