Menu

#23 Game crashes during a match when start button is pressed

open-accepted
Bernd A.
Game (12)
5
2010-01-17
2010-01-17
Bernd A.
No

The error was reported in this tracker item by Adam: https://sourceforge.net/tracker/?func=detail&aid=2907122&group_id=81520&atid=563213.

How to reproduce:
- Delete config.xml
- Attach two joysticks
- Start game
- Select joystick 1 for player 1 and joystick 2 for player 2
- During a match, press the start button

Assertion failed:
File: cinput.h, Line: 131
Expression: PlayerInput < GetPlayerInputCount()

Discussion

  • Bernd A.

    Bernd A. - 2010-01-17

    Call stack is:
    _wassert(...)
    CInput::GetPlayerInput(int PlayerInput=72), Line 131
    CMatch::ManagePauseMessage(), Line 672
    CMatch::Update(), Line 1033
    CGame::OnWindowActive(), Line 948
    CWindow::MessagePump(), Line 285
    ...

    CMatch.cpp, Line 672: Call is m_pInput->GetPlayerInput(72).Update();
    m_pOptions->GetPlayerInput(i=6) returns 72.

    That's a bit confusing. I think line 671 should be "do i = 0 to maxplayer", because m_pOptions->GetPlayerInput(...) has the player id (0..maxplayer-1) as parameter.

     
  • Bernd A.

    Bernd A. - 2010-01-17
    • status: open --> open-accepted
     
  • Adam Jimenez

    Adam Jimenez - 2010-01-17

    i used Bombermaaan_xbox.exe.

    can confirm it no longer crashes and start button triggers the pause screen.