Log in

View Full Version : mame ctrlr editor



ulaoulao
December 26th, 2008, 04:41
So I needed an xml reader for mame ctrlr files and finally broke down and made one...


For the un-know: Mame uses ctrlr files that are XML files to read in what input of said joystick goes where. My program runs out side of mame and allows a much more elegant approach to editing it. The files are used for special controllers like the XArcade stick. This should also work with the default files but it was not made for it. In theory this files will work with any xml, but the formatting is tailored to a mame ctrl file.


For the know: Hey if you can use it go for it. Yes I know there are XML readers out there and I know of one in game editor, but this is what I needed. So if you can use it go for it. If you would like to see a change name it. If you dont care then go away.. Bye now..

http://spawnlinux.dyndns.org/ctrlr_editor/shot.JPG

For thoes of you that wish to have this or help beta test it get it here.. download (http://spawnlinux.dyndns.org/ctrlr_editor/ctrlr_editor.exe)


TODO:

1) There is a bug that wont allow saving if you run mame after ctrlr_editor is open. I think its a file lock issue.
2) Try to make a button mapper so you can press the button in ctrlr_editor is stead of knowing the code.

Robert
December 26th, 2008, 09:55
Downloading now... at 3.61 MB it must be huge.

ulaoulao
December 26th, 2008, 17:14
Na its a flash app that I created with swf studio. So its going to be a bit big.


update, I was able to get the joystick button mapping work, stay tuned for the next release.

BTW: If you get grooveutil error you have to uninstall the groveutil by Microsoft office ( change / remove ).

Zach
December 27th, 2008, 22:06
Curious why you went with flash?

ulaoulao
December 28th, 2008, 03:08
Curious why you went with flash? - Very good question.

To be honest, I never intended to release this.. I used flash do to the fact its ridiculously simple. That and the grafix are easier IMO.

But its actually swf studio not flash, but samey samey.


UPDATE:

The newer version uses joystick inputs and a button location helper. You can use the ctrl key to do a "AND" or "OR" when adding buttons.

FYI: Some controllers like smart joy use two buttons ID's for a button. Like the n64 B button used button ID 9 and 5. Gay... So in this case I just let it add both as I could not do much about it otherwise.. ( listed as a bug if there is interest ill work on it) The joy sticks also will add axis..

also it's important to remember a button id in the control panel will show 1,2,3,4.... the MAME GUI shows the button id's as 0,1,2,3... the XML shows it like the control panel 1,2,3,4.... In other words. in MAME button 1 on your joystick will show as button 0, but in this app its 1 to mach the XML.


http://spawnlinux.dyndns.org/ctrlr_editor/shotv2.JPG

Here is the old (http://spawnlinux.dyndns.org/ctrlr_editor/ctrlr_editor_v1.exe)v1 file.
Here is the new (http://spawnlinux.dyndns.org/ctrlr_editor/ctrlr_editor_v2.exe)v2 file.

ulaoulao
December 31st, 2008, 02:31
http://spawnlinux.dyndns.org/ctrlr_editor/shotv25.JPG

- Fixed a few bugs
- Fixed alpha slow down.
- added a copier so you can copy player 1 buttons to play 2 buttons ;)
- also added an ID changer to change the joystick ids.


Here is the latest v2.5 . (http://spawnlinux.dyndns.org/ctrlr_editor/ctrlr_editor_v.exe)

Zach
December 31st, 2008, 17:47
Those screens are loading deftly slow... maybe you can reduce their size by half or 3/4 ?

ulaoulao
December 31st, 2008, 19:17
LOL always a critic.. Its do to underground gamer uploads and that fact its on my server. LOL.. They are only 140, 398, and 412 k.

Ok I changed them all to jpg so they are all now 80 k, but I cant edit my post... If you wish just change the PNG to JPG ( case SeNSiTiVe) linux.. .

Zach
January 1st, 2009, 06:35
Much better :)