![]() |
Where is the bot.txt in HPB_Bot_MM Pierre need your help
Hi I have asked this question few weeks ago, I can't find the bot.txt anymore after upgraded to steam.
Today I have time to touch my bot again finally, but I found out it is not relate to active the debug mode or not since I always turn on debug mode in MSVC++, and it is also not relate to steam I think, I think it is because I have changed my bot to HPB_Bot_Metamod base but before my bot is base on normal HPB_Bot. When I compare the engine.cpp between the HPB_Bot_MM and normal HPB_Bot, I saw all the debug code gone in the MM version, then I do a search in all file of bot.txt with MSVC++, the result is none. so of course I can't find the bot.txt in any folder. :P Pierre or anyone know the MM version, could you teach me how to output the debug.txt, thank you very much. :) |
Re: Where is the bot.txt in HPB_Bot_MM Pierre need your help
In the HPB_bot (not the HPB-bot Template) it's "HPB_bot.txt", not "bot.txt".
and it should in c:\program files\steam\steamapps\your@email.com\half-life (or counter-strike) folder. |
Re: Where is the bot.txt in HPB_Bot_MM Pierre need your help
No luck, still cannot find the bot.txt or xxx_bot.txt under any folder, please notice before I use normal HPB_bot and the bot.txt or xxx_bot.txt(I can't remember) output without problem, the problem only happen after I upgraded to HPB_Bot_MM, maybe the MM version use different way to turn on the debug mode ? I don't know.
|
Re: Where is the bot.txt in HPB_Bot_MM Pierre need your help
The metamod port of the HPB_bot doesn't have the debug_engine facility anymore. Rather use the metamod facilities for debugging, such as Will Day's logging plugin, they are MUCH better...
|
Re: Where is the bot.txt in HPB_Bot_MM Pierre need your help
Thank for the reply Pierre, I did some search on the net and found out a page about TraceAPI plugin at Metamod.org and a log_plugin.cpp inside your singlep src, thats all I can found but not other document about this, the TraceAPI plugin page is too hard for me, I think only Metamod plugin coder can understand, and I can't find where to download this plugin also(or is it already build-in in metamod ?)
Pierre could you tell me a little bit more detail how to use it please, sorry for your time. :o |
Re: Where is the bot.txt in HPB_Bot_MM Pierre need your help
The trace_mm plugin is a default plugin that comes with the metamod source code. If you find it too complicated for your own use (and I admit it is), you can create a quick plugin yourself that would log what you want.
Could you tell us what you wanted to use the bot.txt for ? |
Re: Where is the bot.txt in HPB_Bot_MM Pierre need your help
All I want at the moment is catching the weapon ID/detail and the joining ID only since DoD team like to change this kind of thing almost every release. :(
|
Re: Where is the bot.txt in HPB_Bot_MM Pierre need your help
hook the WeaponList and VGUI network messages then.
|
Re: Where is the bot.txt in HPB_Bot_MM Pierre need your help
also, the original debug mode in HPB bot screwed up the FPS/cpu and lagged it to SH*t house
|
Re: Where is the bot.txt in HPB_Bot_MM Pierre need your help
Yes, because it's logging a TON of data to the hard disk during every video frame.
botman |
Re: Where is the bot.txt in HPB_Bot_MM Pierre need your help
Pierre I can't do what you have suggest since DoD 1.2 change a lot in the debug format, like the weapon ID part for example:
(DoD 1.2/Steam) pfnRemoveEntity: 3e36298 pfnPvAllocEntPrivateData: pfnCreateNamedEntity: edict=3e36298 name=weapon_enfield pfnPrecacheModel: models/v_enfield.mdl pfnPrecacheModel: models/w_enfield.mdl pfnPrecacheEvent: pfnPrecacheSound: weapons/enfield_shoot.wav pfnPrecacheSound: weapons/357_cock1.wav pfnPrecacheSound: weapons/boltforward.wav pfnPrecacheSound: weapons/boltback.wav pfnPrecacheSound: weapons/tommy_reload_clipin.wav pfnPrecacheModel: models/v_enfield_scoped.mdl pfnPrecacheModel: models/w_enfield_scoped.mdl pfnPrecacheSound: weapons/enfieldsniper_shoot.wav pfnPrecacheEvent: (DoD 1.1) pfnMessageBegin: edict=1de6594 dest=1 type=76 pfnWriteString: weapon_luger pfnWriteByte: 4 pfnWriteByte: 24 pfnWriteByte: -1 pfnWriteByte: -1 pfnWriteByte: 1 pfnWriteByte: 1 pfnWriteByte: 4 pfnWriteByte: 64 pfnWriteByte: 8 pfnMessageEnd: Pierre or botman, is it possible the DoD team can change the format so big like this way(I can't check any detail information of weapon now except the model or wav.....) ? ???:( If yes how can I check the weapon ID or some other information like VGUI network messages(after 1.2 even no more VGUI messages table output at the top of the bot.txt) ? :| BTW Chaos you can just mark out the if (debug_engine) messages that you don't need at the engine.cpp, it can reduce the size of the bot.txt a LOT. :) |
Re: Where is the bot.txt in HPB_Bot_MM Pierre need your help
Cleverly written MODs use as few network messages as possible. And if you think about it, WeaponList and VGUI messages are not needed since the server and the client are supposed to share the same game and client DLL. In this case, you won't be able to use the bot.txt for anything useful, and you'll have to hardcode the weapon IDs yourself in your DLL. Use an investigation plugin like PMTools to find them out.
|
All times are GMT +2. The time now is 01:45. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.