[hlcoders] Bots in HL2DM?

2005-02-21 Thread Mark Ettinger
Has anyone successfully ported the basic bot code in the barebones MP
mod to the new deathmatch code?  After copying a few files from
basic-MP to the DM folders (most of the stuff is already there but
needs to be added to the project) I can get it to compile but I get 22
link errors (unresolved externals).  The link errors are listed below.

Many thanks.




hl error LNK2019: unresolved external symbol "char const * __cdecl
FindEngineArg(char const *)" (?FindEngineArg@@[EMAIL PROTECTED]) referenced
in function "void __cdecl BotAdd_f(void)" (?BotAdd_f@@YAXXZ)
hl error LNK2019: unresolved external symbol "int __cdecl
FindEngineArgInt(char const *,int)" (?FindEngineArgInt@@[EMAIL PROTECTED])
referenced in function "void __cdecl BotAdd_f(void)"
(?BotAdd_f@@YAXXZ)
hl error LNK2001: unresolved external symbol "public: virtual bool
__thiscall CSDKPlayer::SDKAnim_CanMove(void)"
([EMAIL PROTECTED]@@UAE_NXZ)
hl error LNK2001: unresolved external symbol "public: virtual class
CWeaponSDKBase * __thiscall CSDKPlayer::SDKAnim_GetActiveWeapon(void)"
([EMAIL PROTECTED]@@UAEPAVCWeaponSDKBase@@XZ)
hl error LNK2001: unresolved external symbol "public: virtual void
__thiscall CSDKPlayer::LeaveVehicle(class Vector const &,class QAngle
const &)" ([EMAIL PROTECTED]@@UAEXABVVector@@ABVQAngle@@@Z)
hl error LNK2001: unresolved external symbol "public: virtual void
__thiscall CSDKPlayer::CheatImpulseCommands(int)"
([EMAIL PROTECTED]@@[EMAIL PROTECTED])
hl error LNK2001: unresolved external symbol "public: virtual void
__thiscall CSDKPlayer::FlashlightTurnOff(void)"
([EMAIL PROTECTED]@@UAEXXZ)
hl error LNK2001: unresolved external symbol "public: virtual void
__thiscall CSDKPlayer::FlashlightTurnOn(void)"
([EMAIL PROTECTED]@@UAEXXZ)
hl error LNK2001: unresolved external symbol "public: virtual int
__thiscall CSDKPlayer::FlashlightIsOn(void)"
([EMAIL PROTECTED]@@UAEHXZ)
hl error LNK2001: unresolved external symbol "public: virtual void
__thiscall CSDKPlayer::PostThink(void)"
([EMAIL PROTECTED]@@UAEXXZ)
hl error LNK2001: unresolved external symbol "public: virtual void
__thiscall CSDKPlayer::PreThink(void)" ([EMAIL PROTECTED]@@UAEXXZ)
hl error LNK2001: unresolved external symbol "public: virtual void
__thiscall CSDKPlayer::InitialSpawn(void)"
([EMAIL PROTECTED]@@UAEXXZ)
hl error LNK2001: unresolved external symbol "public: virtual void
__thiscall CSDKPlayer::CreateViewModel(int)"
([EMAIL PROTECTED]@@[EMAIL PROTECTED])
hl error LNK2001: unresolved external symbol "public: virtual void
__thiscall CSDKPlayer::Event_Killed(class CTakeDamageInfo const &)"
([EMAIL PROTECTED]@@UAEXABVCTakeDamageInfo@@@Z)
hl error LNK2001: unresolved external symbol "public: virtual void
__thiscall CSDKPlayer::Precache(void)" ([EMAIL PROTECTED]@@UAEXXZ)
hl error LNK2001: unresolved external symbol "public: virtual void
__thiscall CSDKPlayer::Spawn(void)" ([EMAIL PROTECTED]@@UAEXXZ)
hl error LNK2001: unresolved external symbol "public: virtual int
__thiscall CSDKPlayer::YouForgotToImplementOrDeclareServerClass(void)"
([EMAIL PROTECTED]@@UAEHXZ)
hl error LNK2001: unresolved external symbol "public: virtual char
const * __thiscall CSDKPlayer::GetClassName(void)"
([EMAIL PROTECTED]@@UAEPBDXZ)
hl error LNK2001: unresolved external symbol "public: virtual class
ServerClass * __thiscall CSDKPlayer::GetServerClass(void)"
([EMAIL PROTECTED]@@UAEPAVServerClass@@XZ)
hl error LNK2001: unresolved external symbol "public: virtual struct
datamap_t * __thiscall CSDKPlayer::GetPredDescMap(void)"
([EMAIL PROTECTED]@@UAEPAUdatamap_t@@XZ)
hl error LNK2019: unresolved external symbol "public: __thiscall
CSDKPlayer::CSDKPlayer(void)" (??0CSDKPlayer@@[EMAIL PROTECTED]) referenced in
function "public: __thiscall CSDKBot::CSDKBot(void)"
(??0CSDKBot@@[EMAIL PROTECTED])
hl error LNK2019: unresolved external symbol "public: virtual
__thiscall CSDKPlayer::~CSDKPlayer(void)" (??1CSDKPlayer@@[EMAIL PROTECTED])
referenced in function "public: virtual __thiscall
CSDKBot::~CSDKBot(void)" (??1CSDKBot@@[EMAIL PROTECTED])
hl fatal error LNK1120: 22 unresolved externals

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Bots in HL2DM?

