Raised This Month: $32 Target: $400
 8% 

GetName VFunc


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 07-11-2010 , 18:25   GetName VFunc
Reply With Quote #1

I'm having trouble on the CSS orangebox update with using GetName on a weapon. All my other vfunc calls are fine, but this one keeps returning a bad pointer. Any one else run into a problem with this?

I know Mani uses it, I looked at the source and it looks like what I'm doing.
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
Keeper
Senior Member
Join Date: Nov 2006
Old 07-11-2010 , 20:40   Re: GetName VFunc
Reply With Quote #2

When I was updating Mani, I found that the windows version is off by 4 on the CBaseCombatWeapon. ( on the functions we were looking for )

Linux is:
Code:
CBaseCombatWeapon::GetName "316"
While Windows is
Code:
CBaseCombatWeapon::GetName "312"

Last edited by Keeper; 07-11-2010 at 20:57. Reason: well, probably not all vfuncs of CBaseCombatWeapon
Keeper is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 07-11-2010 , 22:36   Re: GetName VFunc
Reply With Quote #3

Thank you Keeper!

When the three overloads of the KeyValues functions were in a different order it took me forever to debug my way through and figure that out. This would have been the same thing or worse I imagine.
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
BAILOPAN
Join Date: Jan 2004
Old 07-12-2010 , 00:08   Re: GetName VFunc
Reply With Quote #4

Yeah - MSVC reorders overloaded vtable entries backwards.
__________________
egg
BAILOPAN is offline
Reply


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

Forum Jump


All times are GMT -4. The time now is 13:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode