|
|
#1 |
![]() Join Date: Jun 2011
Reputation: 8
Posts: 76
|
HL2MP mod crashes if I open the scoreboard
How do I fix this? I also noticed other topics about this, but none of them were answered.
Thank you if you will help me. EDIT: ProZak asked for a more detailed version, now here we go. The game works when I open and play on it. However, when I press Tab, even if I spawn bots, the game freezes then crashes. I noticed that other topics about this did not fix the problem, so it may be rare among others. Last edited by Bitl: 08-10-2012 at 06:41 PM. |
|
|
|
|
|
#2 |
![]() Join Date: Aug 2010
Reputation: 35
Posts: 220
|
scoreboard ? huh...
check your mods resource\ui folder there should be a file "ScoreBoard.res" in there :P if it isnt there you might copy a fresh one from the SDK if it is there and you havent really touched it i dont know |
|
|
|
|
|
#3 |
![]() Join Date: Mar 2004
Reputation: 60
Posts: 673
|
How are we supposed to know? Look at the callstack?
|
|
|
|
|
|
#4 |
![]() Join Date: Jun 2011
Reputation: 8
Posts: 76
|
It's a code problem, not a .res file problem.
|
|
|
|
|
|
#5 |
![]() Join Date: Mar 2004
Reputation: 60
Posts: 673
|
It's impossible to help you with the amount of information you've give us.
|
|
|
|
|
|
#6 |
![]() Join Date: Jun 2011
Reputation: 8
Posts: 76
|
|
|
|
|
|
|
#7 |
![]() Join Date: Jul 2010
Reputation: 0
Posts: 10
|
95% chance that this is a .res problem - I've run into the same issue before. Just having the res in the right place is not enough, it needs to be defined properly so the mod can create certain elements the scoreboard code already expects to exist. I'm fairly sure that if you examine the crash dump (assuming that you're using Source Engine 2007, it will be inside steamapps/<your_account>/source sdk base 2007), you will be pointed to a null pointer in the scoreboard code.
Trace that pointer back to where it is first assigned a value, most probably at least one of the scoreboard headers are missing (typically m_pSomeElement = ( Label* )FindChildByName( "SomeElement" ) inside CHL2MPClientScoreBoardDialog::ApplySchemeSettings( vgui::IScheme* pScheme ) ), then open up the res file and add a new keyvalue subsection for it. You can duplicate an existing subsection and modify it to the missing headers' name and type, just don't forget to modify the xpos and ypos values so it doesn't get hidden behind some other element. |
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|