.:: 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
Re: Compiling dlls with MingWing
Old
  (#21)
botman
Super Moderator
 
Status: Offline
Posts: 280
Join Date: Jan 2004
Location: Plano, TX
Default Re: Compiling dlls with MingWing - 16-03-2005

The backslash should ONLY occur as the last character of a line that is being broken between 2 lines.

If this...

OBJ = "../../mod-code/Single-Player\ _TAB_Source/cl_dll/ammo.o"

...is all on one line, then it should actually be this...

OBJ = "../../mod-code/Single-PlayerSource/cl_dll/ammo.o"

(assuming that your directory is "Single-PlayerSouce" and not "Single-Player Source").

botman
  
Reply With Quote
Re: Compiling dlls with MingWing
Old
  (#22)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 4643'60N 043'0W 0.187A
Default Re: Compiling dlls with MingWing - 16-03-2005

When a path is between quotes, you do NOT need to prefix spaces with a backslash.

Examples:

OBJ=../../mod-code/Single-Player\ Source/cl_dll/ammo.o (right)
OBJ="../../mod-code/Single-Player Source/cl_dll/ammo.o" (right)
OBJ=../../mod-code/Single-Player Source/cl_dll/ammo.o (wrong)
OBJ="../../mod-code/Single-Player\ Source/cl_dll/ammo.o" (wrong)



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: Compiling dlls with MingWing
Old
  (#23)
Beasty
Member
 
Status: Offline
Posts: 49
Join Date: Feb 2005
Default Re: Compiling dlls with MingWing - 17-03-2005

Thanks!
  
Reply With Quote
Re: Compiling dlls with MingWing
Old
  (#24)
Beasty
Member
 
Status: Offline
Posts: 49
Join Date: Feb 2005
Default Re: Compiling dlls with MingWing - 19-03-2005

I have updated my Dev C++ to version 4.9.9.2 and now I get this error when compiling the client.dll:

E:\Dev-Cpp\projects\Makefile.win [Build Error] No rule to make target `"../../mod-code/Single-Player', needed by `client.dll'. Stop.

Note that this error is in one line. And I get these errors when compiling the HPB_bot:

102 E:\Bot-code\HPB_bot\floyd.c `main' must return `int'
E:\Bot-code\HPB_bot\floyd.c In function `int main(...)':
139 E:\Bot-code\HPB_bot\floyd.c `atoi' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function it appears in.)
E:\Dev-Cpp\projects\Makefile.win [Build Error] [../../Bot-code/HPB_bot/floyd.o] Error 1

Each of these errors are in one line as well. Thanks for the help!
  
Reply With Quote
Re: Compiling dlls with MingWing
Old
  (#25)
Whistler
Whistler
 
Whistler's Avatar
 
Status: Offline
Posts: 1,491
Join Date: Feb 2004
Location: P. R. China
Default Re: Compiling dlls with MingWing - 19-03-2005

the floyd.c (as well as exports.c) isn't part of HPB bot so remove it from the project
  
Reply With Quote
Re: Compiling dlls with MingWing
Old
  (#26)
Beasty
Member
 
Status: Offline
Posts: 49
Join Date: Feb 2005
Default Re: Compiling dlls with MingWing - 20-03-2005

I have but now I get these errors:

9 E:\Bot-code\HPB_bot\dlls\Bot-code\HPB_bot\dlls\bot.cpp In file included from ../../Bot-code/HPB_bot/dlls/extdll.h:82, from ../../Bot-code/HPB_bot/dlls/bot.cpp

9 E:\Bot-code\HPB_bot\dlls\bot.cpp from ../../Bot-code/HPB_bot/dlls/bot.cpp

112:7 E:\Bot-code\HPB_bot\dlls\vector.h [Warning] no newline at end of file

9 E:\Bot-code\HPB_bot\dlls\bot.cpp In file included from ../../Bot-code/HPB_bot/dlls/bot.cpp

88 E:\Bot-code\HPB_bot\dlls\extdll.h const.h: No such file or directory.

And so on. Here's the last two messages:
[General Error] Too many messages; abort.
There must be something terribly wrong with your code. Please fix it.

And what about the client.dll?
  
Reply With Quote
Re: Compiling dlls with MingWing
Old
  (#27)
Beasty
Member
 
Status: Offline
Posts: 49
Join Date: Feb 2005
Default Re: Compiling dlls with MingWing - 21-03-2005

For the HPB_bot project, I included every file in every folder except for floyd.c and exports.c, including everything inside bot_logo folder. And for the client project I included everything in the cl_dll folder and hl folder inside it. Has anyone made a patch for the HPB_bot source code that makes it compile under Dev C++. And Whistler, you have Dev C++ installed, don't you? Why don't you try compiling the client.dll? I've extracted your patch files to my Single-Player Source directory so it can't be that.
  
Reply With Quote
Re: Compiling dlls with MingWing
Old
  (#28)
Whistler
Whistler
 
Whistler's Avatar
 
Status: Offline
Posts: 1,491
Join Date: Feb 2004
Location: P. R. China
Default Re: Compiling dlls with MingWing - 21-03-2005

here is the Dev-C++/MinGW version of HPB bot Template source code:
http://filebase.bots-united.com/inde...on=file&id=225

also I've uploaded the SDK with Dev-C++ project file for client dll, just redownload it

Note that the MinGW version comes with Dev-C++ won't compile HL mods or bots correctly (it will crash when starting games). The solution is delete "lib" and "include" folder in Dev-C++ folder, and then install this version of MinGW to the Dev-C++ folder and it will be okay:
http://prdownloads.sourceforge.net/m...1.exe?download
(after that there will be an error message in the first time starting Dev-C++, just ignore it)
  
Reply With Quote
Re: Compiling dlls with MingWing
Old
  (#29)
Beasty
Member
 
Status: Offline
Posts: 49
Join Date: Feb 2005
Default Re: Compiling dlls with MingWing - 21-03-2005

Thanks! It worked! Is the template all I need to compile the HPB_bot dll? Or do I have to compile the contents of the hpb_bot_plugin folder? The error that comes up, do I just click no? And how can I change the name of the dll? Do I have to create a new project with the name? Thanks a lot, Whistler!!!
  
Reply With Quote
Re: Compiling dlls with MingWing
Old
  (#30)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 4643'60N 043'0W 0.187A
Default Re: Compiling dlls with MingWing - 21-03-2005

Such questions would rather belong to the coding forum, not the HPB_bot forum. To change the name of the DLL, set it in the Makefile.



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
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 - 2019, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com