Recent Posts

Pages: 1 ... 8 9 [10]
91
Scripting / Re: What action causes Transition.EndNavigation?
« Last post by Oomek on October 07, 2018, 05:28:21 AM »
Transition.EndNavigation is triggered when you release a navigation button. It's useful for example if you want to swap the snap image flags from Vid.ImagesOnly to Vid.Default so you do not choke the AM with constantly reloading video snaps while scrolling through roms.
92
Scripting / Phosphor retention effect
« Last post by Oomek on October 07, 2018, 05:24:26 AM »
I've just come up with an idea of how to make a phosphor retention effect in Attract Mode by accident during my experiments.
It's possible by exploiting the one frame delay of surfaces and making a feedback loop between 2 surfaces.
Maybe someone will find a use for it.

layout.nut
Code: [Select]
local flw = fe.layout.width
local flh = fe.layout.height

local su = []
local sh = []
local width = flw /2.0
local height = flh /1.0
local retention = 0.95

su.push( fe.add_surface( width, height ))
su.push( fe.add_surface( width, height ))

local snap = su[0].add_artwork("snap", 0, 0, width, height )

sh.push( fe.add_shader( Shader.Fragment, "shader.frag" ))
sh.push( fe.add_shader( Shader.Fragment, "shader.frag" ))

snap = su[1].add_clone( snap )
sh[0].set_texture_param( "texold", su[0] )
sh[0].set_param( "retention", retention )
snap.shader = sh[0]

snap = su[0].add_clone( snap )
sh[1].set_texture_param( "texold", su[1] )
sh[1].set_param( "retention", retention )
snap.shader = sh[1]

su[0].set_pos( flw / 2.0, flh / 2.0 )
su[0].origin_x = su[0].width / 2.0
su[0].origin_y = su[0].height / 2.0
su[1].visible = false

shader.frag
Code: [Select]
uniform sampler2D texture;
uniform sampler2D texold;
uniform float retention;

void main()
{
    vec4 pixel;
    vec4 pixelold;
vec2 uv = gl_TexCoord[0];
vec2 uvo = gl_TexCoord[0];
uvo.y = 1.0 - uvo.y;
pixel = texture2D( texture, uv );
pixelold = texture2D( texold, uvo );
pixel = max( pixel, pixelold * retention );
    gl_FragColor = gl_Color * pixel;
}
93
Themes / Re: Pandora Box 6 "Preview"
« Last post by bundangdon on October 07, 2018, 05:24:00 AM »
Wheres the download links for these theemes?

Hasn't been released yet
94
Scripting / Re: Last Played Games - Most recent Games list
« Last post by spud1 on October 07, 2018, 01:53:40 AM »
I've tried all sorts to get this working.  I've updated my Attract Mode to the latest version from 2.3.0.   I've checked that the bash script itself works from the command line, which it does.  The problem seems to be with the layout.nut.    It doesn't seem to pass the arguments to the bash script and fails to invoke it.

I've also tried another script (below) found in the forum (http://forum.attractmode.org/index.php?topic=2420.0) as well to see whether this other script writes to a file as it is intended to do.  It doesn't work for me either.  Could anyone who is using a Raspberry Pi and Retropie make any suggestions please?  It looks to me as though the layout.nut isn't invoking the bash scripts for some reason.  Thanks for any suggestions.

Code: [Select]
fe.add_transition_callback( "gamename_transition" );
function gamename_transition( ttype, var, ttime )
{
        if (( ttype == Transition.EndNavigation )
                || ( ttype == Transition.StartLayout ))
        {
                system( "echo '" + fe.game_info( Info.Name ) + "' > ~/.attract/current_name.txt" );
                system( "echo '" + fe.game_info( Info.Title ) + "' > ~/.attract/current_title.txt" );
                system( "echo '" + fe.game_info( Info.System ) + "' > ~/.attract/current_system.txt" );
        }
        return false;
}
95
Themes / Re: Pandora Box 6 "Preview"
« Last post by timemonster on October 06, 2018, 10:32:35 PM »
Wheres the download links for these theemes?
96
Themes / Re: New Pandora Box 6 "Preview"
« Last post by timemonster on October 06, 2018, 09:58:27 PM »
Is this available for download?
97
Themes / Re: Retro game frontend & Juke box - Japanese Manga Theme (JMT) [Released]
« Last post by kent79 on October 06, 2018, 09:54:58 PM »
Update again.You may download it on post 1

- Add play mode options (random or sequence) for screen saver mode. You can config it on screen saver option.  :)
98
Themes / Re: HyperPie2 Theme [V2 Released]
« Last post by Steven Campoli on October 06, 2018, 11:39:11 AM »
Which module controls the name pop up at the top left?
I also see u have a scrolling text.nut. How do we activate that for game title and filters?

99
Themes / is their a way to have attract mode start on the exit display?
« Last post by Steven Campoli on October 06, 2018, 09:56:20 AM »
hey guys!

is their a way to have attract mode start on the exit display?

when i open am it usually launches the display menu with the last system i opened as the one showing the display
when i exit on the exit display and reopen the arrow is on the console to the left of it....

is their a way to have attract mode start on the exit display?

i attached a screenshot of how i would like am to open by default! thank you !
100
General / Re: Mame not getting focus
« Last post by toothlessgrinn on October 05, 2018, 05:23:46 PM »
I myself have found many issues with 2.4 and 2.41 so I went back to 2.3. And I use mame 191 . works perfect. So I'm thinking try using 2.3. 32bit cuz 64bit has issues as well. Don't know if its just a windows thing or what...
Pages: 1 ... 8 9 [10]