2005-02-21 Thread Daniel Jennings
Try using CBasePlayer instead of CSDKPlayer.


- Original Message -
From: "Mark Ettinger" <[EMAIL PROTECTED]>
To: 
Sent: Monday, February 21, 2005 6:00 PM
Subject: [hlcoders] Bots in HL2DM?


> Has anyone successfully ported the basic bot code in the barebones MP
> mod to the new deathmatch code?  After copying a few files from
> basic-MP to the DM folders (most of the stuff is already there but
> needs to be added to the project) I can get it to compile but I get 22
> link errors (unresolved externals).  The link errors are listed below.
>
> Many thanks.
>
>
>
>
> hl error LNK2019: unresolved external symbol "char const * __cdecl
> FindEngineArg(char const *)" (?FindEngineArg@@[EMAIL PROTECTED]) referenced
> in function "void __cdecl BotAdd_f(void)" (?BotAdd_f@@YAXXZ)
> hl error LNK2019: unresolved external symbol "int __cdecl
> FindEngineArgInt(char const *,int)" (?FindEngineArgInt@@[EMAIL PROTECTED])
> referenced in function "void __cdecl BotAdd_f(void)"
> (?BotAdd_f@@YAXXZ)
> hl error LNK2001: unresolved external symbol "public: virtual bool
> __thiscall CSDKPlayer::SDKAnim_CanMove(void)"
> ([EMAIL PROTECTED]@@UAE_NXZ)
> hl error LNK2001: unresolved external symbol "public: virtual class
> CWeaponSDKBase * __thiscall CSDKPlayer::SDKAnim_GetActiveWeapon(void)"
> ([EMAIL PROTECTED]@@UAEPAVCWeaponSDKBase@@XZ)
> hl error LNK2001: unresolved external symbol "public: virtual void
> __thiscall CSDKPlayer::LeaveVehicle(class Vector const &,class QAngle
> const &)" ([EMAIL PROTECTED]@@UAEXABVVector@@ABVQAngle@@@Z)
> hl error LNK2001: unresolved external symbol "public: virtual void
> __thiscall CSDKPlayer::CheatImpulseCommands(int)"
> ([EMAIL PROTECTED]@@[EMAIL PROTECTED])
> hl error LNK2001: unresolved external symbol "public: virtual void
> __thiscall CSDKPlayer::FlashlightTurnOff(void)"
> ([EMAIL PROTECTED]@@UAEXXZ)
> hl error LNK2001: unresolved external symbol "public: virtual void
> __thiscall CSDKPlayer::FlashlightTurnOn(void)"
> ([EMAIL PROTECTED]@@UAEXXZ)
> hl error LNK2001: unresolved external symbol "public: virtual int
> __thiscall CSDKPlayer::FlashlightIsOn(void)"
> ([EMAIL PROTECTED]@@UAEHXZ)
> hl error LNK2001: unresolved external symbol "public: virtual void
> __thiscall CSDKPlayer::PostThink(void)"
> ([EMAIL PROTECTED]@@UAEXXZ)
> hl error LNK2001: unresolved external symbol "public: virtual void
> __thiscall CSDKPlayer::PreThink(void)" ([EMAIL PROTECTED]@@UAEXXZ)
> hl error LNK2001: unresolved external symbol "public: virtual void
> __thiscall CSDKPlayer::InitialSpawn(void)"
> ([EMAIL PROTECTED]@@UAEXXZ)
> hl error LNK2001: unresolved external symbol "public: virtual void
> __thiscall CSDKPlayer::CreateViewModel(int)"
> ([EMAIL PROTECTED]@@[EMAIL PROTECTED])
> hl error LNK2001: unresolved external symbol "public: virtual void
> __thiscall CSDKPlayer::Event_Killed(class CTakeDamageInfo const &)"
> ([EMAIL PROTECTED]@@UAEXABVCTakeDamageInfo@@@Z)
> hl error LNK2001: unresolved external symbol "public: virtual void
> __thiscall CSDKPlayer::Precache(void)" ([EMAIL PROTECTED]@@UAEXXZ)
> hl error LNK2001: unresolved external symbol "public: virtual void
> __thiscall CSDKPlayer::Spawn(void)" ([EMAIL PROTECTED]@@UAEXXZ)
> hl error LNK2001: unresolved external symbol "public: virtual int
> __thiscall CSDKPlayer::YouForgotToImplementOrDeclareServerClass(void)"
> ([EMAIL PROTECTED]@@UAEHXZ)
> hl error LNK2001: unresolved external symbol "public: virtual char
> const * __thiscall CSDKPlayer::GetClassName(void)"
> ([EMAIL PROTECTED]@@UAEPBDXZ)
> hl error LNK2001: unresolved external symbol "public: virtual class
> ServerClass * __thiscall CSDKPlayer::GetServerClass(void)"
> ([EMAIL PROTECTED]@@UAEPAVServerClass@@XZ)
> hl error LNK2001: unresolved external symbol "public: virtual struct
> datamap_t * __thiscall CSDKPlayer::GetPredDescMap(void)"
> ([EMAIL PROTECTED]@@UAEPAUdatamap_t@@XZ)
> hl error LNK2019: unresolved external symbol "public: __thiscall
> CSDKPlayer::CSDKPlayer(void)" (??0CSDKPlayer@@[EMAIL PROTECTED]) referenced in
> function "public: __thiscall CSDKBot::CSDKBot(void)"
> (??0CSDKBot@@[EMAIL PROTECTED])
> hl error LNK2019: unresolved external symbol "public: virtual
> __thiscall CSDKPlayer::~CSDKPlayer(void)" (??1CSDKPlayer@@[EMAIL PROTECTED])
> referenced in function "public: virtual __thiscall
> CSDKBot::~CSDKBot(void)" (??1CSDKBot@@[EMAIL PROTECTED])
> hl fatal error LNK1120: 22 unresolved externals
>
> ___
> To unsubscribe, edit your list preferences, or view the list archives,
please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
>


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Bots in HL2DM?

2005-02-21 Thread Mark Ettinger
Thanks!  By using CBasePlayer instead of CSDKPlayer and a few minor
tweaks I can compile and link.  However when I use the bot_add command
at the console the game (HL2DM) crashes on this line of  the function
BotPutInServer in sdk_bot_temp.cpp:

edict_t *pEdict = engine->CreateFakeClient( botname );


Any ideas?

Many thanks.

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders