Devised by Tom "RedFox" Simpson
Switch branches/tags
Clone or download
Permalink
Failed to load latest commit information.
.build-release Added changes for FoxBot 0.79-beta2 Nov 26, 2016
.idea Update for 0.791-beta4 Jul 14, 2018
.vs/FoXBot Update for 0.791 Final Aug 6, 2018
Release Update for 0.791 Final Aug 6, 2018
_UpgradeReport_Files Update for 0.791-beta3 Feb 12, 2018
art Update for 0.791-beta1 May 22, 2017
cmake-build-debug/CMakeFiles Update for 0.791-beta2 Dec 22, 2017
documentation Update for 0.791-beta3 Feb 12, 2018
.gitattributes 🍭 Added .gitattributes & .gitignore files Aug 17, 2016
.gitignore Update for 0.791 Final Aug 6, 2018
CMakeLists.txt Update for 0.791-beta1 May 22, 2017
FoXBot.VC.db Update for 0.791-beta1 May 22, 2017
FoXBot.cbp Files neated up Jun 29, 2018
FoXBot.cbp.save-failed Fixed CRLF issues Jul 28, 2018
FoXBot.def Update for 0.791-beta3 Feb 12, 2018
FoXBot.dsp Update for 0.791-beta3 Feb 12, 2018
FoXBot.dsw Update for 0.791-beta3 Feb 12, 2018
FoXBot.layout Update for 0.791-beta1 May 22, 2017
FoXBot.layout.save Fixed CRLF issues Jul 28, 2018
FoXBot.mk Update for 0.791-beta3 Feb 12, 2018
FoXBot.opt Update for 0.791-beta1 May 22, 2017
FoXBot.plg Update for 0.791-beta3 Feb 12, 2018
FoXBot.sln Update for 0.791-beta3 Feb 12, 2018
FoXBot.suo Update for 0.791-beta1 May 22, 2017
FoXBot.txt Update for 0.791-beta3 Feb 12, 2018
FoXBot.vcproj Update for 0.791-beta3 Feb 12, 2018
FoXBot.vcxproj Update for 0.791 Final Aug 6, 2018
FoXBot.vcxproj.filters Update for 0.791 Final Aug 6, 2018
FoXBot.vcxproj.user Update for 0.791-beta3 Feb 12, 2018
FoXBot_borland.def Update for 0.791-beta3 Feb 12, 2018
GPL.txt Update for 0.791-beta1 May 22, 2017
Makefile Fixed CRLF issues Jul 28, 2018
Makefile_backup Update for 0.791-beta4 Jul 14, 2018
Makefile_win32 Update for 0.791-beta1 May 22, 2017
Readme.txt Update for 0.791-beta1 May 22, 2017
Rules.depend Update for 0.791-beta1 May 22, 2017
UpgradeLog.XML Update for 0.791-beta3 Feb 12, 2018
bot.cpp Update for 0.791 Final Aug 6, 2018
bot.cpp.save Fixed CRLF issues Jul 28, 2018
bot.h Update for 0.791 Final Aug 6, 2018
bot_client.cpp Fixed CRLF issues Jul 28, 2018
bot_client.h Fixed CRLF issues Jul 28, 2018
bot_combat.cpp Fixed CRLF issues Jul 28, 2018
bot_func.h Fixed CRLF issues Jul 28, 2018
bot_job_assessors.cpp Update for 0.791-beta1 May 22, 2017
bot_job_assessors.h Update for 0.791-beta1 May 22, 2017
bot_job_functions.cpp Update for 0.791-beta1 May 22, 2017
bot_job_functions.h Update for 0.791-beta1 May 22, 2017
bot_job_think.cpp Update for 0.791 Final Aug 6, 2018
bot_job_think.h Update for 0.791-beta1 May 22, 2017
bot_navigate.cpp Fixed CRLF issues Jul 28, 2018
bot_navigate.h Update for 0.791-beta1 May 22, 2017
bot_start.cpp Fixed CRLF issues Jul 28, 2018
bot_weapons.h Fixed CRLF issues Jul 28, 2018
botcam.cpp Fixed CRLF issues Jul 28, 2018
botcam.h Fixed CRLF issues Jul 28, 2018
cbase.bkup.h Fixed CRLF issues Jul 28, 2018
cbase.cpp Fixed CRLF issues Jul 28, 2018
cbase.h Fixed CRLF issues Jul 28, 2018
changelog.txt Update for 0.791 Final Aug 6, 2018
dll.cpp Update for 0.791 Final Aug 6, 2018
dll.h Fixed CRLF issues Jul 28, 2018
engine.cpp Update for 0.791 Final Aug 6, 2018
engine.h Fixed CRLF issues Jul 28, 2018
extdll.h Fixed CRLF issues Jul 28, 2018
foxbot_mm.so Update for 0.791 Final Aug 6, 2018
foxbot_private.h Fixed CRLF issues Jul 28, 2018
foxbot_private.rc Update for 0.791-beta3 Feb 12, 2018
fsubs.cpp Fixed CRLF issues Jul 28, 2018
fworld.cpp Fixed CRLF issues Jul 28, 2018
globals.cpp Update for 0.791-beta1 May 22, 2017
h_export.cpp Update for 0.791-beta1 May 22, 2017
hl_baseentity.cpp Update for 0.791-beta1 May 22, 2017
hl_weapons.cpp Update for 0.791-beta1 May 22, 2017
linkfunc.cpp Update for 0.791-beta1 May 22, 2017
list.h Update for 0.791-beta1 May 22, 2017
list.h.rej Update for 0.791-beta1 May 22, 2017
makefile_borland Update for 0.791-beta1 May 22, 2017
meta_api.cpp Update for 0.791 Final Aug 6, 2018
miscellany.cpp Update for 0.791-beta1 May 22, 2017
new util.cpp Update for 0.791-beta1 May 22, 2017
osdep.h Fixed CRLF issues Jul 28, 2018
player.cpp Update for 0.791-beta1 May 22, 2017
player.h Update for 0.791-beta1 May 22, 2017
res_fox.aps Update for 0.791-beta4 Jul 14, 2018
res_fox.rc Update for 0.791 Final Aug 6, 2018
resource.h Update for 0.791-beta1 May 22, 2017
sdk_util.cpp Fixed CRLF issues Jul 28, 2018
sdk_util.h Fixed CRLF issues Jul 28, 2018
util.cpp Fixed CRLF issues Jul 28, 2018
util.h Fixed CRLF issues Jul 28, 2018
vector.h Fixed CRLF issues Jul 28, 2018
vers_fox.h Update for 0.791 Final Aug 6, 2018
version.cpp Fixed CRLF issues Jul 28, 2018
version.h Update for 0.791 Final Aug 6, 2018
waypoint.cpp Update for 0.791 Final Aug 6, 2018
waypoint.h Fixed CRLF issues Jul 28, 2018

