.:: 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 ::. > Cyborg Factory > HPB_bot
HPB_bot The trusty good ole mechs by botman HLDMTFCOpposing ForceDMCFront Line Force

Reply
 
Thread Tools
Problem Compiling in Borland, and in MinGW
Old
  (#1)
Combat
Guest
 
Status:
Posts: n/a
Default Problem Compiling in Borland, and in MinGW - 31-01-2004

Hi, i've coded the HPB_Bot in MSVC++ in College many times, but developement is very slow when you can only compile/test once a day. So i tried compiling on the MinGW compile ( My normal compiler ). It was not exporting GiveFnptrsToDll properly, so i changed it and got it to export properly. But now when i try loading a game in good old deathmatch, it crashes. I get no error messages, and windows doesn't know what module has the "illegal operation". So, i downloaded BCC 5.5, and compiled an unmodified HBP_Bot source, after a slight modification in linkfunc.cpp, i got it to compile rather smoothly. Only problem is, i still have the crashing problem when i try loading up deathmatch. The HL version i'm using is 1.1.0.8, NO STEAM. I know the problem is not with the HPB_Bot version of the source, because it works fine if i compile with MSVC++ or MSV.NET. Has anyone had this problem, and if so, do you know how to fix it?
  
Reply With Quote
Re: Problem Compiling in Borland, and in MinGW
Old
  (#2)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Problem Compiling in Borland, and in MinGW - 02-02-2004

I assume you are using the "official" HPB_bot source (hook DLL), not the metamod plugin version. What if you tried to compile the metamod one ? they're exactly the same, as far as the bot itself is concerned...



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Problem Compiling in Borland, and in MinGW
Old
  (#3)
Combat
Guest
 
Status:
Posts: n/a
Default Re: Problem Compiling in Borland, and in MinGW - 03-02-2004

i suppose, but i am running a slow machine and using metamod causes the game to lag more. I have compiled a plugin for metamod, it doesn't seem to work either though. Metamod says the plugin is running, but i don't get any of the messages i should. And nothing seems to work properly, so i don't think the bot will either.
  
Reply With Quote
Re: Problem Compiling in Borland, and in MinGW
Old
  (#4)
botmeister
Ex-Council Member
 
botmeister's Avatar
 
Status: Offline
Posts: 1,090
Join Date: Nov 2003
Location: Canada
Default Re: Problem Compiling in Borland, and in MinGW - 03-02-2004

For BCC 5.5 the following works for me

Code:
#define DLLEXPORT __stdcall
#define EXPORT _declspec( dllexport )
 
extern "C" DLLEXPORT void EXPORT GiveFnptrsToDll( ...
int EXPORT GetEntityAPI( ...
int EXPORT GetNewDLLFunctions( ...
For the LINK_ENTITY_TO_FUNC macros use this

Code:
extern "C" EXPORT void mapClassName( ...


Maker of the (mEAn) Bot.Admin Manager

"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. van de Snepscheut

Last edited by botmeister; 03-02-2004 at 11:13..
  
Reply With Quote
Re: Problem Compiling in Borland, and in MinGW
Old
  (#5)
Combat
Guest
 
Status:
Posts: n/a
Default Re: Problem Compiling in Borland, and in MinGW - 04-02-2004

hmmm... that does look a little different than mine. Thank you so much!
  
Reply With Quote
Re: Problem Compiling in Borland, and in MinGW
Old
  (#6)
Combat
Guest
 
Status:
Posts: n/a
Default Re: Problem Compiling in Borland, and in MinGW - 05-02-2004

actually, botmeister, turns out, that is exactly the same as mine. The problem was in the linker arguments... i was missing one. thanks for your help though! got it working now.
  
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