MadDeCoDeR / Classic-RBDOOM-3-BFG

DOOM: BFA (Big Freaking Anniversary) Edition (former Classic RBDoom 3 BFG) is a source port based on RBDOOM-3-BFG and enchance the experience of Ultimate DOOM, DOOM 2 and DOOM 3.
GNU General Public License v3.0
211 stars 22 forks source link

Crash when starting with "com_game_mode 3" and pressing JOY1 for Campaign #131

Closed mmillar-bolis closed 10 months ago

mmillar-bolis commented 10 months ago

Describe the bug When already having a controller connected to the system, if I execute DoomBFA.exe with set com_game_mode 3 either as a command line argument or declared within autoexec.cfg, the program successfully enters the mouse-driven version of the Doom 3 menu. Additionally, if I press any button on the controller besides JOY1 or JOY2, the interface buttons will dynamically switch to joystick labels, while still in the mouse-driven version of the Doom 3 menu (see screenshot below). While the highlighted menu options cannot be changed by pressing JOY_DPAD_LEFT or JOY_DPAD_RIGHT, if I press JOY1 for Campaign mode, the program silently crashes.

Alternatively, if I press the JOY2 button, the menu will exit to the Game Select screen, and upon selecting Doom 3, the menu will now be the vertical gamepad version of the Doom 3 menu. From there, crashes based on menu item selection no longer occur.

To Reproduce Steps to reproduce the behavior:

  1. Connect a game controller to the system.
  2. Run DoomBFA.exe +set com_game_mode 3.
  3. Press JOY1 button for campaign.
  4. Exhibit silent crash to desktop.

Screenshots screenshot001

Desktop

Additional context qconsole.log

MadDeCoDeR commented 10 months ago

Hi, check the latest nightly build

mmillar-bolis commented 10 months ago

Apologies for the late response. Grabbed the nightly and everything appears to be working well after your fix! Very clever and thank you so much!