Readme.txt

===================================
   Foxbot Source code Readme
===================================

   Introduction
   ------------

Foxbot is primarily a bot for the Half-Life mod Team Fortress Classic(AKA TFC).
This guide should provide you with some basic information on how to
compile and/or modify the Foxbot source code.
Most of the guide is Operating System independant but there is also
a section specifically about compiling the Linux version of Foxbot.

____________________________________________________________

   Compiling the source code
   -------------------------

Although there are a number of .cpp files in the Foxbot source code directory
you may not need to compile them all to make the Foxbot Metamod plugin.

Source files used when compiling:
   bot.cpp
   botcam.cpp
   bot_client.cpp
   bot_combat.cpp
   bot_job_assessors.cpp
   bot_job_functions.cpp
   bot_job_think.cpp
   bot_navigate.cpp
   bot_start.cpp
   dll.cpp
   engine.cpp
   h_export.cpp
   meta_api.cpp
   sdk_util.cpp
   util.cpp
   version.cpp
   waypoint.cpp

Directories to include when compiling:
   \hlsdk\metamod\metamod\
   \hlsdk\multiplayer\cl_dll\
   \hlsdk\multiplayer\common\
   \hlsdk\multiplayer\dlls\
   \hlsdk\multiplayer\engine\
   \hlsdk\multiplayer\pm_shared\
____________________________________________________________

   Compiling a Linux version of Foxbot
   -----------------------------------

The Linux version of Foxbot isn't hugely different from the Windows version.
But here are some important differences:

First of all, there is only a dedicated Half-Life server available for Linux.
As opposed to the choice of dedicated and listen servers you get with Windows.

Secondly, Foxbot uses a number of plain text configuration files and
scripts when running.
Windows text files use line endings of the type CRLF, whereas Linux text
files use line endings of the type LF.
So ideally you should make sure that all the text files that Foxbot uses
are in the right format for your Operating System.
There is a program available on Linux, called dos2unix, that can convert
several text files to the right format for you in one big batch.

You will also need a C++ compiler installed on your Linux machine.
The one most commonly used on Linux is part of GCC - the Gnu Compiler Collection.
You can test if you have it installed by typing this command at the console:
g++ --version
If you you are told that there is no such file or directory then you
will probably need to install it.

Finally, you will need a Linux Makefile in order to compile the Linux
version of the bots.
One is provided that should hopefully work on your machine without any
serious problems.
Just type the command 'make' from the main foxbot source code directory.

____________________________________________________________

   Notes on the Windows Version
   ----------------------------

With Windows there is a fairly wide variety of C++ compilers available.
A big problem is that the Half-Life SDK isn't compatible with a
number of them.

Compilers that have been known to work with the Half-Life SDK:
Bloodshed's Dev-cpp 4.9.9.2(which is a free compiler).
Microsofts Visual C++.
Mingw(I've heard this works but haven't tried it myself).

Compilers that complained about the Half-Life SDK:
Borlands free command line compiler(version 5.0).
Open Watcom C/C++ Version 1.8.

____________________________________________________________

   Useful Notes
   ------------

If you modify stuff in bot.h then you may want to re-compile _ALL_ the
source files.
Adding/modifying variables in the bot_t struct without a full re-compile
has been known to make the bots start acting really weird or for a crash
to occur.

If you are compiling both Windows and Linux versions of Foxbot then you
should be aware that the object files(files with an .o extension) from
each version are incompatible and may clash with each other.
For example the Linux GCC compiler will probably spit out errors if it
finds object files from the Windows version sitting around in the
source directory.

____________________________________________________________

   Other sources of information
   ----------------------------

Foxbot was built using Botmans HPB Bot source code as a basis.
So you might also find the HPB Bot source code and readme.txt file useful.

Also you might want to check out the Bots-United website at:
www.bots-united.com
It's a site geared towards bot development.