Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Ctrlr File Issues  (Read 1656 times)

0 Members and 1 Guest are viewing this topic.

sc1103

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 332
  • Last login:December 11, 2020, 08:37:35 pm
  • ......
Ctrlr File Issues
« on: October 12, 2005, 10:31:40 pm »
I finally decided to get to work with HowardC's Johnny5 viewer, so I have begun creating ctrlr files.  I have been searching through the forumns, and all the information about ctrlr files in mame point to easyemu, and use the .ini style then HowardC's ini2xml converter to create a cfg ctrlr file for use in newer versions of mame.  I created 3 ctrlr files inside a folder called mycabinet- default.ini, cps1.ini, and cps2.ini.  Default used the std.ini, but player1button2 was now rightshift.  In cps1 and cps2, the buttons were configured to be in the Street Fighter layout:
(SF) 123        vs       567   (DEFAULT)
       456                 1234

I tested the .ini files and they seemed to be working in the older version of mame; however, after i converted the file with the ini2xml converter, i run a cps2 based rom and get that the controller file cannot be loaded.  Can anyone discern what may be wrong, or should I post the contents of the ctrlr files?  Sorry for asking such a dumb question  :-[

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: Ctrlr File Issues
« Reply #1 on: October 13, 2005, 04:59:14 am »
I tested the .ini files and they seemed to be working in the older version of mame; however, after i converted the file with the ini2xml converter, i run a cps2 based rom and get that the controller file cannot be loaded.  Can anyone discern what may be wrong, or should I post the contents of the ctrlr files?  Sorry for asking such a dumb question  :-[

It could well be something very simple, like a missing '<' or something.  Post your xml ctrlr file and we might be able to spot something...

sc1103

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 332
  • Last login:December 11, 2020, 08:37:35 pm
  • ......
Re: Ctrlr File Issues
« Reply #2 on: October 13, 2005, 10:00:21 am »
Minwah, the file is rather long, I owuld have had to have about 4-5 posts to get it all to fit.  Its now attached as the mycabinet.txt file.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: Ctrlr File Issues
« Reply #3 on: October 13, 2005, 10:46:53 am »
Believe it or not the 'd' in 'default' has to be lowercase - just change this line:

<system name="default">

sc1103

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 332
  • Last login:December 11, 2020, 08:37:35 pm
  • ......
Re: Ctrlr File Issues
« Reply #4 on: October 13, 2005, 10:55:01 am »
 
Believe it or not the 'd' in 'default' has to be lowercase - just change this line:

<system name="default">

:o wow...thats about all i can say.  thnaks for the help!  :D
« Last Edit: October 13, 2005, 11:06:17 am by sc1103 »

sc1103

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 332
  • Last login:December 11, 2020, 08:37:35 pm
  • ......
Re: Ctrlr File Issues
« Reply #5 on: October 13, 2005, 11:26:17 am »
Minwah, I changed the system name to default, and now the ctrlr file is accepted by mame, but when I loaded marvel vs capcom, the buttons were Lctrl, Rshift, Space, LShift, Z, and X.  It seems that mame ignored the cps2 entry.  I changed teh CPS1 to cps1 and the same for CPS2, but neither the upper nor lowercase changed anyting.  Could it be the duplicate default entry at the end overwrites the cps1/cps2 changes?

Buddabing

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1845
  • Last login:February 12, 2015, 02:51:45 pm
  • I'm a llama!
Re: Ctrlr File Issues
« Reply #6 on: October 13, 2005, 01:39:17 pm »
Could it be the duplicate default entry at the end overwrites the cps1/cps2 changes?

That would do it. The systems are loaded in order and if you have two systems with the same name it'll overwrite the first one with the second.
I have changed my nickname to "Cakemeister". Please do not PM the Buddabing account because I do not check it anymore.

Please read the wiki!

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: Ctrlr File Issues
« Reply #7 on: October 13, 2005, 01:39:35 pm »
... Could it be the duplicate default entry at the end overwrites the cps1/cps2 changes?

Yes.  Mame (now) reads the ctrlr file from front to end, "system" by "system".  If the system applies to the game, that system settings are used.  Since the default system is last, it overrides everything.

That means put the default at the front of the file, the groupies (cps1, cps2, neogeo, etc) next, then the parents, and last the individual games.  (If you go that deep).
Robin
Knowledge is Power

sc1103

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 332
  • Last login:December 11, 2020, 08:37:35 pm
  • ......
Re: Ctrlr File Issues
« Reply #8 on: October 13, 2005, 01:46:34 pm »
Could it be the duplicate default entry at the end overwrites the cps1/cps2 changes?

That would do it. The systems are loaded in order and if you have two systems with the same name it'll overwrite the first one with the second.

... Could it be the duplicate default entry at the end overwrites the cps1/cps2 changes?

Yes. Mame (now) reads the ctrlr file from front to end, "system" by "system". If the system applies to the game, that system settings are used. Since the default system is last, it overrides everything.

That means put the default at the front of the file, the groupies (cps1, cps2, neogeo, etc) next, then the parents, and last the individual games. (If you go that deep).

Thanks for teh clarifications

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:July 03, 2025, 06:36:13 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Ctrlr File Issues
« Reply #9 on: October 13, 2005, 10:15:31 pm »
Btw this seems dumb to me.  It used to be default, monitor, driver, clone, game.  Now it just reads from top to bottom.  This makes it rather compliacted to write ctrlr files and probably needs to be fixed in the mame code. 

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: Ctrlr File Issues
« Reply #10 on: October 14, 2005, 02:28:09 pm »
Btw this seems dumb to me.  It used to be default, monitor, driver, clone, game.  Now it just reads from top to bottom.  This makes it rather compliacted to write ctrlr files and probably needs to be fixed in the mame code. 

"Dumb", as in simplified programming, yes.  It should be fixed, but fixed correctly.  A bad fix could be 'worse' than it is now.


BTW Howard, what do mean by "monitor"?  Mouse, dial, etc?
Robin
Knowledge is Power

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:July 03, 2025, 06:36:13 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Ctrlr File Issues
« Reply #11 on: October 15, 2005, 05:42:48 am »
vector or raster..... beleive it or not you could do ctrlr files based on that as ctrlr files were an off-shoot of the ini files. 


And yes, I agree that the programming is dumb. 

My only complaint about Aaron's run as head (and at the time co-head) is that when he goes about fixing stuff he doesn't go about it the right way.  It could be argued (certainly not by me) that the old ctrlr format needed fixed.  Well that is all well and good,  but if fixing it loses the functionality it originally had, then hold off on the fixing until you are willing/able to fix it the right way. 

This recent habit of him removing features has nothing to do with what he deems important or not, it has to do with the fact that he's doing core changes left ane right and sometimes he's too (and I hate to use this word) "lazy" to put them back in.  Well, that and a tad bit of arrogance. 

Take .100u3 for example. 

Changed validity checks to use hashes for speed. Also changed them to only run on the drivers in the source file of the current game, rather than on all games, in non-debug builds. And fixed the coinage sorting check so that it doesn't depend on the linker to order the strings in a particular way.
[Paul Priest]

Removed -skip_validitychecks option now that the time to execute the checks is not as bad.
[Aaron Giles]


First off, my guess is that when Paul changed the validity checks, he might have broke the code to skip it.  Aaron might have just not wanted to bother putting it back in, which is just silly. 

Now if it wasn't broken and he just decided to take it out, I find that quite outrageous.  First off, just because it's faster doesn't mean that skipping it all-together isn't faster still.  Validity checks aren't necessary if you have half a clue what you are doing and run your roms though a rom manager.  But the bad thing is, the code was already there and it doesn't hurt anything to leave it in.  I don't like the idea of a single guy ripping apart everyone else's code just because he personally doesn't find a use for some of it. 

He's been doing a lot of that stuff lately and it's gone by unnoticed by most.  We need to keep an eye on this one.   :police:


Sorry to go off track and rant, but I figured while we were on the subject.  You know me, straight shooter as always. 


Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: Ctrlr File Issues
« Reply #12 on: October 16, 2005, 05:00:30 pm »
My only real gripe with the current ctrlr system is that sensitivity etc. for analog inputs cannot be used in the ctrlr file.  In theory you should be able to copy these parts from \cfg\gamename.cfg files and paste into ctrlr files but this does not work :(