.:: 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 > SDK Programming discussions > Half-Life 1 SDK
Half-Life 1 SDK For developments focused around Half-Life (and its mods) Half-Life

Reply
 
Thread Tools
Custom dll bot loading problem
Old
  (#1)
The_Hard_Mission_Guy
This user broke our rules and has been BANNED
 
The_Hard_Mission_Guy's Avatar
 
Status: Offline
Posts: 181
Join Date: May 2006
Default Custom dll bot loading problem - 06-07-2006

Allowa
I'm experimenting with whistler's version of the Hpb-bot for Ricochet called "Ricobot" and it seems that I'm facing a small but strange problem!

First when I add the rest of the cpp's and h's from botman's package and then compile it using MSVC++ 6 , everything goes as it should and I get a nice Dll.

but when I delete the default project files that come with Ricobot or Hpb_bot , start a new Dll project , add all the headers and sources and then compile the Dll(which is compiled successfully) I get an error message while loading the map in ricochet , saying something like can't load Dll Api

I tried everything but till now I can't find the error ( yes I checkd liblist.gam)
I suspect the mistake to be somewhere in the project files , but I can't locate the problem.......

remember the Dll compiles correctly without complaints , but it can't be loaded by the HL engine for some reason..

Help is urgently appreciated
  
Reply With Quote
Re: Custom dll bot loading problem
Old
  (#2)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: Custom dll bot loading problem - 06-07-2006

The Windows version of the HL engine like every version of VC++.
The problem probably come from the exporting of GiveFnptrsToDll i.e. from the file bot.def.
Better forget about that file and use the way that Jozef Wagner showed us.
Its better and less compicated.
Just add this code
Code:
// If we're using MSVC, we need to specify the export parameter (Thanks Jozef Wagner)...
#if _MSC_VER > 1000
#pragma comment(linker, "/EXPORT:GiveFnptrsToDll=_GiveFnptrsToDll@8,@1")
#pragma comment(linker, "/SECTION:.data,RW")
#endif
In h_export.cpp righ after the function DllMain.
Recompile and fun.
  
Reply With Quote
Re: Custom dll bot loading problem
Old
  (#3)
The_Hard_Mission_Guy
This user broke our rules and has been BANNED
 
The_Hard_Mission_Guy's Avatar
 
Status: Offline
Posts: 181
Join Date: May 2006
Default Re: Custom dll bot loading problem - 08-07-2006

Yes exactly , the problem lies in GiveFnptrsToDll !
because that's the function that the HL engine complains about NOt being able to load it
by the way when I look at the function export list using dumpbin , I see GiveFnptrsToDll's name being changed to "GiveFnptrsToDll@8" ! Weird heh?

I'm right now making a new DLL project , in order to try this code out!!
  
Reply With Quote
Re: Custom dll bot loading problem
Old
  (#4)
The_Hard_Mission_Guy
This user broke our rules and has been BANNED
 
The_Hard_Mission_Guy's Avatar
 
Status: Offline
Posts: 181
Join Date: May 2006
Default Re: Custom dll bot loading problem - 08-07-2006

It Works , that was a step into the right direction , thanks to this guy Jozef Wagner!
Unfortunately I haven't heard of him before , I guess he is a celebrity in the bot community like Botman , Who is He?

Now I can focus on the real coding job , in the meantime I've become a bad-ass ricochet decapitator !
After easing it a little bit by removing the BotShootatEnemy() function , LOL
I wonder if I can snatch 2 bots in one Hit......
  
Reply With Quote
Re: Custom dll bot loading problem
Old
  (#5)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: Custom dll bot loading problem - 08-07-2006

Here Jozef Wagner is known as Korax. Now maybe you can remember who is he.
  
Reply With Quote
Re: Custom dll bot loading problem
Old
  (#6)
The_Hard_Mission_Guy
This user broke our rules and has been BANNED
 
The_Hard_Mission_Guy's Avatar
 
Status: Offline
Posts: 181
Join Date: May 2006
Default Re: Custom dll bot loading problem - 08-07-2006

Korax , Korax .......no that name doesn't ring any bells , sorry
wait .....in wikipedia Korax is documented as the final boss of the fps game Hexen...
but that's really everything this name says to me..

but I'm sure your gonna tell me more , right?
  
Reply With Quote
Re: Custom dll bot loading problem
Old
  (#7)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: Custom dll bot loading problem - 08-07-2006

Use the forum search.
  
Reply With Quote
Re: Custom dll bot loading problem
Old
  (#8)
The_Hard_Mission_Guy
This user broke our rules and has been BANNED
 
The_Hard_Mission_Guy's Avatar
 
Status: Offline
Posts: 181
Join Date: May 2006
Default Re: Custom dll bot loading problem - 08-07-2006

OK I got a little bit smarter about this guy KoraX!
I see he has a broad programming profile , nice indeed!
I think we share some similarities ragarding the AI stuff ( Neural Networks & Gennetic Algorithms)
But I didn't actually "remember" him , I just learned about him a couple minutes ago , can't recgonize meeting him somewhere before..
  
Reply With Quote
Re: Custom dll bot loading problem
Old
  (#9)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: Custom dll bot loading problem - 08-07-2006

Well I think that you are registered here not from long(at last you say so).
  
Reply With Quote
Re: Custom dll bot loading problem
Old
  (#10)
The_Hard_Mission_Guy
This user broke our rules and has been BANNED
 
The_Hard_Mission_Guy's Avatar
 
Status: Offline
Posts: 181
Join Date: May 2006
Default Re: Custom dll bot loading problem - 09-07-2006

you probably thought that I have been for a longer time here , but I've been here for the first time in May 2006 .
  
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