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] 4 5 ... 21
31
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...

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

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



Inspiration:
https://retropie.org.uk/forum/topic/15029/savestate-loading-from-es-like-on-snesmini-with-screenshot

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.
Steps:

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'

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.
http://schinagl.priv.at/nt/hardlinkshellext/linkshellextension.html

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]
input_map
toggle_rotate_right  T
toggle_flip          Y
toggle_rotate_left   U


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


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

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



EXTRA: SavestateClear.bat THIS FILE DELETES THE .STATE.AUTO FILE WHEN YOU RETURN FROM THE GAME.
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

34
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

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

36
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

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

}

38
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]

39
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

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

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

42
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

43
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

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

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

Pages: 1 2 [3] 4 5 ... 21