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

Pages: [1]
1
General / Re: Mame 2010 menu settings not saving in Attract Mode
« on: May 13, 2018, 04:19:30 AM »
I had a topic for this too. No one had a solution unfortunately

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

2
General / Re: Attract Mode not saving Mame input config
« on: May 09, 2018, 07:08:28 PM »
You can set your inputs In Mame then set properties to read only. That's what I do.

Sure it's a work-around but I'd like the convenience of never having to touch MAME directly.

3
Scripting / Quit AM After Holding Button Down For Some Time
« on: May 07, 2018, 08:47:02 PM »
Is there a script to have AM close only when the close AM hotkey has been held down for a defined duration of time?

And so it'll ignore it if the button was only pressed regularly?


Code: [Select]
if(ESC is_pressed_for(100)){
   exit;
}

4
Scripting / Re: Customised Listbox
« on: May 07, 2018, 12:56:34 AM »
EDIT:
I fixed it. Your change made it so it loaded fine but when changing filter it was off. When going to a previous filter it showed slot_a as what would go before if there was a variable. slot_b showed slot_a, slot_c showed slot_b etc. When going forward a filter slot_a showed slot_b and so on.

The solution for anyone else looking at this. Change the update_my_list function to:
Code: [Select]
function update_my_list( ttype, var, ttime )
{
    if ( ttype == Transition.StartLayout || ttype == Transition.ToNewSelection )
    {
        slot_a.msg = trimmed_name( var - 2 );
        slot_b.msg = trimmed_name( var - 1 );
        slot_c.msg = trimmed_name( var );
        slot_d.msg = trimmed_name( var + 1 );
        slot_e.msg = trimmed_name( var + 2 );
    }

if ( ttype == Transition.ToNewList )
    {
        slot_a.msg = trimmed_name( -2 );
        slot_b.msg = trimmed_name( -1 );
        slot_c.msg = trimmed_name( 0 );
        slot_d.msg = trimmed_name( 1 );
        slot_e.msg = trimmed_name( 2 );
    }
    return false;
}

5
Scripting / Re: Customised Listbox
« on: May 06, 2018, 05:04:43 PM »
If that's all it is I'm gonna be annoyed with myself. I'll give it a shot after work.

Thanks heaps mate. :)

6
Scripting / Customised Listbox
« on: May 06, 2018, 01:42:50 AM »
I tried implementing this:
https://github.com/mickelson/attract/wiki/Layouts---advanced-lists

Code: [Select]
function trimmed_name( index_offset ) {
    local s = split( fe.game_info( Info.Title, index_offset ), "(" );
    if ( s.len() > 0 )
        return s[0];

    return "";
}

local slot_a = fe.add_text( trimmed_name( -2 ), 100, 100, 900, 50 );
local slot_b = fe.add_text( trimmed_name( -1 ), 100, 150, 900, 50 );
local slot_c = fe.add_text( trimmed_name( 0 ), 100, 200, 900, 50 );
local slot_d = fe.add_text( trimmed_name( 1 ), 100, 250, 900, 50 );
local slot_e = fe.add_text( trimmed_name( 2 ), 100, 300, 900, 50 );

fe.add_transition_callback( "update_my_list" )
function update_my_list( ttype, var, ttime )
{
    if ( ttype == Transition.ToNewSelection )
    {
        slot_a.msg = trimmed_name( var - 2 );
        slot_b.msg = trimmed_name( var - 1 );
        slot_c.msg = trimmed_name( var );
        slot_d.msg = trimmed_name( var + 1 );
        slot_e.msg = trimmed_name( var + 2 );
    }
    return false;
}

However as much as I try I can't get it to respond correctly when transitioning to a new list.

Does anybody have a fully functioning one of this script with changing filters working correctly?

7
General / Re: Attract Mode not saving Mame input config
« on: May 05, 2018, 02:40:43 AM »
After further testing AM seems to have no write permission to MAME. It's not just button settings, but any option change

8
General / Attract Mode not saving Mame input config
« on: May 04, 2018, 05:27:48 PM »
When running mame through AM and I map the buttons, when I next boot the game it's forgotten my buttons. But if I change them on mame directly it's fine. Any suggestions?

I imagine its a Windows issue and AM doesn't have the write permission on the files for some reason but I'm not sure. If it is I'm not sure how to fix it

9
Themes / Re: I present... AMBuilder: Layout Designer!
« on: May 03, 2018, 09:49:18 PM »
this is outstand. thank you so much. :)

10
Themes / Re: [WIP] New Unnamed Theme
« on: May 03, 2018, 09:26:04 PM »
Is this theme complete or ongoing still?

I really like the look of it.

11
Themes / Re: NxL theme! [Release] new video!2-4-2017 Update
« on: May 03, 2018, 09:13:18 AM »
Most times when re-entering a game I get the error

AN ERROR HAS OCCURED [the index 'ScaleWidthHeight' does not exist]

I know its the theme as t doesn't occur when on another theme.

Any suggestions?

12
General / Open File With ROM
« on: May 03, 2018, 01:40:34 AM »
I'm using AM to frontend my MAME build. I was wondering if there's a way to run a 2nd file along with certain ROMs. IE:
If game X is ran open file.bat

Pages: [1]