.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
Argh. Compiles, but linking goes wrong... Metamod related
Old
  (#1)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Argh. Compiles, but linking goes wrong... Metamod related - 17-12-2004

Hey guys,

I try to compile my own engine-independant bot framework , on HL1, using the metamod. It COMPILES fine. It has all the barebones on the interface, but then it get this:

Quote:
tm_interface_hl1.obj : error LNK2001: unresolved external symbol _GetEngineFunctions
itm_interface_hl1.obj : error LNK2001: unresolved external symbol "unsigned short __cdecl FixedUnsigned16(float,float)" (?FixedUnsigned16@@YAGMM@Z)
itm_interface_hl1.obj : error LNK2001: unresolved external symbol "short __cdecl FixedSigned16(float,float)" (?FixedSigned16@@YAFMM@Z)
Debug/ITM_HL1_BOT_CSTRIKE.dll : fatal error LNK1120: 3 unresolved externals
I had this before, but i can't recall what i have to do to make this dissapear. I have set my paths right, i can compile my metamod projects fine too. I must have forgotten something to link against obviously, but even after copying the exact line of my realbot project into this project, it gives me this stuff..

Any idea?


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Argh. Compiles, but linking goes wrong... Metamod related
Old
  (#2)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: Argh. Compiles, but linking goes wrong... Metamod related - 17-12-2004

I think I had the same or similar problem before, it had something to do with sdk_util.h ?? I think I had to change some include lines or something.. just an idea
  
Reply With Quote
Re: Argh. Compiles, but linking goes wrong... Metamod related
Old
  (#3)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: Argh. Compiles, but linking goes wrong... Metamod related - 17-12-2004

It looks like your referencing these functions but they haven't been included in the compile.
Do a search for them and make sure they are getting compiled with your project.
  
Reply With Quote
Re: Argh. Compiles, but linking goes wrong... Metamod related
Old
  (#4)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Argh. Compiles, but linking goes wrong... Metamod related - 17-12-2004

yes they are in sdk_util.h cheeseh.

I will toy around with that

EDIT:
Nah, even WITH including sdk_util.h , it whines about the same problem.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me

Last edited by stefanhendriks; 17-12-2004 at 21:43..
  
Reply With Quote
Re: Argh. Compiles, but linking goes wrong... Metamod related
Old
  (#5)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: Argh. Compiles, but linking goes wrong... Metamod related - 17-12-2004

FixedSigned/Unsigned16 is in sdk_util.cpp, just copy it somewhere into your project
  
Reply With Quote
Re: Argh. Compiles, but linking goes wrong... Metamod related
Old
  (#6)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Argh. Compiles, but linking goes wrong... Metamod related - 17-12-2004

yes, i copied the contents into my interface and it compiles fine and it does not bug me about the FixedSigned stuff...

But it still is not solved

Quote:
Creating library Release/ITM_HL1_BOT_CSTRIKE.lib and object Release/ITM_HL1_BOT_CSTRIKE.exp
itm_interface_hl1.obj : error LNK2001: unresolved external symbol _GetEngineFunctions
Release/ITM_HL1_BOT_CSTRIKE.dll : fatal error LNK1120: 1 unresolved externals
And this one, cannot be found in the metamod sdk?


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Argh. Compiles, but linking goes wrong... Metamod related
Old
  (#7)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: Argh. Compiles, but linking goes wrong... Metamod related - 17-12-2004

Ok, you should have that in the META_FUNCTIONS gMetaFunctionTable object.
If your sure GetEngineFunctions is included make sure its spelled correctly on both ends and exported with some macro like C_DLLEXPORT or whatever the sdk provides for exporting functions.
  
Reply With Quote
Re: Argh. Compiles, but linking goes wrong... Metamod related
Old
  (#8)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Argh. Compiles, but linking goes wrong... Metamod related - 17-12-2004

Nevermind, i forgot to include that source and some important functions. I can manage now. . Would be nice if it would work right away.

After that, i simply spawn a bot...


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Argh. Compiles, but linking goes wrong... Metamod related
Old
  (#9)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Argh. Compiles, but linking goes wrong... Metamod related - 17-12-2004



it compiles
it links too

Quote:
Compiling...
itm_bot.cpp
itm_bot_act.cpp
itm_bot_sense.cpp
itm_bot_think.cpp
itm_entity.cpp
itm_player.cpp
itm_shared.cpp
itm_interface_hl1.cpp
Linking...
Creating library Release/ITM_HL1_BOT_CSTRIKE.lib and object Release/ITM_HL1_BOT_CSTRIKE.exp
ITM_HL1_BOT_CSTRIKE.dll - 0 error(s), 0 warning(s)
if this is gonna work, i am gonna jump a hole in the roof.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Argh. Compiles, but linking goes wrong... Metamod related
Old
  (#10)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Argh. Compiles, but linking goes wrong... Metamod related - 17-12-2004

NOOOOO

Quote:

DLL: Main entry point passed
DLL: Attaching
DLL: Main entry point passed
DLL: Detaching
DLL: Main entry point passed
DLL: Attaching
DLL: Main entry point passed
DLL: Detaching
Thats what my log says.

It simply does not load the DLL? :S It does not even do a single METAMOD function. I put logs everywhere, even in pfnGet<bla>pointer , but even that does not get logged.

Is it something that i did not link correctly?


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com