.:: 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
Bot compiles, Bot runs... No wait, it crashes on startup
Old
  (#1)
Sweeper
Guest
 
Status:
Posts: n/a
Default Bot compiles, Bot runs... No wait, it crashes on startup - 08-03-2004

I am having a problem here, I am trying to modify the HPB Bot to fit on a mod called Counter-Life.
Problem is, that it never gets to load the .dll file, upon load it crashes.
I have shown it the location of the mod Dll file.
I also tried making it use the Valve functions since the mod is basically HL with CS weapons.
I have added all the entilities that Botmans tool dumped to me.
It compiles without any errors other than 1 where it can't execute CMD.exe (Windows XP)
I'll get you some source copy if you can specify the parts you want.
I have edited Lincfunc.cpp to support the entilities and h_exports.cpp to the mod dll file.

But the game refuses to launch, I never see an error in the console (Running Developer mode as I allways do)

Any idea what I am doing wrong here? I am trying to follow Botmans directions in his readme.
  
Reply With Quote
Re: Bot compiles, Bot runs... No wait, it crashes on startup
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: Bot compiles, Bot runs... No wait, it crashes on startup - 08-03-2004

I suppose you're running it as a dedicated server, it helps to check for debug messages. Try several things:

The first functions that are called in your bot DLL are DllMain(), then GetEntityAPI() and GiveFnptrsToDll(). Try putting debug messages in them and see what is printed on the console. Try putting things like: printf("DllMain function called!\n") all around the place. Eventually, if you want the game to pause after each debug message, add a getchar(); to make it pause until you press the space bar. Note that you can't use this printf/getchar technique with a listenserver, it won't work (it will freeze your DLL).

The best way though to debug stuff, would be to set breakpoints in each of these functions and use the debugger. Do you know how to use the MSVC debugger ?



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: Bot compiles, Bot runs... No wait, it crashes on startup
Old
  (#3)
Sweeper
Guest
 
Status:
Posts: n/a
Default Re: Bot compiles, Bot runs... No wait, it crashes on startup - 08-03-2004

Well, suffice to say, I can understand most of the C++, worst part is using it.
As for using a debugger, no, I am not used to it, in fact, this is the first project I do on it, after being a yoyo between several compilers.

To make a long story short, I have only coded 1 simple program before, a program that converts Fahrenheit values to Celsius and some float mods to it thereafter, but thats where it ends as well...

Botmans readme proved helpful for me to get started, and I tried to run the game the normal way, LAN Game -> Create and look for the infamous missing entilities and bugs (You are looking at somebody who ran firebot with FA 2.5 and 2.6)

Thanks for the help so far Pierre, did I mention that you are the fuel that has kept me on this project?
  
Reply With Quote
Reply


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

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