Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding

Reply
 
Thread Tools Display Modes
Old 08-08-2012, 09:20 PM   #1
Bitl
 
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.
Bitl is offline  
Reply With Quote
Old 08-09-2012, 02:45 AM   #2
Filip
 
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
Filip is offline   Reply With Quote
Old 08-09-2012, 08:15 AM   #3
ProZak
 
Join Date: Mar 2004
Reputation: 60
Posts: 673
How are we supposed to know? Look at the callstack?
ProZak is offline   Reply With Quote
Old 08-10-2012, 05:53 PM   #4
Bitl
 
Join Date: Jun 2011
Reputation: 8
Posts: 76
Quote:
Originally Posted by Filip View Post
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
It's a code problem, not a .res file problem.
Bitl is offline   Reply With Quote
Old 08-10-2012, 06:19 PM   #5
ProZak
 
Join Date: Mar 2004
Reputation: 60
Posts: 673
It's impossible to help you with the amount of information you've give us.
ProZak is offline   Reply With Quote
Old 08-10-2012, 06:37 PM   #6
Bitl
 
Join Date: Jun 2011
Reputation: 8
Posts: 76
Quote:
Originally Posted by ProZak View Post
It's impossible to help you with the amount of information you've give us.
Ok, thanks ProZak, I'll update the OP.
Bitl is offline   Reply With Quote
Old 08-11-2012, 12:06 AM   #7
vektorx4
 
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.
vektorx4 is offline   Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -7. The time now is 07:39 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2012, All Rights Reserved.