mupen64plus控件怎么配置?

Jos*_*osh 12 keyboard emulation games

我使用 Synaptic 从存储库安装 mupen64plus。我喜欢模拟器(在大多数情况下,TLOZ Ocarina of Time 上有几个图形故障),尤其是它在我的旧机器上的性能,但我不知道如何为自己配置控件。我尝试在此处查看 Google 代码指南但找不到我需要编辑的文件,并且带有密钥 ID 的链接不起作用,因此即使我能找到该文件,我也无法更改任何内容。所以我需要的是一个带有密钥 ID 的资源以及在哪里可以找到我需要编辑的文件。

我正在运行 Ubuntu 12.10 32 位。2GB 内存,英特尔酷睿 2 DUO @ 2.00GHz

这是问题的附加部分。M64py 是一种流行的选择。但是,它要求您输入所需的各种文件的路径。默认位置在哪里?包括 32 位系统和 64 位系统。(需要的文件有库文件、插件目录和数据目录。)

Ami*_* KK 10

您可以使用配置文件配置控件。首选方法是使用具有控制器设置的前端。

M64py

M64py 是 Mupen64Plus 的 Qt 前端。它可以从这里下载

它有一个控制器配置 ui,如图所示

您可以从这里配置控件,然后从这里自己启动游戏或mupen64plus /path/to/rom在终端中实际运行

  • 喜欢那个依赖兔子洞。Python:它只是有效。哦,但是首先你要安装pyqt5,要安装pyqt5,你必须编译sip4,要编译sip4,你需要libpython2.7,然后安装libpython2.7……当然,即使在我得到了要构建和安装 500 万个依赖项,m64py 拒绝运行,因为“about.ui”(它期望来自 M64PY'S OWN REPOSITORY 的东西)不存在。Python是不可能的。 (6认同)
  • 此应用程序不会保存在 SDL 输入页面中所做的更改。我希望有一个不错的 GUI 前端来帮助映射,但是如果它不能保存到文件中,那有什么意义呢? (2认同)

小智 9

我自己无法为 mupen 运行 GUI,所以我最终想出了如何配置它并在终端中运行它。我用来配置控制器的文件是:

~/.config/mupen64plus/mupen64plus.cfg
Run Code Online (Sandbox Code Playgroud)

在那里我找到了它谈论操纵杆的区域,并通过反复试验发现,如果我在控制器上看到一个数字(按钮已编号),我会在配置文件中输入该数字减去一,而对于按钮,我没有使用我只是将其留空,如“”。我会留下我使用的代码:

    [Input-SDL-Control1]
    # Mupen64Plus SDL Input Plugin config parameter version number.  Please don't change
    version = 1
    # Specifies whether this controller is 'plugged in' to the simulated N64
    plugged = True
    # Specifies which type of expansion pak is in the controller: 1=None, 2=Mem pak, 5=Rumble pak
    plugin = 2
    # If True, then mouse buttons may be used with this controller
    mouse = False
    # Specifies which joystick is bound to this controller: -2=Keyboard/mouse, -1=Auto config, 0 or more= SDL Joystick number
    device = 1
    # SDL joystick name (name check disabled if this is empty string)
    name = "DragonRise Inc.   Generic   USB  Joystick  "
    # Scaling factor for mouse movements.  For X, Y axes.
    MouseSensitivity = "2.00,2.00"
    # The minimum absolute value of the SDL analog joystick axis to move the N64 controller axis value from 0.  For X, Y axes.
    AnalogDeadzone = "4096,4096"
    # An absolute value of the SDL joystick axis >= AnalogPeak will saturate the N64 controller axis value (at 80).  For X, Y axes. For each axis, this must be greater than the corresponding AnalogDeadzone value
    AnalogPeak = "32768,32768"
    # Digital button configuration mappings
    DPad R = ""
    DPad L = ""
    DPad D = ""
    DPad U = ""
    Start = "button(9)"
    Z Trig = "button(6)"
    B Button = "button(1)"
    A Button = "button(0)"
    C Button R = "axis(3+)"
    C Button L = "axis(3+)"
    C Button D = "axis(4+)"
    C Button U = "axis(4+)"
    R Trig = "button(7)"
    L Trig = ""
    Mempak switch = ""
    Rumblepak switch = ""
    # Analog axis configuration mappings
    X Axis = "axis(0-,0+)"
    Y Axis = "axis(1-,1+)"
Run Code Online (Sandbox Code Playgroud)


iyr*_*rin 5

不幸的是,m64py 对我来说不是一个可行的解决方案,“反复试验”太麻烦了。这是当前运行 mupen64plus 的任何人,无论是否有 gui,都应该能够使用的解决方案。

您将需要操纵杆校准工具jscal来确定哪个按钮是哪个。有关这方面的帮助,请参阅Ubuntu 论坛 - 游戏和休闲 - HOWTO:Ubuntu 下的操纵杆/游戏手柄

假设您已经设置好并且您的操纵杆已经正确校准,您需要做的就是运行jstest-gtk /dev/input/js0 &js0您当前正在测试的设备的校准文件在哪里。

您将看到编号轴和按钮的 gui。它看起来像这样:

mupen linux 的 jscal 控制器和操纵杆按钮映射

现在您可以按下控制器上的按钮来查看它对应的轴或按钮。


将自定义控制器配置应用于 mupen

找到InputAutoCfg.ini
运行locate InputAutoCfg.ini。对我来说,这是在目录中/usr/share/games/mupen64plus/InputAutoCfg.ini

InputAutoCfg.ini在您首选的文本编辑器中打开。
vim /usr/share/games/mupen64plus/InputAutoCfg.ini.

找到您的设备并编辑设置。
您可以通过mupen64plus从命令行终端运行并找到您的控制器的名称来找出mupen 正在使用哪个设备(控制器)。

我的说Input: N64 Controller #1: Using auto-config with SDL joystick 0 ('Generic X-Box pad')。所以对我来说,设置在[Generic X-Box pad].

将更改保存/写入文件,下次运行mupen64plus.

经过一些更改,我的看起来像这样:

[Generic X-Box pad]
plugged = True
plugin = 2
mouse = False
AnalogDeadzone = "4096,4096"
AnalogPeak = "32768,32768"
DPad R = "hat(0 Right)"
DPad L = "hat(0 Left)"
DPad D = "hat(0 Down)"
DPad U = "hat(0 Up)"
Start = "button(7)"
Z Trig = "button(4)"
B Button = "button(2)"
A Button = "button(0)"
C Button R = "axis(3+)"
C Button L = "axis(3-)"
C Button D = "axis(4+)"
C Button U = "axis(4-)"
R Trig = "button(5)"
L Trig = "axis(2+)"
Mempak switch = "axis(5+)"
Rumblepak switch = "button(2)"
X Axis = "axis(0-,0+)"
Y Axis = "axis(1-,1+)"
Run Code Online (Sandbox Code Playgroud)

使用jstest,您应该能够弄清楚您希望如何配置InputAutoCfg.ini以使用输入事件词来自定义您的输入设置。

有时查看 N64 控制器布局有助于确定您打算映射的参数。

N64 控制器按键布局配置