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.


Topics - redhalo

Pages: [1]
1
Scripting / Error with conveyor module.
« on: February 19, 2015, 05:14:32 AM »
Can't figure it out. The below code is almost identical to the example in the conveyor module, but when ran I receive the error "the index 'rawset_index_offset' does not exist"

Code: [Select]
fe.load_module( "conveyor" );

class Card extends ConveyorSlot {
    m_parent = null;
    constructor( parent, text ) {
        m_parent = parent;
        base.constructor( ::fe.add_text( text, 0, 0, 0, 0 ) );
    }

    function on_progress( progress, var ) {
        m_obj.set_rgb( 255, 0, 0 );
        m_obj.width = m_parent.m_width;
        m_obj.height = m_parent.m_height;
        m_obj.x = m_parent.m_x + progress * m_parent.m_x_span;
        m_obj.y = m_parent.m_y + progress * m_parent.m_y_span;
    }
};

class Cards extends Conveyor {
    m_x=0; m_y=0; m_width=0; m_height=0; m_x_span=0; m_y_span=0;

    constructor( text, num_objs, x, y, width, height, pad=0 ) {
        base.constructor();
        local my_list = [];
        for ( local i=0; i<num_objs; i++ )
            my_list.push( Card( this, text ) );
        set_slots( my_list );

        m_x=x+pad/2; m_y=y+pad/2;

        m_x_span=width;
        m_y_span=0;
        m_width=width/m_objs.len()-pad;
        m_height=height-pad;

        reset_progress();
    }
};

local cards = Cards( "test", 5, 0, 0, fe.layout.width,
  25, 2 );

2
General / Mess Software List or No-Intro issue.
« on: July 29, 2014, 02:56:35 PM »
I really like the straightforwardness of Attract-Mode but am running into a problem. If I'm using roms named in the No-Intro fashion, how can I populate the rom lists with info in order to use filters? If instead I use Mess Software List roms, how do I match them up with artwork. It would seem that either issue would require an obscene amount of hand editing to get non MAME roms to have both artwork and be filterable. Am I missing some technique to make this happen?

Pages: [1]