mupen64plus / mupen64plus-core

Core module of the Mupen64Plus project
1.31k stars 257 forks source link

Input configuration can't be modified on mac os x #147

Open billingb opened 8 years ago

billingb commented 8 years ago

I'm trying to get my PS3 controller to work with the run_rice command on my mac os x 10.11.2 system. I think I know the right button setup, but after I edit the configuration file at ~/.config/mupen64plus/mupen64plus.cfg and try to run the program the buttons revert to the defaults. If I change the mode to 0 then the file is not overwritten, but regardless my preferences don't seem to take effect. I also tried using the M64py front end and had the same behavior occur after setting up the controller in the UI. I feel like I must being doing something obviously wrong, but I can't figure it out.

My config file is attached in case it helps (renamed to .txt so the attachment is accepted). mupen64plus.txt

billingb commented 8 years ago

This is some sample output from run_rice loading:


| \/ | _ / / | || | | | | _ | |\/| | | | | ' \ / \ ' | ' | || || |) | | | | / **|
| | | | || | |) |
/ | | | () |** | _/| | ||
\
|| ||,| .**/ || ||_/ || || ||**,|_/
|_| http://code.google.com/p/mupen64plus/
Mupen64Plus Console User-Interface Version 2.5.0

UI-Console: attached to core library 'Mupen64Plus Core' version 2.5.0 UI-Console: Includes support for Dynamic Recompiler. Core: Goodname: Wetrix (U) (M6) [!] Core: Name: Wetrix
Core: MD5: 6E81D3056E409208E4AF2D39A2FF0F03 Core: CRC: CEA8B54F 7F21D503 Core: Imagetype: .v64 (byteswapped) Core: Rom size: 8388608 bytes (or 8 Mb or 64 Megabits) Core: Version: 1444 Core: Manufacturer: Nintendo Core: Country: USA UI-Console Status: Cheat codes disabled. UI-Console: using Video plugin: 'Mupen64Plus OpenGL Video Plugin by Rice' v2.5.0 UI-Console: using Audio plugin: 'Mupen64Plus SDL Audio Plugin' v2.5.0 UI-Console: using Input plugin: 'Mupen64Plus SDL Input Plugin' v2.5.0 UI-Console: using RSP plugin: 'Hacktarux/Azimer High-Level Emulation RSP Plugin' v2.5.0 Input: 1 SDL joysticks were found. Input: N64 Controller #1: Using manual config for SDL joystick 0 Input: 1 controller(s) found, 1 plugged in and usable in the emulator Input Warning: Couldn't open rumble support for joystick #1 Input Warning: Couldn't open rumble support for joystick #2 Input Warning: Couldn't open rumble support for joystick #3 Input Warning: Couldn't open rumble support for joystick #4 Input: Mupen64Plus SDL Input Plugin version 2.5.0 initialized. Core Status: Selected state slot: 2 Video: SSE processing enabled. Video: Found ROM 'Wetrix', CRC 4fb5a8ce03d5217f-45 Video: Initializing OpenGL Device Context. Core: Setting 32-bit video mode: 640x480 Video Warning: Failed to set GL_SWAP_CONTROL to 0. (it's 32) Video: Using OpenGL: NVIDIA Corporation - NVIDIA GeForce GT 750M OpenGL Engine : 2.1 NVIDIA-10.8.14 310.42.15f01 Audio: Initializing SDL audio subsystem... 2016-01-08 17:29:53.981 mupen64plus[19469:6351330] 17:29:53.981 WARNING: 140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h. Input Warning: Couldn't open rumble support for joystick #1 Input Warning: Couldn't open rumble support for joystick #2 Input Warning: Couldn't open rumble support for joystick #3 Input Warning: Couldn't open rumble support for joystick #4 Core: Starting R4300 emulator: Dynamic Recompiler Core: R4300: starting 64-bit dynamic recompiler at: 0x10181a5d0 Core Status: Stopping emulation. Core: R4300 emulator finished. Core Status: Rom closed.

billingb commented 8 years ago

I've also tried editing the .ini file in: mupen64plus.app/Contents/Resources/InputAutoCfg.ini

I modified the contents in this section like so:

[PLAYSTATION(R)3 Controller] [Sony PLAYSTATION(R)3 Controller] [Sony Computer Entertainment Wireless Controller] [SHENGHIC 2009/0708ZXW-V1Inc. PLAYSTATION(R)3Conteroller] plugged = True plugin = 2 mouse = False AnalogDeadzone = 4096,4096 AnalogPeak = 32768,32768 DPad R = button(6) DPad L = button(8) DPad D = button(7) DPad U = button(5) Start = button(4) Z Trig = button(12) B Button = button(16) A Button = button(15) C Button R = axis(2+) C Button L = axis(2-) C Button D = axis(3+) C Button U = axis(3-) R Trig = button(12) L Trig = button(11) Mempak switch = Rumblepak switch = X Axis = axis(0-,0+) Y Axis = axis(1-,1+)