Coding hl.dll Problems Created 12 years ago2012-07-30 19:01:41 UTC by lukwes1 lukwes1

Created 12 years ago2012-07-30 19:01:41 UTC by lukwes1 lukwes1

Posted 12 years ago2012-07-30 19:03:44 UTC Post #308636
I have setup everything and shall try to compile it to the "dlls/hl.dll", i compile it and i get 8 errors: Everyone of them seems to be a problem with setThink().

One of the Error Messages:

"Invalid C:/***/dlls/aflock.cpp|369|error: invalid static_cast from type '<unresolved overloaded function type>' to type 'void (CBaseEntity::*)()'|"

-

All the other errors messages seems to be very similar with that error message..

Please help :(

{ Sorry if posted on wrong forum-part, my first post :) }
Posted 12 years ago2012-07-30 19:31:52 UTC Post #308637
What IDE are you using, is it vanilla hl code or some other derivative ?
rufee rufeeSledge fanboy
Posted 12 years ago2012-07-30 19:32:37 UTC Post #308638
I just use the vanilla.. Nothing special.
Posted 12 years ago2012-07-30 19:58:36 UTC Post #308639
You are using VC++ 2008, which requires some 'fixing' to be compatible with Half-life's code. You must either get an older version of VC++ studio, or else find the '2008 fixed dll' on moddb. You can try to fix it urself, but it's alot of work (I know, I tried)
Posted 12 years ago2012-07-30 20:06:29 UTC Post #308640
Im actually using Code::Blocks, any dll-fix for that?
Posted 12 years ago2012-07-30 20:16:05 UTC Post #308641
the moddb 2008 fix may resolve the issue, I dunno for sure because i didn't use code blocks.
Posted 12 years ago2012-07-30 20:17:47 UTC Post #308642
Can i get a link? :)
Posted 12 years ago2012-07-30 20:18:18 UTC Post #308643
Posted 12 years ago2012-07-30 20:28:36 UTC Post #308645
Well, i downloaded it and fixed it to Code::Blocks, everything worked fine, but then i got one error :|

with this: void CBasePlayer::TabulateAmmo( void );

(Error message: "extra qualification 'CBasePlayer::' on member 'TabulateAmmo'|")
Posted 12 years ago2012-07-30 20:51:24 UTC Post #308646
is it this part? (in player.cpp?)
[quote]void CBasePlayer::TabulateAmmo()
{
ammo_9mm = AmmoInventory( GetAmmoIndex( "9mm" ) );
ammo_357 = AmmoInventory( GetAmmoIndex( "357" ) );
ammo_argrens = AmmoInventory( GetAmmoIndex( "ARgrenades" ) );
ammo_bolts = AmmoInventory( GetAmmoIndex( "bolts" ) );
ammo_buckshot = AmmoInventory( GetAmmoIndex( "buckshot" ) );
ammo_rockets = AmmoInventory( GetAmmoIndex( "rockets" ) );
ammo_uranium = AmmoInventory( GetAmmoIndex( "uranium" ) );
ammo_hornets = AmmoInventory( GetAmmoIndex( "Hornets" ) );
}
[/quote]

What version of SDK u using? In my SDK this section is commented out already. I think u may do so if it isn't
Posted 12 years ago2012-07-30 20:54:21 UTC Post #308647
player.h, and i'm using the SDK in the download you gave me :)
Posted 12 years ago2012-08-03 23:52:56 UTC Post #308759
Maybe try changing the bit in player.h from void CBasePlayer::TabulateAmmo( void ); to void TabulateAmmo( void ); (assuming it's around or at line 314: I think I'm using Spirit of Half-Life's code to check this).
Not sure why CBasePlayer:: is even there seeing as it's in the class definition (and I'm a little surprised it isn't an error in Visual C++).

edit: I think you'd be better off trying a free version of Visual C++ anyway because I think there's an issue with the client.dll project where you can't link the VGUI library without Visual C++.
You must be logged in to post a response.