Main > Main Forum

LED-Wiz USB LED and Output Control Device now available. *Blinky lights*

Pages: << < (57/92) > >>

2600:

Your using MAME32.  Not sure why the cfg is different.  The ctrlr cfg is a slighty different answer.  I'm not sure if you want to take this to another thread or not to discuss it as it can go on and on.

SirPoonga:


--- Quote from: MikeQ on January 06, 2006, 10:05:34 am ---in asteroid.cfg I get this:

<?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
    <system name="asteroid" />
</mameconfig>

I never got a .ctrlr file even after changing the settings.

--- End quote ---
Of course, you make the ctrlr files.


--- Quote ---I also don't see a default .cfg file with the default values.

--- End quote ---
Hmm, they changed it since I last looked at it.  Well, with an empty system tag that means to use the defaults.
I looked at defaults.cfg, it was empty to.  So I switch inputs and got

--- Code: ---<?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
    <system name="default">
        <input>
            <port type="P1_BUTTON1">
                <newseq type="standard">
                    KEYCODE_A
                </newseq>
            </port>
        </input>
    </system>
</mameconfig>
--- End code ---
And I switched asteroid

--- Code: ---<?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
    <system name="asteroid">
        <input>
            <port type="P1_BUTTON1" mask="16" index="5" defvalue="0">
                <newseq type="standard">
                    KEYCODE_Z
                </newseq>
            </port>
        </input>
    </system>
</mameconfig>
--- End code ---

That worked.  I then created a \ctrlr\test folder, put a modified asteroid.cfg file there renamed to test.cfg.  added -ctrlr test.cfg to commandline.  Didn't work until I deleted default.cfg and asteroid.cfg in the cfg folder.  Hmmm, the devs changed this.  The ctrlr files use to override the cfg files.  However, with it as it stands I don't see the need for anyone to use the ctrlr files anymore.

So, if the system tag is empty in the rom, parent, and default then defaults are used.
You'll have to ask HowardC about ctrlr files and the algorithm used in johnny5 to know what order things need to be looked at.

2600:

Woops forgot about that.

SirPoonga is half right, except you can't copy cfg files to ctrlr cfg files directly.

Should look more like:


--- Code: ---<mameconfig version="10">
    <system name="asteroid">
        <input>
            <port type="P1_BUTTON1">
                <newseq type="standard">KEYCODE_Z
                </newseq>
            </port>
        </input>
    </system>
</mameconfig>
--- End code ---


SirPoonga:


--- Quote from: 2600 on January 06, 2006, 10:56:57 am ---SirPoonga is half right, except you can't copy cfg files to ctrlr cfg files directly.

--- End quote ---
Yes you can, I just did.  Plus how is what you posted different other than not having a couple of attributes.

Note that the order in which things are in the cfg file makes a difference.  Like if mslug was defined before neogeo then the neogeo would never get used, or something like that.  Again, HowardC knows more as he figured this stuff out for johnny5.

2600:


--- Quote from: SirPoonga on January 06, 2006, 12:22:58 pm ---
--- Quote from: 2600 on January 06, 2006, 10:56:57 am ---SirPoonga is half right, except you can't copy cfg files to ctrlr cfg files directly.

--- End quote ---
Yes you can, I just did.  Plus how is what you posted different other than not having a couple of attributes.

--- End quote ---

Mine works, you said yours didn't.  Also, when you call the cfg, I believe you just say the name "test" not test.cfg.  Note: I didn't have to delete other files either.

If it does for some work by just copying it, I'd still advise against it.  Rember the cfg files store more then just controls.  Let's move this to a different thread if you want to continue.

Pages: << < (57/92) > >>

Go to full version