How to integrate bot in to the game dll ?
Ok I now have a new little project. I start to make a bot for http://www.sandsofwar.net/
I get the source code of Sands of War and I think it will be better to integrate the bot in to the sow.dll file. I started from HPB bot teamplate 4 (the hook dll version). I now want to know what stuff of the bot I don't need to compile it with the sow.dll file. P.S I will work on both SoW bot and E[POD]bot so don't worry EPB fans. :) Now just waiting for MarD to test the new version 5 of EPB. |
Re: How to integrate bot in to the game dll ?
Hah following my good advice about integrated bots eh? :) Get "Bot 10" made by botman(http://hpb-bot.bots-united.com/releases/bot10src.zip) and see what he needed to do to make it work.
|
Re: How to integrate bot in to the game dll ?
also check the TheFatal's HL bot framework, which is simpler but contains everything you need to get the bot work:
http://www.telefragged.com/thefatal/ |
Re: How to integrate bot in to the game dll ?
Ok I download bot10 by botman but now I need by some tutorial. So I get the first bot spectating in game. Now first I need by some help to get the bot to navigate weapons. So I find in bot.cpp this lines :
Code:
// weapon firing delay based on skill (min and max delay for each weapon) |
Re: How to integrate bot in to the game dll ?
these are delay times of firing weapons in the HL for different level of bots.
the weapon handling in bot number 10 is hardcoded in bot_combat.cpp, just read the source code at there also if you want to make a good bot, I'd advise _not_ to use botman's bot number 10, just use TheFatal's minimal framework and do most of the work yourself. However if you simply want a work bot (even if it's "stupid"), bot10 is a good way with only a few changes for the mod's game rules. |
Re: How to integrate bot in to the game dll ?
Whistler I don't want to make fully new bot. I just want to make a simply functional bot for this mod. I don't have enough time to start from the zero and code all by myself. However I don't see any text that explain each number for what is. Yes I know that this numbers are the fire delay but I need to know each number what do.
|
Re: How to integrate bot in to the game dll ?
Just read the source code :)
PHP Code:
|
Re: How to integrate bot in to the game dll ?
Thanks Whistler if I have more questions I will ask again. :P
|
Re: How to integrate bot in to the game dll ?
I need by some help. So I have problems with getting the bot to join in game.
Here my code placed in the start of BotThink() Code:
if (not_started) not_started is settet to 1 when new bot connect. Btw I'm using bot10 by botman for integrating the bot in to the sow.dll file. |
Re: How to integrate bot in to the game dll ?
well I know nothing about that MOD, but you can read the source code of the MOD to figure out how the MOD deal with joining games.
|
All times are GMT +2. The time now is 05:20. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.