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.ini file help...  (Read 3005 times)

0 Members and 1 Guest are viewing this topic.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
ctrlr.ini file help...
« on: May 24, 2004, 03:14:00 pm »
I'm tearing my hair out with something here...I must be doing something obviously wrong, can someone put me out of my misery!:

I have just installed my pedals (2x analog) which I have working fine.  In my ctrlr default.ini I have:

pedal_ini               "pedal.ini"

...and in pedal.ini I have:

P1_PEDAL                "JOYCODE_1_UP"
P1_PEDAL_EXT            "KEYCODE_Y"
P2_PEDAL                "JOYCODE_1_DOWN"
P2_PEDAL_EXT            "KEYCODE_Y"
P3_PEDAL                "CODE_NONE"
P3_PEDAL_EXT            "CODE_NONE"
P4_PEDAL                "CODE_NONE"
P4_PEDAL_EXT            "CODE_NONE"


The problem I have is in Pole Position...for some reason it doesn't automatically set the pedal(s) up, I am thinking because what ever there is in MAME to say 'this game uses a pedal' doesn't work for PolePos (I don't know enough about MAME's code to know how that works).  Not a problem I thought, I'll just make a game-specific ctrlr.ini file for PolePos (polepos.ini), but whatever I try I just cannot get it to work!  I tried the same as above, I tried 'P1_PEDAL_1'  etc - for some reason it *always* uses Left Ctrl and Left Alt keys* (even if I say P1_BUTTON1                "JOYCODE_1_UP" etc)

* I think the ctrlr stuff is being ignored since in the tab menu these inputs are highlighted

I should add that I can get it to work perfectly using the tab input menu, but I don't want to do it that way  :P

Anyone  ???
« Last Edit: May 24, 2004, 03:14:35 pm by Minwah »

ErikRuud

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1709
  • Last login:March 05, 2021, 10:20:27 am
  • I'll build a cab for only 99.99.99!!!
    • Erik's humble video game page
Re:ctrlr.ini file help...
« Reply #1 on: May 24, 2004, 07:05:03 pm »
The inputs setup through the tab menu will override the ctrlr files.

Delete the .cfg file for Pole Position
Real Life.  Still a poor substitute for video games!       
American Laser Games Wrapper
O2em Rom Utility

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re:ctrlr.ini file help...
« Reply #2 on: May 24, 2004, 07:45:38 pm »
The inputs setup through the tab menu will override the ctrlr files.

Delete the .cfg file for Pole Position

Already did that...polepos.cfg keeps getting generated each time I run Pole Position, but since whatever in the ctrlr file isn't working, it is always setup with the default keys...

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re:ctrlr.ini file help...
« Reply #3 on: May 25, 2004, 07:34:44 am »
Is pole position the only game not working, or do none of the games read your changes?

I.E. change P1Button1 to KEYCODE_A in default.ini - do all games reflect this change???
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re:ctrlr.ini file help...
« Reply #4 on: May 25, 2004, 07:49:00 am »
Is pole position the only game not working, or do none of the games read your changes?

I.E. change P1Button1 to KEYCODE_A in default.ini - do all games reflect this change???

Well everything seems to work fine (yes changing default.ini works for most games), except PolePos.  I expect there are others but this is the only one I've come across so far...

Oh, and I know the polepos.ini file is being read because I entered something that was not understood and mame reported it prior to launching the game.

I guess what I really want to know is: does anyone have an analog pedal working with PolePos using ctrlr files??

ErikRuud

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1709
  • Last login:March 05, 2021, 10:20:27 am
  • I'll build a cab for only 99.99.99!!!
    • Erik's humble video game page
Re:ctrlr.ini file help...
« Reply #5 on: May 25, 2004, 11:41:20 am »
A .cfg file is created for every ROM the first time you run it.  It holds more than jsut the key mappings.

It only overides the ctrlr files if you go into the tab menu and change the keys.

Real Life.  Still a poor substitute for video games!       
American Laser Games Wrapper
O2em Rom Utility

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re:ctrlr.ini file help...
« Reply #6 on: May 25, 2004, 11:56:39 am »
A .cfg file is created for every ROM the first time you run it.  It holds more than jsut the key mappings.


I realised that part....

Quote
It only overides the ctrlr files if you go into the tab menu and change the keys.

Thanks for clarifying, I wasn't sure if it saved the inputs into the cfg, whatever they happened to be.

Any more ideas?

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re:ctrlr.ini file help...
« Reply #7 on: May 25, 2004, 12:06:28 pm »
A .cfg file is created for every ROM the first time you run it.  It holds more than jsut the key mappings.


I realised that part....

Quote
It only overides the ctrlr files if you go into the tab menu and change the keys.

Thanks for clarifying, I wasn't sure if it saved the inputs into the cfg, whatever they happened to be.

Any more ideas?
MAME Analog Plus or NoNameMAME might do better.  I know analog pedal support was added to Analog Plus a long time ago, but I thought official MAME picked it up.  And since it's working with the TAB menu and not the .ini files, I doubt that's the problem.

FWIW.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re:ctrlr.ini file help...
« Reply #8 on: May 25, 2004, 03:44:58 pm »
MAME Analog Plus or NoNameMAME might do better.  I know analog pedal support was added to Analog Plus a long time ago, but I thought official MAME picked it up.  And since it's working with the TAB menu and not the .ini files, I doubt that's the problem.

That's what I thought (v0.6x IIRC).  I might check it out anyway to make sure...

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:July 13, 2025, 11:38:27 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:ctrlr.ini file help...
« Reply #9 on: May 26, 2004, 03:31:34 pm »
Part of your problem is quite simple....

You have one pedal for player 1 and the second for player 2.....  Each player has two pedals. Polepos has the pedals both properly mapped to player 1.  (I updated the code myself.)  

Second issue which may or may not cause your problem.....


Taken from the polepos driver:

PORT_START /* IN1 - Brake */
   PORT_ANALOGX( 0xff, 0x00, IPT_PEDAL2, 100, 16, 0, 0x90, KEYCODE_LALT, IP_JOY_DEFAULT, IP_KEY_DEFAULT, IP_JOY_DEFAULT )

   PORT_START /* IN2 - Accel */
   PORT_ANALOGX( 0xff, 0x00, IPT_PEDAL, 100, 16, 0, 0x90, KEYCODE_LCONTROL, IP_JOY_DEFAULT, IP_KEY_DEFAULT, IP_JOY_DEFAULT )


See where a hardcoded key is defined?  Unfotunately it's very tough to get these keys removed (devs want them in for some stupid reason).  What they do is override your mappings.  When you define a cfg file or ctrlr file it is *supposed* to override these keys, but due to a glitch in the loading order sometimes ctrlr files don't.  

If you want it fixed bug urebelscum, he was supposed to be on it.  ;)


Hope that helps,
HAC

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re:ctrlr.ini file help...
« Reply #10 on: May 26, 2004, 07:34:40 pm »
Part of your problem is quite simple....

You have one pedal for player 1 and the second for player 2.....  Each player has two pedals. Polepos has the pedals both properly mapped to player 1.  (I updated the code myself.)  

Second issue which may or may not cause your problem.....


Taken from the polepos driver:

PORT_START /* IN1 - Brake */

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re:ctrlr.ini file help...
« Reply #11 on: May 27, 2004, 07:27:05 am »