how to properly use "hpb bot" for a custom mod. Created 6 years ago2018-08-20 00:08:52 UTC by hfc hfc

Created 6 years ago2018-08-20 00:08:52 UTC by hfc hfc

Posted 6 years ago2018-08-20 00:08:52 UTC Post #340615
https://twhl.info/vault/view/6295 this is my mod. i added bots. it was easy. but i cant manage to run bot config files in my mod. bots doesnt use guns and they arent quite right.
Posted 6 years ago2018-08-25 08:25:47 UTC Post #340652
What do you mean you can't manage to run bot config files? And did you add new weapons?
Posted 6 years ago2018-08-25 18:13:29 UTC Post #340661
i added custom weapons.

hpb_bot is a metamod. so its dll file is seperate from original dlls. so if i copy my custom dll to mod folder, game runs my custom dll and bot dll simultaneously.
so i can play custom weapons with bots.

but i noticed something.

if i copy my dlls to my mod folder, result is like in this link

but if i copy my custom dll to original "valve" folder, and also copy bots dll file to "valve" folder. result is this

it seems bot files doesnt work well outside of the valve folder.

bots doesn't shoot and dont have custom names. all bots are named "Bot".
there is config file for custom names for bots. and it seems when dll is working in my mod folder bot files doesnt works well.

i hope i can fix this without modifying bot dll file. because i dont know how to modify bot dll. i only know to modify hl dlls.
Posted 6 years ago2018-08-25 18:20:43 UTC Post #340663
You'll have to change the source code of hpb bot and compile a new dll, otherwise the bots won't be able to properly work with your mod I think. The process is basically the same as for HL sources - you modify the code with Visual Studio and compile.
Posted 6 years ago2018-08-25 18:26:20 UTC Post #340665
i only can compile this custom hl sdk
because i dont now how to adjust visual studio for a source code.
this sdk file already adjusted for a version of visual studio. so i use this sdk and proper visual studio version.

so i cant compile bot dll. even if i manage to find source codes. i cant adjust this source code to fit a visual studio version.

edit: ill give it a try. i downloaded sources
Posted 6 years ago2018-08-25 19:01:18 UTC Post #340667
There is no VS configuration required. You use CMake to generate solution file for chosen version of VS from source code. This is quite a straightforward process, especially if you use the GUI. It might not compile properly on modem compilers though, as Botman's code is aged.
Posted 6 years ago2018-08-25 19:20:27 UTC Post #340670
The SDK on Github doesn't use CMake.
Posted 6 years ago2018-08-25 20:10:21 UTC Post #340672
botman says in readme, "you need Microsoft Visual C++ 5.0 (with service pack 3) or Visual C++ 6.0 to compile this" ill try those.

is it common to use older IDEs to compile older sources. or most of the people convert source code for newer versions?
Posted 6 years ago2018-08-25 20:13:21 UTC Post #340673
It's difficult to convert for most people because they don't know how to do it. If you do know then you'll want to convert them.
Posted 6 years ago2018-08-25 20:34:59 UTC Post #340675
1>------ Build started: Project: HPB_bot_mm, Configuration: Release Win32 ----
1>Compiling...
1>cl : Command line warning D9035 : option 'Fr' has been deprecated and will be removed in a future release
1>cl : Command line warning D9036 : use 'FR' instead of 'Fr'
1>waypoint.cpp
1>.\waypoint.cpp(21) : fatal error C1083: Cannot open include file: 'extdll.h': No such file or directory
1>util.cpp
1>.\util.cpp(28) : fatal error C1083: Cannot open include file: 'extdll.h': No such file or directory
1>h_export.cpp
1>.\h_export.cpp(13) : fatal error C1083: Cannot open include file: 'extdll.h': No such file or directory
1>engine.cpp
1>.\engine.cpp(13) : fatal error C1083: Cannot open include file: 'extdll.h': No such file or directory
1>dll.cpp
1>.\dll.cpp(13) : fatal error C1083: Cannot open include file: 'extdll.h': No such file or directory
1>bot_start.cpp
1>.\bot_start.cpp(13) : fatal error C1083: Cannot open include file: 'extdll.h': No such file or directory
1>bot_navigate.cpp
1>.\bot_navigate.cpp(13) : fatal error C1083: Cannot open include file: 'extdll.h': No such file or directory
1>bot_models.cpp
1>.\bot_models.cpp(13) : fatal error C1083: Cannot open include file: 'extdll.h': No such file or directory
1>bot_combat.cpp
1>.\bot_combat.cpp(13) : fatal error C1083: Cannot open include file: 'extdll.h': No such file or directory
1>bot_client.cpp
1>.\bot_client.cpp(13) : fatal error C1083: Cannot open include file: 'extdll.h': No such file or directory
1>bot_chat.cpp
1>.\bot_chat.cpp(13) : fatal error C1083: Cannot open include file: 'extdll.h': No such file or directory
1>bot.cpp
1>.\bot.cpp(13) : fatal error C1083: Cannot open include file: 'extdll.h': No such file or directory
1>Generating Code...
1>Creating browse information file...
1>Microsoft Browse Information Maintenance Utility Version 9.00.30729
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>BSCMAKE: error BK1506 : cannot open file '.\Release\bot_chat.sbr': No such file or directory
1>Build log was saved at "file://c:\Half-Life Modlama\hpb_bot_plugin\Release\BuildLog.htm"
1>HPB_bot_mm - 13 error(s), 2 warning(s)
Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
Posted 6 years ago2018-08-28 10:46:27 UTC Post #340705
As Snehk said you'll have to modify HPB Bot to add support for the new weapons.
The reason it requires Visual C++ 5.0 is because it was developed in 2000 or 2001 I think and that was still a reasonably new version back then.

If you're looking for a bot framework to use then I recommend the one that I've been working on: https://github.com/tschumann/sandbot
It's not perfect but it's based on HPB Bot, has been updated to work with Visual Studio 2017, has Linux support, currently broken MetaMod support (MetaMod is just enraging) and various bug-fixes.
Posted 6 years ago2018-08-28 11:46:39 UTC Post #340708
thanks
Posted 6 years ago2018-09-22 13:15:14 UTC Post #340932
Bot#10 works fine with minor changes. Is (c) Botman too. But they don´t navigate very well maps that are very complex, and don´t know how to keep from falling from heights. Apart of that, they are a good start if you plan to add bots to your mod.
You must be logged in to post a response.