1 November 2026
This news update will be short, because there's been done almost no development lately as I have very little free time. You know how it is. I simply have way too many things going on in real life now. So since last time I managed to finish the work on updating the ps_river waypoints. Well okay they still need a proper testing, but the actual reworking is finished. Now I'm about half way through the next waypoints, the ps_sand ones, from the waypoints package for old Firearms 2.5 maps. As I was updating them I got an idea for a new tutorial video for the waypoints creators. That means that MB's YouTube channel now hosts a new short video titled Using the pathwpt reverse command where you can see how to use the 'pathwpt reverse' command effectively on any path that you need to extend. Written HTML Waypointing manual does teach you to use a 'pathwpt insert' command in some cases when you need to extend an existing path. But since quite recent (in version 0.97b) addition of this 'reverse' command the task to extend existing paths can be done way easier and much faster. By watching this new video you will find out for yourself.
27 September 2026
Working on the update to waypoints for old Firearms 2.5 map ps_river I realized that this is a nice material for a new tutorial video that should help you better understand how to correctly lay the waypoints for Marine Bot. Original waypoints are full of so called useless junctions and short paths. This is how most waypoints creators design their waypoints. It isn't ideal way how to create waypoints for Marine Bot. Frankly it's how things used to be back in the days, because the system of paths was still in very early stage of development and didn't allow many options. Since then Marine Bot's waypointing system evolved and this layout became obsolete. All manuals and tutorials reflect that, and try to teach you to create the waypoints using modern way that allows the bots play the maps much better. This new video @marinebotofficial titled Marine Bot waypoints layouts differences clearly shows the major differences between the two layouts. Actually the original waypoints aren't really the waypoints from early days, because in 2020 I used MB0.94b to fix them. And I also added couple long paths leading to the flags from the main route to improve bots navigation a bit. Now these waypoints finally got the needed major rework that brings them to modern era and will allow the bots to play this map way better than before. And I can also tick another map from the list of waypoints for old Firearms 2.5 as done lol. Still a few more to go.
There's one more thing I want to share. I got an email warning about data transfers on MB homepage. The free plan has a 1GB limit, but you can reset it once per month for free to get 2GB in total. So as I went to site administration section to do the reset I saw the stats that kind of surprised me. I've used Firefox to translate it to English for you before taking this screenshot. Over 7 thousand page views on September 18. That's crazy. I don't know how do they count the stats, but such number can hardly be made by human or a group. I suspect some AI usage there. You would have to be accessing the page every second for basically 2 hours in order to get such number. Waypointing manual with its many pictures can probably produce many hits to the stats, but still you'd have to open it a zillion times to get close to that value :). Anyways just for your info, the other two peaks on September 21 and September 10 are over 2.5k and 11 hundred respectively.
30 August 2026
Over a month without an update, but those of you who follow Marine Bot on YouTube know that the development didn't stop at all. As there is a new video available for you. It's a continuation of the features showcase in the new version of MB for the GW mod. So if you haven't seen it yet then watch the New Marine Bot version for GW 1.5 features showcase part 2 to have a full picture of what is available to you in this version of MB.
But the main reason for today's news update is fact that this new test version, or alpha version if you will, is finally released to public. About two months after the release of Marine Bot 0.97.3b for the Firearms and Day of Defeat 1.3, you can enjoy also the Global Warfare 1.5 with a modern Marine Bot version, that supports most if not all features this mod offers. Same as with the aforementioned test versions for FA and DoD are the zip archives available for download in the 'FILES' on the left hand menu, in the section titled "Marine Bot test versions (call it an alpha release if you wish)". Because this is the first release of modern MB for this mod the gamer package actually includes all the files (except for the change log) required for Marine Bot to work. So to install it to your GW 1.5 follow the usual steps as with a full beta release, like is described in the readme.txt inside the gamer zip package. I call it a gamer package, but the zip archive is actually a universal zip for both the gamers as well as server admins. This is due to the fact that Global Warfare doesn't support and include the commandmenu.txt file like the other mods. So I found pointless to create multiple release packages. Therefore this one universal gamer package has both .dll and .so libraries and so it can be used by both the gamers and server admins on both systems Linux as well as Windows.
Like said seeing this is a test version the zip is missing the change log with neatly sorted list of additions, changes and fixes. But there is a list of all changes inside the zip archive with the source code. To make it convenient for you, I've uploaded it to MB homepage too. So that you can view Marine Bot 0.97.3b for Global Warfare 1.5 changelog to learn all the details. Besides that I've updated the waypoints for d_bridge that were the only official waypoints in the 20 years old test version. Also you can still download and use the old waypoints package to get a few more maps playable with the bots. However those waypoints don't include the new features so you'd have to update them yourself. And I guess I can reveal that Vas has some new waypoints in work, that does support the new features of course. Like I said a while ago check his shared folder on MEGA once in a while to see what is available. Speaking of it, about a month ago he uploaded the waypoints for sd_climax_b11. Those that were previously shown in one of videos @marinebotofficial.
To wrap this news update, there is also another recent video at Marine Bot's YouTube channel, MB WIP Generate file with start positions and a fix for unstuck code, that shows changes that will move to the other versions of MB too, in future of course. There are more things I found while working on this version of MB for GW. For example most probable source of those strange 'door' waypoints in dod_escape waypoints. For reasons unknown to me the waypoints were never finished or at least fixed. I didn't create them so I don't know what exactly was done there. However in the first alpha Marine Bot 0.97.1b I gave you my fixed version of these waypoints. As the news update at the time mentioned I had to fix the major bugs to properly test the new MB features. Anyways as I worked on MB for GW I found out that the waypoints repair function for waypoint ranges can cause this weird addition of 'door' waypoints around func_door_rotating entities. The bridge in dod_escape is created using this entity. As you know MB doesn't use the range setting on some of special waypoint types like door or ladder. So this feature was added to improve the results of the repair function. Until recently I never seen it cause the issues. The tests I've done in GW showed that the func_door_rotating is strangely much larger than what you see in the game. And this is what most probably results in unwanted 'door' waypoints around these entities upon using the repair function. Anyways I've removed this "helper" tool from the code. So the repair function won't change the waypoints to 'door' anymore. In MB for GW it's already implemented in this test version, but MB for FA and DoD will have that in the next version of course. Besides synchronizing the source codes I still need to finish updating the waypoints pack for the old Firearms 2.5 maps. I'll keep you updated. Oh and have fun with the new version of Marine Bot for Global Warfare 1.5.
26 July 2026
Okay Tour de France is over. Which means that I'm back to Marine Bot development again. Actually like I said last time, I've been doing some development since I started testing the 0.97.3 alpha versions that got released at the end of last month. You know, those roughly 30 minutes sessions in late afternoons or early evenings. And that more or less continued even during TdF where after the stage and everyday house chores I did some work on the Marine Bot. Now I can finally reveal what have I done. It's the new version of Marine Bot for the Global Warfare 1.5 that I've mentioned a few times here on MB homepage. Reason is simple. I've found out that the waypoints for the ancient test version are still compatible with current MB. The old test version is flagged as 0.9b, but it actually branched from main MB after releasing the 0.9b for Firearms. This means that the update to the waypointing system has already been done in it. So the test version for Global Warfare is actually closer to MB0.91b than to the original 0.9b when it comes to internal mechanics and state of the code. You may ask why do I mention waypoints. Well it's because to implement some of future features I'll have to update the waypointing system in current MB. So having a modern version of MB for Global Warfare will safe the original waypoints, because this will allow their conversion to current version of the waypointing system. And those converted waypoints can then be converted again after the waypointing system update in the future.
Anyways since the modern version of MB for Day of Defeat the source code is quite prepared for porting MB to different Half-Life mods. I mean that the things are quite easy now. Especially if you already have a lot of the hard work with researching the internal mechanics of the mod done in the old source code for MB 0.9b Test 1 for GW. Okay some stuff in the old source code wasn't correct, but still it's a huge help. So the move to the modern code base of 0.97.3b went surprisingly well and fast. Modern MB source code is on many places like a building blocks. Where if you want to add a new feature you can easily use the simple utility functions and create it that way. I mean that those 30 minutes long free moments I have during the week days are enough to add the new features I wanted to have in MB for GW. Sometimes it was a new feature per day. Other times not lol. For example teaching MB how the Capture Point system works in GW didn't go that well. Mainly because I didn't expect GW will not send needed engine messages to the bots. Actually it does send them, but only when the bots are respawning. When the bots are running around on the map and really play the game and capture the points they don't receive these messages. Weird, huh? But that's how it is. I made a foolish mistake by not researching this properly when I first began. Other than that I had to rewrite the code the next day and lost some time on that I don't mind it at all. One learns from the mistakes. Like I said the code is like building blocks so I simply copied the system of Control Points from Day of Defeat version of Marine Bot, simplified it a lot and used it for the Capture Points in Global Warfare. After that problem with bots not receiving certain engine messages I overloaded few of these basic functions in the system, you know to make the function accept another data type on the input, and I was done with it. From the few tests I've done so far all seems to work well now. GW original system for the human clients and MB own system for the bots can cooperate nicely and the bots seem to understand how to play these capture maps.
You can check that and other features in the video titled New Marine Bot version for Global Warfare 1.5 features showcase @marinebotofficial. Besides that there's another video uploaded just recently. It's a footage from testing a new set of waypoints for sd_climax_b11 by Vas. I guess I don't have to tell you that the waypoints are again top quality. It's his trademark :). If you haven't watched it yet then check it. Okay I'll end this news update with the list of features already implemented to the new version of Marine Bot for Global Warfare 1.5, i.e. compared to the 0.9 Test1. And if you are at the start of your summer vacation like me then enjoy it. I'll definitely enjoy my 2 weeks off work.
- FIXED bot trying to return back to a place where he boarded the transport once he deboards it (now he'll simply reset the navigation when he's in transport to start afresh upon leaving it)
- Bot medics can now heal teammates (both on a radio call as well as when a wounded teammate gets close)
- Bot engineers can plant a mine and set a C4 explosives (this is based on the claymore waypoint setup where priority 1 a.k.a. a goal placed claymore waypoint will make the bot set the C4 charge and all other priorities mean the bot will plant a mine)
- Updated the reaction to "follow me" command (now the Fireteam is up to 4 members same as in other modern MB versions)
- Added reaction to radio command "hey" (wounded teammate will pause for a while to wait for a medic to come)
- Added reaction to radio command "hold this position" (if the bot isn't in any Fireteam he'll wait at his current position for a while, if the bot is in your Fireteam then he'll do the same and he'll also stop following you)
- Added reaction to radio command "medic" (nearby medic will come to provide a medical treatment)
- Added reaction to radio command "move out" (a bot doing waiting duties will break it and start moving again, also a bot medic will break the medical treatment and will go away)
- Bot can spot buried mines and attempt to evade or shoot them (currently he'll either simply jump over them or shoot them if jumping isn't possible or would fail due to current stance - e.g. lying prone)
- Bot can spot grenades thrown by opposing team and warn about them
- FIXED the fancy HUD text (GW uses own way of formatting the text that corrupted MB messages style, now there's a simple tool to insert non-breaking spaces to all the HUD text MB sends to maintain the messages the way we are used to)
- Bot can manage weapon fire modes (he'll use single shots on distance and burst/auto in close quarters)
- Updated the teams balancing a bit (now there's a short pause between each task because the original code moved the bots between the teams almost instantly which could potentially crash the game, also fixed and changed the console output on listen server i.e. in your local game)
- Bot can get on the ladder and start climbing it normally (the ladders in GW are strange and if you try to start climbing up then you'll get stuck most of the time but climbing down is usually fine, now the bot simply jumps onto the ladder when he needs to climb up or if that fails or if the bot follows a Fireteam leader to a ladder or if the bot sticks to a ladder unplanned then he'll perform this stunt with a brief holding of a crouch key to start climbing up)
- Bot can now understand the Capture Point mechanics and detect the moment when he gets into active capture area (as in the other mods MB now fully supports a 'pushpoint' waypoint placed in a capture area which will tag the paths with a goal tag that is based on which team owns that Capture Point, however the bots will only react to goal tagged paths that lead to currently active Capture Point and will ignore those that lead to points that cannot be captured at the moment, next the bot will also try to secure active capture area any time he gets to it following even common path not just the goal tagged one)
- Added client command 'check_capture_points' (the aliases are 'checkcapturepoints' and 'checkcappoints' and same as in MB for DoD 1.3 this command allows you to check the data MB gathers about the Capture Points including currently active point for each team, this means the data that improve the behaviour of the bots on maps that utilize the Capture Points as the map objectives, on maps with other map objectives this command will print only default values that MB uses to initialize these records because there are no real data to gather of course)
- Bot radio specialist can now call in an airstrike ('pushpoint' waypoint placed in an airstrike trigger area will make the bot drop the GPS device in order to call in the airstrike on that area, such waypoint will also make the system add the goal path tag that matches the team that is allowed to call in the airstrike, next a combination of waypoints tags 'shoot' and 'pushpoint' will make a bot playing the radio specialist class use the laser target painting device to fulfill the mission goal by calling the airstrike on the target, a priority 1 'aim' waypoint has been updated for this particular case to reach a target that is up to 900 units far, the 'checkshoot' command was updated same way, also the bot will use a radio message to announce that he started painting the target and can use a text message to warn teammates if they are blocking his line of sight and so prevent the airstrike countdown from counting)
- FIXED max ammo value for Walther P99 in GW (GW weapon list message gets sent with incorrect max ammo value of only 21 rounds while the real value in game is 48, this mismatch can cause bugs in bots behaviour like getting stuck at ammobox - bot does strange dance around that waypoint - and navigation reset follows, now there's a patch that corrects this value when the bot receives this engine message)
- Bot can spot placed GPS transmitters and attempt to shoot them to cancel the airstrike that is inbound (same as spotting the mines this is a skill based action so the worse bots will fail more often)
- Bot can spot the scorpion and attempt to evade or shoot it (evasion means jumping over it, again a skill based action where the worse the bot is the more often will he act as that he didn't see the scorpion and will get hurt on it then)
- FIXED bot running into walls after round restart until he resets the navigation (on round restart the engine doesn't seem to update certain variables for the clients which means the bot cannot detect this event based on those variables in order to go through correct respawn and reset own variables, therefore the 1st respawn after the round restart the bots behaved strange until the other internal mechanics kicked in and corrected it, now the code was changed to check for one of the internal variables MB maintains instead of relying on the game engine variables)
- Bot behind the onboard gun in a transport will aim correctly now (a gunner in the APC will always aim forward in a direction of the movement and a gunner in the helicopter will aim to the side - outside of course)
- Bot can detect that he's carrying a capturable item (the bot will set appropriate behaviour which also includes looking for the carry item tagged paths to deliver the item to a designated area)
- Bot can spot dropped goal items and take them (if a teammate drops the documents as a result of being killed and the documents aren't exactly on route but still within the seek for objects radius the bot is able to pause waypoint based navigation in order to get to the documents and take them, he will then resume standard navigation again and continue on his way)
28 June 2026
It's about four and a half months since the release of last test version and here's a new one, Marine Bot 0.97.3b, for both the Firearms as well as Day of Defeat 1.3. As usual all the zip archives are available for download in the 'FILES' on the left hand menu, in the section titled "Marine Bot test versions (call it an alpha release if you wish)". In case you aren't familiar with this yet, you need a working installation of Marine Bot 0.97b with which you will merge the contents of these updates. You'll be prompted to overwrite some files where you must confirm it in order to replace the original files with these new updates. This time I've added the two new sets of waypoints created by Vas, those that I announced two weeks ago, to the zip archive with MB for Firearms. In case of Marine Bot the Day of Defeat edition, there are no new additions. It still has the same configuration files included in the update zip so be sure to edit 'marine.cfg' file after the update, if you have some custom settings in it. You'll have to do the same with all mapname_marine.cfg configs that you may have inside 'mapcfgs' folder in your MB installation, because the configuration file has a new setting compared to the original 0.97b release. It's the option to limit the bots in selecting only certain classes in the game. If you don't update the configuration files then you'll be getting repeatedly a warning message at the top of your screen telling you there is a problem with the configuration file. People that already use previous test version don't have to worry about this. All you need from this new test version is the .dll or .so library.
If you want to know what's new in these test versions then feel free to view the change logs that come from the source code. These are in chronological order and show changes against the original full beta release 0.97b. So if you want to find what's been changed since previous test version then scroll down to the news update announcing it and compare the lists. Anyways here's the list of changes for Marine Bot for Firearms. And here's the one for Marine Bot for Day of Defeat 1.3.
I'm already working on new stuff. Seeing I've spent most of my time on testing both 0.97.3b updates, I worked on the new stuff only in those limited free moments in late afternoon or early evening during the week days, i.e. about 30 minutes now and then. Now the test versions are out so I'll be able to give it more time. Still it's going to take some time. I'll let you know when it's more ready. Till then have fun with the bots.
15 June 2026
Marine Bot YouTube channel followers know that last weekend, June 6, I've made a post there announcing that the final testing before releasing the alpha versions 0.97.3b has started. I've included a screenshot of two Linux Dedicated Server consoles running this alpha version (a test version if you will). One for the Firearms and one with the Day of Defeat edition of Marine Bot. YouTube doesn't have a nice system of posting screenshots so the following links have the same screenshot that is on YouTube and the second one shows the automatic repair message in detail. The testing continued this weekend too. This is actually the reason why I'm updating the news today. I've used all the free time I had over the weekend for the testing. You know I don't have much free time over the week days. Enough to write this news update, but not enough to do a proper testing. Things are looking good in the tests so far. No serious issues. So I might be able to get the alpha versions out by the end of the month.
Next I have some great news for Firearms fans. People that check Marine Bot YT channel already know it, but for the rest. Vas, a talented waypoints creator, made awesome set of waypoints for two 3rd party maps in FA. First is a map based on the Black Hawk Down movie, cti_supersixfour_r14, and the second one is a map titled sd_sodom_rc2, which is from the same author as the map I used in Marine Bot Waypointing video guide. The same author created also a 3rd cool looking map named sd_climax_b11 which is a tribute to Firearms iconic map sd_durandal which is created by the same author who created the cti_supersixfour_r14. Interesting coincidence, huh? Well Firearms may not have been the most popular mod, but it's definitely one with the most profesional look, feel and features. Speaking of top quality, you can bet that both latest sets of waypoints by Vas are like that too. Every single set of waypoints he released since his very first waypoints for dod_liberte_b2 is really well crafted. I mean that if you start a map and see a message "Waypoints by Vas" at the top of the screen, you can be sure that the bots will behave exceptionally well and the game will be full of surprising moments, challenging and hell of a fun. If you want to see for yourself then here are two videos I recorded when I was testing these two latest waypoints from Vas for cti_supersixfour_r14 and sd_sodom_rc2 maps.
You won't have to just watch videos to see how talented waypoints creator Vas is, you can actually try them out. Seeing that Vas has also waypoints for Firearms maps now, he decided to create an account at mega.nz to be able to share all his waypoints with you. This is the link https://mega.nz/folder/exwEkQbI#kzVIwQMseX8tpj7vFvpJcQ to his shared folder at MEGA where you can download his Marine Bot waypoints for both Firearms and Day of Defeat maps. This is cool because now he can share his waypoints any time, without the need to ask someone else and hope that they will be made public one day. Right now there are only 4 sets of waypoints, two for FA and two for DoD, but Vas said he's currently updating his older waypoints and will upload them as they are finished. Actually the two sets of waypoints for Firearms maps that you can see in those videos above, have already been updated. So the ones you can get from his shared folder at MEGA are even better than what you can see in those videos. Now this is what I call a dedication. We are extremely lucky to have such great waypoints creator here. Thank you, Vas. I really appreciate all your support. By the way the link to his shared folder with waypoints has been added to the 'LINKS' section. My advice is to check that link every now and then to get the latest waypoints from Vas this way. Now go get them and enjoy the game with the bots :).
10 May 2026
Over a month without any update. Sorry. It's like I said last time. The development continues normally, but I don't have much time to write these news updates. Those that follow Marine Bot on YouTube got recent news from the development as I uploaded a video titled MB WIP Updated options to repair bugs in map objectives entities two weeks ago. That video describes the new options that MB in version 0.97.3b has when it comes to fixing the bugs in some Day of Defeat maps that prevent Marine Bot from playing them well. Actually not only to the bots. There's shown quite extreme example that would prevent even human players from gaming on such map. Honestly I don't think such case can really happen, but seeing how messed up are even some official maps in DoD, I wouldn't be surprised if there was a map like that on some map download web site.
Next I finally got to another of these pending issues in MB. And that is the problem with targeting certain game objects like this ventilation cover on map dod_assault that INsane reported couple months ago. My original guess what could cause it was wrong. As recently I've done a thorough debugging and found out the real source of this problem. When the bot is targeting some game object he needs to be very precise in that. But the limits that are required to achieve this level of precision prevent the bot from targeting the object in case it's located in a place that is at extreme view angle for the bot. In other words if the game object is either high above the bot or deep down below him. In such case the bot cannot lock on such target and so he's unable to continue in the action. In past I already noticed this when I worked on bot's ability to use the rocket/grenade launcher to destroy some breakable objects. I've added an exception for the extreme upward angle. Because I noticed this problem on map dod_caen when I gave the bot a voice command to break the window/wall on upper level of a house that we were standing by. And the bot wasn't able to target it. However for some strange reason I didn't realize the same problem can happen in the other direction too, i.e. extreme downward angle. This is fixed now. You can check that in latest video @marinebotofficial titled MB WIP Fixed extreme downward angle targeting. This is what has been added to the change log since last time.
- FIXED inability to capture the objective while climbing a ladder (when bot enters a Capture Area that he's able to capture then he goes crouch for cover but doing so while climbing a ladder up this actually means the bot leaves the area and cancels the capturing and also blocks that ladder, now there's an exception to prevent bot from crouching in such situation)
- Improved options to fix map issues (MB can now automatically fix problem with non unique targetname in Control Point entity which caused bots getting stuck in Capture Area that pointed to more than one Control Point, next is the name entry in external configuration file for modifying Capture Areas is now a fully processed variable which allows you to correctly link such area to appropriate Control Point in cases this connection was misconfigured or completely missing - this again prevents bots from getting stuck in areas due to either misleading or missing data from the map, the checkcontrolpoints command now has a new item that lists the unique targetname ID that creates the connection between that Control Point and linked Capture Area - this ID is what you can use in the external configuration file to fix the connection when it doesn't work on messed maps, and lastly the checkcaptureareas has a new argument 'nearby' that allows you to find out which Capture Area is in your vicinity in order to fix its data in the external configuration file in situation the map lacks this information and you don't know which area is which)
- FIXED inability to correctly target a breakable object under certain conditions (when aiming at such object the bot needs to get this target to pretty narrow view cone, but if the breakable object was down below the bot - e.g. a vent cover on dod_assault where the bot was standing on it - bot wasn't able to reach given aim limits thus couldn't start shooting and destroy such object, there already was a exception for a case when similar object was above the bot, now this exception was extended to include also objects that are below the bot so in both cases the bot will loosen these limits a little in order to pass that strict aiming check and destroy such object)
Last point of this news update is that I plan to release another test version, the 0.97.3b. It won't happen in May though. Soon, May 15, starts the 2026 Men's Ice Hockey World Championships. As you know from previous years, in these 2 weeks I'm fully focused on the hockey. No development work or anything else. Besides that I haven't tested most of recent changes/additions on Linux yet. Just that alone is going to take some time. So the time frame for possible test version release is about end of June or start of July, if things go well.
6 April 2026
Long time no update. I'm sorry about that. It isn't so that I haven't done anything. Just that I couldn't find enough time to sit down and write the news update text. Okay so those of you who follow Marine Bot on YouTube already know of some things that were worked on. Both recently uploaded videos are related to work of Vas, very talented waypoints creator, who thanks to his dedication to this work can also notice many strange things related to MB. And reports them back to me. Thanks to him I've been able to fix the problem with 'pathwpt checkproblems' command, allow the Triggers to work on more maps, teach the bot to deal with dod_object_goal based map objectives and fix the mismatch in data formats in MB Control Points records which made them non working in rare cases like on map dod_kaust_b2 and its 2nd objective for the Axis team. Again Thank you, Vas, for such support. The two videos MB WIP Dealing with dod object goal based map objectives and Gameplay test of dod kaust b2 waypoints by Vas @marinebotofficial are related to these changes.
Next INsane contacted me about game crashing on map dod_bierville and wondered whether it could be due to MB. I let the bots run on this map for about 2+ hours straight without single issue. I noticed his waypoints don't fit the map geometry in some places. So my reply to him was that I didn't experience any crash and that my guess is that it could be because of different map version each of us had. However by watching the bots on this map I realized that MB needs a new user command to disable default behaviour the bot uses when he carries the dod_object item, e.g. briefcase with documents or the beer keg on this particular map. So since version 0.97.3 you'll be able to use the 'dont_use_carryitem_behaviour' on any map where you don't want the bots that carry some goal item to be less aggressive. Then I had pretty frustrating experience when I was testing INsane's waypoints for map named dod_density_b4. The map is poor in design, basically one long road, no side routes, nothing interesting, and sadly the waypoints have the same poor design. So the bots behave terribly on this map while they could have played it well if the waypoints respected MB waypoints creation rules. In moments like this I question myself why do I even try. Why do I provide the manuals and record the tutorial videos if they are ignored. Oh well. They say you should always try to find something positive. And that's what I managed to achieve in the end. As I was able to notice two bugs in MB watching the bots struggle with the waypoints and the map. Bugs where the bot could end up entering the very same path again and a bot that is waiting forever in an activation area of breakable object that is designed for explosive charge due to fact that DoD doesn't care to disable this area on some specifically designed objects when you destroy them, were both rarely occuring and so hard to find. Finding and fixing them is surely a positive thing. In a strange way I'm actually glad that the waypoints are so bad that they allowed me this. Below is console output for 'debug_cross' command on the junction next to the 88 gun map objective on dod_density_b4 after I patched the reusing the same path over again bug. The lines starting with << DevCROSS >> string are available only in development build. Rest is available in standard release build.
<< CROSS >>Number of found wpts is 2 || The wpts are (index|priority): #150|5 #156|4 #0|5 #0|5 #0|5 #0|5 #0|5 #0|5
<< CROSS >>Lowering the chance to pick wpt #150 -> it has been used on current path #23
<< DevCROSS >>(runValueBasedDecision?=0)Value array wpts are (index|value): #0|0 #0|0 #0|0 #0|0 #0|0 #0|0 #0|0 #0|0
<< DevCROSS >>Ignoring priorities -> AVOIDING to pick wpt #150
<< DevCROSS >>Ignoring priorities -> AVOIDING to pick wpt #150
<< DevCROSS >>Ignoring priorities -> AVOIDING to pick wpt #150
<< CROSS >>Ignoring priorities -> The ONLY wpt is #156 < normal >
<< PATHS >>Picking path #25 on waypoint #156
Lastly as I was about to run the tests to confirm that the fixes really work, I also got to the FL_FROZEN flag issue that I promised to look at in the comments to older video titled Bot is doing complex decisions on a junction @marinebotofficial. Checking that was a simple task. Just added logging to MB debugging file and then ran those game tests I needed to do. When I was done I looked in the debugging file. No traces of FL_FROZEN flag being assigned to the bot. So I added this condition to one already existing 'if' statement. This means MB will no longer be negatively affected by any external interference utilizing this bit flag.
- FIXED bug in 'pathwpt checkproblems' command (one counter that is needed for correct path checking didn't get reset which could cause incorrect error message printing to the error-log file, and if development build was used then it crashed to desktop; the error message in question was "LinkedListError @ Check Paths For Problems for path no. < path index here >!!!")
- Added 'dont_use_carryitem_behaviour' as a Dedicated and Listen Server commands (by default any bot that is carrying a goal item such as a briefcase has a limited aggression and attacks only enemy that gets in 200 units radius around him but this command allows you to disable this behaviour and make the bot behave as if he didn't carry any item and make him attack any visible enemy, this command is a standard switch that lasts only for duration of the map, map restart or change to different map will reset it back to disabled state which means the bots that carry goal item will return back to standard limited aggression behaviour, on Listen server - i.e. Create/New game - there is also an alias 'botdontusecarryitembehaviour' to match other bot setup commands)
- The Triggers will now work on more maps (Triggers in waypointing system do work on any map that utilize the capture messages that get displayed in bottom left corner of the screen - this means most maps - but some maps don't have these messages so the Triggers couldn't have worked there, now the Triggers will intercept even this specific engine message that updates the objectives icons at top left corner of the screen which allows using the Triggers also on these few maps that don't use the capture messages - e.g. dod_escape or dod_hameau)
- Bot can now detect the dod_object_goal used for a map goal object that has to be destroyed (until now the bot was able to deal with func_breakable and dod_capture_area that both can be used to create destroyable objects or true map goals, dod_object_goal entity has been ignored altogether, now the bot will treat it as another object that is used as a map goal however if dod_object_goal entity is used as destroyable map goal then it can be waypointed with only the claymore waypoint that is supported by a trigger waypoint, the pushpoint waypoint doesn't work as this entity doesn't provide needed data; this update allows the bots that join the Allies to correctly game on map dod_hameau where the trucks were created using this dod_object_goal)
- FIXED data mismatch bug in a code that maintains the records about map objectives (in a utility function of the class structure for DoD Control points the data format that read and stored the coordinates of Control point entities was used an integer type while the game engine treats the coordinates as floating point data type, this mismatch caused rare cases of invalidation which lead to non working records and thus bots being unable to behave correctly on such map objectives, e.g. the 2nd goal for Axis - the Sd.Kfz. 222 - on dod_kaust_b2)
- FIXED possibility to pick again the same path the bot is already moving on at a cross waypoint (bot does already drop the priority of waypoint with such path down below lowest priority to avoid choosing it but due to heavy randomizing involved in the choice mechanism and combined with quite specific setup of waypoints on a junction in question the bot was still able to pick such waypoint and so reuse the same path repeatedly, now there's been added a mechanism to give bot up to 10 tries to choose different waypoint and so avoid using the same path again)
- FIXED bot waiting indefinitely at some breakable objects designed for explosive charge (if such game object allows also destruction by rocket/grenade launcher - e.g. radar, 88 gun or radio room on dod_glider - then the activation area doesn't disappear which could have made the bot stay there waiting forever, now there's additional check confirming this game object is already destroyed to prevent bots from starting to wait to set the explosive charge there)
- FIXED bot committing a suicide after game engine assigned him a FL_FROZEN flag (the way how does this flag work made the bot think that he got totally stuck unable to free self at all in which case the suicide is used as the last resort to free self and continue playing, now when the engine sets this flag to the bot then the bot will simply skip all game frames - i.e. do completely nothing - until the engine removes this flag again)
Oh I nearly forgot about one thing. While testing the patch for messed func_breakable objects that keep the activation zone despite being destroyed on map dod_glider, I was trying to figure out a good way how to explain yet another inconsistency in DoD. Those misleading data in MB Control Points and Capture Areas records. This happens on some maps that have these so called hidden objectives. This means either dod_control_point or dod_capture_area entity that doesn't show in the HUD icons at top left corner. Yet they are processed by the game engine, do get unique ID and mainly they do cause the mismatch in what MB records checking commands report and what you actually see on the HUD. Then I got this brilliant idea ... let's outsource this to AI, specifically Google Gemini, lol. So I chatted with it for a while to explain it what I want and then gave it the data. It did great job. Look at the picture. Hopefully now you'll know what's going on if you happen to run into it yourself. By the way if you have already looked at the picture closely. And now you wonder that the 1st control point record reads that it's owned by Allies then this is really true. This is the hidden objective that the map dispatches with this value and it never gets changed. At least in my tests it didn't change. Same it is for the last, the 7th, record. Again a hidden objective. Funny that it isn't just me who keeps saying that DoD is a real mess and that it's a "real joy" to try to work in it. The AI said it too :).

8 March 2026
Yesterday I got a bit more time to record a new video that shows recent improvement to bot's ability to target enemies. It isn't so that the bot had real problems targeting his enemy. Quite contrary. This new tweak actually limits the bot in targeting enemies that should not be visible normally. It's all about fact that the game engine has some strange limits and doesn't provide needed data for the bot. In past couple news updates I've talked about various game entities and the troubles that they cause. This new addition to MB code is basically the same thing. Simply put the game engine tools cannot detect entities like func_illusionary for example. Also they cannot detect the sky box that seals the map. So if a map creator used these objects so that they are the only things that separate different map sections then we have a problem. Bots can then target and shoot at enemy that is located in the other map part. Enemy that human player cannot see at all. As said this is because the engine tools pass through these objects and so give incorrect data to the bot. A map where this is most visible is dod_charlie where the places with map goals are surrounded only by bushes and there's a skybox behind them. Both these objects aren't solid at all. They are just an illusion for human player. You can shoot through them. And bots can see through them of course, because the engine tools the bots depend on ignore them. Therefore since Christmas I've been trying various ways how to solve this issue. Recently I've finally found one tool in the game engine that can limit this issue to a minimum. Sadly it doesn't fix the problem fully. Still it's a significant improvement. Marine Bot will now utilize a set of visibility data that is part of the map. The game engine is processing these vis data and provides one function that can be used in our favor. Until now MB ignored all enemies that were out of range for his current weapon and then used the engine tool named Traceline to track the remaining enemies in order to find a moment when he had a clear view on such enemy and could attack. Since now the bot will still ignore all enemies that are out of range, but then he will ask the game engine to tell him if the remaining enemies are within the same map part, i.e. could be visible from his position, and then he will traceline only those that the engine identifies as potentially visible. You can see this in detail in a video titled MB WIP Enemy targeting utilizing map visibility data @marinebotofficial.
- Bot will now use map based visibility data to target enemies by default (bot will first filter out all enemies that are out of range for his current weapon - like he did till now - but then he will call to game engine to get data about all potentially visible players and finally then he will use the tracelines to determine truly visible enemy to engage in combat, this not only prevents bots from being able to attack enemy from other map section through the skybox but also reduces the system resources needed for the bots to track all possible enemies)
- Added 'use_mapvisdata_targeting' as a Dedicated and Listen Server commands (by default it's turned on, allows you to activate or deactivate the use of data about potentially visible entities that the game engine gets from the map file to improve bots ability to target enemies, this is sort of a static switch - a persistent setting that stays set the way you choose for the whole time the server is running or until you change it again, it doesn't get reset on map change)
- Added option to use MB Dedicated server commands in the marine.cfg file in the Binding/commands section (for example if you add a line addcommand "mbot usemapvisdatatargeting off" then you'll deactivate this feature that is by default turned on, it must be a full valid command which means it has to start with either m_bot or mbot otherwise it won't work at all, standard client game commands cannot be used because the client - i.e. you - doesn't exist yet during map loading)
Next is a small update to last news update about the release of 0.97.2b test version. As you probably know INsane does mirror Marine Bot files related to Day of Defeat 1.3 edition. He updated the test version zip archive with all waypoints he provides for download on his web. This updated test version can be found in his download section for Marine Bot and the list of all available waypoints with links to maps can be found here. Actually he added a few more new waypoints sets since the test version release. So that list is worth checking regularly. Thanks for the support INsane.
14 February 2026
As promised earlier here's a new test version, Marine Bot 0.97.2b, for Firearms and Day of Defeat 1.3. Both zip archives together with two other zip archives with the source codes are available for download in the 'FILES' on the left hand menu. Again the links are in a section titled "Marine Bot test versions (call it an alpha release if you wish)" because these are just updates, not full releases. For those of you not familiar with it yet, you need a working installation of Marine Bot 0.97b with which you will merge the contents of these updates. You'll be prompted to overwrite some files where you must confirm it in order to replace the original files with these new updates. In case of Marine Bot the Day of Defeat edition, there are configuration files included in the update zip so be sure to edit 'marine.cfg' file after the update if you have some custom settings in it. You'll have to do the same with all mapname_marine.cfg configs that you may have inside 'mapcfgs' folder in your MB installation, because the configuration file has a new setting now. It's the option to limit the bots in selecting only certain classes in the game. If you don't update these custom configuration files then you'll be getting repeatedly a warning message at the top of your screen telling you there is a problem with the configuration file.
Those of you that are already using previous test version 0.97.1b don't have to worry about any configuration files of course. Because the class selection limits a.k.a. custom classes in DoD edition of Marine Bot have been introduced in the test version you already have. So all your configuration files should already include this setting. All you need from this test version zip archive is the library matching your operating system. This means the .dll file if you are using Windows, or the .so file in case you're a Linux user. The test version for Firearms actually has only these two files. So Firearms users have the upgrade to this test version very simple. They don't have to worry about any unwanted loss of custom settings.
Finally if you are interested in what's been changed then feel free to view following change logs. As I said in the text for last test version, these change logs come from the source code and aren't nicely sorted like in case of full beta release. These are in chronological order. In other words this is how is the source code changing in time. Anyways this is a list of changes for MB for Firearms. And this list of changes is for MB for Day of Defeat 1.3. Both show changes against the original full beta release 0.97b. If you want to find what's new since previous test version 0.97.1b then you'll have to scroll down to the news update announcing it and compare both lists of changes.
10 February 2026
Quick update on the patch for misconfigured trigger_hurt entity on dod_zeppelin. I didn't get to this till now, but last week Noddy contacted me. In the email conversation we also got to the topic of this issue on dod_zeppelin. Noddy provided exported list of entities from his version of this map. Actually only the four trigger_hurt entities that matter here. See.
{
"model" "*67"
"dmg" "100"
"spawnflags" "64"
"classname" "trigger_hurt"
}
{
"model" "*68"
"dmg" "100"
"spawnflags" "64"
"classname" "trigger_hurt"
}
{
"model" "*69"
"dmg" "100"
"spawnflags" "128"
"classname" "trigger_hurt"
}
{
"model" "*70"
"dmg" "100"
"spawnflags" "128"
"classname" "trigger_hurt"
}
By doing that he confirmed my theory that he must have different version of the map where things are set correctly. So he couldn't have seen any bots being killed by the trigger_hurt entity, because all works well for him and anyone else who has this good version of dod_zeppelin. This also means that the patch I added to MB will work fine even if people have dod_zeppelin that isn't bugged. I mean that the entities are in the same order so the patch won't cause any unwanted side effects. As you can see the last trigger_hurt, the one with model index 70, already has spawnflags value 128. In this case the patch will "modify" it to the very same value 128. In other words it will basically do nothing :). It's great to know the patch is safe. Thank you for the help, Noddy.
1 February 2026
Last week I've exchanged couple emails with Vas, the creator of Marine Bot waypoints for maps such as dod_liberte_b2 or dod_wolfie. Mostly it was feedback to his dod_wolfie waypoints including a tip that in the 'console_commands.html' he can find a client command 'fixparticlemanagercrash' that can actually disable all bombardment that is based on 'monster_mortar' entity. But we also got to the nasty issue on this map. You know that console spam once the allies win the game. I expressed my suspicion on a faulty setting on some entity that gets triggered when allies win. Also I mentioned that I haven't found this entity yet, because the entity that I know that can do it isn't used on this map. And here goes my big thank you to Vas, because he used a bsp editor to find the exact entity that causes this issue. This saved me hours on going through huge debugging log trying to find it. Yet again thanks for the help, Vas. So once I knew the exact entity name, the only thing I had to do to fix this bug using MB source code was to write a simple patch. Basically the same sort of code as the patch for a crash on map ctisdps_mexico in Firearms that I speak about in news updates from 10th August 2025. I only added a new statement, two actually, to appropriate HL engine function that MB intercepts during map load and modified the data before I hand it back to the engine. Look this is the record of the faulty 'dod_score_ent' entity from my debugging log at the moment when the engine builds the game word.
DispatchKeyValue: 1C273D38 classname=dod_score_ent
pfnAllocString: < dod_score_ent >
pfnPvAllocEntPrivateData: <620>
DispatchKeyValue: 1C273D38 origin=1776 2480 769.901
DispatchKeyValue: 1C273D38 score_nextmap=0
DispatchKeyValue: 1C273D38 team=1
DispatchKeyValue: 1C273D38 targetname=allies_win_reset
pfnAllocString: < allies_win_reset >
DispatchKeyValue: 1C273D38 score_nextmapdelay=10
DispatchKeyValue: 1C273D38 score_resetplayerstime=3
DispatchKeyValue: 1C273D38 score_resetitemtime=3
DispatchKeyValue: 1C273D38 score_points=200
DispatchSpawn: 1C273D38 dod_score_ent
The fifth line is the source of the bug. Next map property has value zero. In other words this means change the map to '0.bsp' which of course doesn't exist. If you renamed say Anzio to this '0.bsp' then the game would load Anzio and you would continue on that map. But like I said '0.bsp' normally doesn't exist in your DoD so the game keeps trying to call the command 'changelevel 0' and also keeps filling the console with the error message that tells you such map doesn't exist. I hate to say it, but this again proves what I said even last time, Day of Defeat despite being official Valve game, is a real mess. Now the idea to have entity that can change the map on certain game event is great, but the implementation is terrible, like in many other cases. It feels like if the developers only added features to the game, but no one ever really tested them.
Also the second patch is related to a map, not something in Marine Bot. As I was looking at Noddy's waypoints for dod_zeppelin I noticed that every now and then axis bot dies without any trace. I thought that there may be some glitch where the bots do get stuck and upon using all options to get unstuck they commit a suicide as the last resort how to get free. To my surprise they kept dying in quite open space when they were passing through doorway from their spawn zone. Checked the entities in that area and found a 'trigger_hurt'. That's it, this must be wrongly set spawn zone protection system. Dumped all four 'trigger_hurt' entities to debugging log and found out that this particular one has same spawnflags value as the two entities at allied spawn. Value 64, which is 2 to the power of 6, seems to be a flag that says ignore (i.e. don't hurt) allied players. And value 128, 2 to the power of 7, says ignore axis players. The problem with this patch is fact that I had to point to this 'trigger_hurt' entity using something that seems to be some index on a list of all entities on the map. Reason for that is that there is nothing else that would be a unique value for this entity. From my understanding (I mean I guess) of how the engine works it seems like the Hammer editor (or other map creation editors) do store the objects that are on the map using a list. So each object has own index. Then the engine during map load goes through this list and recreates the objects in the same order. So I can use this index as unique identifier of the object that I want to modify in the engine function I intercept using MB source code. Now the problem is if there is another version of the map where the creator removed some objects then the index I use to point to this particular 'trigger_hurt' won't work and so the patch won't work either. Hopefully if there is different version of this map then the order of objects/entities is the same. I mention this because it seems like there is a different version of this map, because I don't think Noddy would have created the waypoints this way if he saw this spot keeps killing axis bots.
- FIXED console spam due to wrong dod_score_ent setting on map dod_wolfie (actually this patch will work on any map where the creator mistakenly set a value 0 as a name for the next map that this "dod score" entity should trigger once the game conditions are met - e.g. the team wins the game, when MB system detects this nonsense during map load this incorrect value gets reset to empty string which won't do anything and the game will continue on current map)
- FIXED bug in spawn zone protection on map dod_zeppelin (the version of this map that's available on 17buddies.net has one of the trigger_hurt entities that cover the exits from axis spawn zone wrongly set to hurt and kill axis players instead of allied, MB system corrects this now to allow axis players leave through that exit normally without being hurt or killed, in other words this entity will hurt allied players same as it is done on the other exit from axis spawn)
In this picture of two source code snippets of these two fixes you can see that the actual patches are quite simple. What usually takes most of the time needed to fix something like this is the data gathering and then guessing or trial and error to figure out which value does what.
One last thing I'm going to mention today. I already started preparing to release another test version. It will be a minimal release again, i.e. just the .dll and .so libraries. Well in case of DoD edition there will be also the configuration file and its backup in the zip file. Reason for that is that people that don't use the first test version 0.97.1 yet, won't have to download and install it only to get the configs. I mean that they will be able to go straigth to 0.97.2 version. I aim the release to mid February. Or the end of the month if some serious issues arise.
18 January 2026
For past three weeks I've been trying to prevent Marine Bot from seeing through various non transparent game objects. Well most of the time I've spent with 'func_illusionary' entities that are invisible to bots. The Traceline function doesn't hit this entity therefore bots cannot detect them. No matter what I did I didn't manage to fix this. Actually I managed to change them into 'func_wall' entities that are almost the same and are detectable, but this caused several serious issues on the map. I mean that some other game entities like a ladder stopped working and there were these "invisible walls" blocking movement around map origin, i.e. 0, 0, 0 coordinates on the map. There's more behind this. The issues are most probably related to the order how the entities are stored in the map .bsp file and fact that I can't seem to get to the private data of these entities. So I just gave up for now. The main reason why I wanted to deal with this is the problem with bots being able to see through most outdoor sections on map dod_charlie. It's because the bushes surrounding the sections on this map are 'func_illusionary' entities and there is nothing behind them. Just a sky, i.e. out of world empty space. So for the bots there is no visibility block at all and they will see each other or other players despite they are in different section of this map. You can simulate this no "visblock" by yourself too. If you use Marine Bot's no clipping mode and rise yourself (fly up) above the level of those bushes, then you'll see the bots in the other map section, and you'll be able to shoot at and kill them too. Well to be honest this see through skybox is in Firearms too, but it isn't as big issue as on dod_charlie. In FA you can fix it by limiting MB max distance to look for enemy. On dod_charlie you can't do it because of the beach area. Plus the crash on Linux on this map due to the a bug in particle manager caused by the intensive use of the mortars. You know this built-in bombardment of the beach area. Obviously no one ever tested that map on Linux, sigh. Really Day of Defeat is a mess. Every game/mod has something, some bugs or issues, but DoD despite being a official Valve game, is full of issues and messed up things. Firearms is far from being perfect mod, but if I compare it to DoD then it's like a day and night. Sorry about the rant, but writing a working code for DoD is nothing but a frustration at times. In Firearms the things make quite sense and even the maps follow standard ways of creating the game world, where if you find the important setting in properties then things will work fine all around. In DoD not. The maps are created ignoring common sense so often this mess only brings more issues, really. Look this is sort of continuation of previous patch "FIXED bot being able to see through solid models..." announced in last news update before the Christmas. Basically it's a new "must be" code to deal with game objects that by their properties tell the bot they are transparent yet they aren't in the end.
- FIXED bot being able to see through incorrectly created non transparent solid objects (bot was able to see and shoot at enemy behind certain solid game objects like a broken wall for example, now there's a new additional check for a transparent texture to filter out incorrectly created game objects that have properties of see through object however there's a non transparent texture applied to them so such object actually isn't transparent at all - e.g. dod_belgium is full of messed objects like that)
Having additional check isn't a big problem, the bad thing about this is that you need to call a new function to provide the data for this check and this draws additional system resources. Resources that could have been saved in favor of more responsive game/server if there wasn't such mess in the maps. Anyways look at this console output done by one of my development tools. This is correctly created non see through object (the first 'func_wall' entity) and then follows a transparent object. Both objects come from map titled obj_armory in Firearms mod. There's a part of the map where is railway track (the non transparent object) surrounded by combination of bushes and trellises as the see through objects.
Found func_wall (pent 1C240BA4)
getting more details about it...
(rendermode 0) (renderamt 0.00) (renderfx 0) (impulse 0)
(health 0.00) (takedamage 0.00)
(spawnflags 0) (flags 33554432) (solid 4) (movetype 7) (texture=< metal_rust >)
Found func_wall (pent 1C2774BC)
getting more details about it...
(rendermode 4) (renderamt 255.00) (renderfx 0) (impulse 0)
(health 0.00) (takedamage 000)
(spawnflags 0) (flags 33554432) (solid 4) (movetype 7) (texture=< {artrellis >)
The render mode, render amount and texture is what matters here. The render properties define the object. In the HL SDK the render mode uses enumeration constants. It starts with zero which is named 'kRenderNormal' and that means the object is rendered fully, i.e. no transparency at all. If I'm not mistaken in this case the render amount is skipped, because it has no meaning. Like said it's a full rendering. In other words the engine simply draws the texture, that is applied to this object, in our case a metal rust texture, with 100% hardness. This way it creates object that cannot be seen through.
Second object is different. Render mode value 4 is a constant named 'kRenderTransAlpha' and this means a specially created texture with certain color, usually deep blue, that isn't drawn at all in order to create the transparent parts on this object. All these special textures have to have their name start with a curly bracket otherwise it won't work. If you want to know the details just google it and you'll get some tutorial articles like this one for example. As you can see if the map is created like it should be done, then there's a easy clear way how to detect which object is transparent and which isn't. You don't need to do additional checks for the texture, because the object properties tell all. Now look at the nonsense that is in dod_belgium for example.
Found func_wall (pent 1C11A750)
getting more details about it...
(rendermode 4) (renderamt 255.00) (renderfx 0) (impulse 0)
(health 0.00) (takedamage 0.00)
(spawnflags 0) (flags 33554432) (solid 4) (movetype 7) (texture=< mas_stucco1 >)
Found func_wall (pent 1C132678)
getting more details about it...
(rendermode 4) (renderamt 255.00) (renderfx 0) (impulse 0)
(health 0.00) (takedamage 0.00)
(spawnflags 0) (flags 33554432) (solid 4) (movetype 7) (texture=< mrubble >)
Found func_wall (pent 1C133308)
getting more details about it...
(rendermode 4) (renderamt 255.00) (renderfx 0) (impulse 0)
(health 0.00) (takedamage 0.00)
(spawnflags 0) (flags 33554432) (solid 4) (movetype 7) (texture=< wall_ruined >)
The objects are defined as to be transparent, but then the texture that is applied to each of them prevents it. All three objects are textured with standard textures that do not have any transparency at all. Do you see why the bots behave incorrectly now? Messed objects like these tell them they can be seen through, yet that isn't true. Therefore you can see a bot that all of the sudden stops and starts shooting at a wall. He does that because there is enemy behind this wall that was incorrectly created as a transparent object. As said couple times, the bots have no eyes, therefore they have to detect enemies all the time by a technique that can be called a "fake watching". Simply put each bot keeps sending a traceline towards all other bots/players in the game and by analysing the results, such as did the traceline hit something solid or did it reach the target, they determine whether they can "see" this or that enemy in order to attack him. So sadly Marine Bot will have to do the check for texture now and draw additional system resources this way. As the check for texture is the only way how to differ these incorrectly created objects from correctly created transparent objects.
This code snippet actually shows both patches, for this incorrectly created transparent objects as well as the issue with a "see through" models such as a Tiger tank mentioned in previous news update. It's from MB for Firearms so the check for texture name is commented out because it's not needed in FA. As said above things seem to work well in FA so no point to waste system resources. As you can see I don't really check the full texture name, only the starting character. If it's a curly bracket then such object is really a transparent and so the bot can see through it. Otherwise it will fall through the code to the visibility not established part and the bot will not attack such enemy. Then there is the second part of 'func_wall' transparent objects. This is the 'kRenderTransTexture' case, there would be value 2 instead of 4 for the render mode property in the console output. This is the case when you have a standard texture like a texture of glass, but by using lower render amount value you make such object more or less transparent. As the comment in the source code says, various models like the Tiger tank use properties of rendermode set to 'kRenderTransTexture' and renderamt set to zero. Which doesn't really make much sense, because the lower the render amount is the more transparent such object will be. Now the models are typically solid non transparent models so it's weird to make them use render amount set to zero. Luckily MB doesn't have to draw additional resources to differ these from say a window for example. As all that was needed to patch the problem with bots seeing through tanks and like, was to add the (obstacle->v.renderamt > 0.0f) check. Hopefully no window on any map is done like that. You know, if I'm not mistaken and you set render amount to zero then the texture will become invisible so I don't think any map creator ever did this. That wouldn't make sense. This means this patch shouldn't cause any unwanted "side effects".
23 December 2025
I've finally got to recording the first video covering bot's decision making on a cross waypoint junction. It sums the basic rules that allow the bot find a new direction of his movement. So this video should help you with designing the junctions in your waypoints. Of course the bot doesn't use these client commands, he has his own set of functions that give him the data he needs, but these commands reproduce the process pretty well. Also the bot doesn't delete any waypoints, but me doing so in the video hopefully clearly explains the logic of the navigation system. And why the bot doesn't choose ... or better to say cannot choose ... some paths you have added to the junctions. So if you want to discover these mysteries watch the video titled Bot is doing basic decisions on a junction @marinebotofficial.
Next comes the most recent list of changes revealing current course of the development. Most changes are focused to waypoints creation, more specifically to ease this process. But there's also a fix for a bug that chased Marine Bot for quite a long time. I'm talking about the problem where the bots could see through some game objects. I've done a few fixes to this issue in the past, but there was still one case that wasn't fixed. Point is that in Firearms this wasn't a big of an issue, because the maps don't have many game models added to the game via the 'func_wall' entity. So it wasn't a priority. But since the bot got truly ported to Day of Defeat 1.3, this started to be a problem. Because in DoD there are many models like that especially various vehicles placed all around the maps, e.g. the Tiger tank as the central capture point on dod_falaise to name one. And seeing the bots can see through these they also keep shooting at enemy behind such models. They can't hit the enemy of course, but they can waste all their ammo this way in some cases. Which negatively affects the game. I wanted to kill this bug many times, but there always came something else that I got distracted by and this bug was always present in Marine Bot. Well until last week when I was checking INsane's dod_cal_sherman2 and dod_adrenalin4 waypoints. I got fed up of this bug and said enough, this has to be gone, now :). Broke the waypoints checking and started researching into the sources of this bug. It's funny that I've spent like 3 hours running through maps in both FA as well as DoD gathering the data, and then the patch was a simple condition in one existing 'if' statement in the function that allows the bots decide whether the enemy is visible or not. So far it seems this patch works fine, but I'll have to do more tests of course before I close it as solved. Anyways here's the changelog. You've already seen the first two items last time. Well partly, now they are extended with newly implemented features.
- Added 2 new bug reports and 2 warnings for 'wpt checkproblems' (a bug report that points to cross waypoints that can trap bots - either solitary one with no connection or a cross waypoint where are only inbound paths but no outbound one, next a bug report pointing to a badly created sniper spot where is missing a wait time setting - using the strict argument can reveal even sniper spot that is missing both the wait time as well as aim waypoint but this can lead to false positives too, next is a warning pointing to a cross waypoint with just one connected waypoint where is starting only one-way path or multiple such paths, and last is warning pointing to a badly set range setting that reaches into solid object however this warning is available only with the strict argument because it can result in many false positives)
- Added new argument 'strict' for 'wpt checkproblems' command (allows you to run a more thorough check to find problems that are normally - without the argument - skipped because they may result in many false positives, currently available only in case of the check for issues with cross waypoints, issues with a sniper waypoint and lastly a check for bad range setting, other checks do not utilize this yet)
- FIXED bot being able to see through solid models such as trees, trucks or tanks (bot has to be able to see and attack enemy through some transparent objects such as fence, window or glass in general but various game models that are added to the map when the engine builds the world at map load do use same function and properties which allowed bots to attack enemy that was hidden behind say a tank, bots simply were able to see through all these models, now there is kind of exception to remove the models from those transparent objects so the bots will no longer see and attack enemy hidden behind these models)
- FIXED potential crash due to trying to write a issue to error log in case the error log couldn't exist yet (the crash was possible in case you'd try to log something at the very first moments when MB was still scanning the folders to detect its position within the game installation, in the release build this was most probably impossible but using the source code to compile a development build and adding some custom logging this was possible because the logging function didn't test whether the log is accessible or not)
- Added client command 'pathwpt makecopy' (short alias is 'pathwpt copy' and this allows you to make a copy of existing path, index of a path that needs to be copied can be passed as argument to this command, if no argument is given and you aren't currently working on any path then the system will try to find the first path on nearby waypoint to make a copy of it, the copy will have all properties and waypoints of the original path)
- Changed 'check_ranges' feature (now it automatically checks the range for possible obstacles and uses color coding to differ waypoints with bad range setting, this means that if the range reaches into or through a wall for example then the two beams that show the range will start flashing with red and yellow colors, if the range is fine they remain white as they were until now, however this can be a false positives in times - for example a waypoint with large range on a hillside or stairs etc. with steep slope, also some game entities like func_illusionary remain undetected despite being solid and blocking movements)
- Changed 'wpt delete' command (now it allows additional argument where you can specify waypoint number to be deleted, this is useful when you want to or need to work remotely - e.g. in cramped area with multiple waypoints and paths, option to have no argument where it will delete nearby waypoint remained unchanged)
Before I wrap it here, let me wish you all a Merry Christmas. Enjoy the holidays. And have lots of fun. Maybe some of the fun in company of Marine Bot ;)
14 December 2025
About two weeks ago I got this bug report to my email.
If the send_presentation setting is set to 0, the message at the top of the game screen will persistently display and never disappear.
First of all I again thank you for reporting that. Now to any server admin, please do not try to disable the presentation messages. Because when I checked it on my test Dedicated server on Ubuntu 22.04 LTS my Win 11 game client actually crashed right at the moment I got that message at top of the screen telling me the server runs Marine Bot. The server continued running, it simply dropped me, as my client didn't respond due to the crash, and recruited a bot to maintain desired number of clients set by 'max_bots' variable. So if you deactivate the presentation message, you may only chase all players away from your server, because their game clients may be crashing over and over again due to this bug. I've already fixed it. Actually when I was researching into this I also found that some console commands on Dedicated server aren't using the secure system of handling user console inputs that I've added to Marine Bot a while ago. This is fixed now too.
Next I have great news for Day of Defeat 1.3 fans. INsane started creating waypoints for 3rd party maps for Marine Bot. He's got crazy pace. About one set of waypoints per day. He has a list on his site with links to both maps as well as the waypoints - https://sturmbot.org/index.php/marine-bot/129-marine-bot-waypoint-and-dod-map-links. Big thank you for doing this, INsane. He's still quite new to MB waypointing, but the waypoints are already of a good quality. Of course there are some mistakes. Some waypoints are chased by beginners errors, but he, or someone else, can always update them and fix those issues. However generally the bots can play the maps pretty well and you'll have fun. Like you can see in a video he recorded on one map, gameplay with bots footage is later in the video, first is map introduction. It's actually a good thing that he makes mistakes as it allows me to improve some features to make things again a bit easier for the users, specifically the waypoints creators. I've already done some improvements. Look at these two pictures, dod_halle, waypoints by INsane, and dod_charlie, waypoints by Martee. I've sent a screenshot with feedback to Martee in 2024 when he created the waypoints. Where I told him that when allied bot gets to this area without the Satchel and neither the middle bunker nor the wall on the right side are destroyed then he gets stuck there, because the paths that would normally get him away from this area, have a zero priority settings and so cannot be used to make the bot leave to the left. But other than that I didn't do anything else to it. Now when I saw INsane got similar problem in his waypoints, I decided to add a new check to the waypoints checking command that, as you can see in those pictures, can discover these problems. I'll add yet another new check to correctly detect missing wait time on a sniper waypoint, because I've seen this problem in one of INsane's waypoint set. It's clear that currently the waypoints checking command cannot detect this issue well. The waypoints repair function that is used for this, called in a checking mode, is locked behind one statement that prevents the detection in this case. Also I plan to use INsane's waypoints to record a new tutorial video, maybe two, to explain the mechanics used in decision making on a cross waypoint junctions. Since from checking his waypoints I see this is still a bit of mystery for anyone who is new to MB waypointing. Anyways here's a list of changes done to Marine Bot since the release of the 0.97.1 test version.
- FIXED inability to disable send_presentation message (setting it to value 0 is meant to stop showing the message telling the clients the server is running Marine Bot, due to a bug this not only didn't work but it could potentially lead to dropping the clients from the server because of a "overflow on netchan" error, the server kept sending the message over and over again until the client simply crashed to title screen)
- FIXED possible issues with insecure console commands on Dedicated server (MB has a system to validate the data users input through the console in order to prevent processing nonsense values like for example a character instead of a number, some commands on DS weren't utilizing this system fully, there were used only the checks for validity but then the final value was gathered using the old insecure way instead of getting it from already processed and validated data from the check itself, now all DS commands are fully changed to the secure system used for console inputs)
- Added new bug report for 'wpt checkproblems' (bug report that points to cross waypoints that can trap bots - either solitary one with no connection or a cross waypoint where are only inbound paths but no outbound one)
- Added new argument 'strict' for 'wpt checkproblems' command (allows you to run a more thorough check to find problems that are normally - without the argument - skipped because they may result in many false positives, currently available only in case of the check for issues with cross waypoints, other checks do not utilize this yet)
- FIXED printing formatting for waypoints and paths check for problems commands when 'bugsonly' argument was used (there's a system of limiting the number of printed issues to only 22 lines in order to fit the output into the console, especially needed for old WON game client, due to counting issues flagged as a warning - aren't printed in case you use the 'bugsonly' argument - the output didn't use all 22 lines in case when there were many issues with the waypoints/paths and so you couldn't see some of the bugs, now the system will always correctly utilize up to 22 lines no matter the argument you use)
- FIXED repair function 'wpt repair disabledwaittime' unable to fix the issue if it was present for both teams on the same waypoint (to have a wait time and a zero priority set for one team on a waypoint is nonsense as the zero priority disables the waiting, which is the reason for having this repair function in MB but this function was able to fix the bug only for one team per one call so you had to use it twice to repair this issue fully)
Notice the last item. I've fixed that just now. When I was preparing the resources for this news update I noticed that 2nd bug report in the screenshot from dod_charlie. I took that screenshot earlier today. And I didn't pay attention to it until that moment. I mean I only made sure both bugs related to the cross waypoints are really listed when I took the screenshot. It was weird because as you can see I let the system repair the waypoints to allow me capture the screenshot with short list of bugs. I went to research it and immediately found that bug in the source code. So this is a "freshly baked" stuff from Marine Bot kitchen :).
28 November 2025
Since last weekend I've been slowly putting all pieces together to release the test version of Marine Bot 0.97.1b that I announced a while back. Today everything was finished so both test versions, for Firearms and for Day of Defeat 1.3, are available for download. Head over to 'FILES' on the left hand menu and scroll down to 'Marine Bot test versions (call it an alpha release if you wish)' where are both test versions, and both source codes too. As I said before, these test versions are minimal releases, i.e. it's a patch. This means the zip archives include only the files that have been changed or added. This time nothing new is added so in the test version for Firearms you'll find just the libraries, the .dll for Windows and .so for Linux. In case of Firearms the Linux .so is for Dedicated server, because Firearms cannot be played natively on Linux, i.e. there is no client version of Firearms available for Linux. The list of changes comes as a text file that is normally a part of the source code package. It isn't sorted in usual way as you are used to from standard full beta releases. The changes are listed more or less as how did they happen. Final note to this test version for Firearms. The zip archive also includes the waypoints from the Firearms 2.5 waypoints pack, that I managed to update to date. Same as the test version itself, they aren't fully tested, so use them at your own risk. They are inside 'customwpts' folder to minimize the chance you'll overwrite your current waypoints for FA 3.0 maps if you simply merge the contents of this patch with your current 0.97b installation. Still better check the 'customwpts' folder in your MB installation for possible conflicts with the files included in this test version.
Next is the test version for Day of Defeat 1.3 and unlike the tests I used to release when the Marine Bot 0.97b for DoD was being developed, this is also only a patch. This means you need a working installation of MB 0.97b for DoD with which you can merge this test version. Otherwise it won't work at all. The mb0971b(DOD)-testversion.zip, that is available for download from the same section as above, 'Marine Bot test versions (call it an alpha release if you wish)', has four files. Besides the 2 libraries for both supported operating systems, there is also updated 'marine.cfg' with its backup. Reason for updating the configuration file is the new feature 'Class selection limits' that has been showcased in last news update. The list of changes, same as above, also comes as a simple text file that is always a part of source code package. This test version for DoD has two more additions and that are my own updates to Martee's waypoints for dod_charlie and dod_escape. Both are dated back to the development of MB0.97b for DoD1.3 and were necessary to test features that were unavailable in time when the original waypoints were created. In waypoints for map Charlie I did only minor fixes. One of which was proper use of the 'pushpoint/flag' waypoint on the map objectives. Waypoints for map Escape were changed more. This is kind of partial rework, because original waypoints have too many bugs preventing me to run successful test. Actually these updated dod_escape waypoints were used in the MB WIP Test of updated behaviour on goals requiring explosives incl. pushpoint+claymore video from September 2024. Also I tested the waypoints save optimization in Day of Defeat version of Marine Bot like 2 or 3 weeks back on these waypoints, because there were many blanks as a result of the rework. So ideal material for this kind of test ;). However both waypoints still have some bugs left. Bugs that I didn't need to fix to complete my testing. Same as in the test version for Firearms, these waypoints are in 'customwpts' folder to minimize possible conflicts with waypoints you have in your current 0.97b installation. To test these waypoints do the following. Assuming you have the original waypoints in 'defaultwpts' folder, load the map normally. Then open the console and type 'directory' command (no quotes), hit enter and then type 'wpt load' command (no quotes) and hit enter again. This way you let Marine Bot system know you want to use the other directory with waypoints, and the 'wpt load' command will load them. Don't worry about the 'directory' command then. If you restart the map or change to different map, the system will automatically return to default setting and will look for the waypoints in the 'defaultwpts' folder.
And the last point. I've added a download link to a zipped version of MB Waypointing manual to the 'FILES' -> 'Additional Marine Bot files'. It's just below the test versions. This zipped version of the HTML guide can be used offline so you won't be distracted by the ads this free web host inserts into Marine Bot pages. I also added two more style sheets to the zip. One is a backup copy of the default style in 'mbdefaultstyle.css' file. Then there's a "light theme" style in the 3rd style sheet file where I switched the manual to traditional white background and black text. To have it like that, simply rename that file to 'mbdefaultstyle.css' and open the manual in your favourite browser. Of course you can edit the style sheet in Notepad (or similar app) and create own style that won't tire your eyes while reading through the manual for long.
17 November 2025
Today is bank holiday here in Czechia so a good time to bring some news about Marine Bot. As I was reading INsane's article about MB on Sturmbot page a while ago, I've noticed his quite specific request on the class limits. Those who read it know what I mean. For those who didn't yet, look at it here as there's also a lot of useful information such as the manual changes to liblist.gam in a detail that you don't find here on MB homepage. Anyways back to the classes setup he mentions there. In the version of MB for Firearms you can prevent bots from using certain weapons quite easily, because there are the Custom classes, that allow user to select only the gear he/she likes for the bots to use. In Day of Defeat there is nothing like custom loadout though, you can only select predefined classes. Therefore also the version of MB for DoD1.3 doesn't allow Custom classes settings. The code was partly erased and partly left dormant. So over the last couple days I've been thinking and shaping the idea how to implement similar feature to what is described in that article. Look below, this is a new addition to MB for DoD1.3, that I've been working on over the weekend. Things went pretty well because I had almost the whole idea in my mind. So it was only about using the right tools that I already have in the code at right places to "build" this. Well okay the two arrays that hold the class limits are a new addition, but I already have similar code objects elsewhere in the source code, so again nothing brand new.
- Added 'class_selection_limit_allies' and 'class_selection_limit_axis' as a configuration variables (this allows you to limit bots in using only selected group of classes in DoD1.3 by defining a list of their numbers separated by spaces - e.g. "1 5 2 3" will allow allied bots to choose only between rifleman, sniper, staff sergeant and master sergeant classes, these selection limits are used whenever you don't specify the class argument for either the recruit or addmarine command, and will also be used by the system when it does autobalance teams, or adds bot to replace a leaving player on server, or if you use the fillserver command in game on your own computer)
The details about this feature come in form of pictures and source code snippets again. First is a series of pictures showing how do various settings work in the game. User error, one class only, multiple classes picked randomly, multiple classes favoring one of them a bit more, and finally using unavailable class. I should also add that the max number of classes you can add to the list is 10 numbers. You add more and you'll get the same error that you can see in the first picture. Next is a set of source code snippets revealing how do the things look like "under the hood". Console output both on Dedicated server as well as local game when you activate "developer 1" mode, the read function itself and finally a section of BotStartGame() function for US Army class selection menu where this feature truly changes what class will the bot be able to select.
As everything that is based on generating a random number, even this feature can sometimes result in pretty strange outcome. Sure it will prevent bots from entering the game with class you don't like. But it won't make things work exactly as INsane describes. I mean it won't maintain exact numbers of each class in the game. I've already tested this new class selection limits on Linux and found no issue. And that's it for today. By the way the plan to release the test versions before the end of November still holds. So far all seems good. I should make it.
8 November 2025
Okay here's sort of continuation of the events since last update. INsane contacted me last Sunday (2nd Nov) letting me know he updated his guide to setup a home Dedicated server for Day of Defeat 1.3 with a new chapter for Marine Bot. It's a honor to be presented on probably the most known fan site for Day of Defeat. Also I really appreciate the unbiased opinion on Marine Bot he added to the start of the section related to MB. Thank you INsane. Lack of waypoints especially for DoD maps is a true problem. Sadly as I mentioned in the release news update earlier this year, I'm unable to fix that myself. As you can see I still wasn't able to finish updating the waypoints package for old Firearms 2.5. Which means the real development of the bot kind of stalls now as I'm occupied by that. Anyways from the email communication with INsane I can say that he continues working on more stuff. Meanwhile you can visit either of his sites (dodbits.com & Sturmbot.org) and check out other goodies he has there.
When I'm already spilling the beans, I plan to get a test version of 0.97.1 out soon. For both Firearms as well as Day of Defeat 1.3. I'm hoping to manage that by the end of November, but as you know not everything always goes according to plans. If I run into some serious bug I'll have to delay it. Now this won't be typical test version you were used to when I worked on MB for DoD. I'll return to minimal and not fully tested versions (alpha versions if you will) from before. I mean that there will be basically just the libraries (the .dll and .so) in the zip, just like I did before for Firearms. In other words sort of a patch style release, where you will need to have the original major version (in this case the 0.97b) installed and you'll simply merge this test version with it. The plan is that I will add it to the section titled "Marine Bot test versions (call it an alpha release if you wish)" in the 'FILES'. To keep it separated from the full beta releases. There already is old test version like that so you can head over to 'FILES' to get a idea of what you can await soon.
26 October 2025
Apologize for no news updates last weekend, but that week was so hectic in real life that I haven't had a free moment to update this site. So what are the news from Marine Bot kitchen you ask. Well besides continuing in updating the FA 2.5 waypoints I also found a bug in that statement I showed last time. It didn't work for the shortest possible path, 2 waypoints long, when the bot entered it at its end. That statement failed, bot wasn't able to set the opposite direction movement and so he wasn't able to pass through such path. Now this statement got updated to a bit more complex one, if (wpt_position <= (int)roundf((float)nodes_count / 2.0f)), which together with another small change, that provides more accurate data, fixed that problem and the bot is able to move correctly again.
Next I got email from INsane from DoD community (dodbits.com & Sturmbot.org) asking about MB on a Dedicated server. My reply returned as undelivered. I used another email account on different provider to sent it again. But if you still didn't get my reply, contact me again, please. This reminded me that I might update the support/FAQ to make these details easier to find. So this was added to my already too long to-do list too ;).
And that gets me to the last point. After the email from INsane I went to check Steam server browser and look for servers running Marine Bot. And I noticed that there's still a problem with bot names. This time it doesn't seem to be the issue with bot not being able to manage the names from dog-tags file correctly like last time. Since I patched that problem I wasn't able to replicate a situation like that again. So it seems the patch works well. Now there's a problem with fact that the Half-Life engine adds a number in front of the name whenever two or more clients use the same name. So you'll see a bot with a name such as "(1)[MB]James McDougall" on the server. Honestly I don't know what exactly happens on the server that there appear two bots with the same name. Marine Bot already has a system to make him choose unique name. Always checking the names used by other bots before he picks a new name. Also as I said I wasn't able to get into such situation on my test server in any of previous tries. I've spent a lot of hours running tests on that server when I finished the patch for the messed management of bot names I mentioned earlier and everything was fine. So what really happens on those public servers that the bots end up with numbered names is a mystery to me. Anyways I think I already have a solution for that. Check a video @marinebotofficial titled MB WIP Getting rid of numbered bot names that gives the details.
5 October 2025
In past two weeks I've continued in updating the waypoints in the Firearms 2.5 package. Finished reworking the 'ps_desertcrisis' ones so I'm about halfway through this. Also I noticed two more issues related to the parachuting ability. So these two points are now added to the 'Improved ability to parachute' from previous news update.
- next if there is no wait time assigned on parachute waypoint the bot will now check height positions of that waypoint and the next one and based on the difference will set either short of long parachute use time - so a parachute waypoint being only slightly above the landing one means short parachute time in order to prevent not opening the parachute because of not enough time spent in the midair,
- and last the bot will now always treat any path with parachute waypoint as basically a one-way so he'll always head toward its end point - only the logic at parachute waypoint can make him return to path start point - it means you no longer have to use zero priority on the last waypoint on such path
More details about these two are in form of source code snippets again. First the behaviour that is assigned when bot reaches the parachute waypoint (when the bot is equipped with parachute, and without it). And next code snippet shows what makes the bot treat any path with a parachute waypoint as a one-way path, despite the fact that these paths should be set as two-way to allow bots return back for the parachute. So this particular part of the source code will make the bot always move towards the end of such path. By the way the only thing that got copied over to source code for DoD1.3 version of MB is this line if (wpt_position <= int(nodes_count / 2)) which is a minor change that plays a role basically only when the bot gets stuck (or if you connect paths without using the cross waypoint, but this isn't used in modern days waypoints much if at all). In current 0.97b version the midpoint of a path (i.e. the waypoint) is considered as second half of it so then the bot will start moving towards path start. Once this change goes public the bot that gets stuck on waypoint that is right in middle of a path will start moving towards path end after he resets his navigation. Nothing serious. It just makes more sense this way. As it respects the way how the waypoints creator built the waypoints a bit more than previous way. I mean on 5 waypoints path the first 3 waypoints from the true start point of such path will make the bot always head towards path end. While in current 0.97b it's just waypoints number 1 and 2. The waypoints number 3, 4 and 5 on such path do make the bot head towards path start.
22 September 2025
While I continued updating the waypoints for old Firearms 2.5 I found a major bug in MB 0.97b. The option to disable the wait time by using zero priority doesn't work at all. I do remember I was working on it and I know I've messed the code so much that I had to return to a backup, because I was in hurry and didn't want to leave the source code in such mess. I'm not sure but I think this was right before the Ice Hockey World Championship last year. The one held here in Czechia and one we won. That was a big moment and I guess I must have totally forgotten about the source code reversion due to it. Or it could have been later on, in summer, when I was in the process of quitting my previous job. Which was also pretty hectic period of time. Simply put all the time I thought this feature is present in MB source code. Oh well embarrasing mistake. But this proves I'm just common guy ... actually it may be a sign I'm getting really old and senile ... so maybe I'm not common guy, but old fart :). Anyways here's a list of recent changes done to Marine Bot.
- FIXED zero priority setting not disabling the wait time on the waypoint (due to fatal bug in original implementation some time in spring or summer 2024 and a need to revert the source code to state prior this feature, this got completely lost from the code, now this major mistake was finally noticed and the feature was reimplemented so you can use the trigger tag on a typical camper/sniper waypoint setup to make the bots wait or not wait at such waypoint based on game events that you link to this waypoint)
- FIXED occasional inability to detect open door (in not so common cases when the sliding door entity wasn't correctly aligned to particular axis in the 3D space - the door moved on both X as well as Y axis so for example not directly to left but also slightly to back - then the bot kept standing there until the set time limit to reach his next waypoint ran out which made the bot reset the navigation and start moving again)
- FIXED bot trying to go prone when equipped with parachute (there's no message or anything, FA simply won't allow it, this partly broke the stance management, also made the bot go prone immediately at the moment he finally dropped the parachute no matter at which waypoint he was; actually it's FA that does it to all clients even human players who would try it)
- Improved ability to parachute (bot is now able to parachute even when he's crouched, next his ability to detect being in midair was reworked so now the bot is using the traceline to correctly determine whether he's really in midair or just stepping down from some low object, he's also able to detect cases when the parachute failed to open and will try to use it again, and lastly the actions to throw the parachute away when he's back on ground have been slightly tweaked to make him handle this action a bit better)
The first and the last items on the list are shown in new video @marinebotofficial titled MB WIP Fixed zero priority for wait time and improved parachuting. And here's a series of source code snippets giving more details without me having to describe it here all over again. Zero priority for wait time (1, 2). And parachuting (1, 2, 3). Finally here's the error-log related to the problem with throwing the parachute away when the bot is safely back on ground. It's mentioned in the video too. But this particular log doesn't come from the recording. It's from another test and I've erased all other records that aren't related to parachuting from it. However this log shows the issue nicely as the bot had to repeat the action three times to get it registered by the engine. When that finally happened the engine correctly sent the message which hides the parachute icon on the HUD. That means you are no longer equipped with the parachute and your movement returns to normal.
7 September 2025
Past couple days I've been quite busy in real life so just briefly. Last time I said I plan to improve the optimization I showcased even more. That's done now. Look at this screenshot to see how will the waypoints save optimization look like in the game. Enabled "Developer mode" again reveals a bit more like in case of some other commands. These 3 source code snippets (1, 2, 3) explain the details, i.e. what really happened on that screenshot. Next is a list of changes and fixes done since last news update.
- FIXED bug in assigning the move speed when having to drop from the ledge or low wall or to lower level in general (when the bot reached the edge he slowed down so much that the unstuck code incorrectly treated that as being stuck and usually made the bot jump which often led to getting hurt)
- FIXED navigation reset because of not reaching next waypoint in time when having a broken leg (due to slow movement the bot sometimes wasn't able to reach his next waypoint in standard 5 seconds and incorrectly reset the navigation, now the bot will gain more time for that much like if he's moving crouched or in prone)
- FIXED 'pathwpt printall' command printing just the newly added paths in certain cases (if you used this command prior adding at least two new paths and then after the addition again then only the newly added paths were printed instead of the full list, also added intro message for the list so that this console output is clearly separated which improves readability)
- Changed console output for 'pathwpt checkproblems' command (mostly formating not to look that weird, but the bug report about a roadblock waypoint not being in a pair on a path got modified so that it's reduced only to a warning in cases when this waypoint is the last one on a one-way path to reflect the updates to navigation code done for 0.97b release, like all warnings this helps waypoints creator see whether such setup was really meant to be there)
If I had more time I'd have recorded a short clip showing the fixes, but like I said already, too busy lately. So I can just give this last source code snippet giving more details about the last item on list above.
24 August 2025
While working on updating the waypoints for Firearms 2.5 I realized that the system could use some more tweaks. Again it's the "Quality of Life" and also system resources related stuff. I started on the next map which is ps_coldwar and the waypoints in this package for Firearms 2.5 basically come from the most up-to-date version of the map that is in Firearms 3.0 and that has more routes. When these waypoints were created the first time, the FA 3.0 ones were just loaded on this old version of the map and then only slightly modified to match the map layout. I mean some paths and some waypoints on the routes that aren't available in the FA 2.5 version of the map were erased. And some were kept because they are in unreachable parts of the map. So also out of reach for you to get to them to erase them. Things work fine because the bots cannot target such waypoints and paths either. But there are many empty (unused) slots in the array of waypoints and the same is true for the paths too. So everytime any bot needs to search for a new waypoint (e.g. when he reaches the end of a path) the system wastes with the resources by having to go through all waypoints where part of it are unused (i.e. deleted) waypoints. Of course waypointing system is done so that it always tries to reuse deleted waypoints when you are adding a new waypoint to the map, but on large maps and with many reworks and changes you do, this still means a lot of blanks in the list of all waypoints. To fill all the blanks you would have to go through the whole map only to erase some waypoints and add them anew. But this would still leave the empty slots at the end of the list. So you would spend a lot of time on a tiring task and in the end you wouldn't help anything. All of that got me to do following changes.
- Added optimization to waypoints and paths save functions (both now trim the list of used waypoints/paths to last valid - i.e. not deleted - record, this means there won't be saved and next time loaded and processed any deleted waypoints/paths that may have been at the end of the list, e.g. you've created total of 120 paths but then you've erased last 5 of them for some reason so when you save the waypoints there will be stored only 115 existing paths; this again helps to keep low system resources to run MB)
- Added client command 'wpt changenumber' that allows you to set a new index for any waypoint on the map (the alias is 'changeindex' and the two arguments this command takes are the new index and the index of a waypoint for the change where the second argument can be omitted if you are standing close to any waypoint, this command basically swaps the indexes of any two waypoints including the deleted ones which allows you to sort the list of all waypoints at your will - e.g. move all cross waypoints to the beginning of the list)
- Added client command 'pathwpt changenumber' that allows you to set a new index for any path on the map (the alias is 'changeindex' and the two arguments this command takes are the new index and the index of a path for the change where the second argument can be omitted if you are standing close to any waypoint where is at least one path, this command swaps the indexes of any two paths including the deleted ones which allows you to sort the list of all paths at your will but typically to fill the blanks in the list)

The picture above shows how do these changes work. Actually just the waypoints, but the paths version is the same. The console output on the left is a showcase of the 'wpt changenumber' usage. As you can see you can assign a new number (index) to any waypoint. There are no changes to the waypoint itself. It keeps all its properties. It's just the index number that gets changed which allows you to fill all the blanks in the list easily. You don't have to move between the waypoints at all if you use both arguments. Also the two numbers in the command can be swapped because all this command does is that it swaps the two waypoints in the array (i.e. on the list) of all used waypoints. You know, if you say "number 1 is the new index for waypoint number 2" then that is the same to "number 2 is the new index for waypoint number 1". These two numbers get swapped either way. Then there are the other 3 numbered console outputs from waypoints for ps_coldwar from Firearms 2.5. Originally the waypoints had 601 waypoints including all deleted ones of course. Me doing the rework on them where I also used the 'wpt changenumber' command in the end to fill remaining blanks got the number of used waypoints down to 367. It's the trim function within the save function that cuts off all deleted waypoints after the last truly used waypoint on the list. If you look closely you can see I purposely left one deleted waypoint near the end of the list to test that things really work correctly. Now the system will have to go through only 367 waypoints instead of 601 whenever any bot needs to find a new waypoint, typically upon reaching a junction. So Marine Bot will be slightly less demanding on system resources. Also the waypoints/paths save functions are a bit more effective because we are no longer storing unused (deleted) waypoints/paths so basically not storing empty records/space. Well when the waypoints/paths get sorted properly before saving of course. Which is the next step I want to implement. I mean I'm going to write a function that will do the sorting for you and will be called before the trimming in the save functions. So that you wouldn't have to use the wpt/pathwpt changenumber commands to fill the blanks. But both commands will be available in case you want to sort things your own way.
10 August 2025
The week at the end of July and start of August I had a week off at work, a.k.a. summer vacation, but it was raining basically the whole time so I had quite a lot of free time for MB development. The first two waypoints sets, ctisdps_mexico and obj_omaha, from the FA 2.5 package are mostly reworked. So far both seem done, but I still need to do proper testing and maybe some additional small changes here and there. Also created the detail textures for both these maps while I was at it. Again not completely finished. I need to actually build the zips, because I have only the text files now and I do use some custom textures on both maps so I have to add them to the final package else things wouldn't fully work for people not having these textures yet.
I actually added another new installation of FA 3.0 to my Steam specifically for these old FA 2.5 maps. I simply erased all maps from FA 3.0 and then copied only the old ones from FA 2.5, of course including the models, sound, whatever they require. Then did the same with MB waypoints too. It's more convenient to work on it this way. And unlike FA 2.5, FA 3.0 allows sprinting so you can generally work faster ;). When I was done and started working on it I began noticing issues which then led to debugging, figuring out the problems and finally fixing stuff in the source code. Not all was a bug in Marine Bot as you can see right at the start of this list of changes.
- FIXED instant crash to desktop in FA versions 2.9 & 3.0 on map ctisdps_mexico due to the explosion on light bulbs (originally in FA 2.5 the large light bulbs on this map exploded if someone shot at them but in newest versions this makes the game crash to desktop, now there's a patch that gets automatically activated in any version above 2.8 and that removes the explosion, the bulbs can still be destroyed to make the area dark just the explosion isn't there anymore)
- FIXED bot being able to waste claymore mine on maps where is this explosive required for the map goal (in MB0.96b there was introduced a new behaviour where the bot reads game entities during map load and checks whether the FA specific Search and Destroy entity requires the claymore mine so that bot doesn't foolishly use the mine on regular waypoints all around the map but this feature was locked only for maps with prefixes sd_ and sdtc_, now it's done during loading on all maps so this behaviour will be correctly activated no matter the map name e.g. even on ctisdps_mexico)
- Added two client commands 'wpt timeincrease' and 'wpt timedecrease' allowing you to fine tune the waypoint wait time (they have aliases 'timeinc' and 'timedec' and the argument they accept is the team ID for which you want to do the tuning, no argument given means the time tuning will be done for both teams, the steps at which is the time changed are either by 5 or 10 seconds that depends on current time value where a time below 60 seconds will be changed by 5 and a time equal or over 60 seconds will be changed by 10)
- FIXED bot being able to enter the same path again when it starts and ends on the same junction (rare occurrence because usually there aren't many paths that start and end around the same cross waypoint, still it's a bug that got to source code in version 0.96b as a result of code optimization to make MB be less demanding on CPU usage by not calling path navigation function upon reaching a cross waypoint, this however led to clearing crucial variable and allowed bot to pick the same path again in such case)
- FIXED autowaypointing not signing the waypoints at times (autowaypointing should always set the "built-in auto waypointing" string to the author's signature and erase the 'modified by' signature but this didn't work if you started on fresh map with no previous waypoints, now the system will correctly remember that you've activated autowaypointing so the signatures will be set right, this memory lasts till the moment you change or restart the map)
- FIXED navigation in cramped space (if there was a sequence of two waypoints with a range below 20 units and the second one was either a crouch or a prone one then the bot didn't slow down and sometimes missed that waypoint and/or got stuck on nearby obstacle due to that, now the bot will slow down properly to achieve required precision in navigation)
- Improved unstuck behaviour (when bot gets stuck and has to reset navigation he searches for any nearby waypoint besides those on the list of 5 lastly visited waypoints but if there are multiple such waypoints that are actually also unreachable - close and on same level and fully visible but behind impassable object like a line of pillars for example - the bot may enter a loop where he keep switching between those other waypoints in a try to reach them and can stay stuck forever, now these other waypoints are correctly processed through the previously visited ones so the bot shouldn't get into the loop anymore, this should also free some of the truly lastly visited waypoints and allow the bot to return back the same way that he got to his current location)
Obviously the first two points were not copied over to MB version for DoD 1.3, the rest was. Really I'm not sure what's missing in FA 2.9 & 3.0 that causes it, because according to .res file for this map everything should be alright. It could be something in FA source code for these two versions that has been blocked and causes this now. Much like disabling the old HUD menu in previous FA versions. Where MB had to stop calling this function too otherwise it'd make the game keep crashing to desktop. Anyways once I went through the debugging text files and figured out what's behind the crashes on map ctisdps_mexico the patch itself was quite simple. As you've seen in older updates on this page, MB already does intercept the calls to HL engine when the game creates the entities on the map. So I only had to go through trial and error to find the right key property of the func_breakable for the light bulbs and pass different value to the engine to prevent it to create the fireball explosion later on in the game. It's the same thing as how MB allows modifying the properties of the Capture areas in Day of Defeat 1.3 or the positions for the spawn points in both FA as well as DoD. You just have to do it before the entities are fully created which means during the map load where the game engine builds the world. The rest of the changes are either a "quality of life" stuff (the new commands and the fix for autowaypointing) or nasty bugs. If you wonder why signing the waypoints as "created by autowaypointing" makes the life of MB user easier then the reason is simple. The user will know what he/she can expect from the bots right at the start of the map by reading the message at the top of the screen, instead of trying to figure out what bot settings prevent the bots from playing the map better. You know autowaypointing means just a basic coverage and so basic gameplay. As for other bugs. As you can see they are result of quite specific events. These are the worst. Common bugs tend to be easy to discover, but these come from the fact that the code is pretty complex. So changing one thing somewhere can sometimes lead to creating a bug elsewhere due to extreme branching. I mean that the change you've made typically works for most of the times, but then there are these less common events that the bots encounter. And then it's a matter of luck when you finally spot a bot do something that happens rarely, looks weird and that gets you to discovering the source of that bug. Sadly the patch for such bug can create a new bug elsewhere again. This is non stopping process of intensive testing trying to reveal anything suspicious to debug it and patch it that gets you to another round of hours of testing. Oh what a fun :). Nah seriously, I do like the work on MB otherwise I wouldn't have been doing it. Anyways I'll continue with the waypoints. And if I happen to add more changes or fixes to MB code I might eventually release the 0.97.1 version. Please keep your hopes down, the things are back to a slow progress again which is the new standard now. Last year was a rare turn of events. I don't think I'll have that much free time ever again.
27 July 2025
The Waypointing manual (available via the left hand menu and 'LINKS') should be finally finished. Went through the remaining two chapters, "Common errors or bugs (i.e. things you should NOT do)" and "Autowaypointing". Where I made some clarification and added a few words or sentences here and there to make it (hopefully) easier to understand. Plus I've recorded a new clip to show you how to use the Autowaypointing in Marine Bot to create a basic set of waypoints for any 3rd party map or any map in general that doesn't have any waypoints yet, or where available waypoints are too bad or too old that they are basically unusable.
Next I plan to look at the waypoints package for Firearms 2.5 because these waypoints are already pretty dated. Sure they got a refresh in summer 2020, but that was more or less a 'wpt repair' kind of update where I used the tools in Marine Bot 0.94b which means 3 versions back ... that's like a "Stone age" :). Now I would like to do more serious changes to bring these waypoints to "modern" days.
13 July 2025
The Waypointing manual has been updated by the description of remaining three options for the waypoints repair feature, 'disabledwaittime', 'swapteams' and 'masterrepair'. Still not done with this guide. Need to go through the rest of the text. Also I plan to record a short video to improve the Autowaypointing chapter. You know, Marine Bot doesn't have that many maps waypointed so this may be sort of "Plan B" for some gamers that want to have some fun on various custom maps without spending too much time on waypointing them properly. Current description of the Autowaypointing is quite poor, because I'm not a big fan of it. Although, as I said, I see the points why people want to have and use it.
Next there's a new video @marinebotofficial titled Incompatible custom classes in old FA versions that explains one of the issues that you may encounter if you use Marine Bot in these older versions of the Firearms mod. It's a reaction to comments to another MB video. Anyways I'm quite disappointed of the screen capture quality in Windows Clipchamp app I used for this video. The video just looks blurry. I've used this app even before to capture the footage for some of previous videos and the quality seemed way better. I'm not sure whether it's the different resolution and screen scale setting or something else. I mean that previously I recorded at 1080p and 125% scale. Now it was 1440p and 100% scale. I guess I'll have to find a free moment to install, setup and test OBS Studio that seemed to do quite well when I did those recordings on Linux. But seeing it's Tour de France now, which is second big sport event I'm watching every year, this will have to be postponed.
28 June 2025
Uploaded new additions to the Waypointing manual. It's the description to 'sniperspot', 'range' and 'range_and_position' waypoints repair functions. The link to the manual is available through the left hand menu and 'LINKS'.
7 June 2025
Since I got new job at the end of last year my free time is very limited. I don't miss old job at all, but I miss the extra free days I had there between the shifts due to changing from day to night and vice versa. One could use that free time to enjoy his hobby. That's gone now. You can see it. There aren't many updates lately. It's already couple months and I'm still working on the Waypointing manual. Today I'm uploading the description of the first 3 repair functions in a new chapter titled 'Waypoints repairing'. Again it took me longer than I originally planned, but I'm currently distracted by the process of getting a new notebook. I already bought it. Now I'm setting it up, installing all the programs I'm used to work with, moving data etc. Processing of the screenshots for the new chapter in Waypointing manual has already been done on this new laptop. My previous laptop was Asus VivoBook 15 X542UQ-DM234T and it started losing its breath despite the fact I upgraded it with a SATA M.2 SSD later on. Still 6+ years service is a nice achievement.
Once Czechia got eliminated in Quarterfinals on 2025 IIHF World Championship I started my research on the replacement for that notebook. Due to my requirements such as AMD CPU (Intel is lagging now), as close to full size keyboard as possible, the ports for external monitor and power supply socket not being on the right side of the laptop and having a LAN port I ended up with a gaming notebook. Got exactly this HP OMEN 17-db0021nt from this local e-shop that specialize on official refurbished/renewed laptops. Actually previous Asus was bought there too. Both were listed as showroom demonstration units in perfect state and in both cases this is true. So Marine Bot is going to be developed on this beast from now on. However I need to deal with couple things first such as getting either USB-C hub with HDMI or just USB-C to DP cable to connect my QHD monitor to it, because the HDMI port on the back side of this laptop is hard wired to the discrete RTX 4070 so this GPU is always turned on now. I'd prefer to use the integrated Radeon 780M within the Ryzen CPU for common work. You know, less power needed, less heat produced and so cooling system wouldn't have to start the fans every "5 minutes" to cool the laptop down then. The fans are pretty silent even in full load. I already checked that, because the software allows switching to manual mode and turning them to full speeds whenever you want. You can hear it, but definitely not annoying (high pitch) noise. Besides when the system needs to cool the notebook down during standard work it doesn't spin the fans at full speeds. So often you won't even notice it. But automatic fan less mode when the temps are low is even better ;). Anyways I'll continue updating the Waypointing manual to finally finish that guide ... well at least till the moment I add a new or improve/rework feature in MB itself. Never ending cycle.
8 May 2025
I was hoping to finish the Waypointing manual by now, but due to being too busy in real life I didn't make it. All I managed was to take a few first screenshots for a new chapter describing the waypoints repair feature. And seeing 2025 Men's Ice Hockey World Championships starts tomorrow I won't get to it in coming two weeks either. But I do have something for you. While not having enough time for updating the guide I finally managed to finish the detail textures package for map ps_bridge that I announced in currently last available WIP video titled MB WIP Reaching a breakable object when using grenade launcher. So people that are intrested in mod Firearms can get it through the left hand menu and 'FILES', then scroll down that page to 'Miscellaneous files' where is the link to it along the other packages with detail textures I created in the past. If you don't know what the Detail Textures is then you can get more details about it in 'LINKS' and following the 'The Detail Textures in Firearms 3.0' link.
20 April 2025
New updates to the Waypointing manual are available now. This update to the guide starts with some clarification in "Sniper spot inside spawn zone" chapter. Then the chapter titled "One of the ways how to waypoint a map" got all new pictures where the weapon doesn't block the view anymore. Next is a brand new chapter named "Checking the waypoints for any kind of error" that covers the two check for problems client commands including tips how to solve found issues. The last chapter that got updated is the "Dealing with the errors from 'mb_error-log.txt' after waypoints test". I'm almost done with the updates to this guide. Next time may be the final one. But we'll see. Wishing you all happy Easter.
6 April 2025
Another batch of updates to Waypointing manual is ready and available now. Extended chapter named "Multiple options how to set up the shoot waypoint" by one more paragraph that explains the details about subsequent search for other (parts of) breakable object, i.e. the way how Marine Bot can deal with stuff like the Freya radar on dod_glider. I wasn't quite satisfied with it last time so I rather dropped this particular paragraph from previous update at the last moment to polish it and I'm adding it now. I believe that now this paragraph explains the details better and things are clear and make sense. Next I added a new chapter titled "Claymore waypoint makes the bot use the explosives charge" that covers the usage of the claymore waypoint including details about the 'ExplosivesGoal' path tag that is related to this waypoint. And the last change is the addition of another new chapter named "Utilizing the use waypoint" that explains multiple options you have with this waypoint type. Still not finished with the manual so stay tuned.
23 March 2025
Updated Waypointing manual has been uploaded. Last time I finished with the "Pushpoint waypoint in Day of Defeat" chapter. So right behind it I added a new chapter titled "The power of a roadblock waypoint". It explains all details about this waypoint type including the additions done to it in last year. Then I updated the "Multiple options how to set up the shoot waypoint" chapter. Which again includes all the updates done to this waypoint type during last year. More updates coming soon. Well "soon" ... you know as my free time allows. It's actually quite funny that to describe the rules about some of these waypoints in the manual takes more time than I needed to really create these features through the source code. Sure the time is relative, but it feels like it :). I just hope that this time isn't totally wasted. I mean that these updates to Waypointing manual are going to help you create good waypoints for the bots.
9 March 2025
Long time no update. Well I've been struggling with cold or something like that which effectively disabled me for over two weeks. Also there's quite a lot of changes to Waypointing manual this time so it took a while to finish them all. You know just going through existing text and rephrase this or that sentence so that the waypoints related stuff make sense even to others not just me :) takes some time. Started where I left last time, i.e. past the Triggers. Moved "The scope of a cross waypoint has limits" chapter right there, because this is quite important chapter. Then I added a new chapter titled "Useless junction is a cross waypoint with no real purpose" which is a formal follow up to it. "Don't delete and recreate, but move the waypoints" has been moved right behind it. Then there are finally the particular waypoint types. So slightly updated the ammobox one. Followed by the addition of a new chapter explaining the ammobox in DoD. Next I added a new chapter for the ladders at angle. Then extended the chapter about the parachute waypoint to explain the newly available options. And the final addition for this round of updating the manual is the chapter explaining the usage of pushpoint in Day of Defeat. Hopefully further updates won't take as long as this one.
11 February 2025
The updates to Waypointing manual have been uploaded. Added forgotten priority 1 setting for the ladder waypoint type to chapter "Waypoint type (or tag or flag)". Then I continued where I left last time. So the "Path type" chapter got updated. And a new chapter titled "Reversing the path" has been added. Last thing I managed to update during the weekend is "The Triggers" chapter. Where I added DoD specific stuff and mainly I added also the explanation of the second possible use of the triggers which is combining them with specific waypoint type to rule such waypoint then. Further updates next time.
2 February 2025
Marine Bot 0.97b for Day of Defeat 1.3 is released. Almost exactly a year ago there was the first public test version of MB for DoD now there is a full beta version. The difference is that Marine Bot should now be able to deal with most game features Day of Defeat 1.3 offers. So the bot should provide decent gaming experience. Well that also depends on good waypoints, but this is something that's not in my strength ... the time is limited. Besides I'm not a gamer and I don't know DoD maps much. I can keep upgrading the waypointing tools that are built-in the bot to ease the work. Also I've provided a guide and several tutorial videos that explain the waypointing system used in MB. But that's it. I mean I'm sorry, but the waypoints are solely on you the DoD community. Either way around to get this new version of MB head over to 'FILES' and then scroll down to section named 'Marine Bot ports for different Half-Life 1 mods' where the latest version for DoD is right at the top. Here's the changelog.
- Bots can now form Fireteams on their own (a bot with class Master Sergeant, Sergeant Major and Unteroffizier will now try to call the "I need backup" soon after he spawns or after combat, it depends on if he sees any teammates within 300 units radius; the fireteams disaband whenever the bots enter combat or the team leader gets out of sight - i.e. same as if they follow human player)
- Added "melee only" mode (which can be activated by typing the 'meleeonly' or 'melee_only' command in your local game as well as on Dedicated Server, the bots will switch to using only the knife or spade and all firearms and grenades will be unavailable to them)
- Added new waypoint repair command 'disabled_wait_time' with alias 'disabledwaittime' (allows you to easily fix any waypoint where is a set wait time disabled by zero priority, use 'wpt repair help' for the details, this repair function is also part of the general 'masterrepair' routine now)
- Added client command 'pathwpt reverse' (allows you to change the order of waypoints on the path, i.e. if the order is 1->2->3 then after using this command it will be 3->2->1; this is especially useful to change the direction of one-way paths easily; it doesn't change the path tags so if the path is one-way it will remain one-way even after using this command, it works with either given path index via the argument or with path that is currently worked on or with the first found path on nearby waypoint)
- Added option to use priority 1 & 2 settings on the use waypoint to make the bot maintain the door connected to this button either open or closed (this is specifically designed to door operated by the button that is located somewhere on the map - usually near door, generally priority 1 means the bot will keep the door open and priority 2 means he will keep it closed but it depends on the map setting - i.e. the priorities may need to be swapped sometimes - when you set either of these two priorities the bot reaching this waypoint will always check the status of the door first and if it matches desired state - i.e. open or closed - he won't activate the button and will leave and if it doesn't match he will activate the button, if you add wait time to this waypoint then the bot will stay by the button till the door stop moving to check the door is really in desired state, default behaviour with priority 5 is unchanged and bot will always activate the button without checking the door status)
- Added new bug report for 'wpt checkproblems' command (bug report about having wait time and zero priority set for the same team on a waypoint other than a trigger one)
- Added new bug report for 'pathwpt checkproblems' command (bug report about path starting on a zero priority waypoint)
- Added new option 'bugsonly' for both waypoint as well as path check for problems commands (allows you to filter out the warnings and see only findings marked as a bug)
- Changed client command 'pathwpt remove' (now it takes two arguments, the order is waypoint index and path index, this allows you to remove a waypoint from path remotely which is useful in cramped location with multiple waypoints and paths; in order to maintain previously available option to remove the nearby waypoint from particular path you will have to use a keyword "nearby" instead of the waypoint index - e.g. 'pathwpt remove nearby 3' to remove the waypoint you are standing by from path no. 3; other previously available options are unchanged)
- Changed client command 'pathwpt start' (now it allows additional argument which is a waypoint index where you want to start the path, this is useful when you want to or need to work remotely, e.g. in cramped area with multiple waypoints and paths)
- Changed client command 'pathwpt add' (now it allows additional argument which is an index of waypoint you want to add to the path, this is useful when you want to or need to work remotely)
- Improved bot ability to deal with breakable object (occasionally he could try to use explosives to destroy common breakable object like a window for example, next he couldn't handle situation when he was left with knife/spade and couldn't reach the object, especially when he got stuck on such object, now he'll start stepping slowly towards it in order to get in a reach and be able to destroy it)
- Removed usage of "enemy ahead" voice command (the hand signaling randomly pointed to wrong direction, even when the command was called right at the moment when bot fired the gun, therefore this command isn't used anymore and been replaced by team text messages "Enemy spotted!" and "Get down!")
- Updated behaviour upon reaching and passing through door if you use the door or usedoor waypoint (usually you don't need this waypoint type at all, but if bot gets stuck on door often then add it, because by using this waypoint the bot can now correctly detect the state of the door - i.e. whether it is open or closed or anything in between - this means that bot won't try to touch or use the door again if it is already moving but will correctly wait and will continue moving forward once the door is fully open, which reduces the amount of times when he gets stuck there)
- FIXED inability to join the game when bot gets the "uneven teams" or the "class limit" messages (first there was a problem with inconsistency of the TextMsg the engine sends in this case where this message has variable amount of values/lines so decoding it correctly in DoD is even worse than it was in mod Firearms, and second there were bugs and missing code that prevented bots from joining the game in both cases, now the bot is able to automatically switch the team or pick different class in order to join the game successfully)
- FIXED bot using the "yes sir" or "negative" to a command given to him (the delay of his reply didn't work correctly due to a bug in assigning the time to speak, now there is always a short pause before his reply)
Now when Marine Bot for both the Firearms as well as for Day of Defeat 1.3 is available in the same version 0.97b I started updating the Waypointing manual. I've already uploaded the first updates made to this guide. The "Waypoint type (or tag or flag)" chapter got updated with the specific priority settings that is available for some of the types. And the "Cross waypoint range" chapter got a new sketch explaining a situation when you are allowed to have two waypoints from the same path connected to one particular 'cross' waypoint. Plus some smaller clarifications here and there. However I didn't get beyond the "Cross waypoint range" chapter. Of course I'll continue further, but as you know the free time is limited. Have fun playing Day of Defeat 1.3 with this new version of Marine Bot.
25 January 2025
Marine Bot 0.97b for mod Firearms is released. All related zip packages are available in 'FILES'. Same as the last release for Firearms even this one has a lot of various additions, improvements and fixes. Here's a long list of changes with all the details.
- Bots can now form Fireteams on their own (a bot with Firearms specific leadership skill will now try to call the "cover me" soon after he spawns or after combat, it depends on if he sees any teammates within 300 units radius, also if there is going to be a parachuting in which case he postpones the call of this command until he's safely on ground; the fireteams disaband whenever the bots enter combat or the team leader gets out of sight - i.e. same as if they follow human player)
- Added "melee only" mode (which can be activated by typing the 'meleeonly' or 'melee_only' command in your local game as well as on Dedicated Server, the bots will switch to using only the knife and all firearms and grenades will be unavailable to them)
- Added reaction to Voice & Radio commands ("Hold This Position!" i.e. 'voice hold' - will make surrounding bots including those that follow you stop and wait from 5 to 90 seconds based on their behaviour and their weapon, attackers will wait only for a short moment while defenders will wait longer at that position, "Let's Go!" i.e. 'radio go' - will make surrounding bots break the waiting, including the standard waiting at a waypoint)
- Added new welcome message for older Firearms versions informing the user about the custom classes and the credit limits on gear (in order to support multiple versions of Firearms, Marine Bot doesn't check the classes in either 'marine.cfg' or any map specific configuration file whether they are within the credit limits on gear for given Firearms version, this new message will show only in versions below 2.9)
- Added 'hudtext_line_length' as a configuration variable (allows you to specify the maximal length for a line of HUD text that MB messaging system will try to maintain by dropping unimportant parts of info from the message, full message should be available in the console, limiting the HUD text may be useful if the game runs in low screen resolution where the HUD text may go beyond the edge of the screen and become unreadable, this shouldn't happen in mod Firearms due to a small size of the HUD text in general, but it can happen in Day of Defeat where the HUD text is much bigger, by default this is set to 80 characters which is a limiting value in mod Firearms)
- Added 'change_start_positions' as a Dedicated and Listen Server commands (by default it's turned on, allows you to activate or deactivate the use of the alternative start positions defined in the .cfg files inside 'mapcfgs' folder, this is sort of a static switch, which means it stays set the way you choose for the whole time the server is running or till you change it again, it doesn't get reset on map change)
- Added client command 'check_bots' with alias 'checkbots' (this command allows you to get basic behaviour data about the bot, especially useful for waypoints testing so that you know what will the bot do, the argument can be 'all' or 'used' which work the same, in this case, and both will print a list of all bots in the game with their data, then you can use unique or partial part of the name to print the data for that particular bot, or number which again points to one particular bot - e.g. 1 will print data for the first bot added to the game, finally if you don't use any argument then it will print data for the first bot added to game too)
- Added client command 'check_shoot' with alias 'checkshoot' (allows you to display connections between the shoot waypoint and all available breakable objects including Firearms specific Search & Destroy objects within its reach, if the object is destroyed or there is no breakable object in the direction of the aim waypoint then the connection is displayed in pink otherwise it's green, in order to correctly simulate what the bot is able to see from that shoot waypoint this connection doesn't start in waypoint origin like the other connections but slightly higher - i.e. where the bot has eyes; in case you have used the aim waypoint then the length of the beam always shows the max distance to the object to be found - i.e. often you may see the beam going through the object and continue beyond it, in the case without the aim waypoint the beam will always end at the position of the breakable object - i.e. often inside it - so if you can't see the connection at all then the shoot waypoint is either too far or something else blocks the visibility due to high angle towards it which means the bot won't see the object either)
- Added new waypoint repair command 'disabled_wait_time' with alias 'disabledwaittime' (allows you to easily fix any waypoint where is a set wait time disabled by zero priority, use 'wpt repair help' for the details, this repair function is also part of the general 'masterrepair' routine now)
- Added new waypoint repair command 'swapteams' (swaps all team based waypoint data - priority setting, wait times, team based path tags - which allows an easy way to use existing waypoints on various modified maps where the teams positions were exchanged)
- Added two client commands 'wpt rangeincrease' and 'wpt rangedecrease' allowing you to fine tune the waypoint range (they have aliases 'rangeup' and 'rangedown' and the argument they accept is a number from 0 to 50 units, where 0 will activate a dynamic change of the range, which means a range below the 50 units will be changed by 5 units and range larger than that will be changed by 10 units, all other allowed values will change the range by their respective value)
- Added client command 'wpt setdefaultrange' (allows you to override the default range used for many newly added waypoints, arguments can be 'current' which will give you current value, 'reset' which will set it back to hard coded 50 units and then any value between 0 and 400 units which will then be used for most waypoints you add to the map, some waypoints like aim, cross, door, ladder, jump etc. use their own values which won't be affected by this)
- Added client command 'pathwpt reverse' (allows you to change the order of waypoints on the path, i.e. if the order is 1->2->3 then after using this command it will be 3->2->1; this is especially useful to change the direction of one-way paths easily; it doesn't change the path tags so if the path is one-way it will remain one-way even after using this command, it works with either given path index via the argument or with path that is currently worked on or with the first found path on nearby waypoint)
- Added option to use priority 1 setting on the aim waypoint to make the bot adjust the aiming even on z-coordinate i.e. up or down (normally bot treats the aiming waypoints only on planar dimension this means how far away it is and then only turning left or right, the height placement of this waypoint is ignored so the bot is always looking straight forward even if this waypoint is placed on top of sandbags for example; now there is an option to use priority 1 to alter this behaviour and make the bot use the z-coord of such aim waypoint too so the bot will then aim up or down based on how high is the aim waypoint positioned)
- Added option to use priority 1 setting on the pair of roadblock waypoints to disable the check for solid ground between this pair (there are two checks on the pair of roadblock waypoints to determine passability, first is a direct line between these two waypoints - i.e. exactly along the path beam between them - if there is no block then next check is downward into the ground between the pair of waypoints to detect possible death due to a fall, however the second check may cause issues when you design your waypoints, therefore now you can use priority 1 on both roadblocks to disable the second check for solid ground, this new option is crucial when you need to make the bot fall through destroyable floor to lower level if the height coordinate on the roadblock waypoints in the pair differ quite alot - e.g. more than the height of the player)
- Added option to use priority 1 & 2 settings on the use waypoint to make the bot maintain the door connected to this button either open or closed (this is specifically designed to door operated by the button that is located somewhere on the map - usually near door, generally priority 1 means the bot will keep the door open and priority 2 means he will keep it closed but it depends on the map setting - i.e. the priorities may need to be swapped sometimes - when you set either of these two priorities the bot reaching this waypoint will always check the status of the door first and if it matches desired state - i.e. open or closed - he won't activate the button and will leave and if it doesn't match he will activate the button, if you add wait time to this waypoint then the bot will stay by the button till the door stop moving to check the door is really in desired state, default behaviour with priority 5 is unchanged and bot will always activate the button without checking the door status)
- Added option to use priority 1 on parachute waypoint (allows you to disable default behaviour before jumping out where the bot now uses the position of previous waypoint to determine which way to go in order to leave the aircraft or cliff, so if the position of previous waypoint cannot be used due to map specific conditions then priority 1 will make the bot target the next waypoint like he normally does during standard navigation, also fixed couple small bugs within parachuting action as a whole)
- Added option to use wait time on parachute waypoint (this time is then used to tell the bot how long should he "wait" in mid air before opening the parachute, so you can precisely adjust the time the bots spend in mid air on particular map - i.e. the team should no longer be that penalized by having to parachute in, default time to "wait" before opening the parachute if you don't set anything on the parachute waypoint is 1.5 second now)
- Added new bug reports and warnings for 'wpt checkproblems' command (newly you will get a warning if there is a shoot waypoint with priority setting 1 for one of the teams, this warning says that priority 1 disables the search for breakable objects and won't make the bot switch to other weapon - basically it is a rephrased note that is listed in the HTML waypointing manual in a chapter with waypoint types description; next is a new warning for short wait time used on a shoot waypoint, if one of the wait times is less than 3 seconds you'll get a warning about possible problem with targeting the object to shoot at; next is a new warning about range setting for door, usedoor and ladder waypoint types - it should be left on default value 20 because bot doesn't use range on these; next is a new warning about the door waypoint being too far from the doors - i.e. farther than standard search radius of 70 units; next is a new bug report about having zero priority for both teams on several waypoint types that fully disables them then - i.e. no meaning for such waypoint, the types are - ammobox, claymore, goback, roadblock, shoot, sprint and use; next is a bug report about having wait time and zero priority set for the same team on a waypoint other than a trigger one)
- Added new bug reports and warning for 'pathwpt checkproblems' command ('ammobox', 'goback' and 'use' tags when used at the end of a path - either start or end - are all treated as go back once the action is finished and there is no cross waypoint connected or other waypoint to continue forward but a zero priority setting will disable these tags therefore there is a new bug report about this case saying that such path starts/ends in a void for at least one team; next is a bug report about path starting on a zero priority waypoint; next is a warning about distance between two waypoints on the path where if the waypoints are too far from each other bot will not reach the other one in time and has to reset navigation - this time limit serves to determine possible stuck)
- Added new argument 'bugsonly' for both waypoint as well as path check for problems commands (allows you to filter out the warnings and see only findings marked as a bug)
- Changed the way how bot treats the aim waypoint in certain cases (if you use the aim waypoint next to a claymore or shoot waypoints the bot has to target it precisely but previously this occasionally caused issues where bot wasn't able to finish it successfully, especially in cases when the aim waypoint was close to the master waypoint; now this is changed so that the bot will virtually reposition the aim waypoint farther away from the master waypoint which means bot is then able to confirm that he is really facing this aim target correctly and finish the aiming successfully; this also means you should no longer see related errors in debugging file; also fixed excessive console output for 'debug_aim_targets' command when the bot was aiming at any aim waypoint)
- Changed the behaviour upon reaching a sprint waypoint (the bot will no longer automatically set the 'Ignore enemy' behaviour when he starts sprinting, now you will have to use priority 1 setting on this waypoint to tell the bot to set this behaviour type together with sprinting, this means that sprint waypoint with default priority setting will allow the bot to look for enemies normally and only the priority 1 setting will make the bot focus mostly on sprinting and ignore most of the enemies except for those that are really close to him - i.e. within 300 units radius)
- Changed waypoints display feature (fixed missing check for visibility of the waypoint which then lead to displaying waypoints that couldn't be seen at all - e.g. behind wall - which resulted in overloading the game engine and possible game crash, next added a system to limit displaying the number of the same path beams between same two path waypoints, also added synchronization to redrawing the path beams to path finishing function, alongside the updates to display times of waypoints, ranges, aim & cross connections this removed the need for the system to keep going through all the waypoints and paths and check which one of them needs to be redrawn in every game frame, now this is done only once every 0.5 second but can be modified via the client commands 'wpt display_time' and 'pathwpt display_time', together with already present waypoints draw distance feature this can help with the waypoints flickering in complex map locations where the game engine often reaches its rendering limits)
- Changed client command 'pathwpt remove' (now it takes two arguments, the order is waypoint index and path index, this allows you to remove a waypoint from path remotely which is useful in cramped location with multiple waypoints and paths; in order to maintain previously available option to remove the nearby waypoint from particular path you will have to use a keyword "nearby" instead of the waypoint index - e.g. 'pathwpt remove nearby 3' to remove the waypoint you are standing by from path no. 3; other previously available options are unchanged)
- Changed client command 'pathwpt start' (now it allows additional argument which is a waypoint index where you want to start the path, this is useful when you want to or need to work remotely, e.g. in cramped area with multiple waypoints and paths)
- Changed client command 'pathwpt add' (now it allows additional argument which is an index of waypoint you want to add to the path, this is useful when you want to or need to work remotely)
- Improved the ability to use a grenade (bot can now try to throw a grenade at the enemy at which he just lost direct visibility and is waiting for him to become visible again; next added 'grenade_use_percentage' variable to configuration file to allow user defined usage including full disable; the use times were changed so that the 'primary_base_delay' in the file matching the mod version inside 'weapons' folder is now used also for both the selection as well as safety pin removal where needed, also most of the time the bot won't throw multiple grenades one after the other but he will keep additional grenades for later use; fixed some bugs that caused issues in grenade usage in general - e.g. trying to manipulate with the grenade while going prone)
- Improved the ability to climb ladders (previously the bot was able to literally skip the ladder waypoints and thus lose needed precision while climbing it, related part of the navigation code was fixed so now the bot is passing through ladder waypoints correctly; next there is a new option to use priority 1 on a ladder waypoint to alter standard behaviour in a way to allow bot climb a ladder that is at angle, because such ladders often caused problems unlike the straight ones that usually work quite well; and last there was added a new code that resets ladder waypoint range back to default 20 units for the check whether the bot reached it already or not yet - i.e. to maintain the new level of precision without having to change waypoints data - the reset is done only for the test within the navigation code and affects only ladder waypoints where the waypoints creator forgot that a ladder waypoint should be left at default range setting)
- Improved navigation (bot can now handle a combination of 'roadblock' + 'claymore' + priority = 1 waypoint, it means that such path will stay closed to bots without the claymore mine, but will open to bots equipped with it to blow the breakable object up, which will then open such path for everyone)
- Improved unstuck behaviour (when bot gets stuck on breakable obstacle and he cannot break it on his own or on ladder where he is unable to continue climbing it in one direction, he'll try to return back to the start of his current path, one-way path won't allow this behaviour though; bot can now detect a breakable object built of multiple parts correctly and destroy them all before moving forward, also improved the aiming at these multiple parts breakable objects or those with holes in them - still not absolute precision but most of the time the bot doesn't waste that much ammunition on these anymore)
- Improved unstuck behaviour (bot will start stepping closer to the breakable object in order to be able to destroy it which is especially needed for a knife and breakable object built of multiple parts; next the bot will now switch to safe weapon whenever he gets stuck on breakable object with any type of explosives in hands including the grenade launchers)
- Improved unstuck behaviour (bot can now correctly detect the possibility of jumping onto/into/over some object, he should handle even various narrow manholes now, also won't turn away from such object during or right before jumping, and finally he should not try to jump when he cannot succeed at all - due to a bug in one function from the original bot template, that MB kept using, and that is fixed and improved now, also fixed occasional false detection of being stuck during combat)
- Improved unstuck behaviour (bot can now correctly detect ducking under obstacles or into various manholes, also he will now wait till the engine sets him the ducking bit before he will initiate or continue in further attemps to get free, bot will also try to get back to start of the path - if he's not on one-way path - before he commits suicide)
- Removed commands 'change_armory_start', 'change_coldwar_start' and 'change_vengeance_start' (everything related to previous system of alternative start positions for maps Armory, Coldwar and Vengeance has been removed and is replaced by the new universally working system of the external .cfg files and the switch named 'change_start_positions', besides 'change_armory_start' was bugged on Dedicated Server anyway)
- Updated the alternative player start points feature (no longer a hard coded feature, now you can create an external configuration file in 'mapcfgs' folder in your MB installation where you can define alternative coordinates for the player start points a.k.a. spawnpoints, this file has to have a name matching the name of the map for which it is intended plus _startpoints.cfg, e.g. obj_vengeance_startpoints.cfg, if such file is detected during a map load the system will automatically replace original coordinates of the player start points with those listed inside this file, if you want to return back to original player start positions just delete or rename the file so that the system cannot find a match or set the static switch 'change_start_positions' to disabled)
- Updated behaviour upon reaching and passing through door if you use the door or usedoor waypoint (usually you don't need this waypoint type at all, but if bot gets stuck on door often then add it, because by using this waypoint the bot can now correctly detect the state of the door - i.e. whether it is open, or closed or anything in between - this means that bot won't try to touch or use the door again if it is already moving but will correctly wait and will continue moving forward once the door is fully open, which reduces the amount of times when he gets stuck there)
- Updated the behaviour on a shoot waypoint (bot will now check the distance to the breakable object and if he's close to it and is using m79 or grenade or claymore mine or is switched to m203/gp25 fire mode then he will switch to safe weapon or leave the waypoint if the only options is a knife, next if you use an aim waypoint with priority 1 setting next to the shoot waypoint then the distance to the breakable object doubles, this means it can be up to 600 units away; next there's also done a subsequent search for another breakable object or different part of current target around the end point of the Traceline that the bot is using to look through the aim waypoint towards the possible target; previously available options are unchanged with the exception that if you use an aim waypoint next to the shoot waypoint then the bot will no longer search the surroundings when the first check in the direction of the aim waypoint returns no target, which makes more sense than previous system where the bot did this subsequent search and so he could destroy even the object you didn't want to get destroyed)
- Updated the 'wpt move' command to take other two arguments which means there are three in total now (all three arguments are optional and allow precise waypoint reposition in any direction where the 2nd argument determines whether it is up, down, left, right, forward or back - left, right, forward and back are always relative to your point of view, and the 3rd argument tells by how many units, the 1st argument is unchanged and means the waypoint number you want to work with)
- Updated 'wpt triggerevent info' command (added new argument 'current' which will modify the output so that it shows just the current priority setting returned by the waypoint based on triggered state of this waypoint, i.e. if the trigger event didn't happen yet it will show standard priorities and if the trigger event already happened then it will show the other priority setting a.k.a. the trigger priorities)
- Updated waypoints (basically just used the newly added tools of the waypointing system to find and fix couple bugs and/or to improve few spots that needed it, e.g. priority 1 aiming waypoints for the shoot waypoints on armory roof on obj_armory map or added wait-time to the parachute waypoints and swapped the landing waypoints between the 2 paths from the airplane on ps_coldwar and such like)
- FIXED bug in reading bot names from the external file on Linux (after several recruiting and bot kicking the bots started using general names in a form of 'marine' followed by two digits, this was due to a fact that there was no code to handle the differences in newline characters between Windows and Linux systems, which resulted in cases that the name of a bot that was kicked didn't get marked as free and couldn't have been reused then, or you weren't able to kick him out of the game at all, now the names that are read from the 'marine_dog-tags.txt' are correctly stripped of newline characters on both operating systems so the name comparison check at kicking the bot out of the game works correctly and the name is marked free)
- FIXED bug with long bot names reaching or exceeding given limit on name length (ancient bug reaching back to botman's bot template where he set a constant on bot name length that is 1 character longer than what the engine variable netname can hold, Marine Bot is of course using that constant too and has its own code based on it, this then resulted in cases where if the bot name was at given length limit then the subsequent bot name comparisons were failing, means you could have run out of free bot names after several bot recruitings and kicking out of the game, or the server could have crash, now the bot name length limit matches the engine variable size, so the max length of bot name you can use is 31 characters or 27 in case of rich names set to true, instead of 32 and 28)
- FIXED bot going prone after respawn (there was missing stance reset in the respawn function)
- FIXED the rapid yaw changes i.e. the crazy shivers the bot did with deployed bipod when he was trying to turn to possible enemy (ideal yaw angle wasn't correctly updated to the locked bipod angle so the bot tried to keep turning towards both these values at the same time)
- FIXED bot unable to ignore enemy when looking through water in some cases (there's a rule not to target an enemy when looking from ground into water and vice versa, but in some cases when the bot targets an enemy and then gets below water surface, he's unable to act because of this rule and can't forget such enemy either so ends up stuck, now there's a code to allow bot forget such enemy in order to act normally)
- FIXED bot switched back to main weapon in case when he lost direct visibility of the enemy while not in safe distance to use the main weapon (previously if bot was using a sniper rifle or the m79 grenade launcher and the enemy got close, bot correctly switched to backup weapon, but if he lost contact with the enemy at that moment, bot returned back to main weapon despite the fact enemy was probably still too close to use main weapon safely, so now bot will stay switched to his backup weapon even while waiting whether he will see his enemy again, if he cannot find his enemy within given time bot will leave the combat mode and will switch to main weapon soon after he starts moving towards next waypoint, or while he will continue in waiting at his current waypoint)
- FIXED constant weapon switching between backup weapon and knife in cases when main weapon ran out of ammo and the backup weapon was out of range (especially when the backup weapon was pistol, bot then kept switching between pistol and knife till he got close enough to the enemy to be able to fire the pistol)
- FIXED inability to change weapon while being at the shoot waypoint or getting stuck on some breakable object (when bot depletes all ammunition for his weapon and can't reload it then he tries to switch to the other weapon, but the code allowing such action wasn't available for these two actions, so bot got stuck in an endless try to switch the weapons)
- FIXED bot using the m79/m203/gp25 launchers to break through a breakable object he got stuck on (now he will switch to backup weapon or a knife in case of m79 or primary fire mode on m16/ak74)
- FIXED bot trying to destroy breakable object designed for the other team if he got stuck on it (in this particular case a check for team specific objects was completely missing which allowed the bot to target even the objects that are meant to be destroyed only by the other team; the cases when you set up a shoot waypoint to destroy something were being checked correctly, but when the bot got stuck on such object then the check for team was missing)
- FIXED bot leaving the shoot waypoint before firing at the breakable object if he decided to reload his weapon first (actually anytime he was waiting at waypoint where was quite short wait time set, the reloading action could often exceed the wait time so the wait time ran out, now bot will pause the wait time during weapon reload and resume it after the weapon is loaded, so his waiting won't be affected by weapon reload anymore)
- FIXED bot being able to see through some breakable objects where he shouldn't be able so (MB is able to see through breakable objects that are made of glass e.g. windows to target his enemy, there's a set of rules that define whether the glass is transparent or not, but there was a bug in this definition so bot was able to see even through visibility blocking breakable objects)
- FIXED bot getting stuck at a shoot waypoint unable to act (if there was an aim waypoint used next to the shoot waypoint then there could have been a collision of the codes for different ways how the bot can target the breakable objects which made the bot unable to continue with any action at all, now the options are correctly separated)
- FIXED not showing the aim waypoint connection for a shoot waypoint with no wait time (bot looks for a nearby aim waypoint to face the right direction even when there isn't any wait time so the connection should be shown to make it clear he does it)
- FIXED various issues with console output (e.g. tab space formatting, next the console help system wasn't uniform - i.e. some commands were listed with the underscore characters)
- FIXED instant crash when the fancy HUD text used by waypointing commands exceeded given limit on length of the text line (the commands such as wpt info or pathwpt info are using the HUD text that is displayed in top left corner of the screen, however once the number of tags on both the waypoint or the path reaches certain amount the HUD text will exceed the limits on length of one line of text and despite the fact that the limit on total length of the whole message isn't reached at all the game will crash, so now there's a new feature where you'll see 3 dots at the end of the list of tags whenever there's a chance that the line of HUD text would have been too long, in such case check the console where you'll find full info about the waypoint or path)
- FIXED inability to gain path data upon reaching the first waypoint on path after passing through cross waypoint (in this case the bot didn't have access to info about path because path data are gained until after calling the function that sets bot behaviour based on the waypoint he just reached, this is fixed now and the path data are fully available even in this case)
- FIXED the Triggers stopped working after using 'wpt load' command ('wpt load' command has to reset all waypoint structures before reading them anew and the reset of triggers caused mismatch of their IDs so the system then couldn't find the match with messages)
- FIXED reporting an error into debugging file when you used 'pathwpt remove <index>' command on waypoint where there was no path at all or you mistyped the 'index' value or used the same command twice on the same waypoint so on the second use this waypoint wasn't part of 'index' path anymore (simply forgotten leftover from debugging from days when path system was still in early stage of creation)
- FIXED 'debug_cross' not printing anything without developer mode set to 1 (the function that is responsible for cross waypoint decision making doesn't have access to clients data so it can output the data only to universal developer console, but I've changed Marine Bot's console input class so that it remembers the client who entered the command, so you will now get the output to your console even without developer mode 1, also added an empty line before each new cross waypoint output to improve readability)
- FIXED corrupted output for 'pathwpt printall' command (bugs and limitations prevented printing correct output for any path that had too many additional path tags marked as 'misc', now whenever a line of the output would exceed the limit for the engine Text Message the output is split in parts that are printed separately so the final output to the console is correctly formatted)
- FIXED pathend repair function (it incorrectly turned a waypoint into a goback even if such waypoint was part of another path, so the function could actually create a new bug that way i.e. create a goback anywhere on another path - even on one way path)
- FIXED 'wpt info' command (when used without argument this command is meant to show only data that are relevant to that particular waypoint, e.g. only range for cross waypoint or only priorities for the aim waypoint, but it didn't show range for all waypoints, so now this is fixed, also it has been synchonized with the check_range feature, so the range is not displayed/printed for waypoints where bot doesn't use it, i.e. ladder and door waypoints)
- FIXED 'wpt reset' command (using multiple arguments didn't work, only the first argument was executed, next there were trigger priority and event values missing for the reset, both got reset only if you used the 'all' option, use 'wpt reset help' to see all options including the newly added ones)
Next I also updated the Waypointing Manual. Actually only the list of waypointing commands. I'll be updating the guide itself too, but first I want to release Marine Bot 0.97b for Day of Defeat 1.3 so that the guide is as accurate as possible for both versions of Marine Bot. Anyways I hope you'll enjoy this new version of Marine Bot for Firearms. Have fun.
16 January 2025
Uploaded a short clip @marinebotofficial titled MB WIP Reaching a breakable object when using grenade launcher where you can see a test of updated behaviour on reaching a breakable object when the bot is equipped with dangerous explosives such as the m79 grenade launcher. Previously the bot didn't care much about what weapon will he use to destroy the object. So he could easily kill self and others in the vicinity when he was using similar weapon. Now the bot will always check the situation first and will choose wisely :) ... as you can see in the video. In Day of Defeat the anti-armor bots use the pistol most of the time so cases when one of them would fire a rocket at nearby object like a window for example are rare. However the ability to do small steps towards a breakable object in order to reach on it with a knife or spade is needed there too ... especially now when there will be the "melee only" mode available.
5 January 2025
The Christmas/New Year holiday time was quite productive. I've had almost two full weeks off work so I was able to find a lot of free moments to work on Marine Bot code. One thing led to another and features/fixes count raised nicely. Started with fixing the non working ability to fully deal with the class limits in DoD version of MB. Also fixed inability to deal with the teams balance (the mp_teamlimit) during initial spawning. Both related to problem with inconsistency of Text message in DoD. I've already dealt with this in mod Firearms, but there things made quite sense. In the end I believe I was able to come up with correctly working decoding mechanism for them. In DoD this is way worse. It seems that DoD is using some kind of internal table where are these predefined text messages (they all start with # sign) stored. So both the server and client parts do know the exact size of each of these messages. For MB this pose a problem though. The decoding mechanism returns corrupted data if each message has different size, i.e. number of variables. See these 3 examples.
Frank McNeil's ClientCommand: cls_bazooka (gametime=231.942)
pfnMessageBegin: edict=10B3FB8C dest=1 type=70 (gametime=231.942)
pfnWriteByte: 3
pfnWriteString: #game_class_limit
pfnWriteString: #class_allied_bazooka
pfnMessageEnd:
[MB]Alec Newman's ClientCommand: jointeam 1 (gametime=39.274)
pfnMessageBegin: edict=103401D4 dest=1 type=70 (gametime=39.274)
pfnWriteByte: 4
pfnWriteString: #game_uneven_teams
pfnMessageEnd:
pfnMessageBegin: edict=00000000 dest=2 type=70 (gametime=41.279)
pfnWriteByte: 3
pfnWriteString: #game_changed_name
pfnWriteString: [MB]Alec Newman
pfnWriteString: [MB]Klaus Bergmann
pfnMessageEnd:
All of that is one type of engine message, a type 70 means Text message. Destination 1 means it is sent to one particular client. And value 2 means it's sent to all clients. As you can see each message has different amount of variables. And nothing tells you how many variables will be sent. I simply gave up tries to figure out any decoding mechanism and used some kind of brute force. I mean I sort of ignored standard way of dealing with these engine messages and added internal variable to MB system that gets assigned when the engine calls the "message ends" function. And the decoding function for text messages was modified to work with this variable to reset the reading based on its value. After that things finally started to work and Marine Bot can now deal with both DoD specific limits, i.e. for team as well as class.
Next I added the "melee only" mode. Which then revealed a problem with ability to destroy breakable objects where bots with just knives or spades got stuck around such objects due to inability to reach them from afar with these close range weapons. While working on that I also improved the ability to avoid using dangerous explosives to destroy the breakable objects. Which is required especially in mod Firearms because of the m79 grenade launcher. Next I worked on couple functions for waypoint editing, checking and fixing to ease the life of waypoints creators. As per what is listed in that "todo" text file that I uploaded some time ago.
After adding the wait time option for the parachute waypoint I found another incompatibility. When I was testing it on ancient map from Firearms 2.5 era titled ps_island I found a problem with the 'usedoor' waypoint. There are 2 Bell Huey helicopters on this map where the Red team starts and has to parachute in. But they have to open the side doors first and this is what used to cause issues, because bots randomly detected the situation wrong and closed the side doors again. Then they got stuck there for a while and that interfered their ability to parachute in. This got me to find a better solution for detection of the status of door. Marine Bot can now correctly detect whether the door is open or closed or currently moving from one state to the other. Which then led to last improvement that was added during this long coding session ;). Now you have an option to use priority 1 and 2 on the use waypoint to tell the bot that he should keep the door either open (priority 1) or closed (priority 2). The test of this last addition is shown in a video titled MB WIP Priority 1 and 2 for use waypoint and updated behaviour on door waypoints that is available @marinebotofficial. Currently this works for door created using the "func_door" (sliding door) and "func_door_rotating" (swing door). I didn't get to finding the last type of door the "momentary_door" on any map yet. I mean that I didn't have the time to go through maps to find it. If you know of a map with this type of door, let me know please. I'll try to record more footage when I get to testing the other features too. But you know, don't hold your breath for it, because this will take a while.
21 December 2024
The Test version number 9 of Marine Bot 0.96b for Day of Defeat 1.3 is released. The universal gamer package as well as the .zip archive with the source code are available for download at 'FILES' -> 'Marine Bot ports for different Half-Life 1 mods'. The changelog follows.
- Added client command 'wpt setdefaultrange' (allows you to override the default range used for many newly added waypoints, arguments can be 'current' which will give you current value, 'reset' which will set it back to hard coded 50 units and then any value between 0 and 400 units which will then be used for most waypoints you add to the map, some waypoints like aim, cross, door, ladder, jump etc. use their own values which won't be affected by this)
- Added DoD specific code to ammobox waypoint type (ammobox waypoint can now be used to make the bots actively seek the explosives charges, you place this waypoint in the area where there are the satchels/bombs available, then set the range on it so that it covers all or most of the explosives around, the bot will then automatically locate particular satchel/bomb within the waypoint range and will take it, this waypoint also works automatically as a goback if it is at the end of the path, finally it also assigns the automated path tag so that the bots know to choose this particular path to get to this waypoint and refill the explosives charge)
- Added new warning for 'pathwpt checkproblems' command (warning about distance between two waypoints on the path where if the waypoints are too far from each other bot will not reach the other one in time and has to reset navigation - this time limit serves to determine possible stuck)
- Changed behaviour within Capture Area (randomized the moment when the bot starts capturing the objective in case the area is for one man only, previously the bot always started capturing it right when he entered the area, now he may reach up to the pushpoint waypoint even if the area is large e.g. the "Axis gun position" on dod_avalanche)
- Changed the behaviour upon reaching a sprint waypoint (the bot will no longer automatically set the 'Ignore enemy' behaviour when he starts sprinting, now you will have to use priority 1 setting on this waypoint to tell the bot to set this behaviour type together with sprinting, this means that sprint waypoint with default priority setting will allow the bot to look for enemies normally and only the priority 1 setting will make the bot focus mostly on sprinting and ignore most of the enemies except for those that are really close to him - i.e. within 300 units radius)
- Updated the path & waypoint values assigning at junctions (on maps where there are explosives charges required to capture the map objectives have been tweaked the values for paths with pushpoint and ammobox waypoints; the paths with ammobox have highest value now so that the bots can get the satchels/bombs first before they move towards the goals; and the paths with pushpoint have been put on par with 'carry item' paths so that bots can actually visit the goals if you decide to use the optional 'carry item' hint on the same junction)
- Updated the reaction to voice command "Use the bazooka" (if you point to a breakable object at the moment when you use this command the bot will then shoot only at that object where this object can be up to 800 units away from you, bot will also do the subsequent search for other parts of the object around the spot that you are pointing to, this basically replicates what the bot does if you use a combination of a shoot waypoint and an aim waypoint with priority 1; if you don't point to any object while using the command then the bot will behave like before - i.e. he will search the surroundings and destroy all objects that are within 400 units radius from his position)
- Updated the 'wpt move' command with four more options (added 4 directions to which you can move the waypoint - left, right, forward and back, all 4 directions are relative to your point of view, and are meant to ease setting the position of the aim waypoint - especially the one with priority 1 setting but all can be used on any waypoint type, all previous options are unchanged)
- FIXED inability to detect being in area of breakable obstacle around claymore waypoint (the detection of being in area was still strictly locked to standard capture the flag areas and fact that bot stopped at common breakable object was due to him reaching the claymore waypoint but if the range of such waypoint reached up into the object - which often does - then bot wasn't able to reach that point in this range and so couldn't detect he's inside the area where he has to stop to plant the explosives charge; so sometimes the bot got stuck there due to this; the detection of being in area has been updated in order to process these claymore based areas too)
Hope you'll have fun with this new version of Marine Bot for DoD. Merry Christmas and Happy New Year to all of you who celebrate them. I'm sorry I don't know the traditions in other cultures so if you have them in coming weeks then have a great holidays too.
14 December 2024
There is a new video @marinebotofficial titled MB WIP Ammobox waypoint in DoD that shows the changes in how does the bot treat this waypoint type in Day of Defeat. First part explains all the details and the second part is a uncut footage at double speed of one full round on map Charlie where is the bot using the power of this waypoint and changes in the behaviour related to it. Not every round was the bot this effective. A few times he ran out of the time and failed. But most of the rounds the bot was able to accomplish the map goal in a similar way as is presented in the video. Seeing there is no priority setting at all and these test waypoints are generally of poor quality then this update seems to be a success. Unless I find something really bad during further testing then this will be the last addition for Test version 9. I mean the plan is to wrap Test version 9 as a Christmas present this year.
8 December 2024
Finished both ammobox and sprint waypoint features that are listed in that "todo" file that is available in news update from the 22nd of November 2024. Well at least it seems like it's finished, because I still need to do proper testing which will happen most probably next weekend. Early quick tests revealed a few bugs that should be fixed now, but you never know without proper full testing. Here's the list of changes.
- Changed the behaviour upon reaching a sprint waypoint (the bot will no longer automatically set the 'Ignore enemy' behaviour when he starts sprinting, now you will have to use priority 1 setting on this waypoint to tell the bot to set this behaviour type together with sprinting, means that sprint waypoint with default priority setting will allow the bot to look for enemies normally and only the priority 1 setting will make the bot focus mostly on sprinting and ignore most of the enemies except for those that are really close to him - i.e. within 300 units radius)
- Added DoD specific code to ammobox waypoint type (ammobox waypoint can now be used to make the bots actively seek the explosives charges, you place this waypoint in the area where there are the satchels/bombs available, then set the range on it so that it covers all or most of the explosives around, the bot will then automatically locate particular satchel/bomb within the waypoint range and will take it; this waypoint also works automatically as a goback if it is at the end of the path; finally it also assigns the automated path tag so that the bots know to choose this particular path to get to this waypoint and refill the explosives charge)
- Updated the path & waypoint values assigning at junctions (on maps where there are explosives charges required to capture the map objectives have been tweaked the values for paths with pushpoint and ammobox waypoints; the paths with ammobox have highest value now so that the bots can get the satchels/bombs first before they move towards the goals; and the paths with pushpoint have been put on par with 'carry item' paths so that bots can actually visit the goals if you decide to use the optional 'carry item' hint on the same junction)
- FIXED inability to detect being in area of breakable obstacle around claymore waypoint (the detection of being in area was still strictly locked to standard capture the flag areas and fact that bot stopped at common breakable object was due to him reaching the claymore waypoint but if the range of such waypoint reached up into the object - which often does - then bot wasn't able to reach that point in this range and so couldn't detect he's inside the area where he has to stop to plant the explosives charge; so sometimes the bot got stuck there due to this; the detection of being in area has been updated in order to process these claymore based areas too)
Now the details, briefly again. Source code snippet of the sprint waypoint changes. The first ammobox code snippet shows what the bot does when he reaches this waypoint. Once the action time is set this code takes over the control in order to make the bot pickup the explosives charge. That is a part of the "Waypoint Action time" branch of the code. If things fail there ... I mean if someone else takes the satchel/bomb the bot was heading to then in next game frame (i.e. couple miliseconds later) this code from the beginning of this branch of the source code will either find another explosives charge or will make the bot leave the ammobox waypoint. Next are the changed path values 1 and 2 that get used when is the bot deciding which waypoint and which path to pick on a junction (i.e. upon reaching the cross waypoint). And finally the fixed "in area" issue. Which then hands the control to the famous Bot Wait Here function that will handle the process of setting the explosives charge before leaving the spot. The task to evade claymore has been added also to the Roadblock + Claymore waypoint code that you can see in news update on the 6th of November 2024. And then to the code of reaching just the Claymore waypoint where there isn't any screenshot avilable, but it's very similar to the code of the Roadblock and Claymore combination. So that all the parts of the code are unified and give correct data for the wait function.
4 December 2024
The video from testing changes done to the voice command "Use the bazooka" that I promised last time is uploaded @marinebotofficial with the title MB WIP Changes to Use the bazooka command.
29 November 2024
According to initial testing the updated reaction to "Use the bazooka" command is finished. To save myself some time for thorough testing I'll make this announcement short. I mean I'll use the source code snippets again instead of describing it all here. By following the comments in the code you'll see the logic behind particular bot action and get all the details. There was more code updated, but following series of screenshots covers the most important parts of the changes in the behaviour. So this first snippet is the initial reaction when bot gets the command. While is the wait time ticking the bot starts turning towards the breakable object. Once he's properly aiming at it this next code snippet takes over the control of bot actions. The Bot wait here function is quite robust code that handles several actions. What you see on the screenshot is universal portion of the code that gets called for both cases, i.e. when bot reaches a shoot waypoint as well as when he reacts to "Use the bazooka" voice command. Notice the last couple lines. They clearly show that if you decide to use an aim waypoint and assign a wait time on the shoot waypoint then you can safely use long wait times, because the bot will always reset the time once there is nothing to destroy. Okay to give you the whole picture the following 3 source code snippets will show you both Check for breakable object functions that MB uses. Here is the first part of the main function named Check forward for breakable where are all 4 options how to prepare the destination point for the Traceline which is what the bot uses to see something in the game. And this is the second part of that function where is the bot processing the results of the Traceline ... in other words finds out what he sees and decides about possibilities he has. Finally this is the other function named Check for breakable around that can be used either to search the "wide" surroundings of the bot itself or to search the vicinity of some specific point if it gets the coordinates of such point through the 3rd argument. As you can see on previous screenshots it is this function that allows the bot to discover the additional parts of breakable object like the Freya radar for example. Or the object itself if you (or the aiming vector via the aim waypoint) don't point to it exactly.
I'll try to record some footage while doing the more thorough testing. However I can't promise I'll have the video ready this weekend, because most probably I'll rather use the free time to work on something new that is on the list I provided last time.
22 November 2024
As I said before I'm having less time in general now that I'm employed again. This means that lately I've been working on two smaller additions to already existing features. First is a new warning for the 'pathwpt checkproblems' command that can point you to a place in the waypoints where is a high probability that the bot will have to reset navigation. And second thing are new options for 'wpt move' command. MB WIP Updates to pathwpt checkproblems & wpt move video @marinebotofficial shows both these additions and gives more details about them. Because the Waypointing manual hasn't been updated in a long time you can use this source code snippet to get the details on all available options for the 'wpt move' command ... okay some aren't available yet, but they will be once the Test version 9 gets released.
Next I already started working on an update to reaction to "Use the bazooka" voice command. The idea is to allow you to make bot shoot only at one specific breakable object that you will point to at the same time as you use this voice command. Good thing is that I do have a lot of the code ready from the updated behaviour on a shoot waypoint that is part of the last public Test version. So now I can utilize it in this update and give you again a bit more control over the bot. Basically I continue in implementing and fixing stuff I have noted down in the past couple months ... well it's over a year when I started using this particular text file. Sorry about the formatting, I'm using QHD monitor and so this text file is formatted to fit particular space on my screen. Anyways sometimes some points on that list are changed during the process of writing the source code and some points may not get to the code at all. As you can see most of what is on the list is related to mod Firearms, because I've been focusing on DoD a lot lately, so the points related to DoD are already implemented ... well almost. Or it's something that is universal for both mods, but where I decided that it's less important than something else that already made it into the source code.
12 November 2024
Marine Bot 0.96.8b (the Test version 8) for Day of Defeat 1.3 is out now. Both usual zip archives (the universal gamer package and the source code) are available for download at 'FILES' -> 'Marine Bot ports for different Half-Life 1 mods'. And if you are new to Marine Bot for DoD then don't forget you need to download also the waypoints that are available in the same section. Otherwise the bots would just blindly roam around the spawn zones. Actually Marine Bot will always tell you when the waypoints are missing for current map by a message at the top of the screen. This message will repeat every couple seconds so that you can't miss it. Anyways this is, this time quite a long, list of changes for this version.
- Added client command 'check_shoot' with alias 'checkshoot' (allows you to display connections between the shoot waypoint and all available breakable objects within its reach, if the object is destroyed or there is no breakable object in the direction of the aim waypoint then the connection is displayed in pink otherwise it's green, in order to correctly simulate what the bot is able to see from that shoot waypoint this connection doesn't start in waypoint origin like the other connections but slightly higher - i.e. where the bot has eyes; in case you have used the aim waypoint then the length of the beam always shows the max distance to the object to be found - i.e. often you may see the beam going through the object and continue beyond it, in the case without the aim waypoint the beam will always end at the position of the breakable object - i.e. often inside it - so if you can't see the connection at all then the shoot waypoint is either too far or something else blocks the visibility due to high angle towards it which means the bot won't see the object either)
- Added option to use priority 1 setting on the aim waypoint to make the bot adjust the aiming even on z-coordinate i.e. up or down (normally bot treats the aiming waypoints only on planar dimension this means how far away it is and then only turning left or right, the height placement of this waypoint is ignored so the bot is always looking straight forward even if this waypoint is placed on top of sandbags for example; now there is an option to use priority 1 to alter this behaviour and make the bot use the z-coord of such aim waypoint too so the bot will then aim up or down based on how high is the aim waypoint positioned)
- Added option to use priority 1 setting on the pair of roadblock waypoints to disable the check for solid ground between this pair (there are two checks on the pair of roadblock waypoints to determine passability, first is a direct line between these two waypoints - i.e. exactly along the path beam between them - if there is no block then next check is downward into the ground between the pair of these waypoints to detect possible death due to a fall, however the second check may cause issues when you design your waypoints, therefore now you can use priority 1 on both roadblocks to disable the second check for solid ground, this new option is crucial when you need to make the bot fall through destroyable floor to lower level in case the height coordinate on the roadblock waypoints in the pair differ quite alot - e.g. more than the height of the player)
- Added option to use priority 1 setting on the pair of roadblock waypoints in combination with anti-armor path type to allow bots using the anti-armor class enter on such path and destroy the obstacle blocking the way (works the same as the roadblock + claymore + priority 1 option for bots equipped with explosives charge so if the breakable object allows both "tools" then you can use the same pair of roadblock waypoints to build the anti-armor path through that area; if the bot runs out of ammo for the launcher while trying to destroy this obstacle then he will return back to path start after he reaches the roadblock waypoint)
- Added new bug report for 'pathwpt checkproblems' command ('ammobox', 'goback' and 'use' tags when used at the end of a path - either start or end - are all treated as go back once the action is finished and there is no cross waypoint connected or other waypoint to continue forward but a zero priority setting will disable these tags therefore there is a new bug report about this case saying that such path starts/ends in a void for at least one team)
- Added new bug report and warning for 'wpt checkproblems' command (about range setting for door, usedoor and ladder waypoint types - it should be left on default value 20 because bot doesn't use range on these; next there's a new bug report about having a zero priority for both teams on several waypoint types that fully disables them then - i.e. no meaning for such waypoint, the types are - ammobox, claymore, goback, roadblock, shoot, sprint and use)
- Changed the way how bot treats the aim waypoint in certain cases (if you use the aim waypoint next to a claymore or shoot waypoints the bot has to target it precisely but previously this occasionally caused issues where bot wasn't able to finish it successfully, especially in cases when the aim waypoint was close to the master waypoint; now this is changed so that the bot will virtually reposition the aim waypoint farther away from the master waypoint which means bot is then able to confirm that he is really facing this aim target correctly and finish the aiming successfully; this also means you should no longer see related errors in debugging file; also fixed excessive console output for 'debug_aim_targets' command when the bot was aiming at any aim waypoint)
- Improved the ability to climb ladders (previously the bot was able to literally skip the ladder waypoints and thus lose needed precision while climbing it, related part of the navigation code was fixed so now the bot is passing through ladder waypoints correctly; next there is a new option to use priority 1 on a ladder waypoint to alter standard behaviour in a way to allow bot climb a ladder that is at angle, because such ladders often caused problems unlike the straight ones that usually work quite well; and last there was added a new code that resets ladder waypoint range back to default 20 units for the check whether the bot reached it already or not yet - i.e. to maintain the new level of precision without having to change waypoints data - the reset is done only for the test within the navigation code and affects only ladder waypoints where the waypoints creator forgot that a ladder waypoint should be left at default range setting)
- Improved the ability to use a grenade (bot can now try to throw a grenade at the enemy at which he just lost direct visibility and is waiting for him to become visible again; next added 'grenade_use_percentage' variable to configuration file to allow user defined usage including full disable; the use times were changed so that the 'primary_base_delay' in the file matching the mod version inside 'weapons' folder is now used also for both the selection as well as safety pin removal where needed, also most of the time the bot won't throw multiple grenades one after the other but he will keep additional grenades for later use; the min safe and max effective distances in the external file in 'weapons' folder have been reduced because grenades cannot be thrown that far in DoD under normal circumstances; fixed the actions while aiming with the grenade which improved overall accuracy somewhat; and finally fixed the bugs that prevented grenade usage in general where everything started with the fact that DoD doesn't call certain engine function during player spawn so bot didn't get assigned crucial variables and thus didn't know whether he has any grenade or not)
- Improved unstuck behaviour (bot can now detect a breakable object built of multiple parts correctly and destroy them all before moving forward, also improved the aiming at these multiple parts breakable objects or those with holes in them; still not absolute precision but most of the time the bot doesn't waste that much ammunition on these anymore)
- Updated the behaviour on a shoot waypoint (if you use an aim waypoint with priority 1 setting next to the shoot waypoint then the distance to the breakable object doubles, this means it can be up to 800 units away; next in this particular case there's also done a subsequent search for another breakable object or different part of current target around the end point of the Traceline that the bot is using to look through the aim waypoint towards the possible target; previously available options are unchanged with the exception that if you use an aim waypoint next to the shoot waypoint then the bot will no longer search the surroundings when the first check in the direction of the aim waypoint returns no target, which makes more sense than previous system where the bot did this subsequent search and so he could destroy even the object you didn't want to get destroyed)
- Updated the 'wpt move' command to take other two arguments which means there are three in total now (all three arguments are optional and allow precise waypoint reposition on z-coordinate where the 2nd argument determines whether it is up or down and the 3rd argument tells by how many units, the 1st argument is unchanged and means the waypoint number you want to work with)
- FIXED bot trying to destroy breakable object designed for the other team (a check for team specific objects was completely missing until now because original code used for mod Firearms doesn't work in DoD, this allowed the bot to target even the objects that are meant to be destroyed only by the other team)
- FIXED bot getting stuck at a shoot waypoint unable to act (if there was an aim waypoint used next to the shoot waypoint then there could have been a collision of the codes for different ways how the bot can target the breakable objects which made the bot unable to continue with any action at all, now the options are correctly separated)
- FIXED inability to leave roadblock + claymore waypoint when it's used at the path start or end (there was completely missing code for this case and there was also general problem with fact that first waypoint on any path after passing through cross waypoint didn't have access to info about path because path data are gained until after calling the function that sets bot behaviour based on the waypoint he just reached, this is fixed now and the path data are fully available even in this case)
- FIXED various issues with console output often related to differences between Windows and Linux systems (e.g. tab space formatting and/or ignoring it completely, next the console help system wasn't uniform - i.e. some commands were listed with the underscore characters yet the client console on Linux doesn't display them, finally output for some commands was still missing the workaround for the limit of 128 characters for engine Text Message)
- FIXED crash to system desktop if you had active 'debug_waypoints' command and the round has ended (the message about Triggers reset that is about to be printed at that moment has to call a new engine message 'TextMsg' and in HL engine you can't start a new engine message before other one is finished - 'RoundState' in this case)
- FIXED 'wpt info' command (when used without argument this command is meant to show only data that are relevant to that particular waypoint, e.g. only range for cross waypoint or only priorities for the aim waypoint, but it didn't show range for all waypoints, so now this is fixed, also it has been synchonized with the check_range feature, so the range is not displayed/printed for waypoints where bot doesn't use it, i.e. ladder and door waypoints)
- FIXED 'wpt reset' command (using multiple arguments didn't work, only the first argument was executed, next there were trigger priority and event values missing for the reset, both got reset only if you used the 'all' option, use 'wpt reset help' to see all options including the newly added ones)
The changes to behaviour on the 'shoot' waypoint may lead to certain level of incompatibility with currently available waypoints. So if you see a bot having troubles near any breakable object like a sewer cover on dod_kalt for example then use the command to display the waypoints and then erase the 'aim' waypoint. That should fix it. Usual final stability testing on Linux Dedicated server ran for over two days without any crash. Also there were less reports in Marine Bot error log thanks to the way how the bot treats the 'aim' waypoint next to the 'shoot' waypoint now. You know the thing with virtual shift that has been shown in one of the recent WIP videos. Actually there was no report of this in the error log so the virtual shifting of the 'aim' waypoint seems to work really well. Have fun playing the Day of Defeat 1.3 with this new version of Marine Bot.
6 November 2024
Since the start of this week I'm employed again. Current work schedule is Monday to Friday 6am to 2:30pm so the development will slow down again. Anyway as I continued testing the recent changes I noticed another weak point in Marine Bot waypointing system that Martee tried to use, but that doesn't work in current version. He tried to combine the anti-armor path type with a pair of roadblock waypoints to make such bots destroy the breakable object that is blocking this route. I have a feeling he tried to mimic what roadblock + claymore + priority 1 setting allows. Actually it's a good idea, I like that, but the problem is that there is no code for such case so bots can't do what he wanted them to do.
When I saw that he used such setup on more maps I started thinking how to make it possible. I figured out that I can use previous change in the navigation code where by using priority 1 setting on both roadblock waypoints in the pair you tell the bot that the ground is safe (i.e. there is solid ground between these two waypoints) and he can only check the forward direction for possible block on the way. So I have used that rule and added additional code to the exception for roadblocked path that will allow anti-armor bots enter such path if there is a priority 1 setting on both roadblock waypoints. Usually the priority 1 setting is used on both such waypoints otherwise the bots with explosives charges wouldn't be able to enter the path and open it for everyone. Look at this code snippet that gives all the details. If you put all of that together then it fits nicely. It all makes sense and all of that is about dealing with the same type of situation the bot may get into. Next to extending the roadblocked path exception I also had to update the behaviour upon reaching the roadblock waypoint. Instead of me describing it here you can look at another code snippet where the comments explain the details.
By the way the case with multiple roadblock pairs on one path is also shown in that WIP video about roadblock waypoint. But I don't think I've ever explained it anywhere. So let me fix it now. As you can see in the code there is a check whether the bot is at the first roadblock waypoint from the pair. And this is determined by looking at the previously visited waypoint that must not be a roadblock waypoint. Actually the bot remembers last five waypoints. Anyway I wanted to say that this particular check sets the limit on how you can use the roadblock waypoints. I mean a path created like this: some_waypoint<->roadblock<->roadblock<->roadblock<->roadblock<->some_waypoint would not work because of this check. The second pair of roadblock waypoints would be totally ignored ... i.e. bot would hit the obstacle and get stuck there or would fall into the abyss and probably die. You must always insert at least one other waypoint type between the two roadblock pairs in order to make it work. This means the path would have to look like this for example: some_waypoint<->roadblock<->roadblock<->some_waypoint<->roadblock<->roadblock<->some_waypoint. I'll add all these details to the HTML Waypointing Guide, but you know that will take some time. So for now these news updates are the only source of the information.
2 November 2024
The features I planned to do are finished now. The bot is now able to destroy even objects like the top of the watch tower or bunker roof on map Forest or the allied objectives on map Glider like the Freya radar. I mean bot with bazooka of course. How to setup the waypoints and how does the bot deal with it then is shown in a new video @marinebotofficial titled MB WIP Updated ability to destroy objects and options for aim waypoint. The specific changes follow.
- Added client command 'check_shoot' with alias 'checkshoot' (allows you to display connections between the shoot waypoint and all available breakable objects within its reach, if the object is destroyed or there is no breakable object in the direction of the aim waypoint then the connection is displayed in pink otherwise it's green, in order to correctly simulate what the bot is able to see from that shoot waypoint this connection doesn't start in waypoint origin like the other connections but slightly higher - i.e. where the bot has eyes; in case you have used the aim waypoint then the length of the beam always shows the max distance to the object to be found - i.e. often you may see the beam going through the object and continue beyond it, in the case without the aim waypoint the beam will always end at the position of the breakable object - i.e. often inside it - so if you can't see the connection at all then the shoot waypoint is either too far or something else blocks the visibility due to high angle towards it which means the bot won't see the object either)
- Added option to use priority 1 setting on the aim waypoint to make the bot adjust the aiming even on z-coordinate i.e. up or down (normally bot treats the aiming waypoints only on planar dimension this means how far away it is and then only turning left or right, the height placement of this waypoint is ignored so the bot is always looking straight forward even if this waypoint is placed on top of sandbags for example; now there is an option to use priority 1 to alter this behaviour and make the bot use the z-coord of such aim waypoint too so the bot will then aim up or down based on how high is the aim waypoint positioned)
- Updated the 'wpt move' command to take other two arguments which means there are three in total now (all three arguments are optional and allow precise waypoint reposition on z-coordinate where the 2nd argument determines whether it is up or down and the 3rd argument tells by how many units, the 1st argument is unchanged and means the waypoint number you want to work with)
- Updated the behaviour on a shoot waypoint (if you use an aim waypoint with priority 1 setting next to the shoot waypoint then the distance to the breakable object doubles, this means it can be up to 800 units away; next in this particular case there's also done a subsequent search for another breakable object or different part of current target around the end point of the Traceline that the bot is using to look through the aim waypoint towards the possible target; previously available options are unchanged with the exception that if you use an aim waypoint next to the shoot waypoint then the bot will no longer search the surroundings when the first check in the direction of the aim waypoint returns no target, which makes more sense than previous system where the bot did this subsequent search and so he could destroy even the object you didn't want to get destroyed)
What isn't clarified in the video is fact that if you have similar breakable object like those that are shown in the video, but can be destroyed by both teams then you would have to use priority 1 setting for both teams on the aim waypoint. So the priority settings on aim waypoint are these now. Zero priority means the bot from that team will completely ignore this aim waypoint. Priority 1 means that the bot from the team for which it was set will use the height at which is this aim waypoint positioned to aim up or down. And the rest of priorities mean the bot from that team will use such aim waypoint only to turn to left or right, but will look straight forward.
29 October 2024
In the past few days I continued in removing the small yet annoying imperfections Marine Bot has. You know stuff like the ladder I introduced last time. This means something that mostly works fine, but there are couple places where it can cause quite a problem. One of such imperfections is how the bot deals with a breakable obstacle that he got stuck on and that is constructed out of multiple parts, e.g. the doors on map dod_flash. The bot can destroy one of the parts easily, but then he has serious problem discovering and getting rid of the other part quite often. Current unstuck code makes the bot send a single traceline directly forward which allows him to detect the breakable obstacle, shoot at it and continue moving once he destroyed it. But he cannot detect the other part that is typically low and on one side. Often it takes him many tries to pass through such spot. Therefore I've reworked this part of the code to call the other function that checks for breakable objects, but it does it in the whole surroundings. It is the one that is used when you don't add an aim waypoint next to the shoot waypoint. However here I call it with much smaller radius.
While testing it I got to another issue with breakable objects. That is the problem of non working code for checking the team owning this or that breakable object. It has been removed right at or soon after the initial conversion from mod Firearms. So I had to use usual engine debugging to figure out how is it done in DoD. Found out that DoD uses a variable named 'spawnflags' to assign this information. Actually not just this, but also the fact that the object can be destroyed only by the rocket launcher for example. I ran into problem that some objects have also other flags that I'm unable to guess. I got an idea to try checking the FGD file for mappers. That helped me to understand only one unknown flag. The 'object_cap_only' that is used on the bridge on map Escape. The other one that is used on some of the watch towers and bunkers on map Forest is still mystery. There's a value 1536 which is a sum of 1024 and 512 where 512 is the "rocket launcher only" flag. And that leaves 1024 (i.e. 2^10) as the unknown flag. Hopefully it won't lead to a new serious bug. Anyways the one team only breakable objects are fixed now as I was able to guess the right tags ... which I got confirmed later on by looking in that FGD file. Could have saved myself some time if I got the idea to check this file earlier, but the one team only and rocket launcher only flags were quite easy to guess. I mean you see the value on the Cromwell tanks is 544 (i.e. 512 + 32) and you can destroy them only by Panzerschreck. Then the breakable objects for Allies on map Glider have 'spawnflags' values set to 528 (i.e. 512 + 16). It's not that hard to figure it out :).
While gathering and checking the data on map Forest I've found another of these imperfections. And that is a problem with the way how do the roadblock waypoints work. I mean the fact that you can't use them in a way how Martee tried to use them to get bots through the breakable bunkers. Most of them would start working once you reposition those waypoints a bit. The waypoint can be several units above the ground and the bot will still pass through it normally. So like I said after playing with the position of both roadblock waypoints in each pair I got them all to work correctly. Well all but one pair. The pair that is used to get the bots into the bunker from the roof, after the roof has been destroyed of course. This is used on 3rd bunker from the allied spawn area. The problem with this spot is that the checks making the roadblock waypoints work will prevent such usage. The first check that goes directly from one roadblock waypoint to the other one along the path beam will pass once the roof is gone. But the second check that follows will fail and prevent opening the path. The second check tests whether there is solid ground between the roadblocks. There are up to 4 tracelines going from the path beam down into the ground. And when at least one of them returns dangerous height the whole check fails and closes the whole path. You can see how does it work in over a year old WIP video titled MB WIP Roadblock Waypoint. Therefore I've added option to use priority 1 setting on the roadblock waypoints to disable this second check. You have to use this setting on both roadblock waypoints in the pair though in order to deactivate the second check. Reason for that is fact that you can combine roadblock and claymore tags and use priority 1 on such waypoint to allow bots with explosives charge enter on such path even when it is blocked. So having to use the priority 1 setting on both roadblocks in the pair is a way to differ these two use cases and also a sort of secure confirmation you really want to disable the second check. To wrap this up once I used this new option the waypoints design used on this spot started working in a way how it was intended. So another imperfection of Marine Bot waypointing system that used to cause issues has a solution now.
Next I already started working on solution for yet another issue. Again related to breakable objects and also present on map Forest. As I mentioned the watch towers and some bunker roofs on this map, well then current state of the waypointing system makes it impossible to get the bots destroy such breakable objects, especially the watch towers. First because the option to use a shoot waypoint without adding the aim waypoint will search for breakable object in radius of only 400 units which is too low value to reach to the top of the watch tower. I don't want to increase this limit, because it would cause problems elsewhere ... on other maps. And second if you add the aim waypoint then bot treats the aim waypoints only on planar dimension otherwise you wouldn't be able to place them on top of the sandbags for example. Bot would then watch the sky above instead of incoming enemy that is in front of him. Therefore you can't get him to look up so that he can see the breakable top of the watch tower. I plan to add an option to use priority 1 setting on the aim waypoint to alter the way how does bot treat these special waypoints. You know, to keep things the same all around. I mean priority 1 simply alters default behaviour and allows the bots handle specific tasks that would be impossible normally. Like I already said I'm still at the beginning. More about this next time when I have it finished.
23 October 2024
Today I'm going to introduce updated ability to climb a ladder. Generally Marine Bot can climb the ladders quite well, but there are cases when the bots have a real trouble with this or that ladder. I mean that they can't get stick to it in order to start climbing. If they manage it then they are in strange position that can lead to falling from the ladder and getting hurt. And sometimes they aren't able to climb such ladder at all. If anything of that happens then it's almost always on a ladder that is at angle. Standard ladders that go straight up don't cause those problems ... well usually they don't. Therefore when I finally got to fixing the ancient bug in navigation where the bots do not treat ladder waypoints with needed precision, I've also added a new option to use priority 1 setting on ladder waypoints. Such setting will trigger alternative behaviour during the climbing which allows the bots to deal with mentioned problems on those specific ladders. You can see the results in a new video @marinebotofficial titled MB WIP Updated ability to climb a ladder. Oh by the way using the priority 1 setting on all ladders won't work. Like I said most ladders do work with standard behaviour. And this alternative one will actually make things worse on such ladders. So the rule of the thumb is use standard way of waypointing the ladders, and if you see the bots keep having troubles with this or that ladder then try this new option. Chances are that it will fix it.
- Improved the ability to climb ladders (previously the bot was able to literally skip the ladder waypoints and thus lose needed precision while climbing it, related part of the navigation code was fixed so now the bot is passing through ladder waypoints correctly; next there is a new option to use priority 1 on a ladder waypoint to alter standard behaviour in a way to allow bot climb a ladder that is at angle, because such ladders often caused problems unlike the straight ones that usually work quite well; and last there was added a new code that resets ladder waypoint range back to default 20 units for the check whether the bot reached it already or not yet - i.e. to maintain the new level of precision without having to change waypoints data - the reset is done only for the test within the navigation code and affects only ladder waypoints where the waypoints creator forgot that a ladder waypoint should be left at default range setting)
18 October 2024
As I promised last time here are the details about updated grenade usage. There were couple problems that effectively prevented the bot from using the grenades. The fact that bots were able to at least select them was actually a result of lucky events than a properly working code. Very similar it is in mod Firearms where the bot actually is able to throw the grenade, but in fact it is a series of bugs that coincidentally make it work. The reason why it sort of works is because you must remove the safety pin on the grenade first, which is a feature of the latest 3 versions of mod Firearms. This means you have to press the attack button twice in order to throw the grenade. First one will remove the safety pin and then the second one will throw the grenade. Pressing the attack button twice allows the bot to enter sort of a loop that in the end leads to throwing the grenade.
Returning back to Marine Bot for Day of Defeat the first problem is that DoD doesn't call certain engine function during player spawn. Marine Bot is using this function to assign crucial variables that allow grenade usage. So I used the feature of Marine Bot for Firearms that allows him to deal with some maps where the grenades are available as a map item that you can take, similar to the bazooka or the explosives charge in DoD. Next the bot must be able to deal with an option of being equipped with multiple grenade types that are available in mod Firearms. Therefore there is a specific code that gets called when the bot checks his ammunition reserves. This way the bot is able to determine whether he still has any grenade left or whether he didn't manage to pickup the grenade again after the respawn or depleted them all already. This code is present in DoD version of MB too so I simply tell the bot he depleted all grenades at the end of respawn functions and the first check for ammunition, that gets called soon after the bot respawns, makes the grenades available for any class that is equipped with them. Then I fixed the bug with resetting the grenade use time which was what made the bot return back to firearm before he threw the grenade. By resetting the grenade time I basically sent two events to the game engine at the same moment, i.e. throw the grenade and select new weapon. And it seems the game engine does process the select new weapon event first. Fixing that revealed another bug though :). Now the bot kept throwing both grenades. I mean when he decided to throw a grenade then he threw one and immediately the other one too. So I again used the trick with telling him he depleted all grenades. I mean that I've added a simple code that in 95% of the time will set the grenades are depleted flag right at the moment the bot is throwing the first grenade. This makes the bot throw only one grenade per battle now. Once the battle ends the bot returns back to navigation and then the check for ammunition reserves gets called. The check for ammunition is a timed event that gets called regularly which, like I already said, can make the grenades available again if the bot still has at least one.
Next I also reworked the way how the bot can use the grenades in general. Now he's able to throw a grenade even when he lost visual contact with the enemy. This means that if you hide behind a sandbag or corner then the bot may decide to throw a grenade at you. So you are no longer safe there. And finally I've changed the hard coded percentage to use a grenade to a user defined via the configuration file. Much like the headshot percentage that already is there. The difference is that there is no default built-in setting. So if you set the value to -1 then you won't disable only this external variable, but you will make the bots stop using the grenades completely. Setting the value to 0 will make the bots stop using grenades when they have enough ammo for the main weapon, but once they deplete it and will be left with only the secondary weapon they will also consider throwing a grenade at the enemy. And everything between 1 and 100 is the exact percentage chance to throw a grenade at the enemy. Where when the bot runs out of ammo for the main weapon the chance to use a grenade increases by a lot. This is the description taken from 'marine.cfg'.
# Grenade Use Percentage
# This setting determines how much will the bot try to use a grenade
# against the enemy. If the bot runs out of ammunition for the main weapon
# then there is 35 added to listed value. Means that the bot will try to use
# the grenade a lot more than when he had enough ammo. Setting it to value -1
# will disable the decision making so the bots will never use the grenades.
# Any value between 0 and 100 will set exact percentage chance for all bots.
# This doesn't mean bots will always throw all grenades they have. Most of the
# time once the bot throws a grenade he will keep the other grenade/s for
# another battle. Also there is a hard coded period of time on the check whether
# to use a grenade. Where the best skilled bots will try to use a grenade
# significantly more often than the worst skilled bots.
#
# allowed values: -1, 0-100
# default value is: 25
grenade_use_percentage "25"
And this summarizes all the changes.
- Improved the ability to use a grenade (bot can now try to throw a grenade at the enemy at which he just lost direct visibility and is waiting for him to become visible again; next added 'grenade_use_percentage' variable to configuration file to allow user defined usage including full disable; the use times were changed so that the 'primary_base_delay' in the file matching the mod version inside 'weapons' folder is now used also for both the selection as well as safety pin removal where needed, also most of the time the bot won't throw multiple grenades one after the other but he will keep additional grenades for later use; the min safe and max effective distances in the external file in 'weapons' folder have been reduced because grenades cannot be thrown that far in DoD under normal circumstances; fixed the actions while aiming with the grenade which improved overall accuracy somewhat; and finally fixed the bugs that prevented grenade usage in general where everything started with the fact that DoD doesn't call certain engine function during player spawn so bot didn't get assigned crucial variables and thus didn't know whether he has any grenade or not)
12 October 2024
Just like previous version release I've continued working on Marine Bot during the final testing. Did another step in source code clean up. That resulted in addition of two new files where I moved the Console Output code. Then fixed some small issues with HUD text or console output formatting. You know those that I mentioned in previous news updates. Also added a new warning for 'wpt checkproblems' command about range setting for door, usedoor and ladder waypoint types. And fixed bugs in 'wpt reset' command where the option to use multiple arguments didn't work at all. Basically all of that are low priority issues, but I do note them down and do fix them when I find a good moment for it. Next thing is something which already is a bit more important. I've mentioned it in the last WIP video. Also talked about it in news posted on the 27th December 2023 and it has also been added to Waypointing manual soon after. It is the problem with aiming at the aim waypoint in certain cases. Cases when the bot must be very precise while trying to target the aim waypoint used next to a 'claymore' or a 'shoot' waypoints in mod Firearms. And mostly only the 'shoot' waypoint when it comes to Day of Defeat. Like I said in the last WIP video I've had an idea for a solution how to fix it and now this patch is finally implemented. You can see for yourself in a short clip @marinebotofficial titled MB WIP New solution for certain aim waypoints. I also changed the error message related to this. The part about moving the aim waypoint has been dropped of it ... seeing the bot does it on his own. To be honest I haven't had this logged once since implementing the patch. And I've done quite a few tests already. Doesn't mean it can't happen, but it seems the chance is pretty slim now. Lastly I've started working on fixing the grenade usage. But more about it some other time. When I'll have more details to tell. Currently I'm really at the beginning where I'm collecting the data what to change and/or add in order to fix it.
4 October 2024
Marine Bot 0.96.7b a.k.a. Test version 7 for Day of Defeat 1.3 is released. Head over to 'FILES' and scroll down to 'Marine Bot ports for different Half-Life 1 mods' where you will find the two usual files, one is the universal gamer package and the other file is the source code for anyone who needs it. If you are new to Marine Bot then don't forget that beside the gamer package you will also need to download the waypoints (which are in the same section of the page) in order to allow bots navigate on the maps. This is the list of all new or changed features and fixes.
- Added client command 'check_bots' with alias 'checkbots' (this command allows you to get basic behaviour data about the bot, especially useful for waypoint testing so that you know what will the bot do, the argument can be 'all' or 'used' which work the same, in this case, and both will print a list of all bots in the game with their data, then you can use unique or partial part of the name to print the data for that particular bot, or number which again points to one particular bot - e.g. 1 will print data for the first bot added to the game, finally if you don't use any argument then it will print data for the first bot added to game too)
- Added client commands 'check_capture_areas' with aliases 'checkcaptureareas', 'checkcapareas' and 'check_control_points' with aliases 'checkcontrolpoints', 'checkconpoints' (both are showcased in one of the Work In Progress videos @marinebotoffical, both commands are meant to help waypoints creator see what was MB system able to gather from the map, i.e. whether the automated path tags will work or not and whether the bots will behave correctly or not, in other words if the data presented by the commands are relevant to what you can do in the game then everything should work well otherwise the map uses a setup that MB system cannot decode)
- Added 'hudtext_line_length' as a configuration variable (allows you to specify the maximum length for a line of HUD text that MB messaging system will try to maintain by dropping unimportant parts of info from the message, full message should be available in the console, limiting the HUD text may be useful if the game runs in low screen resolution where the HUD text may go beyond the edge of the screen and become unreadable thanks to HUD text being pretty big in Day of Defeat, by default this is set to 80 characters which is a limiting value in mod Firearms, anything longer than that makes the game crash, in Day of Defeat you can go up to value 140, which is set as the maximum)
- Added new warning for 'wpt checkproblems' command (newly you will get a warning if there is a shoot waypoint with priority setting 1 for one of the teams, this warning says that priority 1 disables the search for breakable objects and won't make the bot switch to other weapon; basically it is a rephrased note that is listed in the HTML waypointing manual in a chapter with waypoint types description)
- Changed assigning "go for the map goals" behaviour type (the classes Staff Sergeant and Master Sergeant, their counterparts on Axis side and Sergeant Major in British Troops will be assigned this behaviour in about 80% of the time now, rest of the classes is unchanged, they will be assigned this behaviour based on main behaviour type - i.e. attacker has 20%, defender has 55% and standard has 33% chance to get this behaviour soon after each respawn)
- Changed Capture Areas and Control Points management (at first increased the limits from 8 to 12 areas/points the system can process - i.e. maps with up to 12 flags are possible now, second in the external file with custom data for Capture Areas is now allowed a setting to 0 for the number of players needed to capture which will then make bots ignore such Capture Area, third the other type of Capture Areas - those that are based around planting the explosives are now processed too - i.e. automated path tags work correctly now also on maps like Charlie or Escape, and fourth these automated path tags are being reset when you load the waypoints in order to prevent unwanted bugs in cases when the entities on the map got updated - e.g. some Control Point or Capture Area was changed to different default owner or whether it can be captured by one or the other team)
- Changed decision making about team goal paths in bot navigation (there was a change in assigning a value to goal paths as a result of the addition of processing the Capture Areas that are based on planting the explosives charge and subsequent change in the navigation code responsible for deciding about reachability of such goals - where bot must ignore these goals when he isn't equipped with any explosives; previously a team goal path had higher value even for bots that weren't trying to reach the map goals, this is changed now and most of the time there is a real difference between a bot that wants to reach goal and one that doesn't)
- Changed waypoints display feature (fixed missing check for visibility of the waypoint which then lead to displaying waypoints that couldn't be seen at all - e.g. behind wall - which resulted in overloading the game engine and possible game crash, next added a system to limit displaying the number of the same path beams between same two path waypoints, also added synchronization to redrawing the path beams to path finishing function, alongside the updates to display times of waypoints, ranges, aim & cross connections this removed the need for the system to keep going through all the waypoints and paths and check which one of them needs to be redrawn in every game frame, now this is done only once every 0.5 second but can be modified via the client commands 'wpt display_time' and 'pathwpt display_time', together with already present waypoints draw distance feature this can help with the waypoints flickering in complex map locations where the game engine often reaches its rendering limits)
- Improved navigation (bot can detect a combination of 'pushpoint' + 'claymore' waypoint that has been used at DoD Control Point to behave the same way as if the goal was build using a Capture Area; it means that such path will stay closed to all bots that don't carry explosives charge, but will open to bots equipped with the charge to fulfill the map goal - i.e. blow the goal object)
- FIXED "Message name too long: ScoreInfoLong" error in DoD 1.3 (DoD is registering these engine messages every time any client respawns and because the name of this message exceeds the limit set on the length of the message, engine sends the error to both consoles - client as well as dedicated server one, now there is a simple patch that renames this message to just "ScoreInfoL" before passing it to the engine, if there is any code behind this message in DoD 1.3 then it won't start miraculously working, but at least the errors are gone for good)
- FIXED corrupted output for 'pathwpt printall' command (bugs and limitations prevented printing correct output for any path that had too many additional path tags marked as 'misc', now whenever a line of the output would exceed the limit for the engine Text Message the output is split in parts that are printed separately so the final output to the console is correctly formatted)
- FIXED missing anti-armor option for 'pathwpt highlight' command (after the addition of anti-armor path type the option to display only these paths was added to MB menu but the console command wasn't updated, that's fixed now and you can use both antiarmor as well as anti-armor as the argument for this command, actually there are multiple aliases defined for all highlighting options e.g. sniper, sniperonly and sniper-only)
- FIXED incorrect printing of warning a wait-time too short on a shoot waypoint for 'wpt checkproblems' command (it kept printing the warning even when the time was set to zero, which means you got this warning on shoot waypoints that were designed only for one team)
- FIXED unreadable message when the fancy HUD text used by waypointing commands exceeded certain length of the text line (the commands such as wpt info or pathwpt info are using the HUD text that is displayed in top left corner of the screen, however once the number of tags on both the waypoint or the path reach certain amount the HUD text goes beyond the edge of the screen and the message cannot be read, in mod Firearms the game crashes upon reaching certain length of the HUD text line, so now there's a new feature where you'll see 3 dots at the end of the list of tags whenever there's a chance that the line of HUD text would have been too long, in such case check the console where you'll find full info about the waypoint or path)
Known issues.
- Bots don't throw grenades (they prepare it, but then get back to firearm without throwing the grenade)
More details to some of the items on the list can be found in older updates to this page, just scroll down and read and watch if you are interested. Either way around I hope you'll enjoy this new version of Marine Bot for DoD.
1 October 2024
Today I'm going to introduce another new feature of the upcoming Test version 7. Three actually. It is something I've started working on while I did the final testing of Test version 6. I mean when the Dedicated Server was up and running the final test of stability of the release build. This usually lasts for at least two days. So I used the source code for Marine Bot for Firearms to begin the work on these features. First because I didn't want to mess the source code of something I'm about to release in next couple days. Second because doing a quick test in Firearms takes way less time than in Day of Defeat due to those warm up/round start times that are used in DoD. And third this is actually crucial for Firearms, because this mod will crash if you don't use the fancy HUD text in quite specific way. As you know Marine Bot is using these HUD text messages quite a lot, especially when it comes to waypointing. This means Day of Defeat is affected by it too. However DoD won't crash, but there are cases when the HUD text can also cause issues, because the HUD text in DoD is really huge. Therefore the following feature has been added to Marine Bot.
- Added 'hudtext_line_length' as a configuration variable (allows you to specify the maximum length for a line of HUD text that MB messaging system will try to maintain by dropping unimportant parts of info from the message, full message should be available in the console, limiting the HUD text may be useful if the game runs in low screen resolution where the HUD text may go beyond the edge of the screen and become unreadable thanks to HUD text being pretty big in Day of Defeat, by default this is set to 80 characters which is a limiting value in mod Firearms, anything longer than that makes the game crash, in Day of Defeat you can go up to value 140, which is set as the maximum)
On this picture you can see how does it look in the game. It's a merged screenshot of two 'wpt info more' command usages. On the upper HUD text message this feature dropped the "flags/" string from the first line of the text otherwise that text line would have exceeded 80 characters and Firearms would have crashed. The bottom HUD text message had to be processed even more. I've added one more tag to that waypoint and the first text line of the message was over 80 characters again. So the new feature had to use another trick to prevent crashing the game. This time the feature had to shorten the list of tags and add the 3 dots to its end to tell the user that there are more tags than what can be displayed. This is how it looks in the source code. Chance that you would have that many tags on one waypoint is low. Actually this particular combination of tags makes no sense. But without this new feature doing something like this meant crashing the game and I don't want Marine Bot crashing the game.
If you viewed the source code snippet then the last few lines aren't related to HUD text processing, but to another new feature. It's a patch for corrupted console output that may happen with some commands. Yet again it's a result of too many tags on either waypoint or path. Standard function in Half-Life engine that handles printing to client console can print only 128 characters. And if the last character isn't a newline then next printing will continue where the previous did end. So all these formatted outputs are prone to be corrupted whenever the text line exceeds that limit. Therefore I had to write my own function that can deal with messages that can be longer than 128 characters. And then used it on all vulnerable places in the code. Again this is something I know that happens in mod Firearms. Not sure if any currently available waypoints for Day of Defeat can cause it too.
- FIXED corrupted output for 'pathwpt printall' command (bugs and limitations prevented printing correct output for any path that had too many additional path tags marked as 'misc', now whenever a line of the output would exceed the limit for the engine Text Message the output is split in parts that are printed separately so the final output to the console is correctly formatted)
Now let's see how does the HUD text processing look in Day of Defeat, specifically on Linux client. By the way notice the different formatting between Windows (previous picture from Firearms) and Linux (following picture), the leading space on lines 2, 3 and 4. It's a tab space (i.e. \t) in the source code, but each system handles it different. This will have to be dealt in one of the future versions. So this picture was taken on my other laptop where I'm testing Linux builds when I don't have the time or will to boot the desktop PC and copy everything over there. It's a small laptop with 13.5 or maybe 14 inch FullHD screen. But for the game I'm using 4:3 aspect ratio so the resolution is 1400 x 1050. As you can see the HUD text message takes almost full width. And this is already processed message. The "(1-highest)" string has been removed. Without that processing that line would have gone beyond the edge of the screen and may not have been fully readable. This is the part of source code that does it, although the message building part, i.e. the first couple lines, will be changed in future due to having redundant code. Either way it's just a few lines below the original code snippet. As you can see in the code if the first removing wasn't enough then the "/guard" string would have been removed too. If you are interested in the code of the two functions that do the processing itself, then this is the one doing the shortening and this one is doing the removing. No rocket science, really :).
By the way the second merged screenshot shows also another new addition. It's shown on the console output. While I was doing the game testing on map Jagd I've noticed that there are bugs in these waypoints. I mean Axis bots can't win the map, because the 'shoot' waypoints near the Cromwell tanks have assigned priority 1. If you read the HTML waypointing manual, the chapter describing the waypoint types, then you'll find that such setting is meant for non breakable objects. Therefore I've added a new warning for 'wpt checkproblems' command to point at such waypoint if it is found in the waypoints. So if you want to fix it in your game then set default priority 5 for team Axis on all 3 'shoot' waypoints and save the waypoints. Then the Axis bots will start destroying the tanks.
- Added new warning for 'wpt checkproblems' command (newly you will get a warning if there is a shoot waypoint with priority setting 1 for one of the teams, this warning says that priority 1 disables the search for breakable objects and won't make the bot switch to other weapon; basically it is a rephrased note that is listed in the HTML waypointing manual in a chapter with waypoint types description)
28 September 2024
The video from testing the updated behaviour on the newly processed Capture Areas where you are tasked to plant the explosives charge is uploaded @marinebotofficial now, MB WIP Test of updated behaviour on goals requiring explosives incl. pushpoint+claymore. First you'll see a bot that doesn't have the Satchel charge. He's avoiding the goals, because that's what the updated behaviour is about. In other words if the bot doesn't have the "tools" then he isn't going to visit such goal. The second part of the video shows a bot when he has the Satchel charge. How does his behaviour change and how does he behave once the goal has been taken by his team. Finally the third part of the video shows basically the same, but on a goal that isn't based on Capture Area, but a func_breakable linked to the Control Point was used instead. To waypoint such goal you will need to add the 'claymore' tag to standard 'pushpoint' waypoint. This combination will trigger the same behaviour as is applied when there is a 'pushpoint' used in the "plant the explosives" Capture Area. In other words the bot will then behave the same way as you can see in the first two parts of this video.
To sum it up. Or better to say make it clear, because these DoD specific points aren't part of the HTML waypointing manual. Whenever the goal is based on Capture Area you will need just the standard 'pushpoint' waypoint. What type of the goal is it will the bot find from the records you could have seen in previous video about the 'check_capture_areas' and 'check_control_points' commands. If the goal is just a standard flag (the Control Point) then you will need only the 'pushpoint' waypoint again. Finally if the goal is based on breakable object, but there isn't any Capture Area, then you will have to use the combination of 'pushpoint' and 'claymore' tags on the waypoint to allow the bot behave correctly. If you aren't sure how was this or that map goal created, you can use command 'wpt detect' on the waypoint you've placed at the goal. This command will list all game entities around this waypoint. So you'll be able to see whether it is a Capture Area or not.
23 September 2024
Uploaded a new video @marinebotofficial named MB WIP Client commands to check capture areas and control points. It's a test of the two new client commands to check whether Marine Bot system was able to gather correct data about Capture Areas and Control Points. You know the issue on map Jagd is perfect example of where these commands would be useful. Well if they had been already present in current MB version. So here they are now ... actually will be once Test version 7 is out to public. Originally development build only commands have been updated and will be available to all users. Doesn't matter whether you are waypoints creator that needs to know if the bots are going to react to your waypoints the way you want. Or if you are a gamer who witnessed bots doing something strange and wants to find why are they behaving that way. These commands will show you what the bots know about the map and the objectives on it.
Next I'm going to do a full test of how the bots behave at the newly added "plant the explosives charge here" Capture Areas. Like I said last time I did just a few basic tests after fixing the bugs of the initial implementation, but haven't had chance to do a thorough testing. Well that is partly a good thing, because since then I've implemented another new feature. Bots will now be able to handle even a goal that requires planting the explosives charge and that is based on Control Point entity instead of Capture Area. In other words the Bridge on map Escape. I've added check for a combination of 'pushpoint' and 'claymore' waypoint tags that will trigger the same behaviour as if a bot was dealing with a goal such as the Nebelwerfers or the objectives on map Charlie. I'll surely record a video, because that usually explains it better than a plain text.
18 September 2024
As I continued testing the changes I believe I've finally deciphered the Capture Areas mystery. I mean that the fix I've shown yesterday is no longer needed. I moved onto testing the Capture Areas based on planting the explosives charge and found an issue where the bots kept trying to capture them even when they didn't have explosives charge. I said okay I will add simple 'if' statement to navigation code to make them ignore the area if they don't have any explosives charge. That worked and they didn't stop at such area anymore. However they still returned to that area. The functions that gather the data from waypoints for the navigation code didn't have access to all the information needed to provide reliable results. As I tried to figure out how to fix that I did another round of heavy engine debugging. You know, I let MB system dump a lot of the data that the engine is processing. And while I was going through the text files and checking this and that and comparing it with something else, I found that the way I filter out the Capture Areas has a flaw. I was using a key value titled 'area_hud_sprite' with a string value which includes a "caparea.spr" to say that that area is a standard capture the flag area and a 'area_hud_sprite' with any other string was an area where you have to plant the explosives charge. This worked on all maps I tested so far. But on Jagd this failed. That's the reason why the bots are getting stuck at the Command Center. By comparing the text dumps I believe I've finally found the right key value that makes the difference between the two types of Capture Areas. This key value is titled 'area_object_group'. And in case of area where you have to plant an explosives charge it points to a 'dod_object' entity that is the Satchel charge, or better to say typically to a group of such entities. On Jagd it points to 'dod_object' that is the documents. And on standard "capture the flag" Capture Area this key value isn't used at all. Put everything together. Returned to previous code to do minor tweaks such as looking for different key value. Modified also the 'if' statement in the navigation code where I'm not checking for specifically the explosives charge but instead for a goal item in general. Because when the bot gets the explosives charge or the documents then internally both are flagged as a goal item, where the explosives charge is marked by additional flag to differ the two. Compiled the code and did some early testing. I wasn't able to do much more, because this stupid cold or flu or whatever it is chased me away from it. Had to lay down and rest. But in those few quick tests all looked good. I mean that now the bots don't visit the "plant the explosives charge" Capture Areas if they don't have the Satchel. Well unless you force them to do so via the priority settings on waypoints. Also the Command Center doesn't make bots stuck anymore. Will have to do more testing of course. As you can see things aren't always as clear as certain someone *cough* me *cough* may think :).
If you want to taste the madness with the text dumps look at this picture where are 4 different Capture Areas side by side. Can you see the fun in finding the right key value there? ;) Actually it's not that bad, just depressing sometimes. Especially when all looks good, but at one particular moment it breaks down. Then you have to go all the way back and start anew. You wouldn't want to hear my vocabulary at such moment lol.
Oh by the way I'll keep the zero value option for the external file with custom data for Capture Areas. You never know. Maybe there is a map or are some maps where current system may not work so having such option may come useful. Besides it doesn't seem to cause any issues. So unless I get a bug report from someone that it crashes the game, it will stay in the code.
17 September 2024
As soon as I started testing the ScoreInfoLong message patch I found that the Capture Areas are still causing issues. On map Jagd is a Capture Area that can only be taken when you carry the documents. But other than that it looks like a standard Capture Area. So whenever a bot steps into it he gets stuck there forever. You know the area tells him it needs 1 man to capture so the bot simply stops there and tries to capture it. Which will never happen though. I've used the fact that Marine Bot for DoD already has a feature to modify the Capture Areas via the external file. So since Test version number 7 you will have an option to use a value zero in that external file to basically disable such Capture Area for bots from that team. I mean the bots will pass through it like if it wasn't even there. There's a new video @marinebotofficial titled MB WIP Addition to modifying the capture area that shows how does it work. I've done a few more changes that are related to Capture Areas, but I haven't had time to fully test them yet. So just briefly.
- Added client commands 'check_capture_areas' with aliases 'checkcaptureareas', 'checkcapareas' and 'check_control_points' with aliases 'checkcontrolpoints', 'checkconpoints' (both are shown in those Work In Progress videos @marinebotoffical, some slight changes were done to them though, these are meant to help waypoint creators see what was MB system able to gather from the map, i.e. whether the automated path tags will work or not and whether the bots will behave correctly or not, in other words if the data presented by the commands are relevant to what you can do in the game then everything should work well otherwise the map uses a setup that MB system cannot decode)
- Changed Capture Areas and Control Points management (at first increased the limits from 8 to 12 areas/points the system can process - i.e. maps with up to 12 flags are possible now, second in the external file with custom data for Capture Areas is now allowed a setting to 0 for the number of players needed to capture which will then make bots ignore such Capture Area, third the other type of Capture Areas - those that are based around planting the explosives are now processed too - i.e. automated path tags work correctly even on maps like Charlie or Escape, and fourth these automated path tags are being reset when you load the waypoints in order to prevent unwanted bugs in cases when the entities on the map got updated - e.g. some Control Point or Capture Area was changed to different default owner or whether it can be captured by one or the other team)
6 September 2024
When I ran that usual final testing Dedicated Server before last release I was really tired of those "Message name too long: ScoreInfoLong" errors. So since the release I did several testing with engine debugging turned on and it seems that "ScoreInfoLong" message isn't called at all. Well even if it was called it would most probably fail anyway seeing this engine message isn't registered properly and returns value 0. Obvious reason for that is fact that the message name is as the error says too long. I was playing with this message name in the function that does register them and the size of a variable for the name for any engine message seems to be limited to 12 characters. The other messages DoD uses are within that limit. No idea why this one isn't. Another crazy thing about this is that DoD is registering these messages every time any client spawns. Not only the first time the client joins the game, but every respawn after being killed. So that is why there are so many of them on the console. By the way if I remember it right mod Firearms does register these messages only once, when the server starts. Anyway after I learned all the details I wrote a simple patch to get rid of this error. The trick is that I'm simply checking for the name "ScoreInfoLong" at the beginning of the function that registers these messages and when the name matches I change it to "ScoreInfoL" in order to make it fit the limits. Then I pass this shortened name to the engine. It gets registered without issues of course. Means there are no errors at all now. Sure the message can never be found this way, because the names don't match. But my gut tells me it never worked anyways. Although I'll rather do more testing to be sure it won't make the game crash.
30 August 2024
Marine Bot 0.96.6b[DOD]-Test6 is out now. Again it's more of a bugs fixing kind of thing. But you know how it is. Busy summer for me. Actually I quit my job. Maybe you remember some of my remarks about stupid work and such like. Lately the level of bullying there was simply too much for me to stand it. So since the start of August I'm unemployed. Relieved and pretty happy to be honest. This doesn't mean I have free time all of the sudden now, but I'm able to find a free while for coding here and there. So there's a new test version of Marine Bot for Day of Defeat. Both zip archives, the universal gamer package and the source code, are as always available for download at 'FILES' -> 'Marine Bot ports for different Half-Life 1 mods'. The changelog follows.
- Added allied bots changing names to match the nation setup of a map (a bot with american name will change name to a random british name at the first respawn after the map changed to one with British Troops, and vice versa a bot with british name will change his name to american when the map changes to one with US Army)
- FIXED bug in reading bot names from the external file on Linux (after several recruiting and bot kicking the bots started using general names in a form of 'marine' followed by two digits, this was due to a fact that there was no code to handle the differences in newline characters between Windows and Linux systems, which resulted in cases that the name of a bot that was kicked didn't get marked as free and couldn't have been reused then, or you weren't able to kick him out of the game at all, now the names that are read from the 'marine_dog-tags.txt' are correctly stripped of newline characters on both operating systems so the name comparison check at kicking the bot out of the game works correctly and the name is marked free)
- FIXED bug with long bot names reaching or exceeding given limit on name length (ancient bug reaching back to botman's bot template where he set a constant on bot name length that is 1 character longer than what the engine variable for client name can hold, Marine Bot is of course using that constant too and has its own code based on it, this then resulted in cases where if the bot name was at given length limit then the subsequent bot name comparisons were failing, means you could have run out of free bot names after several bot recruitings and kicking out of the game, or the server could have crash, now the bot name length limit matches the engine variable size, so the max length of bot name you can use is 31 characters or 27 in case of rich names set to true, instead of 32 and 28)
- FIXED inability to use the explosives charge despite having it (the status on whether the bot has explosives charge or not was tied to wrong engine message, so whenever someone used or dropped the explosives charge then all bots that carried one at that moment wrongly reset their statuses to 'I got no bomb', therefore all of them then ignored any claymore waypoint they reached, actually this bug was present for any carried object like the battle plans on map Jagd for example, but such goal item is just one so things worked fine in such case)
Known issues.
- Bots don't throw grenades (they prepare it, but then get back to firearm without throwing the grenade)
The test Dedicated Server on Linux (Ubuntu 22.04 LTS) ran for 2 days straight. No crashes at all. Bots have been changing their names a lot as the british and american themed maps come and go. So it looks like usual stability of Marine Bot has been maintained. I mean that working with strings (bot names) is always "fun" that can easily end up with accessing invalid part of the memory and a server crash. Now I'm not sure if I tested the long bot names on DoD Dedicated Server before the fix, but testing it on Firearms Linux Dedicated Server was instant crash. Right when the first bot joined the game ... or better to say when he tried to join, because the server crashed during that process.
9 August 2024
There's a new video titled Useless junction, how to find it and deal with it @marinebotofficial. It's a waypointing tutorial for people working on waypoints for Marine Bot. I've had a plan to create such video since the time I was updating the waypoints for the release of MB 0.96b for Firearms. But as you know there was always something else that had higher priority. Finally got to it now. Still it took me over 2 weeks to finish this short clip. I believe the video is clear enough to help people who are working on the waypoints understand the issue of pointless cross waypoints that serve no purpose, and only draw system resources.
19 July 2024
Continued in long term process of updating this website. I've updated the 'SUPPORT' section with Day of Defeat 1.3 related stuff. You know Marine Bot for DoD is slightly different from the version for mod Firearms, partly because of the fact that DoD can be played natively on Linux. Therefore there are small changes in installation steps and there are new or different issues in general use. So I've split the support section to Firearms and Day of Defeat related parts on many places. Mainly the Installation and Uninstallation part and then the FAQ. Where the original explanation for mod Firearms is now followed by one that is specific to Day of Defeat. Hopefully there won't be any confusion anymore and things will be more clear and easier to understand this way.
1 July 2024
New month, new Marine Bot release. Nah seriously now. This new version, Marine Bot 0.96.5b[DOD]-Test5, is more like a hotfix than a true new version with new features. The two fixes included in this version are an issue basically only on Linux, where them both can be pretty annoying. Day of Defeat 1.3 gamers using Windows OS can safely ignore this release of Marine Bot, because neither of those two is a real issue on Windows. The Particle manager bug (see previous two news updates) happens on Windows too, but DoD 1.3 won't crash to desktop on Windows unlike on Linux. I did test it on my main laptop in Win 10 and HL steam_legacy version. Used the developer 2 and watched the console. The warning showed there several times in row after some time on map Charlie (probably those 2 mins or so). But like I said DoD didn't crash to desktop and the game continued nornally.
The source of the crash is map Charlie. This map is repeatedly creating an entity named monster_mortar which is responsible for most of the explosions on the beach. Thanks to the way bots are added to the game, I was able to add 2 lines of code to Marine Bot to kill this entity right at its creation. So there aren't as many explosions on the beach now and the Linux game client doesn't crash anymore. Due to limited free time now, I've done only like two tests with 31 bots and me on my desktop PC where I have Nobara 39. No crashes. Then I did a few more quick tests on my laptop with Ubuntu 22.04 LTS with way less bots, because that laptop cannot handle full server. But the point is there were no crashes either. The bad thing about this solution is that it disables the 3 or so weapon mortars that are available on this map and that gamer playing for team Axis can use to fire at the Allies. Hopefully I'll be able to find better solution in the future, but so far this is the only way how to prevent DoD 1.3 Linux game client from crashing to desktop.
Anyway the two usual zip archives are available for download at 'FILES' -> 'Marine Bot ports for different Half-Life 1 mods'. And this is the changelog.
- Added client command 'fix_particle_manager_crash' (allows you to activate the fix for the crash to desktop that happens on Linux game client as a result of bug in HL engine where too many particles at one moment will cause fatal error in Particle manager, this command is automatically activated in Linux build of MB when the map Charlie is loaded)
- FIXED crash of DoD 1.3 Linux game client due to "Particleman is out of memory" bug in HL engine (the entity setup on map Charlie creates monster_mortar repeatedly to add additional exlosions on the beach, but too many exlosions leads to Particle manager running out of resources which makes the game client crash to desktop, this hotfix simply kills any monster_mortar entity right at its creation which means way less exlosions on the beach and no crashes due to it, but it also means the mortar weapons for Axis team that are present on this map, don't work now, on top of that if "marinebot.so" library with this hotfix is used on Dedicated server then all clients that connect to such server will be affected by this fix, which means gamers using the DoD Linux game client won't crash anymore either)
- FIXED Axis bots using Allied names when the fillserver command was used (the system behind the fillserver command used 3 options to recruit a bot to the game based on team balance at that particular moment - to Allies, to Axis and then to random team when the teams were even, but the random team option and the subsequent process of spawning the bot sometimes caused a mismatch between the team the bot joined and the name the bot chose, so now there are only two options where the option to recruit the bot to Allied team is the default one in case when the teams are even)
Known issues.
- Bots don't throw grenades (they prepare it, but then get back to firearm without throwing the grenade)
As the changelog says the patch for the Particle manager bug in HL engine works even on Dedicated server. So if you are running a Dedicated server with Marine Bot you have two options. If you are running Linux HLDS and want to allow Linux gamers play map Charlie on your server then 'marinebot.so' library included in this release will do that automatically. The patch is activated by default on Linux upon loading map Charlie. If you are compiling your own library from the source code then this patch will again be activated by default. If you would rather have it deactivated (i.e. server not been patched for Linux gamers where they will drop from the server due to the crash on map Charlie on their client) then edit the 'dll.cpp' file in Marine Bot source code before the compilation. Go to line 639 in this file and erase all the code up to line 645 (included).
Now if you are running HLDS on Windows and wanted to have your server patched to allow Linux gamers play on it without crashing on map Charlie, then you would have to edit the source code and compile your own 'marine_bot.dll' library. In this case go to line 645 in 'dll.cpp' file and erase just that line. Then return to line 639 and again erase just that line. Doing so will make the previously Linux only code compile on Windows too. So your 'marine_bot.dll' will then have the patch activated by default as well. Just be sure to compile it as 'Release', because if I'm not mistaken MS Visual Studio activates 'Debug' compilation option by default. You don't want to have debugging library on your server. No matter which OS you are running, patched server will have disabled the 3 weapon mortars on map Charlie. This is the drawback of this hotfix. So it's your choice what do you want.
22 June 2024
This is an update to the topic of a crash of Day of Defeat 1.3 Linux client on map Charlie I mentioned yesterday. I've been googling yesterday late evening, well okay it was almost midnight :). And I found pretty old issue #1447 on Valve official Half-Life github. Earlier this morning I tried what Sam Vanheer suggested there. With the exception that I used those commands as standard console commands when I was already in the game, easier way for a one time test.

Guess what, this is it. Check this screenshot from my Linux laptop right after the crash on map Charlie. I have a feeling this particular crash occurred sooner than after those 2 minutes and 10 seconds like all previous crashes I experienced in previous tests. But that doesn't really matter. Fact is this finally proves there really is a bug in DoD 1.3 Linux client. It's odd that Valve Software, a company that's quite anti Windows, leaves a bug in Linux version of their own product for such long time while Windows version works well. Guess this wraps it up.
21 June 2024
As you already know real life is taking basically all my time now so there is no development going on. Only some small things here and there. One of such is a small update to this site. The 'FILES' section has a new download link to zipped version of HLSDK version 2.3. Useful to all of you who want to or need to compile own Marine Bot library. Then I also updated the 'SUPPORT' section. Added the links to the two new YT clips showing you how to install Marine Bot for Day of Defeat 1.3 on Linux system. Also updated the FAQ with some new or clarified information. Speaking of DoD 1.3 on Linux I've done a few more tests of map Charlie on top of those discussed in comments to MB installation on Ubuntu YT clip. You know, the crashes to desktop on this map around round time 9:50 when you run DoD 1.3 on Linux system. Trying to use Metamod to run client game of DoD on Linux didn't help with those crashes. Starting a DoD Dedicated Server on my laptop with Linux and then connecting to this server from the desktop PC from Linux didn't prevent crashing the game on map Charlie either. So now I'm quite certain that there really is something totally messed up on this map that makes the Day of Defeat 1.3 client on Linux crash after those 2 minutes and 10 seconds of gameplay.
Also I wanted to share something really impressive. Look at the following picture. When I was to upload the updates, I logged to administration and saw these stats. Had to edit the picture to "translate" it to english, because this free web hosting service is only in czech. But over 1300 views in one day. I have no idea what was going on and I don't know how do they count it, but it's an impressive value for sure. I don't remember I've ever seen anything like that or at least close to that value in the past. Just WOW!

2 June 2024
Okay last Sunday Czech Republic won the 2024 IIHF Ice Hockey World Championship. We are the champions! Yay! So I could resume the work on Marine Bot. And today is the day when Marine Bot 0.96.4b (a.k.a. Test version 4) for Day of Defeat 1.3 is being released. There are the usual two zip packages. The universal gamer package for both systems, the Windows as well as Linux, that allows you to play DoD with MB locally on your computer as well as start a Dedicated Server. And then the source code package for people who want to or need to compile their own Marine Bot library. You already know where to get them, the 'FILES' section and scroll down to 'Marine Bot ports for different Half-Life 1 mods'. The changelog follows.
- Bot will react to Voice commands now ("I need backup" - will make up to 3 bots start following you, but if they enter a combat mode they will stop following you, "Hold this position" - will make surrounding bots including those that are following you to stop and wait from 5 to 90 seconds based on their behaviour and their weapon, attackers will wait only for a short moment while defenders will wait longer at that position, "Go go go" - will make surrounding bots break the waiting, including the standard waiting at a waypoint, "Use the bazooka" - will make anti-armor specialist bot stop and destroy all breakable object in the vicinity, "I need ammo" - a bot that still has the extra ammo will drop it towards you and will also wait for a while near you in order not to pick the ammo up again)
- Bot will react to Hand signals now ("Hold this position" - works the same as Voice command but on much longer distance and you must be in bot's field of view)
- Added client command 'generate_capture_areas_file' (activates a mode where MB system will gather data about capture areas during a map load in order to create a new configuration file for that map inside 'mapcfgs', once the map loads and the file is created this feature automatically turns off, if there already is a file for that map then this feature won't do anything and will just turn off, this means existing .cfg files are protected this way)
- Added 'change_capture_areas' as a Dedicated and Listen Server commands (by default it's turned on, allows you to activate or deactivate the use of the alternative data for the capture areas defined in the .cfg files inside 'mapcfgs' folder, this is sort of a static switch, which means it stays set the way you choose for the whole time the server is running or till you change it again, it doesn't get reset on map change)
- Added 'change_start_positions' as a Dedicated and Listen Server commands (by default it's turned on, allows you to activate or deactivate the use of the alternative start positions defined in the .cfg files inside 'mapcfgs' folder, this is sort of a static switch, which means it stays set the way you choose for the whole time the server is running or till you change it again, it doesn't get reset on map change)
- Added new client command 'wpt loadfirearmsversion' (useful on maps that have been converted from mod Firearms, allows loading original waypoints for such map and removes waypoint tags that are specific to mod Firearms from these waypoints, also you should then check waypoints for errors that will be present as a result of such conversion, also the Triggers will not work due to the fact that there is nothing like Red Team/Force or Blue Team/Force in DoD, you would have to change the trigger event messages to activate them again)
- Added new waypoint repair command 'swapteams' (swaps all team based waypoint data - priority setting, wait times, team based path tags - which allows an easy way to use existing waypoints on various modified maps where the teams positions were exchanged)
- Improved unstuck behaviour (when bot gets stuck on ladder where he is unable to continue climbing it in one direction, he'll try to return back to the start of his current path, one-way path won't allow this behaviour though)
- Updated the alternative player start points feature (unused in DoD until now, no longer a hard coded feature, now you can create an external configuration file in 'mapcfgs' folder in your MB installation where you can define alternative coordinates for the player start points a.k.a. spawnpoints, this file has to have a name matching the name of the map for which it is intended plus _startpoints.cfg, e.g. dod_anzio_startpoints.cfg, if such file is detected during a map load the system will automatically replace original coordinates of the player start points with those listed inside this file, if you want to return back to original player start positions just delete or rename the file so that the system cannot find a match, or set the static switch 'change_start_positions' to disabled)
- FIXED inability to switch to backup weapon when having a deployed bipod (when was bot using a machinegun and had it deployed on bipod he wasn't then able to switch to any other weapon because of a conflict with code of another recent change in bipod usage, now the variable that was causing it gets reset before changing the weapons)
- FIXED inability to correctly target a breakable object under certain conditions (bot needs to get such object in pretty narrow view cone, but if such breakable was high above the bot - e.g. a window on upper level while bot was standing next to the wall below it - bot wasn't able to reach given aim limits thus couldn't start shooting and destroy such object, now there's a exception for this case that loosens these limits a little so the bot is then able to pass this check and destroy such object)
- FIXED pathend repair function (it incorrectly turned a waypoint into a goback even if such waypoint was part of another path, so the function could actually create a new bug that way i.e. create a goback anywhere on another path - even on one way path)
Known issues.
- Bots don't throw grenades (they prepare it, but then get back to firearm without throwing the grenade)
Test Dedicated Server on Linux ran nonstop for over 2 days without single issue. Well except for reports related to a few bugs in the waypoints. I also ran couple client gaming tests on both Windows as well as on Linux to check these new features. All seemed fine and working. I especially checked the read/write operations with the new external configuration files (the custom capture areas and start positions) on Linux. You know, I do all the development on Windows. Only once in a while I boot up the laptop with Ubuntu Linux and test both Dedicated Server as well as standard game. Unlike mod Firearms the Day of Defeat 1.3 can be played on Linux natively so I have to check whether Marine Bot works natively too. I mean that specifically all the new features I add do not break it. Speaking of it. I've seen @INsanedod's recent video about using Proton to play with bots on Linux. He mentioned Marine Bot a few times, wondering its native support. Well I replied to his video, but it didn't show. No idea why. I tried to contact him via the contact form on his website. No luck either. So I'll clarify it here. Marine Bot works on Linux natively. Like I said above I keep checking it every once in a while. So if you have issues with Marine Bot on Linux check the 'Compiling Marine Bot on Linux' guide in 'LINKS' section. It should help you.
You can see there's a new known issue, the grenade usage. Well I ignored this issue during the tests, because I have a plan to completely rework this feature. I mean I'm not happy how the bots work with them. No matter whether it is in mod Firearms or in Day of Defeat. So this is something for next test version, but don't hold your breath for it. With coming summer here in Europe I won't have much time for Marine Bot development. There are some unexpected events going in my real life now. Plus relatives, specifically parents, already raised a few requests. Simply put it's going to be a busy summer for me. So don't expect much news in coming months. Either way have fun.
19 May 2024
If you wonder why there wasn't usual weekend news last weekend then the reason is limited time now. I mean that the winter is over and with the summer coming I do have more work out there on garden and around the house in general. So MB development will slow down in coming months. Besides, currently the biggest distraction is the 2024 IIHF Ice Hockey World Championship that is being held here in Czechia. Since the opening ceremony I'm watching most of the matches. Missed just those that conflict with my work schedule. Because of this there has been done no real work on the Marine Bot in past week. And there will be no work done in the next week either. I'll be cheering. LET'S GO CZECHIA! YEAH!
5 May 2024
This week I continued improving the Alternative player start positions feature to make it more user friendly, including the use on a Dedicated Server. This means there's a new command named 'change_start_positions' that allows you to switch between using the alternative spawnpoints and default spawnpoints stored in the map file. By default this command is activated. So if there is an external file with the alternative spawnpoints coordinates then Marine Bot system will automatically use them. But if you deactivate this command then the system will ignore those external files and will always use the default coordinates stored inside the map. Also this command works slightly different from most of Marine Bot commands, because it doesn't get reset to default value on each map change. This command remembers the value you choose all the time the server is active. If there are no external files with the alternative positions for the spawnpoints then this command basically does nothing. Also it doesn't mean that if you use this command then you will immediately start respawning elsewhere. No. The spawnpoints are always modified during map load. So you will have to wait till next map change or simply restart current map to see the effect of this command.
Next change is available only in MB for DoD. In one of previous news updates I've already mentioned the fact that Marine Bot system needs to gather the data about Capture Areas in order to give the bots the "knowledge" of which area needs to be captured and which is already under the control of their team. Now I decided that if there already is the code for this then it would be cool to give MB users an option to customize the Capture Areas a bit. So I've added a new feature named Alternative data for the Capture Areas. It's very similar to the Alternative player start positions feature. Marine Bot will look for a new configuration file inside the 'macfgs' folder matching the map that is currently being loaded and if there is such file it will modify the Capture Areas based on the data from the file. Currently I've added just the number of axis or allied players needed to capture such area, but if there was a real need for the other values, like time to capture it for example, then I can add that too. This feature is little easier to use than the alternative spawnpoints, because you can use a new command named 'generate_capture_areas_file' that will create the external configuration file for you. You will then just edit the values to your liking. Like for the alternative spawnpoints, there is also a global switch for this feature, that will allow you to choose between having capture areas with default data or with your custom data.
- Added 'change_start_positions' as a Dedicated and Listen Server commands (by default it's turned on, allows you to activate or deactivate the use of the alternative start positions defined in the .cfg files inside 'mapcfgs' folder, this is sort of a static switch, which means it stays set the way you choose for the whole time the server is running or till you change it again, it doesn't get reset on map change)
- Added 'change_capture_areas' as a Dedicated and Listen Server commands (by default it's turned on, allows you to activate or deactivate the use of the alternative data for the capture areas defined in the .cfg files inside 'mapcfgs' folder, this is sort of a static switch, which means it stays set the way you choose for the whole time the server is running or till you change it again, it doesn't get reset on map change)
- Added client command 'generate_capture_areas_file' (activates a mode where MB system will gather data about capture areas during a map load in order to create a new configuration file for that map inside 'mapcfgs', once the map loads and the file is created this feature automatically turns off, if there already is a file for that map then this feature won't do anything and will just turn off, this means existing .cfg files are protected this way)
If you are interested in these new changes then there is a video titled MB WIP Changes to Alternative spawnpoints and the new Alternative data for capture areas @marinebotofficial.
28 April 2024
This is something I didn't really plan ahead. It was a matter of chance. But as the ideas popped up on my mind I decided that it could be a good thing. First I randomly found that there is a Day of Defeat version of original Firearms map named ps_coldwar. Thought how could that work in DoD if there isn't any parachuting in this mod. So I downloaded it only to find out that it's really unplayable due to missing parachutes on board of that airplane. Those of you who are familiar with MB history or did scroll down this page to read through the older news already know I've dealt with the issues with parachuting in Firearms before. The solution is to change the positions of the player start points a.k.a. spawnpoints to skip the need to parachute at all. In DoD it is the only way how you can actually play this map. I just didn't want to re-add the code I scrapped when I was moving the original MB for DoD to modern MB source code. So I came with the idea to use an external file with the new coordinates for the player start points. And make it so that if such file is present then it'd be automatically used. Such system also dealt with the issues of original hard coded positions and a switch to activate or deactivate it. The new system via the external file also allows everyone to use it on any map he/she wants without me having to add new switch for such map right into the source code. So this is pretty universal solution.
When I had that in place I thought that it would be a good idea to also add a way to use original waypoints for this map. First I simply loaded them using the standard waypoint load command where you have the option to specify the name of the waypoints you want to load. However that wasn't the best thing to do, because all Firearms mod specific stuff is loaded together with the waypoints. I'm talking about the bandages or ammobox tags. Which aren't used in DoD at all. Or the claymore tag which has different purpose in DoD than how it is used in Firearms mod. So I added a new functions to load waypoints and paths. Where I filter out these tags so that they aren't present in the waypoints then.
Finally there was a problem with the fact that the one who converted this map to Day of Defeat also swapped the positions of the teams on it. I mean in Firearms mod the Red Team (the first team on the team selection menu) starts in the embassy. And the Blue Team (team no. 2) starts on board of the airplane. While in dod_coldwar it is vice versa ... team one (Allies) starts on board of the plane and team two (Axis) starts in embassy. So even the converted waypoints still couldn't be used. Solution was to write a simple function that would swap the team based data in waypoints. You know the priority setting, the wait times or the team based path tags. Once that was done the bots could finally play this map. Well okay the conversion, specifically the removal of some waypoint tags, creates bugs in the waypoints. But there already are tools that can be used to fix those bugs in couple minutes. So everyone can start playing this map, or any other map that has been converted from Firearms mod, pretty soon after he/she loads it in DoD.
- Updated the alternative player start points feature (unused in DoD until now, no longer a hard coded feature, now you can create an external configuration file in 'mapcfgs' folder in your MB installation where you can define alternative coordinates for the player start points a.k.a. spawnpoints, this file has to have a name matching the name of the map for which it is intended plus _startpoints.cfg, e.g. dod_anzio_startpoints.cfg, if such file is detected during a map load the system will automatically replace original coordinates of the player start points with those listed inside this file, if you want to return back to original player start positions just delete or rename the file so that the system cannot find a match)
- Added new client command 'wpt loadfirearmsversion' (useful on maps that have been converted from mod Firearms, allows loading original waypoints for such map and removes waypoint tags that are specific to mod Firearms from these waypoints, also you should then check waypoints for errors that will be present as a result of such conversion, also the Triggers will not work due to the fact that there is nothing like Red Team/Force or Blue Team/Force in DoD, you would have to change the trigger event messages to activate them again)
- Added new waypoint repair command 'swapteams' (swaps all team based waypoint data - priority setting, wait times, team based path tags - which allows an easy way to use existing waypoints on various modified maps where the teams positions were exchanged)
This time there is a bit longer video named MB WIP Alternative spawnpoints and converting waypoints from Firearms @marinebotofficial where you can see these new features in action.
Actually when I'm thinking about it now, these tools might be used even to modify original DoD maps. I mean maps that don't use the guns to protect the spawn zones. And maps where there aren't complex goals. So probably just the capture the flag maps. There you can swap the spawnpoints of the teams. Then use the same thing on the waypoints. But then you would have to use the other waypoint folder (the customwpts) to save these modified waypoints in order not to mess the original waypoints.
21 April 2024
Continued working on the reactions to voice commands. I've added two new commands. The "Use the bazooka" and the "I need ammo". Also reworked the way how bot replies to your commands. In previous video MB WIP Reaction to few voice commands you could have seen that bot's reply was actually before my command. Reason for that was that the whole reaction was processed inside the engine function where I'm intercepting these events. So for HL engine the bot was using his voice command before me, because his reaction was sent and processed before the function of my original command was finished. Now I'm giving the bot just a task to use a voice command. And this task is processed with randomly generated delay. So his reply is shown correctly ... after my command.
Then I added a reaction to a hand signal "Hold this position". The hand signal can be used on much larger distance. Well "much". It's three times the distance of the voice command for a bot with botskill = 1. Worse bots do have a limit on the "can hear" distance of a voice command. Means, the worse skilled the bot is the closer to him you must be to get his reaction to your command. The hand signal is different. The distance isn't modified, but there is a sort of "I didn't notice it", where worse bots don't pay much attention to the hand signals. Besides that the drawback of a hand signal is that you must be within the field of view for the bot to see your hand signal. So if you try to signal to bot while being behind him, you won't get any reaction.
- Bot will react to Voice commands now ("Use the bazooka" - will make anti-armor specialist bot stop and destroy all breakable objects in the vicinity, "I need ammo" - will make a bot that still has the extra ammo drop it in your direction and also wait for a while near you in order not to pick it up again)
- Bot will react to Hand signals now ("Hold this position" - works the same as Voice command but on much longer distance and you must be in bot's field of view)
@marinebotofficial is a video named MB WIP More voice commands plus a hand signal from testing these new additions.
13 April 2024
I've started working on the last big known issue Marine Bot for Day of Defeat has. And that is the ability to react to voice commands. In Firearms you can make the bots follow you by using one of the voice commands, but in DoD this doesn't work. That is because DoD doesn't use the engine function to emit sound in this particular case. Probably due to having two language versions of these commands, one for Allies and one for Axis. Actually three different sound files. There are the Brits too. However I was able to find different engine function that allows the same functionality. And added a reaction to the "I need backup" voice command. So now you can get up to 3 bots that will follow you just like they do in Firearms mod. I've also added a reaction to the "Hold this position" voice command. This will make the bots in your vicinity stop at their current position and wait there for up to 90 seconds. The time for which will they wait at that position depends on their behaviour and their weapon. Bots with the behaviour of attacker will be holding the position only for a while. But bot defenders, especially those that are equipped with a sniper rifle or a machine gun, will be holding that position for quite long. Also if you use this command while having some bot/s following you, such bot/s will stop doing it and will return back to standard waypoint navigation. And finally there is also a reaction to the "Go go go" command. Which will make any bot that can hear it break his wait time and start moving again ... including bots that did react to the "Hold this position" command.
- Bot will react to Voice commands now ("I need backup" - will make up to 3 bots start following you, but if they enter a combat mode they will stop following you, "Hold this position" - will make surrounding bots including those that are following you to stop and wait from 5 to 90 seconds based on their behaviour and their weapon, attackers will wait only for a short moment while defenders will wait longer at that position, "Go go go" - will make surrounding bots break the waiting, including the standard waiting at a waypoint)
As usual I've recorded some footage while testing it. You can see how it works in video named MB WIP Reaction to few voice commands @marinebotofficial.
7 April 2024
The past few days I didn't have much time to do any serious development. You know winter is over, at least here in Europe, so there's some work needed out there on garden and around the house. I was missing just the straw hat and loose jeans to be a true redneck :). Sorry I couldn't help it. Stupid jokes aside, in the limited time I had I worked on making the source codes for both Firearms as well as Day of Defeat versions of Marine Bot equal again. Lately I worked mostly on DoD source code and FA version lacked all the fixes and improvements. So I've been moving all non DoD specific changes over to the source code of MB for Firearms. When testing them I noticed two bugs. First is that one of the changes for the bipod handling actually caused a new bug where bot cannot fold the bipod when he needs to switch to backup weapon. For example when he runs out of ammo for the machine gun in DoD. Second bug is that Marine Bot somehow refuse to throw a grenade now. I don't know the source of this error yet. I'll have to run a test with original MB 0.96b version to see whether this bug originates to it or whether it is something more recent. I mean related to changes done mostly to deal with DoD combat mechanics. Sure the grenades are different in both these mods. But the code that rules the decision whether to use a grenade or not is the same for both MB versions. Bots do switch to the grenade, but then they don't throw it and switch back to a firearm. This can happen if the enemy got too close where the grenade use would not be safe, but bots do this even when the enemy is still far enough.
Next thing is that there is a new guide available in the 'LINKS' section. Couple weeks ago a guy from Australia sent me an email asking about details to compile Marine Bot .so library on Linux. Specifically asked about some step by step manual he could follow. Of course I didn't have any so I couldn't help him much. All I could do was to give him some general info. However during past week I freed one partition on that ancient laptop I used to use for Linux stuff before I replaced it with a bit newer laptop. I made a fresh installation of Ubuntu 22.04 LTS there and used it to create this new guide called "Compiling Marine Bot on Linux". Together with that I also updated the core HTML code for two other guides. It's the continuation of the site "performance" update I announced on the 3rd of March 2024.
30 March 2024
Marine Bot version 0.96.3b[DOD]-Test3 is available for download now. As always head over to 'FILES' and scroll down to 'Marine Bot ports for different Half-Life 1 mods' where are the two .zip archives. One is the universal gamer package. And the other is the source code mainly for server admins who prefer to compile own Marine Bot library. If you are skilled user you can just replace the changed files in your MB installation (basically just the .dll or .so library again). Everyone else please follow the steps to uninstall your current MB. Then follow the steps to install this new test version. I've removed all testing waypoints from the gamer package, because there are waypoints by Martee for all official maps available now. So if you didn't download them yet then do so in order to game with bots on all those maps. Here's the list of changes for this test version.
- Added two new client commands 'wpt rangeincrease' and 'wpt rangedecrease' allowing you to fine tune the waypoint range (they have aliases 'rangeup' and 'rangedown' and the argument they accept is a number from 0 to 50 units, where 0 will activate a dynamic change of the range, which means a range below the 50 units will be changed by 5 units and range larger than that will be changed by 10 units, all other allowed values will change the range by their respective value)
- Enabled the Triggers in waypointing system (there's a new client command "wpt triggerevent checkcapturemessage" - short alias 'checkcapmsg' - which allows you to view the text string MB generates based on the data gathered from DoD Capture Message, that gets sent when you capture any of the map objectives, so you can now use the unique part of this text string to create a Trigger message, mind the case sensitivity and spaces, the rest of the Triggers system is the same to how it is described in the HTML Waypointing Guide)
- Updated 'wpt triggerevent info' command (added new argument 'current' which will modify the output so that it shows just the current priority setting returned by the waypoint based on triggered state of this waypoint, i.e. if the trigger event didn't happen yet it will show standard priorities and if the trigger event already happened then it will show the other priority setting a.k.a. the trigger priorities)
- Updated 'wpt checkproblems' feature (added new warning for short wait time used on a shoot waypoint, if one of the wait times is less than 3 seconds you'll get a warning about possible problem with targeting the object to shoot at, also a new warning about the door waypoint being too far from the doors - i.e. farther than standard search radius of 70 units)
- FIXED Marine Bot recruit function (it still worked with the skin argument that is used in Firearms mod so you couldn't do a fully customized recruiting the way it is described in documentation for the DoD version of MB, the team and the class arguments worked but the other two arguments didn't work, also fixed the console help output where it listed the skin argument, and removed hopefully all other console help entries that have no meaning for Day of Defeat version of MB)
- FIXED limited bot aggression when equipped with the explosive charge (MB uses radius of just 200 units to search for/react on enemies as a limited aggression whenever he picks up an important map goal and carries it to the area where it has to be delivered, in Firearms the Claymore mine is designed as standard weapon, but in DoD the explosive charges are assigned to players same way as any special map goal objective like the documents on map Jagd, so a bot that carried the explosive charge didn't really attack enemies and was an easy target, now there's an exception to disable this special behaviour when bot carries the explosives so bots will act normally again)
- FIXED bot being able to see through some breakable objects where he shouldn't be able so - e.g. the middle bunker on map Charlie (MB is able to see through breakable objects that are made of glass e.g. windows to target his enemy, there's a set of rules that define whether the glass is transparent or not, but there was a bug in this definition so bot was able to see even through visibility blocking breakable objects - e.g. sandbags used on that bunker)
- FIXED bot unable to ignore enemy when looking through water in some cases (there's a rule not to target an enemy when looking from ground into water and vice versa, but due to the way how do players spawn on map Charlie, were some allied bots able to target an enemy, but soon after when they were below water surface they couldn't act because of this rule and they also couldn't forget such enemy so they ended up stuck, now there's a code to allow them forget such enemy in order to act normally)
- FIXED the ability to sprint (the check for stamina level was set to wrong variable which is always zero so the task to sprint that is assigned upon reaching the sprint waypoint was immediately removed due to bot thinking he has no stamina at all, also the function that manages bot move speeds had wrong max speed limit for the sprint task)
- FIXED bot not capturing the Capture Area if he can't directly see his teammate (bot can now get the info about a teammate trying to capture the same Capture Area from the numbers below the objective icons in top left corner of the screen and so help with the capturing, also changed the code so that bot is able to capture even the 3-man or 4-man Capture Areas now)
And a list of known issues.
- Bots don't react to voice commands and hand signals (unlike FA you can't even get them to follow you in DoD yet)
Seeing I finally have a working Linux Dedicated Server for DoD I let it run for a day with this Test version 3. Used the same setup with Metamod 1.21p38 like I usually do when it comes to MB releases for Firearms. No crashes at all. So I guess I can say there isn't any fatal bug in this version. However real server with players joining and leaving may reveal something. You never know. So better be prepared for some instability that may eventually end up with server crash or hangup. When it comes to client gaming. I found one bug, but decided not to cancel this release. The issue is that bot isn't able to destroy a breakable obstacle when he's climbing a ladder. You know those sewer covers on map dod_kalt. Bot then gets stuck on that ladder. It has been noted down and I will try to come up with a patch for that for next test version.
Now that The Triggers are available in DoD version of Marine Bot, I've prepared a short tutorial video for you to learn how to use them. So anyone who's into Marine Bot waypointing watch Setting the waypoint triggers in Day of Defeat video @marinebotofficial to find out how to set them up properly in your waypoints.
24 March 2024
After finishing the Triggers feature I was doing some testing and noticed that bot recruiting doesn't work as it should. Custom name and skill level were not what I specified in the command. It's both quite funny as well as a bit embarrassing that I've changed external file and other references to this feature, but forgot to change the function alone. Oh well. Anyway these are the changes since last news update.
- Updated 'wpt triggerevent info' command (added new argument 'current' which will modify the output so that it shows just the current priority setting returned by the waypoint based on triggered state of this waypoint, i.e. if the trigger event didn't happen yet it will show standard priorities and if the trigger event already happened then it will show the other priority setting a.k.a. the trigger priorities)
- FIXED Marine Bot recruit function (it still worked with the skin argument that is used in Firearms mod so you couldn't do a fully customized recruiting the way it is described in documentation for the DoD version of MB, the team and class arguments worked but the other two arguments didn't work, also fixed the console help output where it listed the skin argument, and removed hopefully all other console help entries that have no meaning for Day of Defeat version of MB)
I finally found the time and the will to setup Linux Dedicated Server for Day of Defeat so that I can test Linux build a bit more than just running the client DoD game for 30 minutes or so. This brings me to an announcement that the Test version number 3 will most probably go public some time during next weekend. Well, you know, unless I find more bugs. I already compiled both libraries and did the first tests on both systems. Windows game test took almost 2 hours. And the Linux Dedicated Server ran for roughly 2 hours as well. Plus couple minutes of client gaming on Linux after I stopped the server. Of course that isn't enough so I'll be running more tests.
The last bit for today is a short clip explaining one of the features of Marine Bot Waypointing system that isn't documented yet, because it's been updated in version 0.96b. It's related to the patch for bot move speed management. Bots behaved differently due to the bug prior the fix. So if you are interested and want to know more, feel free to watch How to make Marine Bot get off ledges, windows and such video @marinebotofficial.
16 March 2024
I'll start where I stopped last time. The Capture Area. Good news. Especially for me :). It seems I've finally got rid of all the issues with this feature. Hopefully the bots are able to deal with all cases related to various Capture Area types now. From the tests I did it looks like they can handle it quite well. Watch the video named MB WIP Test of (hopefully) the final patch for Capture Area@marinebotofficial to see for yourself. I've checked the places where the bots were having issues in previous clips related to Capture Areas. Plus I also tested their ability to capture the 3man and 4man areas on that special test map by Martee. I'm satisfied with the results. So I guess I can mark this feature as working and thus finished.
Next thing is The Triggers in Marine Bot waypointing system. One of the known issues in current Test versions of MB for Day of Defeat. But look at this.
- Enabled the Triggers in waypointing system (there's a new client command "wpt triggerevent checkcapturemessage" - short alias 'checkcapmsg' - which allows you to view the text string MB generates based on the data gathered from DoD Capture Message, that gets sent when you capture any of the map objectives, so you can now use the unique part of this text string to create a Trigger message, mind the case sensitivity and spaces, the rest of the Triggers system is the same to how it is described in the Waypointing Guide)
While messing with the Capture Area code I've figured out I might be able to use one of the engine messages to enable the system of Triggers in DoD. I'm already using that engine message to update the waypoints - the AlliedGoal and AxisGoal path tags upon capturing any of the objectives. So why not to make it so that MB will use the data provided by this engine message to create a short text string in order to have something to find a match and allow the Triggers to work the way they are designed. And that's exactly what I've done. I always mention these engine message and the data they provide. So look at this.
pfnMessageBegin: edict=00000000 dest=2 type=123 (gametime=80.110)
pfnWriteByte: 1
pfnWriteString: POINT_CHARLIE_BIGGUN
pfnWriteByte: 1
pfnMessageEnd:
pfnMessageBegin: edict=00000000 dest=2 type=123 (gametime=80.110)
pfnWriteByte: 0
pfnWriteString: POINT_CHARLIE_BIGGUN
pfnWriteByte: 1
pfnMessageEnd:
This is what I get when I let MB intercept the engine messages and dump the output to a text file. It's the Capture Message when I captured the Coastal Defence gun on map Charlie. You don't get much info from it alone. You know it has 3 variables where one of it is the name of the map objective for which is this message meant. You also know that it has been called twice in row at the very same moment and the first variable changed. Okay let's try different objective.
pfnMessageBegin: edict=00000000 dest=2 type=123 (gametime=117.004)
pfnWriteByte: 1
pfnWriteString: POINT_CHARLIE_RADIOTENT
pfnWriteByte: 1
pfnMessageEnd:
pfnMessageBegin: edict=00000000 dest=2 type=123 (gametime=117.006)
pfnWriteByte: 0
pfnWriteString: POINT_CHARLIE_RADIOTENT
pfnWriteByte: 1
pfnMessageEnd:
Basically the same thing. You aren't much closer to solving it. So let's try different type of objective ... on different map of course.
pfnMessageBegin: edict=00000000 dest=2 type=123 (gametime=53.022)
pfnWriteByte: 1
pfnWriteString: POINT_ANZIO_STREET
pfnWriteByte: 1
pfnMessageEnd:
Well still no real clue other than that the message was sent just once on this map. Let's try switching the teams. And capture the same flag for the Axis.
pfnMessageBegin: edict=00000000 dest=2 type=123 (gametime=154.759)
pfnWriteByte: 1
pfnWriteString: POINT_ANZIO_STREET
pfnWriteByte: 2
pfnMessageEnd:
There we go. So the 3rd variable is the team ID. This is actually all we need to generate a short unique text string that would then allow the waypoint creator define working Triggers messages. Look at this screenshot with merged console snippets related to the engine messages from above.

This feature is still in early development. So I still need to catch various issues like the fact the Radio on map Charlie caused the text string to be displayed twice. I'll have to do more testing to see if I can use the zero value of the 1st variable to determine whether to process the data or skip the whole message in such case. Then I also need to add a code to reset the Triggers when the round restarts. There is different engine message that DoD has and I'm already using it to make bots be aware of such event. So I can use it to handle the reset. Sadly the Firearms mod doesn't seem to have such unique event, hence the warning at the end of Triggers chapter in HTML Waypointing manual. At least the DoD port of MB will have this issue fixed. Plus there is another bug related to the Triggers in the code. And it is actually present even in MB release for Firearms, but there it fixes itself by lucky turn of events. So the Triggers work in standard game in Firearms unless you reload the waypoints. But I will have to fix that bug anyway, because in DoD it cannot fix itself. Quite funny how the fact that each of these two mods works a little different then brings various issues for the same feature in each of them.
I'll tell you a little secret ... but shh ;). I actually knew the 3rd variable is the team ID since the beginning. I must have gone through this decoding process ages ago, because I had this info in the original 0.9b source code from back then. So I only had to check the old guesswork is correct. However this is the way how I'm guessing these things in order to give bots the knowledge of this or that. Also sometimes you go through all this decoding only to find out it is a dead end and you can't use those data due to missing something else to link it with, to make the whole thing work the way you want or need.
9 March 2024
While testing the waypoints Martee sent me last weekend I've noticed some weird behaviour of allied bots on map Charlie. And then also on map Escape as a result of events after his feedback in another email. Also he reported a bug where Marine Bot cannot sprint in DoD. And finally proposed a feature I've been thinking about too when I was doing the early changes in the code to make current MB compatible with DoD a few months ago. Here are the results of all those happenings.
- FIXED limited bot aggression when equipped with the explosive charge (MB uses radius of just 200 units to search for/react on enemies as a limited aggression whenever he picks up an important map goal and carries it to the area where it has to be delivered, in Firearms the Claymore mine is designed as standard weapon, but in DoD the explosive charges are assigned to players same way as any special map goal objective like the documents on map Jagd, so any bot who carried the explosive charge didn't really attack enemies and was an easy target, now there's an exception to disable this special behaviour when bot carries the explosives so bots will act normally again)
- FIXED bot being able to see through some breakable objects where he shouldn't be able so - e.g. the middle bunker on map Charlie (MB is able to see through breakable objects that are made of glass e.g. windows to target his enemy, there's a set of rules that define whether the glass is transparent or not, but there was a bug in this definition so bot was able to see even through visibility blocking breakable objects - e.g. sandbags used on that bunker)
- FIXED bot unable to ignore enemy when looking through water in some cases (there's rule not to target an enemy when looking from ground into water and vice versa, but due to the way how do players spawn on map Charlie, were some allied bots able to target an enemy, but soon after when they were below water surface they couldn't act because of this rule and they also couldn't forget such enemy so they ended up stuck, now there's a code to allow them forget such enemy in order to act normally)
- FIXED the ability to sprint (the check for stamina level was set to wrong variable which is always zero so the task to sprint that is assigned upon reaching the sprint waypoint was immediately removed due to bot thinking he has no stamina at all, also the function that manages bot move speeds had wrong max speed limit for the sprint task)
- Added two new client commands 'wpt rangeincrease' and 'wpt rangedecrease' allowing you to fine tune the waypoint range (they have aliases 'rangeup' and 'rangedown' and the argument they accept is a number from 0 to 50 units, where 0 will activate a dynamic change of the range, which means a range below the 50 units will be changed by 5 units and range larger than that will be changed by 10 units, all other allowed values will change the range by their respective value)
You can see the last two points in video named MB WIP Test of sprinting fix and test of new waypoint range change feature@marinebotofficial recorded on map created for Marine Bot by ... guess ... yeah it's the mighty Martee ;). Thanks for all the help.
Couple weeks ago I was ranting a bit about the wasted time while trying to figure out the Capture Area puzzle. Well not all additions to MB features and/or changes of the source code are that bad. Sometimes the things go suprisingly well. Basically all the points on the list above were done in one day. For example the new feature to fine tune waypoint range was really easy to implement. You can view this picture to see all the code that is needed to make it possible. Sure a lot of work is done by other functions or classes like Console Input, but that is the point. If you have the tools at hand then things can be done easily. Well not always but usually this is true. Okay after this refreshing time I'll get back to work on finishing bot's ability to deal with the damned Capture Area :).
3 March 2024
Today I have a great news for all fans of Marine Bot for Day of Defeat 1.3. Martee sent me an email with following message.
Martee here, I just recently finished my first pass at making marinebot waypoints for all the official day of defeat maps. I've included a link to them on my google drive here. Feel free to do with them whatever you want, I'll most likely be posting them to my day of defeat blog along with links to your website to help people try out marine bot.
I'm loving it so far, really refreshing getting to play with a new bot after a lot of years of being stuck with sturmbot/shrikebot.
This means the Test versions are finally usable even for some real gaming, because bots can now play the maps, all maps in Day of Defeat 1.3 ... Yay! I was able to check just the first 4 maps in game, but because I didn't find any serious bugs and bots were able to play them pretty well, I believe the rest of the waypoints is okay too. Therefore I've already added the link to this waypoint package to 'FILES' section right below the Test versions of MB for DoD. So everything is together and available for download. You know the drill, just scroll down to 'Marine Bot ports for different Half-Life 1 mods' to get them.
Next thing is that I've been working on updating this site the whole past week. The original design goes back to year 2005 and since then I've been just adding more content, but never updated the HTML code. Recently I viewed this site on my smartphone and noticed it doesn't run as smooth as when I view it on my laptop. I did some research and updated the HTML code a bit according to what I've learnt. So since now it should work better on mobile devices as well as on classic computers in case you are using custom text size etc. The update isn't fully finished yet. Some pages still need to be rewritten, but I didn't want to delay announcing Martee's waypoints due to that. Because that is without a doubt really big thing not only for me, but I guess even for you :).
26 February 2024
The Test version 2 of Marine Bot 0.96.2b for the Steam version of Day of Defeat 1.3 is available for download now. Just like last time, head over to the 'FILES' section and scroll down to 'Marine Bot ports for different Half-Life 1 mods' where you will find two new .zip archives. The 'mb0962b(DOD)-test2.zip' is the universal game package for both a gamer as well as server admin and works for both operating systems a Windows as well as Linux. And the other one is the source code for a Linux server admin who prefers to build own .so library.
If you already have previous Test version installed and you aren't skilled in these things then uninstall it. Then make a fresh installation of this new Test version. The liblist install utility is written so that if it detects that you already have Marine Bot installed (i.e. it finds the liblist.gam backup file) then it won't touch the files at all in order not to corrupt the backup. So you shouldn't mess things with repeated installation. But still if you aren't skilled user, then follow the steps to correctly uninstall Marine Bot and then follow the steps to install it anew. If you are a skilled user then unzip the game package to a dummy folder and just copy the .dll or .so library to your 'marinebot' folder in your 'dod'. Those two libraries and the two new test waypoints for Donner and Falaise maps, that you can see in the MB WIP Test of Capture Area fixes video @marinebotofficial, are the only changed things in the package. Actually the Falaise test waypoints are slightly updated compared to the state presented in that video. When I was doing more tests yesterday ... to check both libraries after I compiled them as 'release' builds ... I added 2 or 3 new paths to make bots from both teams reach those Capture Areas. So together with Anzio this means that there are 3 maps now where the bots can face each other and so provide some limited gameplay for you to have some fun.
This is the changelog for this test version.
- Improved combat performance of bot machine gunners (tweaked various battle related variables to make them stand at least some chance when they are caught off guard and have to fight back - i.e. when they are not camping somewhere and waiting for enemies, still they will die often in such cases because going prone and deploying bipod takes too long, also slightly reduced the cases when bot uses the machine gun w/o deployed bipod in standing stance or in crouch with its crazy inaccuracy)
- FIXED bot going prone after respawn (there was missing stance reset in the respawn function)
- FIXED ammunition count detection for weapon mg34 (unlike all other weapons mg34 uses its own unique engine message for assigning the ammunition which wasn't defined in the code till now, so bot will correctly reload this gun after depleting the first magazine instead of marking it totally empty and using just the pistol and knife/spade since then)
- FIXED bot machine gunners and anti-armor specialists keep using backup weapon i.e. pistol when it was empty (now they will switch to melee weapon)
- FIXED bipod usage (corrected the times needed to deploy or fold it, removed rapid yaw changes i.e. the crazy shivers the bot did while reloading weapon, folding bipod and such actions related to deployed bipod, tweaked the actions needed to deploy it in order to reload the machine guns - because sometimes the command to deploy it wasn't registered due to doing it too soon after shooting the gun, also changed the out of combat rules for bot to deploy the bipod - he'll do so in 66% of times on waypoint with wait-time of 20 seconds and more, previously it was FA defaults - i.e. 33% of times on waypoint with wait-time of 50 seconds and more)
- FIXED inability to switch weapon at waypoint with wait-time when bot ran out of ammo for current weapon (bot correctly found a new weapon to use, but there was missing code to initiate the weapon switch action, this actually broke weapon management till the moment when bot started a combat or died)
- FIXED Area Capture not working at all on some maps (when Control Point - i.e. the flag - wasn't close enough to the Capture Area then bot wasn't able to get the needed info to behave correctly - e.g. on map Falaise, now there are two arrays that maintain these data so bot knows which Capture Area he needs to capture and which one he has to ignore, also tweaked the detection of Capture Area, better to say bot's reaction on it, so he now always knows exactly when he is within the area and when isn't, which improved cooperation of two bots when they are trying to capture these areas)
Followed by a list of known issues.
- Bots don't react to voice commands and hand signals (unlike FA you can't even get them to follow you in DoD yet)
- The Triggers in Marine Bot Waypointing system are disabled (Triggers are based on engine Text messages in FA, but DoD Text message works with sort of predefined message headers so the Triggers cannot find match with the text because there is no text being sent, thus they are disabled for now)
24 February 2024
Update of the navigation code was finished by the end of 21st February. I got to it almost right after posting the update on that day and finished it late at night. Been moving some parts of this code here or there in the source code to find the best spot to call it so that things work well, yet it won't cause pointless high CPU usage. Looks like I've tweaked it just right. This video at youtube.com/@marinebotofficial shows the results from the tests I made. Did some of them before the night shifts at work and the long game testing on dod_donner has been done today. You know the map that not only had non working Capture Area, but also a map that has the corrupted Control Points values in general. As you can hear in the video I'll have to find a way to make bot read/gather the data about presence of another teammate in the area, because now he doesn't know someone is in it if he cannot see him directly, i.e. some obstacle blocks it. However I won't hold releasing next public test version due to it. This and the other fixes for some of the bugs/issues that are in Test version 1 will improve the overall performance of the bot and your fun while gaming with it. So I'll move the source code over to my Linux laptop to check the compatibility and compile the .so library. And if everything works well I'll release the Test version 2 soon. Hopefully in next couple days.
21 February 2024
After the fixes and changes I showed last time I worked on further tweaks for the machine gunner bots. Mostly their combat behaviour to make them a bit more dangerous. Some of the combat behaviour changes affected also the other classes, but most changes were done in favor of the gunners. Then I moved to the other issue the 0.96.1b[DoD] Test version 1 has. And that is the bot dealing with the Capture Areas. You know if you tried to waypoint maps like Avalanche or Falaise you would have problems getting the bots capture those flags/points. Avalanche could work, because the flags i.e. the Control Point entities (that hold the data Marine Bot needs to know to act correctly), are within the Capture Areas so most probably close enough to the position of the pushpoint waypoint to make things work. But on Falaise things wouldn't work at all, because the flags are too far from any possible position of the pushpoint waypoint. So the system cannot find them to get the data out of them. And if there are no data then there is basically no code to tell the bot how to act in a Capture Area. Thus he ignores them.
Firearms mod specific Push Point entity does expose its ownership. So if you place the pushpoint waypoint within its area of capture, you can do a simple search in a small radius to get the pointer to this entity and get the data out of it. In DoD this doesn't work. Well okay it works for standard Control Point entities (i.e. the flags) that you must literaly touch to capture them. They do expose the owner via the 'body' variable that has 4 values, neither team, axis, us and brits. Most probably to display correct model of the flag (well its texture). But the Capture Area entity doesn't do that. There's nothing like that on it. The 'body' variable is always zero. Same as the 'team' variable. Well most of standard entity variables are "empty" on it. So you get basically no data out of it.
I turned on heavy engine debugging, where the bot intercepts most of the data HL engine provides. Actually DoD provides when the server part and the client exchange data ... HL engine always works as a server and client even if you play locally on your own computer. And started collecting the clues to solve the puzzle of Capture Areas. Spent hours going through the text files with those logged variables. When I had general idea how does it work I decided to use an array that would be filled during the map load. Actually one array for Capture Areas couldn't provide the data I need so I had to create two arrays. One for Capture Areas and one for Control Points. Both filled during map load when is the engine creating all game entities based on the data read from .bsp file. Then I linked them together. Well used some data from the array of Control Points entities to fill the holes in the array of Capture Areas. When I thought I've succeeded I found out that some maps in DoD 1.3 are bugged. I mean the values, that are needed to link engine messages (used to update the ownership of particular Control Points) together with their game entities, are totally messed up. For example all Control Points had the same value. Or some of them shared the same value and the rest were okay. So I had to do more data gathering to figure out a way how to fix the cases when map has corrupted values. Had to intercept third source. And that is an engine message where DoD generates values related to Control Points to initialize the objectives icons at top left corner of the screen. At least I think this message does that. Anyway I added one more variable to the Control Point array and based on it I can validate each Control Point. And so fix the messed up values on those few maps. As you can see here. After that Marine Bot finally gained access to all the data he needs to make things work. Now the pushpoint waypoint positioned within the Capture Area works correctly and assigns the Allied/AxisGoal path tags same way as if you place it next to the classic Control Point flag.
I like challenges, without that Marine Bot wouldn't have been around. But this is a bit beyond what I would call a fun time. Don't get me wrong it was great feeling when everything started to work in the end. And I've learnt a few new tricks. So it was a positive thing. But if you start thinking about it a bit more then all those hours could have been used to add new ability/ies to the bot. You know if someone would have made Capture Area entity so that it exposed owner like Control Point entity does. Oh well. I'm past that now. Funny thing is that after all of that I'm only halfway there. What I described above allows one of the functions in the waypoint system update the path tags. Now I need to update the navigation code i.e. what makes the bots actually move around and act. However that will be way easier, because I'll work within my own "world". I mean, I have all the tools ready so with the help of the data from the Capture Areas array I'll be able to learn bot all that he needs to handle these areas. You know when DoD sends him the message that shows that capture icon in lower left corner of the screen, I'll make him search the surroundings for a match with the Capture Area entity from the array, and gather needed data like time to capture it, number of team players needed to achive that and whether he actually needs to capture it at all ... i.e. when that area already is owned by his team.
11 February 2024
Continued fixing bugs. Or better to say I continue in tweaking the source code from Firearms settings to Day of Defeat 1.3 specifics. I've been working on issues related to bot machine gunners in the past week. This is listed as known issues for the DoD port Test version 1. In Firearms the bots using one of the machine guns are really good, extremely dangerous and deadly if you meet them. However DoD machine guns are crippled by the need to always deploy the bipod. And the bipod is the main source of problems bot gunners have in Test version 1. If you watch the gunners then you'll notice they have a sort of shivers whenever they deploy the bipod. This is due to the fact that I missed one spot in the source code where the bot uses specific variable that Firearms mod provides for bipod, but DoD doesn't. It's the yaw angle at the moment when you deploy the bipod. This then serves as the limit for turning to sides. In DoD this is always zero so bot is trying to face that angle while bipod prevents it. Thus he's doing those rapid yaw changes which looks like he shivers. I also tweaked some other actions, their order and timings that are needed for successful bipod usage in DoD.
Next I found something that made me wonder about sanity of the DoD developers. If you recruit Axis bot that uses the mg34 machine gun in the Test version 1, you'll see that the bot never reloads that gun, but switches to pistol or knife/spade after depleting the first magazine loaded at the respawn. This is due to the fact that there's a unique engine message for assigning the ammo for mg34. All other weapons use the standard engine message for ammunition, but mg34 doesn't and has its own. Which wasn't defined in Marine Bot source code till now. You know who would have guessed that. Really. Why on earth would you want to create new unique engine message for just one gun? Even if it was some sort of leftover from bigger/multiple stuff in the original DoD betas, it is still insane to leave it like that. I'm sorry about the rambling, but this is just crazy. And also stupid if you asked me. Anyway today I did test these fixes and all seem to work. You can see for yourself. Test of fixes for mg34 and the use of bipod.
These are the specific fixes I tested in the video above.
- FIXED ammunition count detection for weapon mg34 (unlike all other weapons mg34 uses its own unique engine message for assigning the ammunition which wasn't defined in the code till now, so bot will correctly reload this gun after depleting the first magazine instead of marking it totally empty and using just the pistol and knife/spade since then)
- FIXED bipod usage (corrected the times needed to deploy or fold it, removed rapid yaw changes i.e. the crazy shivers the bot did while reloading weapon, folding bipod and such actions related to deployed bipod, tweaked the actions needed to deploy it in order to reload the machine guns - because sometimes the command to deploy it wasn't registered due to doing it too soon after shooting the gun, also changed the out of combat rules for bot to deploy the bipod - he'll do so in 66% of times on waypoint with wait-time of 20 seconds and more, previously it was FA defaults - i.e. 33% of times on waypoint with wait-time of 50 seconds and more)
Also updated the 'FILES' section with a new .zip archive with the source code for the new Marine Bot liblist install/uninstall utilities. I rewrote them in January to add the Day of Defeat entries. Actually Global Warfare was missing in them too. So now they are created as new projects and there is the right code for all 4 supported mods included.
4 February 2024
Marine Bot 0.96.1b for the Steam version of Day of Defeat 1.3 is available for download now. Head over to the 'FILES' section and scroll down to 'Marine Bot ports for different Half-Life 1 mods'. There are two .zip archives. First one is the universal game package for both server admin as well as common gamer, having both libraries, a Windows .dll as well as Linux .so, and the other files Marine Bot needs to run. The other .zip archive is the source code that a Linux server admin may use to build own .so library.
This is the first public test version for DoD. I'll repeat what I said before, this is mainly a proof of concept. Not a fully usable product. So don't expect much from this test version. What you can expect are various bugs. A lot of bugs. Also you can expect bot doing things he shouldn't do and ignoring things he should have done. It may even crash or hang up. So if you decide to create waypoints then use waypoints autosave feature. Which will try to save the waypoints every 90 seconds unless you are just in a process of creating a path. If you are building the path then it will postpone the save in order not to corrupt them.
Speaking of waypoints, there are none. This means bot isn't much able to play the maps. Will just randomly roam. Well okay I added the test waypoints to the game package. You know those from MB Work In Progress clips @marinebotofficial channel. However the only map where bots actually meet each other is Anzio. Other than that you are out of luck. And the only way to game with this Marine Bot test version is creating your own.
Okay if I haven't chased you away yet then here's the changelog for this test version.
- Bot is able to deal with the Area Capture flags by standard use of 'pushpoint' waypoint and help a teammate get it for the team (teammate must be visible from bot's position and be within 300 units radius, also bot must be within 300 units from the center of the Area Capture zone, if both these conditions are met bot will help capture it)
- Bot is able to deal with DoD specific breakable objects with the help of the 'claymore' waypoint placed next to them
- Added new class based path type 'antiarmor' (only a bot that carries one of the bazooka/panzerschreck/piat weapons can enter on this path, this allows the waypoint creators design unique paths for such bots in order to break destroyable walls or reach a map goal that can be destroyed by these launchers - e.g. Cromwell tanks on dod_jagd)
- Improved navigation (bot can now handle a combination of 'roadblock' + 'claymore' + priority = 1 waypoint, it means that such path will stay closed to bots without explosives, but will open to bots equipped with the explosives to blow the breakable object and so make such path available for everyone)
- Improved unstuck behaviour (when bot gets stuck on breakable obstacle and he cannot break it on his own, he'll try to return back to the start of his current path, one-way path won't allow this behaviour though)
- Improved unstuck behaviour (bot can now correctly detect the possibility of jumping onto/into/over some object, also won't turn away from such object during or right before jumping, and finally he should not try to jump when he cannot succeed at all - due to a bug in one function from the original bot template, that MB kept using, and that is fixed and improved now, also fixed occasional false detection of being stuck during combat)
- Improved unstuck behaviour (bot can now correctly detect ducking under obstacles or into various manholes, also he will now wait till the engine sets him the ducking bit before he will initiate or continue in further attemps to get free)
- Changed the on screen position for waypoint or path info HUD message (it's moved slightly down from the top of the screen so that the message doesn't block the icons for Territorial Control or Capture/Destroy the Objectives DoD has at top left corner of the screen)
- FIXED bot being frozen after round restart (removing of FA specific "press 1 to respawn with the same gear" code resulted in a situation where bot couldn't respawn after round end in DoD, now there's a patch to reset the variable needed for successful respawn)
- FIXED inability to switch fire mode for piat when empty (because of the fact that piat model shows the loaded grenade it has two different animation values which weren't both defined in the function that allows bot know whether this gun is on shoulder or off shoulder)
- FIXED grenade usage (grenades in DoD are different from FA so bot wasn't aiming high enough and the grenade was too short, and that usually led to suicide or TK)
- FIXED constant weapon switching between backup weapon and knife in cases when main weapon ran out of ammo and the backup weapon was out of range (especially when the backup weapon was pistol, bot then kept switching between pistol and knife till he got close enough to the enemy to be able to fire the pistol)
- FIXED bot at the 'shoot' waypoint trying to break the DoD specific breakables by shooting at them from common guns (only the bazooka/panzerschreck/piat equipped bots will fire now, other bots will ignore this waypoint tag)
- FIXED bot leaving the shoot waypoint before firing at the breakable object if he decided to reload his weapon first (actually anytime he was waiting at waypoint where was quite short wait time set, the reloading action could often exceed the wait time so the wait time ran out, now bot will pause the wait time during weapon reload and resume it after the weapon is loaded, so his waiting won't be affected by weapon reload anymore)
- FIXED inability to change weapon while being at the shoot waypoint or getting stuck on some breakable object (when bot depletes all ammunition for his weapon and can't reload it then he tries to switch to the other weapon, but the code allowing such action wasn't available for these two actions, so bot got stuck in an endless try to switch the weapons)
- FIXED errors preventing successful compilation on Linux (usual GCC strictness, also changed the 'makefile' so that it will build MB Linux library without the underscore character i.e. just 'marinebot.so', because Half-Life's Linux client, much like the Dedicated Server, will also crash if there's an underscore used anywhere in the path, DoD can be played on Linux natively so MB naming scheme had to adapt to that and there are no underscores in MB folder or library names when it comes to DoD port)
- FIXED reporting an error into debugging file when you used 'pathwpt remove <index>' command on waypoint where there was no path at all or you mistyped the 'index' value or used the same command twice on the same waypoint so on the second use this waypoint wasn't part of 'index' path anymore (simply forgotten leftover from debugging from days when path system was still in early stage of creation)
- FIXED 'debug_cross' not printing anything without developer mode set to 1 (the function that is responsible for cross waypoint decision making doesn't have access to clients data so it can output the data only to universal developer console, but I've changed Marine Bot's console input class so that it remembers the client who entered the command, so you will now get the output to your console even without developer mode 1, also added an empty line before each new cross waypoint output to improve readability)
And this is a list of known issues.
- Bots using the machine gun class act strange in many cases (unlike FA DoD requires quite specific use of these weapons and it seems that this causes various conflicts throughout the code)
- Bots don't react to voice commands and hand signals (unlike FA you can't even get them to follow you in DoD yet)
- The Triggers in Marine Bot Waypointing system are disabled (Triggers are based on engine Text messages in FA, but DoD Text message works with sort of predefined message headers so the Triggers cannot find match with the text because there is no text being sent, thus they are disabled for now)
If you wonder about some of the items on these lists then I'm adding there all that has been changed since previous the non public version. This helps me keep track of what and when happened. Anyway have fun with Marine Bot for Day of Defeat. And if you have any questions feel free to ask. But before you do, check the FAQ included with the game package, please. It has been modified to specifically address Marine Bot for Day of Defeat related issues.
31 January 2024
I got enough free time on the day off between the day and night shifts to test Marine Bot's ability to deal with DoD specific Area Capture. To be honest not everything works the way I'd like to see. The code responsible for this feature isn't called all the time. I've mentioned it couple times already, I don't want Marine Bot hogging the system resources. So he calls this code only when he reaches the waypoint. At that very moment he checks the presence of the capture zone, scans the surroundings and decides about the options he has. And it seems this sets the limits on how well he can deal with Area Capture. Especially in case of cooperation of two bots. Watch the video I recorded during the testing to see what I mean. It's like if they couldn't decide whether they want to capture the flag together or not. I'm thinking of one other part in the source code where I can move this Area Capture code to. But I don't want to delay the release of Marine Bot DoD port Test 1 because of this. I guess you want to have a chance to finally play with MB for DoD yourself too. Besides it's just a test version not a typical beta release. So it's more of a proof of concept than anything set in stone.
The plan still holds true. On the weekend I'll move the source code over to my Linux laptop to compile and check the .so library, put the zip archive together, and unless things totally fail, I'll upload it here for you to download.
28 January 2024
Yesterday I managed to do some testing. I was checking the 'Anti-Armor Specialists' path type. Found two bugs related to this feature. Well one of them was actually linked to the shoot waypoint actions than to the new path type. It popped up during this test most probably because of the fact that piat isn't a common weapon, and bot is tasked to handle it different way than a standard weapon. The clip was recorded after patching both. Used modified test waypoints for dod_caen, those that you could have seen in the Explosive charges test on dod caen video. I only added those few new paths in them and did the testing.
The last thing to test is the 'Area Capture'. I don't think I'll finish it today. And the coming week I have four 12 hours long shifts at work so even less free time than I had this week. I mean I'll try to make the first Test version of Marine Bot for DoD public sometime during the next weekend. No promises though. The last night shift ends on Saturday morning. So half of that day I'll be only dreaming about it, not making it come true :).
25 January 2024
Those stupid night shifts at work are finally over ... at least for this week. So as I promised there's a new clip at youtube.com/@marinebotofficial now. Created a new test waypoints on dod_charlie where I checked how the claymore + roadblock + priority 1 waypoint works. All seems to work the way I intended. Just roadblock + claymore kept the bot away from such path, but when I changed the priority of that waypoint to level 1, i.e. told him it's an explosives goal waypoint, bot was able to enter that path in order to destroy the obstacle blocking the way.
This means there are only two other things left to test. The first is the new path type named 'Anti-Armor Specialist'. It's a class only path type specifically designed for the bazooka/panzerschreck/piat classes. Just like the existing snipers only and machine gunner only paths. Second is the 'Area Capture' zones/flags. Actually you could have seen part of the behaviour related to this code at the beginning of the 'Improved unstuck feature' clip, where the bot was tracing me and the center of nearby Area Capture flag and moved into the zone in order to help with the capture. So give me a few days to do these tests. Again I'll try to record some material from those test sessions to keep you informed on the development progress.
20 January 2024
First phase of testing Marine Bot port for Day of Defeat is complete. I've been checking how the bot can handle DoD specific explosive charges. Here's a short YT clip from the testing. Next I'll be testing a bit more complex use of the claymore waypoint. If everything goes well, not only the testing, but also my free time then I'll post a new video from the testing in couple days.
15 January 2024
Updated Waypointing Guide has been uploaded and is available via the 'LINKS' section. This is the list of changes.
- New chapter: Multiple options how to set up the shoot waypoint
- New chapter: Dealing with the errors from 'mb_error-log.txt' after waypoints test
- Added also the fully automated waypoint and path tags to the lists of waypoint and path types
- Updated the list of commands with new or changed commands in Marine Bot 0.96b
Also uploaded two new zip archives, a Firearms 2.9 and the patch for it, to my MEGA account. Head over to the 'LINKS' section to get it. So now it's only the 2.4 and 2.5 versions that are missing there. I mean of the versions that is Marine Bot compatible with. I'll try to add them sometime in the future, but as always it may take me a while.
Now some bits from MB development alone. Some of you may already know about this and/or if it leaked already may have even tried it. I mean a version of Marine Bot for Day of Defeat 1.3. Back in the old days after I did those ports for BG and GW, Sargeant.Rock asked me about a possibility of creating a port of MB0.9b for DoD too. I started on it, but because the development of 0.91b version already started I didn't finish it. I didn't trash the code though so when last summer (summer of 2023) [APG]RoboCop asked the very same question I was able to dig it from my source codes backups. I used the VS 2019 to load and convert that old VC 6.0 project and after fixing a few bits here and there the code actually compiled into working .dll. I wasn't able to find any external files MB needs to run so I used the files from GW port and changed only a few things to be able test the .dll in DoD. With the exception of fatal bugs in waypoint paths system (fixed later on in MB0.92b) things worked. So I gave it to RoboCop so that he can test it.
Actually it was pointless to continue on that source code so I decided to use the latest test version of MB0.95.2b as a base and moved the DoD specific code into it. So now the source codes of the DoD port and the main MB for FA are equal, which is cool, because the work on DoD port led to finding quite a few bugs. For example the bug in the move speed or the bugs related to the original HUD menu are fixed thanks to this DoD port. Now I'm going to show you the new patch for the unstuck code that didn't make it into recent 0.96b release, because it isn't fully finished and tested, but will be in the next version. The video is recorded with development build so you can see the feature to visualize the tracelines that I'm using in MB code for quite a while already. You know those infamous "lasers" in MB0.92b were the result of this development utility of mine. I've made purposely bad waypoints. There are just the normal waypoints used. And forced the bot to keep passing through this obstacle course to see how the new functions used by the unstuck code work. Compared to previous state this is a big improvement. Normally this unstuck code is used only rarely. In cases when two or more bots do block each other so one of them gets stuck on something. Or when someone created poor waypoints that make the bot get stuck too. Anyway here's the clip.
31 December 2023
So it's finally here. Marine Bot in version 0.96b is released! Yay! Head over to 'FILES' section to get it. All 3 zip archives are there. A MB096.zip for gamers on both Windows as well as Linux. Then MB096.tar.gz for Linux server admins. And mb096b_sc.zip for anyone who wants the source code, being it again a Linux server admin to build own library or anyone else who wants to see what is under Marine Bot's hood ... nothing fancy really. It took me way longer than I expected, but I'm sure it paid off. Many of the issues I fixed in past few months tortured Marine Bot really bad. And for many years. Also going through all waypoints and fixing or reworking them in some cases improved overall feeling from the game. They are still far from perfect, but watching bots play the maps now is fun and in many cases they look like they really know what to do ... well at least till the moment they show something totally stupid lol. Either way around, here's the changelog:
- Bot can now reload empty grenade chamber on attached m203 or gp25 grenade launcher (bot used to be able to fire just the grenade that's loaded by default and then completely ignored the attached launcher, but now bot is able to check whether he has additional grenades for the launcher and reload it after battle or anytime later once he refills the ammo from ammobox)
- Bot can now use optics/scope on all weapons that have it (bot was using scope only on sniper rifles, but now he'll use it even on anaconda, g36e and m14, also on steyr aug in FA 2.4 and 2.5)
- Bot can now correctly handle two weapons with silencer (previously bot could mount the silencer only on the weapon he spawned with, now he'll always check the weapon that he switched to whether it supports silencer and will mount the silencer on it if it is not mounted yet)
- Added 'targetbodyoffsets' file to 'weapons' folder (originally hard-coded aiming offsets are now available as external values, that gamers can tweak to their likings)
- Added client command 'botdontshootfirearm' (activates/deactivates a mode where bots won't shoot any firearm, but they can still throw a grenade and use knife as well as move and do the other actions)
- Added client command 'wpt checkproblems' (works the same way as the 'pathwpt checkproblem' but with the focus on waypoint related issues, e.g. a missing 'sniper' flag/tag on a waypoint with wait time, or invalid combination of waypoint types such as ammobox + goback, or missing events on a trigger waypoint, or wait time set on a jump waypoint)
- Added client command 'wpt triggerevent test' (allows you to test whether you've set the messages right and the triggers are actually being activated)
- Added console message telling you whether the bot will be capturing pushpoints or not (if you turn on debugging of cross waypoints, paths or waypoints then every time the bot respawns you'll get a console message telling you whether he decided that he'll will actively go for the map pushpoints i.e. will capture flags, this is purely for testing the waypoints so the waypoint creator clearly knows what's going on when testing the waypoints)
- Added console message telling you if bot decided to ignore his bandage reserves (if you turn on debugging of cross waypoints, paths or waypoints then every time the bot respawns and decides to ignore bandage management you'll get a console message telling you so, this is purely for testing the waypoints so the waypoint creator clearly knows what's going on when testing the waypoints)
- Added new waypoint 'roadblock' (allows bot to navigate through unstable routes, that means area on the map that isn't accessible all the time like the moving bridge or avalanche pit on ps_coldwar or The North Gate on obj_paradise that can only be destroyed by a claymore mine and which will reappear after a while, so this waypoint type must be used as a pair on path on both sides of such spot and no other waypoint can be added between them, if the area between the two roadblock waypoints is inaccessible then the whole path will be ignored/unavailable on a cross waypoint decision making, if the route gets blocked when bot is already on that path then the roadblock waypoint automatically serves as a goback and will make the bot return, if it is a one-way path bot will wait at this roadblock waypoint till the route gets free again)
- Added ps_rubicon waypoints (based on waypoints from the Waypointing Video Guide, added several new paths especially for snipers and machine gunners or paths to previously unwaypointed bandage locations)
- Improved navigation (there are two automated bandage tags now, one for waypoints and one for paths, it works much like pushpoints, but bandage tags are fully automated, you can't add neither of them manually, bots will now use these to look for bandages in cases they are running low on them, bots that are not medics can decide to totally ignore any bandage management including these tags, but bot medics will always pay attention to their bandage reserves and will often set a need to refill them and will actively look for these tags on any junction they visit)
- Improved navigation (bot equipped with a claymore mine will now look for paths leading to goal placed claymore waypoints, that means such waypoint has priority set to 1, it works much like the pushpoints or ammoboxes, if there's a claymore waypoint with priority set to 1 on any path, such path transmits 'ExplosivesGoal' tag and bot with a claymore mine, who decided to reach map goals, looks for that tag whenever he reaches a cross waypoint and starts a decision about where to go now)
- Improved unstuck behaviour a bit (now the bot should detect the surrounding better, also return back to proper navigation faster, so for example the breakable obstacles where the bot gets stuck on should no longer be as big issue as before)
- Changed the number of bots that can follow you to 3 (it used to be 2, but in real world there are 4 member teams used so MB allows it now too)
- Changed the first 14 custom classes used for default recruiting (they weren't much balanced so returned them back to the idea from early MB releases where the classes are basically same, but are using the Western Bloc vs. the Eastern Bloc weapons where it's possible)
- Changed bot behaviour upon picking up a claymore mine on a map with prefix sd_ or sdtc_ where the Search & Destroy object can be destroyed by claymore mine only (if bot decided not to reach map goals and later on he gets the mine as an item, he will try to reconsider his previous decision about reaching map goals, there's higher chance he will decide to reach the goal now that he's got the mine)
- Changed claymore mine usage on claymore waypoint with priority 1 (bot will now always check whether there is any Search & Destroy object in the vicinity of priority 1 claymore waypoint before setting the mine, if there's no such object he won't set the mine and will leave the waypoint, so having a claymore waypoint with priority 1 somewhere on a map to make the bot detonate the mine just for the fun is no longer possible)
- Changed claymore mine usage on claymore waypoint (bot will now check whether he's on map where destroying the Search & Destroy object requires the mine and if so he will try to avoid wasting the mine on ordinary claymore waypoints that are placed throughout the map, also bots that generated the need to reach map goals will ignore all common claymore waypoints and will keep the mine to use it only on the goal claymore waypoint - i.e. with priority = 1, all this new behaviour is based on a new internal variable that reads properties of Firearms specific Search & Destroy entity during load of any map with prefix sd_ or sdtc_, all other maps are unchanged and bot has a 50% chance to lay the mine on any ordinary claymore waypoint no matter whether he has the need to reach map goals or not)
- Changed 'check_cross' feature (the connection to a waypoint with zero priority for both teams within the cross waypoint range will be drawn red now, to make it clear at the first sight that this waypoint will be ignored in the decision making)
- Changed 'pathwpt setdirection' and 'pathwpt setteam' client commands (unified the way how do all path changing commands work, the first use will add the type/tag and the second use will remove it with the exception of the default path tags, e.g. 'pathwpt setteam red' will make the path a red team only path while the second use of this command on the same path will return the path back to a both teams path, 'setclass' and 'setmics' already worked this way, so now all these commands and 'wpt change' command are using the same logic, hopefully that will finally remove the confusion)
- Changed 'wpt change' client command (it can now take two arguments the new waypoint type and also its index number, their order doesn't matter, this allows you to do changes remotely without the need to actually get close to such waypoint, also the automatic bad type combinations fixes that are part of this function were improved a little, on top of that you may now get a new error if you try to make a bad type combination e.g. ammobox + goback will fire such message, of course there will be no changes done on such waypoint)
- Changed the shortcut commands for the original HUD based MB menu (removed 5 previous commands - 'mbwptmenu', 'mbwptmenuadd', 'mbwptmenuchange', 'mbwptmenupath', 'mbwptmenupathflags' and replaced them with 4 new - 'mbmenushortcutwpt', 'mbmenushortcutwpttags1', 'mbmenushortcutpath', 'mbmenushortcutpathtags1', the functions of adding and changing waypoint are now merged into one command, that automatically calls adding if there is no waypoint nearby, or it will call changing if there is any waypoint and you aren't more than 50 units away from it, i.e. the default range for all waypoint editing commands)
- Updated 'pathwpt checkproblems' feature (added several warnings for patrol type path and the use of some waypoint types on it)
- Updated all waypoints included in the release package in order to utilize the new automated bandage tags
- Updated obj_armory waypoints (scrapped one useless cross waypoint and reworked a few paths to keep original layout at blue spawn, fixed one missing sniper tag and used zero priority on a few waypoints around cross waypoints where are only one-way paths ending to save some CPU usage)
- Updated obj_bocage waypoints (scrapped 8 useless cross waypoints and replaced them by changed layout of paths, added couple new paths, turned couple paths into avoid enemy ones, fixed couple missing sniper tags on wait-timed waypoints, repositioned many aim waypoints to their max distance to prevent occasional issues with targeting them which is then being reported into error log)
- Updated obj_paradise waypoints (added 2 new paths that use roadblock waypoints on route through The North Gate, also added new path to allow red bots equipped with claymore mine destroy The North Gate and fixed several missing sniper tags)
- Updated obj_sweden waypoints (scrapped 2 somewhat useless cross waypoints near the 'pathway Windmill' and replaced them by changed layout of paths, used the last free Trigger slot to lock the paths leading over the 'Wall 1' at the moment reds destroy it, fixed several missing sniper tags on wait-timed waypoints and used zero priority on couple waypoints around cross waypoints where are only one-way paths ending to save some CPU usage)
- Updated obj_thanatos waypoints (scrapped 2 useless cross waypoints at the Ministry of Law and Fairness and replaced them by changed paths layout, also added a new default path leading to the ammobox on upper floor of the same building, this path was missing previously so another default path behind it was unreachable due to sniper only paths in that area, erased 3 solitary waypoints and fixed couple missing sniper tags)
- Updated obj_vengeance waypoints (fixed missing sniper tag on a few wait-timed waypoints)
- Updated obj_willow waypoints (scrapped 3 useless cross waypoints in red spawn zone and replaced them by changed layout of paths, turned couple paths into avoid enemy ones - especially in red spawn area, completely erased one red path inside the house with the missile launchers, scrapped one blue camper spot due to unpreventable aim waypoint sharing with a claymore waypoint in the caves near blue spawn area, repositioned a few aim waypoints to their max distance, fixed bad range on one waypoint, fixed couple missing sniper tags on wait-timed waypoints)
- Updated ps_coldwar waypoints (added the use of roadblock waypoint on the moving bridge and the avalanche pit, reworked couple blue team paths in order to make them move forward faster, also slightly reworked their sniper only paths in caves overwatching the bridge area, fixed several missing sniper tags)
- Updated ps_crash waypoints (extended the 2 paths that were reported as warning due to not ending properly at a cross waypoint, reworked 2 team based paths at first red flag into a default paths and ended one of them on a newly added goback waypoint covering the bandages, repositioned a few aim waypoints to minimize possible issue with targeting them, also repositioned some ladder waypoints to make bots climb the ladders better, fixed missing sniper tags on a few wait-timed waypoints)
- Updated ps_inlands waypoints (sort of a rework to current standards, added the use of pushpoint/flag waypoint, scrapped a few useless cross waypoints and reworked many others, reworked many paths and added some new, repositioned many waypoints including a few aim waypoints, fixed several missing sniper tags)
- Updated ps_island waypoints (repositioned a few aim waypoints and fixed couple missing sniper tags)
- Updated ps_marie waypoints (changed 2 sniper & mgunner paths in the valley from two-way to one-way, also removed nearby aim waypoint that sometimes caused issues, turned couple paths into avoid enemy ones, repositioned a few aim waypoints and fixed several missing sniper tags, fixed bad cross waypoint range inside red spawn zone, fixed missing wait-time on one sniper waypoint on route through the dark tunnel)
- Updated ps_outlands waypoints (fixed 2 camper spots for blue team near red team spawn where one had wait time set for reds instead of blues and second caused problems with going prone, also added the sniper tag to couple camper spots where the bots could have problems returning back after finishing combat, repositioned several aim waypoints)
- Updated ps_river waypoints (general rework, the original layout has been mostly kept, but the excessive use of cross waypoint and a short 2 waypoints camper path has been removed, added a few claymore waypoints which weren't used at all previously, also added a combination of trigger and goback tags on a few waypoints to prevent bots from heading towards the last pushpoint if the other team quickly takes back their 2nd pushpoint i.e. the barn or boulder)
- Updated ps_splinter waypoints (fixed missing sniper tag on a few wait-timed waypoints, fixed missing 'off' event on a few trigger waypoints)
- Updated ps_storm_r1 waypoints (fixed missing sniper tag on several wait-timed waypoints, fixed missing shoot tag on 2 waypoints and added missing aim waypoint for the same 2 waypoints)
- Updated ps_upham waypoints (fixed couple missing sniper tags, repositioned several aim waypoints, repositioned ladder waypoints to make bots climb the ladders better, fixed missing wait-time on one waypoint, reset of wait-times wrongly set on one aim waypoint)
- Updated psobj_thanatos waypoints (scrapped many useless cross waypoints surrounded by short paths of 2 or 3 waypoints and replaced them by changed paths layout, repositioned couple aim waypoints and fixed couple missing sniper tags, reset of wait-time wrongly set on one normal waypoint where it made no sense at all)
- Updated sd_durandal waypoints (fixed missing sniper tag on one waypoint near crashed Blackhawk, reset of wait-time on a door waypoint on the other path from red spawn zone, turned the path leading through doors of the house on blue side of the bridge into blue team only, turned the path leading through doors on the upper floor of blue spawn house into blue team only, because in both cases those doors won't open to reds, added new red team only path to the ground floor of blue spawn house, because reds weren't able to exit that house at all due to the fact that the door on upper floor won't open to them now, increased the wait time on all shoot waypoints made for destroying the crates - i.e. a map goal objects, because 1 second didn't work well in some cases - bot wasn't even able to target them in such time, scrapped 2 useless cross waypoints near/in the house if you take the route to the right from blue spawn zone, and repositioned some aim waypoints)
- Updated sd_durandal_r47_dusk & sd_durandal_r47_nigh waypoints (same changes as on classic sd_durandal, plus finished the undone path through red team only doors into the house on red side of the bridge)
- Updated sd_force waypoints (fixed missing sniper tag on a few wait-timed waypoints, fixed missing aim waypoint for one wait-timed waypoint in central alley, repositioned one aim waypoint to point at correct direction from wait-timed waypoint for red gunner in front of the "road closed" tunnel)
- Updated sd_oberland waypoints (general rework, the original layout has been mostly kept, but the excessive use of cross waypoint and short paths has been removed, also added a few new camper spots for both team snipers and machine gunners, fixed the position of one aim waypoint for claymore waypoint near stairway leading to the pass, fixed missing wait-time on one camper waypoint overwatching the red spawn house)
- Updated sdtc_balcome waypoints (scrapped 4 useless cross waypoints - 2 near each truck - and replaced them by changed paths layout, fixed missing sniper tag on many wait-timed waypoints, repositioned some aim waypoints)
- Updated tc_basrah waypoints (added three new paths to previously unwaypointed bandage locations - they were created specifically to utilize the new bandages tags feature, also added priority setting to one cross waypoint junction that previously didn't need it, because the path to bandages location wasn't built until now, repositioned one aim waypoint)
- Updated tc_battlefield_r2 waypoints (repositioned a few aim waypoints)
- Updated tc_caen waypoints (added couple new paths to previously unwaypointed bandage locations - blues can now reach further inside red spawn area as a result of that, added the Triggers and a few new paths based on them, opened the route through breakable wall at the Armory and fixed bad cross waypoint range there too, reworked couple cross waypoints close to the Radio Studio, scrapped 3 useless cross waypoints in red spawn area and replaced them by changed paths layout, erased couple waypoints and paths, fixed missing wait-time for red team on one waypoint close to blue spawn, fixed bad cross waypoint range close to blue spawn, repositioned some aim waypoints)
- Updated tc_golan waypoints (fixed missing aim waypoints for two wait-timed waypoints on roof of blue team spawn bunker, fixed missing sniper tag on a few wait-timed waypoints, repositioned a few aim waypoints)
- Updated tc_iwojima waypoints (added the Triggers and two new paths based on them, turned the ending waypoint of one-way paths into zero priority where possible, reset of quite limited range for the "landing" waypoints on paths from both spawn zones, changed position and stance of one blue machine gunner camper spot near red team spawn zone, fixed wait-time wrongly set for red team instead of blue on one camper spot near red spawn zone, fixed unwanted aim waypoint sharing on claymore waypoint in tunnels near Out-Post #2, fixed missing sniper tag on almost all wait-timed waypoints, repositioned some aim waypoints)
- Updated tc_okinawa_b3 & tc_okinawa_b4 waypoints (fixed unwanted aim waypoint sharing on claymore waypoint in tunnels from Blue Base to Center Bunker, fixed missing sniper tag on couple wait-timed waypoints, repositioned some aim waypoints)
- Updated tc_rubble waypoints (sort of a rework to current standards, scrapped several useless cross waypoints, reworked many paths, removed hopefully all outdated techniques such as using priorities on an aim waypoint other than zero and default value or setting higher priorities for paths to ammobox or to bandage location and so on, fixed a few range settings, repositioned some waypoints)
- Updated tc_thebes waypoints (turned the ending waypoint of one-way paths into zero priority where possible, changed the sniper & machine gunner paths guarding the Oil Drills to avoid enemy ones and removed all the extra sniper tags from their waypoints, fixed bad cross waypoint range at Oil Drill 2)
- FIXED not reporting an error when reading weapons initialization data file (in case when 'min_safe_distance' was missing for example, but you had 'max_effective_distance' twice there, the reading function counted correct amount of entries and returned that all is okay, now the reading function remembers what has been read and won't count the same entry twice or more times so you'll get the missing entry error)
- FIXED reading custom classes from configuration file (function that counts them ignored missing header e.g. 'class123' which caused subsequent bug where some bots were unable to finish spawning to the game, now it will detect it and report it as warning, also the call of this function has been moved to map load, which removed that short game freezing due to intensive workload right after you've entered the game)
- FIXED couple bugs in picking Firearms specific skills (e.g. if marksmanship 2 was listed before marksmanship 1 the bot correctly set marksmanship 1 first, but didn't call the right command for it so Firearms didn't assign it to him, also when there were no skills listed in the custom configuration file for particular class then the code to generate one caused assigning wrong or no skill, this bug was only for 'sv_useskills 1' system, the 'sv_useskills 2' & 'sv_useskills 3' systems were not affected by that)
- FIXED changing the move speeds based on yaw and pitch angles (ancient bug from the old days where the bot didn't slow down correctly based on turning/aiming angles, because the values were set beyond given limits, also now bot won't always slow down while moving down the hill/stairs/roof, but only when he's heading towards waypoint with range less than 50 units - i.e. less than the default range)
- FIXED bleeding management (another ancient bug where bot wasn't able to detect when bleeding stopped due to a bug in a function that allows bot to listen to sounds, things worked correctly only for the first bot, but for other clients it got broken whenever there was any muted sound of bleeding, plus when was the Passive Healing feature activated this very same bug appeared too)
- FIXED decoding Firearms text messages sent to one client (another old time bug that caused many subsequent bugs such as a bot using the m16/m203 getting stuck in trying to fire the empty m203 - you could hear the out of ammo sound repeating over and over again when being close to him, the problem was in the additional string being sent for certain messages, that corrupted the whole decoding system, prior patch fixed it only partially, irony is that the other decoder for the text messages to all clients got a code patching exactly this bug already in version 0.92b)
- FIXED inability to switch to knife in rare cases (for example when you created crazy custom class with just the knife and explosives)
- FIXED random inability to correctly target the mounted gun - like those on tc_iwojima - in order to actually start using it (the pitch angle was often just too big and the bot was looking on ground instead of at the gun so when he used the use key it didn't activate the controls, because he was not aiming to a correct point)
- FIXED inability to use the mounted gun for unlimited period of time (if you set wait time on the use waypoint then the bot will use the gun for that time, but if you don't set any time on the waypoint the bot should use the gun for as long as he can, however there was a conflict between both codes and the bot then left the use waypoint before he was able to actually get control of the gun, the code for limited gun use did reset one variable that was needed for the unlimited gun use)
- FIXED aiming to bad angles even at self when using mounted gun where there is no aim waypoint nearby (the code to use the mounted gun itself as the aim vector when aim waypoints are missing didn't work at all, in case of unlimited gun use the bot was even turning away from the gun so he then pointed the gun at himself)
- FIXED bot visiting ammobox twice in row sometimes (under certain conditions bot was able to go for ammo twice due to not updating the ammo reserves count fast enough, this bug is visible in MB Waypointing video guide, now there's a new check for ammo reserves right after bot leaves the ammobox so he will behave correctly)
- FIXED bot using the shoot waypoint when completely out of ammo (bot continued in the "shoot" action even when he depleted all his ammo for both main as well as backup weapon, he just stood at the shoot waypoint and kept stabbing with a knife, now he will immediately break the action, plus won't even start such action when he reaches this waypoint with no ammo)
- FIXED bot resetting navigation after recovering from being blinded by concussion grenade (although it may make sense, it's a bug, now there's a code to update the waypoint reach time during the blindness so the bot will correctly continue on his path once the blindness fades out)
- FIXED bot resetting navigation during parachuting (the time bot spent in midair was usually just too long to get to the next waypoint in time so then he had to reset his navigation, now he'll keep updating waypoint reach time while in midair so he would reset the navigation only in case he landed in some ditch that he's unable to get out of or if he landed far away from the target waypoint)
- FIXED inability to destroy Search & Destroy or breakable object if you used the shoot waypoint without wait time (bot fired just once at such object and then simply left, now he'll keep shooting till the object is destroyed, also fixed inability to reload the gun during such action, previously that couldn't even have been an issue seeing bot fired just one round and left this waypoint)
- FIXED not using waypoint range at certain cases (e.g. when the bot was leaving his current path then he headed towards the real position of the newly found waypoint instead of using its range, or when the bot was returning back to patrolling after battle then he also headed towards real position of the waypoint instead of using its range)
- FIXED bug caused by previous bug fix (the patch for "inability to leave a path when there was an 'ammobox' or 'use' waypoint as its first or last waypoint" from MB 0.95b actually created new smaller bug where under certain conditions the bot could incorrectly leave such path)
- FIXED another bug connected to behaviour at the end of two-way path, but this time only when it was used in a direction from start to end (when the bot reaches such end and there is no cross waypoint or any other waypoint nearby then he should wait at the end of the path for up to a minute, and then change the move direction from start->end to end->start and return back to the start of this path, but the bot stopped using the path navigation and reverted to using basic waypoint to waypoint navigation for a few seconds, so sometimes the bots could have lost their original destination)
- FIXED another bunch of unsafed client commands (this time I went through waypointing commands and fixed hopefully all unsafe operations, e.g. passing an invalid argument, also fixed wrong or misleading console output for some commands, mostly the error messages as a result of passing invalid arguments, e.g. 'pathwpt insert' command was one of the worst in this matter)
- FIXED path changing commands incorrectly doing the changes to a path on nearby waypoint instead of currently edited path (when you were creating a path and you used any of path properties changing commands e.g. 'setteam' while you were standing near a waypoint with another path then the changes were applied to the other path instead of the path you were creating, now the changes will be correctly applied to the path you are creating)
- FIXED 'pathwpt printall' feature (it was unable to correctly report when the path had both sniper as well as mgunner class set, it printed that it's a sniper only path)
- FIXED 'wpt repair sniperspot' feature (it was incorrectly reporting nothing was repaired while it actually fixed some issues, 'claymore' and 'shoot' waypoints are now correctly ignored since both can be used at the end of a path as a Search & Destroy object spot so not a possible sniper spot, fixed a critical bug where this repair function focused only on the path end and ignored the path start, now it'll check both, also it'll try to force the 'sniper' tag on waypoints that are being processed, so a crouch+goback waypoint with wait time will become a crouch+goback+sniper with wait time)
- FIXED the original HUD based MB menu crashing the game in Firearms 2.7 (no idea why it wasn't crashing the game back in the days, but MB HUD menu lock been shifted to FA 2.7 - i.e. no HUD menu in FA 2.7 and later, also polished quite weird or chaotic text formatting including replacing the backslash used in some command names, that are shown on the menu, by the forward slash which is the correct punctuation in such cases, then reorganized the waypoint tags menus - now ordered by use, that means from most often to seldomly used, and lastly added some new commands such as the roadblock waypoint, botdontchat and botdontchattobots)
- FIXED the original HUD based MB menu not allowing to change waypoint tag and such actions (recent changes in processing the console input/output and subsequent changes of some waypoint functions broke the way how the HUD menu commands interacted with those functions)
- FIXED getting the zoom level for weapons with optics in Firearms 2.4 and 2.5 (these old FA versions don't use specific variable to store current zoom level for the few weapons that have optics so the code that allows the bot to use optics didn't work well in the old FA versions, now I've found a workaround and wrote simple patch that manually sets the needed variable in order to make things work well even in these old FA versions)
- FIXED switching to main weapon right after bot spawned in Firearms 2.4 and 2.5 (due to the way how these old FA versions spawn weapons the bot detected that he doesn't use his main weapon and tried to switch to it despite the fact that he received it soon after, now there is a short delay before the bot starts using his weapon, this "weapon lock" is actually implemented in all supported Firearms versions, because it doesn't cause issues and it's easier to have it this way)
- FIXED bot getting stuck in a try to merge clips in Firearms 2.4 and 2.5 (bot simply crouched and waited till the merging is finished, but this command isn't supported in old FA versions so he returned to standard navigation only after being killed, now there's an exception to break the merging right away for these old versions, that means the bot won't call the command and won't pause to finish it)
- FIXED trying to use bipod on weapon in Firearms 2.4 and 2.5 (bipod command isn't available in these old versions, bot didn't get stuck, because there already is a safety code to ignore bipod in cases FA doesn't allow using it, but his combat abilities were affected by that, now there's a code to block calling this command in FA versions that don't support it)
- FIXED bot getting stuck in infinite Benelli shotgun reload loop in Firearms in version 2.7 and below (since learning the ability to merge clips in version 0.94, Marine Bot became obsessive reloader, and due to different max ammo capacity on Benelli and Remington shotguns the bots that were using Benelli in old Firearms version got stuck at infinite reloading loop couple seconds after respawn, now there's a code to set correct max ammo capacity for specific FA versions)
Wow this is by far the longest changelog yet. Just this list took me more than half a day to put it together. But I want to give you all the info. Besides such list helps me keep track of what has been done and when. If you happen to run into some bug you can get general idea what all may be affected by it. Speaking of it. As I wrote about the issues in sd_durandal waypoints last time, it not only helped me point to exact bugged spots, but while fixing them I also noticed the bots are having problems with destroying the crates, i.e. the map goal object. They were shooting above them not into them. I knew it used to work just fine before so I checked the changes and I found what may have broke it. It was the fix for inability to target and get control of the mounted gun. So finding the exact place in the source code and figuring out a solution was a matter of few minutes. After that I compiled a new test build and let the Dedicated Server run for almost a full day only on this map and there was not a single record in the error log, plus bots were able to finish the map without serious issues. Would have been pretty bad if I missed that, because Durandal is legendary map that many gamers love, and having bots fail on it, well then this release would be ruined to a degree. By the way. Dedicated Server with the final build for this release is still running on the other laptop next to me. Normally I'm running just Firearms and Marine Bot, where I rename both the library as well as MB folder so that there is no underscore character. You know, to prevent HLDS from crashing due to that, but for this final test I used default names and added metamod in version 1.21p38 to simulate a more common use. It's running for roughly 40 hours now. No serious issues. No restart. Only 5 reports of inability to target an aim waypoint, like I wrote about in previous news update. All of it is a random event on various maps. No multiple repeats. So if I sum all Dedicated Server sessions from past week/s I guess I can say that even this version of Marine Bot seems to be pretty stable.
Anyway I hope you're going to enjoy playing Firearms with this new Marine Bot version. Also have a great New Year's Eve ... well at least everywhere where you aren't past it already, and see you next year ;).
27 December 2023
Couple days ago I compiled Marine Bot .so library and let the Linux Dedicated Server run for over 3 days. No crashes at all which is cool. The error log Marine Bot uses to dump issues listed only some waypoint problems. Just some random issues with inability to correctly target an aim waypoint from this or that waypoint. These happen now and then. And if they don't repeat multiple times in the log then everything is fine. Only the waypoints for sd_durandal had repeating records. One of those 3 or 4 problem spots was this one:
***new record(time:1366.730103)(map:sd_durandal)***
(WAYPOINT BUG) - Bot isn't able to target aim waypoint #157 from waypoint #120!
Try moving the aim waypoint a bit away from "master" waypoint.
Or reduce the range on "master" waypoint.

This is the entrance to a house with red crates in red spawn area. As you can see red bots are trying to protect the house, or their crates, with a claymore mine which is perfectly fine. The problem is the position of the aim waypoint. That's the short pink waypoint on the left. You can see it's at the edge of the range (those white lines) of the claymore waypoint which is just 20 units so really close. If the bot happens to use the claymore waypoint range full potential and stops at its edge then he has a problem targetting this aim waypoint in order to place the claymore mine in right direction. The code tells him to try it a few times and if he keeps failing he just gives up and places the mine no matter which way he's currently looking. This means the mine may not be positioned correctly, e.g. turned to a side. And it also means he will fire the error message that you can see above the picture. The purpose of these error messages/logs is to point to the problems. And that's exactly what it did in this case.
After I closed the test Linux server, I copied the error log to my main laptop. Used the 'wpt compass 120' feature to lead me to this problem spot. And by using 'wpt move 157' while standing farther away from the claymore waypoint I did exactly what the hint from that error log told me. See how does it look now. Btw that thin pink horizontal line shows that the aim waypoint is still within 100 units range from the claymore waypoint in order to allow the bot use it every time he wants to plant the mine here.

Other two issues that repeated in the log were two 'shoot' waypoints in the upper room of this house. Waypoints that are used by blue bots to destroy the crates by gunfire. Exactly the same issue as the one I showed above. This is the reason why I also always tried to run through whole map and moved many aim waypoints further away from their "master" waypoints when I was updating the waypoints for upcoming release. No one likes an error log full of the same issues repeating over and over again. This is also the answer to why I do so many tests. No one is perfect. Humans do mistakes. But if you try hard you may limit the amount of errors you leave in whatever you do.
Anyway have a happy holiday season and be patient, please. Marine Bot 0.96b is close, but I still need to run a few more tests to catch as many bugs as I can.
17 December 2023
Guess I might update it here, because I was lucky and in the past days I managed to fix two long time bugs. The first one is the sound detection bug I wrote about last time. There were two spots within the function for sound detection that effectively broke it every time a bleeding sound with zero volume (muted bleeding sound marks the end of bleeding for that client) was played. Well one spot. The other spot was a statement for when you activated the 'Passive Healing' feature. That one also bugged this function. So now that the sound detection is fixed I commented out the code for Status Icon of blood, because like I said that works only in Firearms 2.9 and 3.0. Besides it's pointless to double the detection of bleeding as it only draws additional system resources.
Next thing was the bug in decoding Firearms specific text messages that are being sent to a single client whenever he/she does any action that has such message. You know, stuff like 'You bandage your wounds', 'Merging magazines' or 'Switched to M203 fire'. But messages about capturing this or that pushpoint or territory control point or grabbing/dropping/returning the intelligence/whatever object are being sent to all clients so they are decoded in different function. Anyway it was the M16/M203 case that allowed me to track this bug down. I mean I've noticed a bot using this M16 with Artillery 1 skill not shooting at all and heard the sound of clicking a trigger of an empty gun when I got to him. After adding more debugging code and running several tests I found that the 'Switched to xxx fire' messages suddenly stopped working. Well I already dealt with this text message decoding issue in the past. It's caused by the fact that the text message isn't same all the time, but can have additional string variable when the message needs to list a name of any client (e.g. when medic treats his teammate). I found that in the past and wrote a patch, but that patch didn't fix it properly. Basically I thought I got all the cases when there is this additional string sent covered, but obviously there were some text messages that I didn't caught previously. What's stupid about this, is fact that I've got the needed code just a few lines below in the other function that decodes the text messages that are being sent to all clients. It's been there since Marine Bot in version 0.92b so the patch was available for like a decade. Universally working code that can handle any text message whether it is a standard message or one with the additional string variable. Oh well, sometimes I'm just totally dumb :).
- FIXED bleeding management (yet another ancient bug where bot wasn't able to detect when bleeding stopped due to a bug in a function that allows bot to listen to sounds, things worked correctly only for the first bot, but for other clients it got broken whenever there was any muted sound of bleeding, plus when was the Passive Healing feature activated this very same bug appeared too)
- FIXED decoding Firearms text messages sent to one client (another old time bug that caused many subsequent bugs like bot using the m16/m203 getting stuck in trying to fire the empty m203 - you could hear the out of ammo sound repeating over and over again when being close to him, the problem was in the additional string being sent for certain messages, that corrupted the whole decoding system, prior patch fixed it only partially, irony is that the other decoder for the text messages to all clients got a code patching exactly this bug already in version 0.92b)
9 December 2023
First here's a list of changes made since the last news update.
- Updated tc_basrah waypoints (added three new paths to previously unwaypointed bandage locations - they were created specifically to utilize the new bandages tags feature, also added priority setting to one cross waypoint junction that previously didn't need it, because the path to bandages location wasn't built untill now, repositioned one aim waypoint)
- Updated tc_battlefield_r2 waypoints (repositioned a few aim waypoints)
- Updated tc_caen waypoints (added couple new paths to previously unwaypointed bandage locations - blues can now reach further inside red spawn area as a result of that, added the Triggers and a few new paths based on them, opened the route through breakable wall at the Armory and fixed bad cross waypoint range there too, reworked couple cross waypoints close to the Radio Studio, scrapped 3 useless cross waypoints in red spawn area and replaced them by changed paths layout, erased couple waypoints and paths, fixed missing wait-time for red team on one waypoint close to blue spawn, fixed bad cross waypoint range close to blue spawn, repositioned some aim waypoints)
- Updated tc_golan waypoints (fixed missing aim waypoints for two wait-timed waypoints on roof of blue team spawn bunker, fixed missing sniper tag on a few wait-timed waypoints, repositioned a few aim waypoints)
- Updated tc_iwojima waypoints (fixed unwanted aim waypoint sharing on claymore waypoint in tunnels near Control Point 2, turned the ending waypoint of one-way paths into zero priority where possible, reset of quite limited range for the "landing" waypoints on paths from both spawn zones, fixed missing sniper tag on almost all wait-timed waypoints, repositioned some aim waypoints)
- Updated tc_okinawa_b3 & tc_okinawa_b4 waypoints (fixed unwanted aim waypoint sharing on claymore waypoint in tunnels from Blue Base to Center Bunker, fixed missing sniper tag on couple wait-timed waypoints, repositioned some aim waypoints)
- Updated tc_rubble waypoints (sort of a rework to current standards, scrapped several useless cross waypoints, reworked many paths, removed hopefully all outdated techniques such as using priorities on an aim waypoint other than zero and default value or setting higher priorities for paths to ammobox or to bandage location and so on, fixed a few range settings, repositioned some waypoints)
- Updated tc_thebes waypoints (turned the ending waypoint of one-way paths into zero priority where possible, changed the sniper & mgunner paths guarding the Oil Drills to avoid enemy ones and removed all the extra sniper tags from their waypoints, fixed bad cross waypoint range at Oil Drill 2)
- Added ps_rubicon waypoints (based on waypoints from the Waypointing Video Guide, added several new paths especially for snipers and machine gunners or paths to previously unwaypointed bandage locations)
- FIXED the original HUD based MB menu crashing the game in Firearms 2.7 (no idea why it didn't crash the game back in the days, but MB HUD menu is disabled since FA in version 2.7 now)
- FIXED the original HUD based MB menu not allowing to change waypoint tag and such actions (recent changes in processing the console input/output and subsequent changes of some waypoint functions broke the way how the HUD menu commands interacted with those functions)
- FIXED changing the move speeds based on yaw and pitch angles (ancient bug since the old days where the bot didn't slow down correctly based on turning/aiming angles, because the values were set beyond given limits, also now bot won't always slow down while moving down the hill/stairs/roof, but only when he's heading towards waypoint with range less than 50 units - i.e. less than default range)
- Changed the first 14 custom classes used for default recruiting (they weren't much balanced so returned them back to the idea from early MB releases where the classes are basically same, but are using the Western Bloc vs. the Eastern Bloc weapons where it's possible)
- Changed claymore mine usage on claymore waypoint (bot will now check whether he's on map where destroying the s&d object requires the mine and if so he will try to avoid wasting the mine on common claymore waypoints throughout the map, also bots that generated the need to reach map goals will ignore all common claymore waypoints and will keep the mine to use it only on the goal claymore waypoint - i.e. with priority = 1, all this new behaviour is based on a new internal variable that reads properties of FA specific Search & Destroy entity during load of any map with prefix sd_ or sdtc_, all other maps are unchanged and bot has a 50 on 50 chance to set the mine on any common claymore waypoint no matter whether he has the need to reach map goals or not)
- Changed bot behaviour upon picking up a claymore mine on a map with prefix sd_ or sdtc_ where the Search & Destroy object can be destroyed by claymore mine only (if bot decided not to reach map goals and later on he gets the mine as an item, he will try to reconsider his previous decision about reaching map goals, there's higher chance he will decide to reach the goal now that he's got the mine)
Now for more details. The changes in bot behaviour mean I've had to drop my original plan to release MB0.96b as this year Christmas present. I mean that I've found some strange behaviour during the testing so while figuring out how to fix those issues I also decided to fix or tweak some other things I've noticed too. The biggest issue is strange bug connected to bandaging. It's not listed above, because I'm not sure I've really patched it. Still in a process of testing and checking.
Well the bandaging was always a bit troublesome. Always caused issues. It seems that now I've found the most probable source of problems with bandaging. Bot detects bleeding by the sound. The engine sends a sound message with the name of sound file and the volume. When the volume value is non-zero it means you're bleeding. This message repeats every couple seconds. And when you finish bandaging or medic treats you or you die, the same sound message, but with zero volume ends the bleeding. This is how it looks like when I dump it to debugging file. The bleeding sound message didn't repeat here, because this bot got killed by second hit ... his health is below zero ... and started the process of respawning.
***new record(time:38.514263)(map:tc_iwojima)***
(1033A5B0)[MB]Vance Hubbard}+{<health=70.0> - bleed_wav with some volume
***new record(time:39.030846)(map:tc_iwojima)***
(1033A5B0)[MB]Vance Hubbard}+{<health=-46.0> - bleed_wav with ZERO volume (end of bleeding!)
***new record(time:39.030846)(map:tc_iwojima)***
[MB]Vance Hubbard}+{ is respawning
All seems to be fine, but the problems is that this works only for the first bot. All other bots don't seem to receive the "end of bleeding" message. So they don't know they aren't bleeding anymore. This means that with the recent changes on the source code level making the code more "safe", some bots did run around yelling for medic or tried to bandage themselves over and over again. So I decided to use the Status Icon of blood that has been added to Firearms since version 2.9. At first I found another bug lol. This time it was in the engine message for the Status Icon in Firearms. You know, decoding the engine messages is always a guess work. You don't know what the values you see in the debugging file mean exactly. You compare the log of both events and the value that has changed is usually the one you are going to use to detect this event or you assign it to some of the internal value the bot uses. Well I didn't guess the Status Icon message values right back in the old days. Things worked well, because the values that changed, and I used, were ... to my luck ... unique and allowed things to do exactly what I needed. But neither of the values was the one that actually caused the icon to show or hide on the HUD. These other values are probably used to determine the position and appearance of the icons. Either way I rewrote the code for decoding the Status Icon engine message to fix it. Then added the code for bleeding to the fixed Status Icon message decoding and now it seems the bleeding works correctly. Tested it by using the command to kill all bots in the game. Here's the cut from the debugging file.
***new record(time:247.051559)(map:tc_iwojima)***
[MB]Vance Hubbard}+{<health=-100.0> - blood Status Icon HIDDEN (task REMOVED)
***new record(time:247.051559)(map:tc_iwojima)***
(1033A5B0)[MB]Vance Hubbard}+{<health=-100.0> - bleed_wav with ZERO volume (end of bleeding!)
***new record(time:247.051559)(map:tc_iwojima)***
[MB]Charles Hung}+{<health=-100.0> - blood Status Icon HIDDEN (task REMOVED)
***new record(time:247.051559)(map:tc_iwojima)***
[MB]Lugvits Kopna}+{<health=-100.0> - blood Status Icon HIDDEN (task REMOVED)
***new record(time:247.051559)(map:tc_iwojima)***
[MB]Markus Renberg}+{<health=-100.0> - blood Status Icon HIDDEN (task REMOVED)
***new record(time:247.051559)(map:tc_iwojima)***
[MB]Hans Goldstein<health=-100.0> - blood Status Icon HIDDEN (task REMOVED)
***new record(time:247.051559)(map:tc_iwojima)***
[MB]Juan Gonzales<health=-100.0> - blood Status Icon HIDDEN (task REMOVED)
***new record(time:247.051559)(map:tc_iwojima)***
[MB]Yohwam Hui<health=-100.0> - blood Status Icon HIDDEN (task REMOVED)
***new record(time:247.051559)(map:tc_iwojima)***
[MB]Adam Gallagher<health=-100.0> - blood Status Icon HIDDEN (task REMOVED)
***new record(time:247.066452)(map:tc_iwojima)***
[MB]Vance Hubbard}+{ is respawning
***new record(time:247.082977)(map:tc_iwojima)***
[MB]Charles Hung}+{ is respawning
***new record(time:247.082977)(map:tc_iwojima)***
[MB]Lugvits Kopna}+{ is respawning
***new record(time:247.082977)(map:tc_iwojima)***
[MB]Markus Renberg}+{ is respawning
***new record(time:247.082977)(map:tc_iwojima)***
[MB]Hans Goldstein is respawning
***new record(time:247.082977)(map:tc_iwojima)***
[MB]Juan Gonzales is respawning
***new record(time:247.082977)(map:tc_iwojima)***
[MB]Yohwam Hui is respawning
***new record(time:247.082977)(map:tc_iwojima)***
[MB]Adam Gallagher is respawning
You can clearly see that only the first bot got the sound message marking the end of bleeding, but all bots got the Status Icon message. That's great thing when it comes to using Marine Bot in Firearms 2.9/3.0, but all older versions will still be vulnerable to incorrectly working bleeding, because there is no status icon for bleeding in them. I've added some additional code for bleeding to some parts of the code where it could help "patching" it, but I wasn't able to find any bullet-proof way of dealing with this issue in those old Firearms versions. Either way I'll continue in testing and checking and hopefully I'll be able to release 0.96b rather sooner than later.
17 November 2023
Time for another update on how does Marine Bot development go. I continue with waypoints updating. This time there is yet again a general rework. sd_oberland waypoints were created by the same guy as ps_river so there was the same reason to rework them. I'm not saying that they were bad waypoints. No, but they were done so that they didn't work well with latest navigation updates. High amount of cross waypoint junctions with dozens of paths that are two or three waypoints long are pretty limiting factor for current navigation system. Just check Marine Bot Waypointing Guide, 'The scope of a cross waypoint has limits' chapter, and you'll see what I mean. Besides the more cross waypoints you use the more computing power is needed when bots play that map, because each bot always has to scan all surrounding waypoints and paths to decide where to go next. I always tried to design Marine Bot in a way to keep the need of system resources at low level. This is the reason why there are tags like 'sniper' or 'avoid enemy' in Marine Bot Waypointing system, instead of Marine Bot hogging the system resources with constant HL engine calls to check for "safe surrounding". So trying to keep cross waypoint junctions usage within reasonable boundaries fits the whole Marine Bot philosophy.
As for the "fixed missing sniper tag ...". Again it doesn't mean the waypoints were really bugged and unplayable. No. In most cases this has no effect on the way how bots play that map. This is more of a formal fix. I mean that almost all the waypoints that missed this tag are waypoints on 'avoid enemy' path or on sniper/machine gunner path. So the bot would hold the position anyway, but the reason to have 'sniper' tag on such waypoint are possible changes I/someone else may do in the future. You know if you remove the 'avoid enemy' tag from that path then a wait-timed waypoint without a 'sniper' tag will become a "free to move in combat" waypoint and so then the bots may try to jump out of the window (for example) due to such change. So having the 'sniper' tag there now means you can change path tags anytime and without the fear you create a true bug.
- Updated ps_upham waypoints (fixed couple missing sniper tags, repositioned several aim waypoints, repositioned ladder waypoints to make bots climb the ladders better, fixed missing wait-time on one waypoint, reset of wait-times wrongly set on one aim waypoint)
- Updated psobj_thanatos waypoints (scrapped many useless cross waypoints surrounded by short paths of 2 or 3 waypoints and replaced them by changed paths layout, repositioned couple aim waypoints and fixed couple missing sniper tags, reset of wait-time wrongly set on one normal waypoint where it made no sense at all)
- Updated sd_durandal waypoints (fixed missing sniper tag on one waypoint near crashed Blackhawk)
- Updated sd_durandal_r47_dusk & sd_durandal_r47_nigh waypoints (fixed missing sniper tag on one waypoint near crashed Blackhawk, finished the undone path through red team only doors into the house on red side of the bridge, turned the path leading through doors of the house on blue side of the bridge into blue team only, because those doors won't open to reds)
- Updated sd_force waypoints (fixed missing sniper tag on a few wait-timed waypoints, fixed missing aim waypoint for one wait-timed waypoint in central alley, repositioned one aim waypoint to point at correct direction for red mgunner wait-timed waypoint in front of "road closed" tunnel)
- Updated sd_oberland waypoints (general rework, the original layout has been mostly kept, but the excessive use of cross waypoint and short paths has been removed, also added a few new camper spots for both team snipers and machine gunners, fixed the position of one aim waypoint for claymore waypoint near stairway leading to the pass, fixed missing wait-time on one camper waypoint overwatching the red spawn house)
- Updated sdtc_balcome waypoints (fixed missing sniper tag on many wait-timed waypoints, repositioned some aim waypoints)
23 October 2023
A list of changes done since last news update.
- Updated ps_river waypoints (general rework, the original layout has been mostly kept, but the excessive use of cross waypoint and a short 2 waypoints camper path has been removed, added a few claymore waypoints which weren't used at all previously, also added a combination of trigger and goback tags on a few waypoints to prevent bots from heading towards the last pushpoint if the other team quickly takes back their 2nd pushpoint i.e. the barn or boulder)
- Updated ps_splinter waypoints (fixed missing sniper tag on a few wait-timed waypoints, fixed missing 'off' event on a few trigger waypoints)
- Updated ps_storm_r1 waypoints (fixed missing sniper tag on several wait-timed waypoints, fixed missing shoot tag on 2 waypoints and added missing aim waypoint for the same 2 waypoints)
9 October 2023
Continued on waypoints updating. I didn't have much free time lately so following changes were mostly done during the weekends.
- Updated obj_vengeance waypoints (fixed missing sniper tags on a few wait-timed waypoints)
- Updated obj_willow waypoints (scrapped 3 useless cross waypoints in red spawn zone and replaced them by changed layout of paths, turned couple paths into avoid enemy ones - especially in red spawn area, completely erased one red path inside the house with the missile launchers, scrapped one blue camper spot due to unpreventable aim waypoint sharing with a claymore waypoint in the caves near blue spawn area, repositioned a few aim waypoints to their max distance, fixed bad range on one waypoint, fixed couple missing sniper tags on wait-timed waypoints)
- Updated ps_crash waypoints (extended the 2 paths that were reported as warning due to not ending properly at cross waypoint, reworked 2 team based paths at first red flag into 'default' paths and ended one of it on a newly added goback waypoint covering the bandages, repositioned a few aim waypoints to minimize possible issue with targettting them, also repositioned some ladder waypoints to make bots climb the ladders better, fixed missing sniper tags on a few wait-timed waypoints)
- Updated ps_inlands waypoints (sort of a rework to current standards, added the use of pushpoint/flag waypoint, scrapped a few useless cross waypoints and reworked many others, reworked many paths and added some new, repositioned many waypoints including a few aim waypoints, fixed several missing sniper tags)
- Updated ps_island waypoints (repositioned a few aim waypoints and fixed couple missing sniper tags)
- Updated ps_marie waypoints (changed 2 sniper & mgunner paths in the valley from two-way to one-way, also removed nearby aim waypoint that sometimes caused issues, turned couple paths into avoid enemy ones, repositioned a few aim waypoints and fixed several missing sniper tags, fixed bad cross waypoint range inside red spawn zone, fixed missing wait-time on one sniper waypoint on route through the dark tunnel)
- Updated ps_outlands waypoints (fixed 2 camper spots for blue team near red team spawn where one had wait time set for reds instead of blues and second caused problems with going prone, also added the sniper tag to couple camper spots where the bots could have problems returning back after finishing combat, repositioned several aim waypoints)
27 September 2023
Marine bot entered the pre-release phase. This means I'm not working on any new features or on source code in general. I'm going through the change log and testing the changes one by one. Also this is the time when I'm doing most of the work on waypoints. This time this is a bit special, because there was Waypoint System upgrade so I'm basically taking waypoints one by one and updating them to the latest version. Well the updating is pretty easy task, but I just want to check whether all worked well so I'm basically doing what you could have seen in that short YT video taken on obj_sweden, where I was testing the 'bandages' tags addition. Together with that I'm also fixing issues I spot or those that the 'checkproblems' commands report. You know these commands can report even things that are intentionally made that way. Which means I'm not changing all things. I use the 'compass' feature to get to the problem waypoint or path and if I find that it really needs to be fixed I fix it. If it is sort of false alarm I let it be the way it is. Anyway here's a list of updated waypoints so far.
- Updated ps_coldwar waypoints (added the use of roadblock waypoint and fixed several missing sniper tags, reworked couple blue team paths in order to make them move forward faster, also slightly reworked their sniper only paths in caves overwatching the bridge area)
- Updated obj_sweden waypoints (scrapped 2 somewhat useless cross waypoints near 'pathway Windmill' and replaced them by changed layout of paths, used the last free Trigger slot to lock the paths leading over the 'Wall 1' at the moment reds destroy it, fixed several missing sniper tags on wait-timed waypoints and used zero priority on couple waypoints around cross waypoints where there are only one-way paths ending to save some CPU usage)
- Updated obj_armory waypoints (scrapped one useless cross waypoint and reworked a few paths to keep original layout at blue spawn, fixed one missing sniper tag and used zero priority on a few waypoints around cross waypoints where there are only one-way paths ending to save some CPU usage)
- Updated obj_bocage waypoints (turned couple paths into avoid enemy ones, fixed couple missing sniper tags on wait-timed waypoints, repositioned many aim waypoints to their max distance to prevent occasional issues with targeting them which is then being reported into error log)
- Updated obj_paradise waypoints (added 2 new paths that use roadblock waypoints on route through 'The North Gate', also added new path to allow red bots equipped with claymore mine destroy 'The North Gate' and fixed several missing sniper tags)
- Updated obj_thanatos waypoints (scrapped 2 useless cross waypoints at 'Ministry of Law and Fairness' and replaced them by changed paths layout, also added new 'default' path leading to ammobox on upper floor of the same building, this path was actually missing previously so different 'default' path behind it was unreachable due to 'sniper only' paths in that area, erased 3 solitary waypoints and fixed couple missing sniper tags)
18 September 2023
Updated 'SUPPORT' section the 'Install instructions' part. Added link to a short YT video where you can see all steps needed to have a working MB installation in old Firearms 2.5.
Also I already found and fixed the bug that broke bot's ability to follow you. No wonder that bot kept turning away from you if I gave him opposite vector. I mean I swapped the two variables. So instead of making the final vector from bot to you, it was from you to bot. So when bot received this vector he then turned away. Actually it's a positive thing, because it led me to finding another bug within this part of the code. Once I fixed this wrong vector bots again started to follow me, but I found that the limit of three bots that can follow you doesn't work at all. I mean I was able to get all bots from my team to follow me. Actually that was quite hilarious moment. All those bots fighting for space to get close enough to me. Randomly suiciding themselves, because they got stuck surrounded by other bots. I had really good laugh torturing them like that for a few minutes :). Anyway the bug causing this was a missing decreasing a value by one in one 'if' statement. In other words this bad statement then told bots that this team has still free space so they "agreed" to join it. While I was messing with this code I also changed their watch angles. I mean that before the bots could aim at you when you stopped moving. Now they won't do so. When you move forward they will look at you so they can follow you. But once you stop they will start watching the surrounding, and they'll never look your way (i.e. aim at you). I still need to check whether this code doesn't conflict with code for listening to enemy made footsteps. So I guess I won't get bored next free while (i.e. my next coding session).
16 September 2023
Update on the bot behaviour at goal placed 'claymore' waypoint issue I wrote about in one of previous news. As I expected there was no test whether the search & destroy object exists or not when bot reached a goal claymore (i.e. with priority set to 1 for the team that it is meant for). I'm intentionally using past tense here. Because I already made changes to the code and bot will now always check whether there is any search & destroy object in the vicinity of priority 1 claymore waypoint before setting the mine. If there's none he won't set the mine and will leave the waypoint. I've recorded a short YT clip when I was testing this changed behaviour to show you what I mean. The test was done on sd_oberland, because this map doesn't restart round after you destroy any of the s&d objects unlike sdtc_balcome I mentioned in previous news. So it's easier to test the changes. I've used autowaypointing to create one long path from blue spawn to red crates, because I didn't want bot to "play" this map, just get to the crates and blow them up. Actually to blow them up myself before him and watch his new behaviour. As you can see on the console output (not all the messages are available in standard release build) things seem to work as planned.
However while doing these tests I found that some of the changes in the source code made after the first test version (well at least I think it happened after making the 0.95.1 public) totally broke bot's ability to follow you. So those of you who decided to try the latest 0.95.2 test version won't be able to make bots follow you. Bot will react on the call, but then instead of moving towards you, he turns and moves away from you. And soon after he returns to standard waypoint navigation. Obviously this is a bug and will be fixed. Just wanted to let you know so that you aren't surprised by that if you happen to experience it on your own.
10 September 2023
The 'bandages' automated tags, I mentioned in the last news update in August, are implemented now. Had to figure out how to add these tags to converted waypoint data, because the old waypoint system didn't use them at all. They were just added to the source code, but never used anywhere. The problem was the way how the old waypoints are converted. The conversion is usually done automatically before the map is actually loaded. So there was no way to detect the bandage item game entity in order to add its tag to this or that waypoint. So I wrote a helper function that gets called later on ... after the map is finally fully loaded. The call of this helper function is timed so that it can update the waypoint data right before first bot gets added to game. Point is that 'bandages' tags are fully automated tags. You don't have to do anything special to allow bots use them. Simply add a waypoint when you are standing on the bandage item and the tag gets added automatically. Also it won't alter waypoint appearance in any way. No size nor color changes. Same is true for the paths. If there is a waypoint with bandages on any path then such path transmits this without changing its appearance. Much like the other automated path tags (e.g. ammo).
Bots now get a new need whenever they run low on bandages. There's also chance that bots that aren't medics will decide to totally ignore their bandages count. If it happens then such bot will never get the need for bandages and so will never activelly look for them. If bot is a medic then he will never decide this way. I mean bot medic will always pay close attention to his bandages count and will always look for them if he starts to run low on them. This decision is made soon after the bot spawns/respawns and much like the need to reach map goals can change with every respawn. If waypointer activates debugging of either cross or path or waypoint then there's a console message about this decision every time bot respawns. So that the waypointer will have an idea how will bot behave on junctions (cross waypoints) when testing the waypoints. I've again recorded a short YT video from the testing so you can see how this new improvement to MB navigation works. It's a development build so some of the commands I use later on in that video aren't normally available. And some of the console output also isn't visible in standard release build.
Not everything went smoothly though. I added new constant to have an easy way how to check for non zero waypoint priority. Added the code using this constant to one function, but then I had to stop coding due to real life stuff. When I got back to it I used this new constant in a call for different function and wondered for way over half an hour why the decision based on needs stopped working. After that I finally realized I didn't update code for the other function to allow this new constant ... *feels ashamed*. So this is how working on MB sometimes go :).
3 September 2023
Second part of the 'roadblock' waypoint addition is available on YouTube. I've finished all the work on it over the weekend. Adding the waypoint itself is one thing, but bot behaviour connected to it is a different thing. Had to catch all issues and make bot do exactly the things I wanted. The video shows how bot behaves. Plus at the end you can see how the Waypoint system deals with errors you may eventually do when working with this waypoint type. I'll have to do some more testing, but everything seems to work the way I planned. So I guess I can mark this feature as finished.
2 September 2023
Updated 'SUPPORT' section the 'Install instructions' part. Added link to a short YT video showing proper MB installation. Specifically on Windows 11.
1 September 2023
The short YT video showing roadblock waypoint is done. If you are interested then watch it.
31 August 2023
Wow things related to Marine Bot development go surprisingly well the past few weeks, because the addition of 'roadblock' waypoint is done. Honestly I expected it to take much longer and that I will run into way more problems. I'll see if I can get awhile to record a short YT video to show how does it work. While working on the roadblock waypoint I had to rewrite another 2 functions. Actually more than 2, but the others were just slightly modified. But the two functions I had to rewrite were related to selecting a new path once bot chose his new waypoint on the 'cross' waypoint junction. One of them was responsible for assigning a value (a sort of usefulness) to found paths in order to allow bot pick the best of them. Well I already had a to-do note next to that function to do it anyway. So if I didn't do it now I would have to do it later. Doing it now is the better option in my opinion. First it's easier to rewrite something small and second it allows me to add even more path tags with ease. Actually I already added another new path tag. I mean other than the one for the roadblock. This new automated path tag is named 'ExplosivesGoal' and is connected to 'claymore' waypoint. Actually only when you use priority 1 on it ... i.e. when it is used to destroy s&d objects (e.g. the trucks on sdtc_balcome). Now the class named 'pathvaluer' that replaced the code of previous functions will check whether bot decided to reach map goals and whether is he equipped with a claymore mine. If both conditions are met then it will assign high value to such path so that the bot will almost always choose it. I plan to add one more path tag like this. I mean automated tag that sets the system alone based on specific waypoint presence on path. It will allow bots look for bandages. The first bits are already in the code, because both waypoint as well as path types are "buried" in the code since ages ago. Seeing I made waypoint system upgrade, it's a good time to resurrect them.
But before I get to it I'll have to check how exactly bot uses the claymore at waypoint set as s&d object goal. Because I have a feeling ... no, I'm pretty sure that there's no test whether the s&d object is still intact or whether it was already destroyed. I mean I'm quite certain that bot always sets the mine and detonates it manually whenever he reaches claymore waypoint with priority 1. And that is kind of bug. The objects that can be destroyed by any weapon (i.e. are handled by a 'shoot' waypoint) are tested on existence before the bot starts shooting, but those that need a claymore mine most probably aren't. You know claymore usage is really old code and back in those days I didn't always pay that much attention to such "details". Which means I have a bit more work fixing them now.
26 August 2023
New test version is available in 'FILES' section. Took a bit longer, but I got into coding trance. I mean I started working on things I mentioned last time and you know it was a big distraction. So big that I didn't make a while to write this news before my 3 day long work week started on Wednesday. But the waypoint system version upgrade which involves rewriting the conversion functions for old waypoints & paths is done. I had a 'to-do' note in the source code to change the way how are Triggers stored with next version upgrade so that was done too. Which got me to look at the system of Triggers bit closer and I rewrote a few related functions. This means there's an easy way to increase the number of available Trigger slots now. Not that I think this is needed at the moment, but the code is ready for it. Also I already started with adding the code for the new waypoint type as well as the new path type. I'll stay with the name 'roadblock' in the end. Simply put I couldn't come up with anything that would fit it better :). I didn't get far with this yet. Only the waypoint addition alone and displaying it in the game. What took me quite a while was finding a good new color scheme for it. I mean I could have gone with the dark blue color that cross waypoint uses. But then I decided to keep cross waypoint unique not to make it confusing. In the end I found two new colors that are different enough not to blend with any other existing waypoint. The good thing about that all is I have something even for future new waypoints. Two colors and three waypoint appearances (full length, only top part and only bottom part) means six options for the future. Well okay only five, because 'roadblock' already took one.
Anyway here's the change log for Marine Bot 0.95.2b - test version:
- FIXED random inability to correctly target the mounted gun in order to actually start using it (the pitch angle was often just too big and the bot was looking on ground instead of at the gun so when he then used the use key it didn't activate the controls, because he was not aiming to correct point)
- FIXED inability to use the mounted gun for unlimited period of time (if you set wait time on the use waypoint then the bot will use the gun for that time, but if you don't set any time on the waypoint the bot should use the gun for as long as he can, however there was a conflict between both codes and the bot then left the use waypoint before he was able to actually get control of the gun, the code for limited gun use did reset one variable that was needed for the unlimited gun use)
- FIXED aiming to bad angles even at self when using mounted gun where there was no aim waypoint nearby (the code to use the mounted gun itself as the aim vector when aim waypoints were missing didn't work at all, in case of unlimited gun use the bot was even turning away from the gun so he then pointed the gun at himself)
- FIXED bug caused by previous bug fix (the patch for "inability to leave a path when there was an 'ammobox' or 'use' waypoint as its first or last waypoint" from MB 0.95b actually created new smaller bug where the bot was incorrectly leaving such path under certain conditions)
- FIXED another bug connected to behaviour at the end of two-way path, but this time only when it was used in a direction from start to end (when the bot reaches such end and there is no cross waypoint or any other waypoint nearby then he should wait at the end of the path for up to a minute, and then change the direction from start->end to end->start and return back to the start of this path, but the bot stopped using the path navigation and for a few seconds he reverted to using basic waypoint to waypoint navigation, so sometimes the bots could lose their original destination)
- FIXED bot resetting navigation after recovering from being blinded by concussion grenade (although it may make sense it's a bug, now there's a code to update the waypoint reach time during the blindness so the bot will correctly continue on his path once the blindness fades out)
- FIXED bot resetting navigation during parachuting (the time bot spent in midair was usually just too long to get to the next waypoint in time so then he had to reset his navigation, now he'll keep updating waypoint reach time while in midair so he would reset the navigation only in case he landed in some ditch that he's unable to get out of or if he landed far away from the target waypoint)
- Improved unstuck behaviour a bit (now the bot should detect the surrounding better, also return back to proper navigation faster, so for example the breakable obstacles where the bot gets stuck on should no longer be as big issue as before)
- Added message telling you whether the bot will go for pushpoints or not (if you turn on debugging of paths or waypoints then every time the bot respawns you'll get a console message telling you whether he decided that he'll will actively go for the map pushpoints i.e. will capture flags, this is purely for testing the waypoints so the waypoint creator clearly knows what's going on when testing his/her waypoints)
- Added client command 'botdontshootfirearm' (activates/deactivates a mode where bots won't shoot any firearm, but they can still throw a grenade and use knife as well as move and do the other actions)
- FIXED getting the zoom level for weapons with optics in FA 2.4 and 2.5 (these old FA versions don't use specific variable to store current zoom level for the few weapons that have optics so the code that allows the bot to use optics didn't work well in the old FA versions, now I've found a workaround and wrote simple patch that manually sets the needed variable in order to make things work well even in these old FA versions)
- Updated ps_outlands waypoints (fixed 2 camper spots for blue team near red team spawn where one had wait time set for reds instead of blues and second caused problems with going prone, also added the sniper tag to couple camper spots where the bots could have problems returning back after finishing combat)
- Bot can now use optics/scope on all weapons that have it (bot was using scope only on sniper rifles, but now he'll use it even on anaconda, g36e and m14, also on steyr aug in FA 2.4 and 2.5)
- Bot can now correctly handle two weapons with silencer (previously bot could mount the silencer only on the weapon he spawned with, now he'll always check the weapon that he switched to whether it supports silencer and will mount the silencer on it if it is not mounted yet)
- FIXED switching to main weapon right after bot spawned in Firearms 2.4 and 2.5 (due to the way how these old FA versions spawn weapons the bot detected that he doesn't use his main weapon and tried to switch to it despite the fact that he received it soon after, now there is a short delay before the bot starts using his weapon, this "weapon lock" is actually implemented in all supported Firearms versions, because it doesn't cause issues and it's easier to code it this way)
- FIXED inability to switch to knife in rare cases (for example when you created crazy custom class with just the knife and explosives)
- Bot can now reload empty grenade chamber on attached m203 or gp25 grenade launcher (bot used to be able to fire the only grenade that's loaded by default and then completely ignored the attached launcher, but since now bot is able to check whether he has additional grenades for the launcher and reload it after battle or anytime later when he refills the grenades for it)
- Changed the number of bots that can follow you to 3 (it used to be 2, but in real world there are 4 member teams used so MB allows it now too)
- FIXED trying to use bipod on weapon in FA 2.4 and 2.5 (bipod command isn't available in these old Firearms versions, bot didn't get stuck, because there already is a safety code to ignore bipod in cases FA doesn't allow using it, but his combat abilities were affected by that, now there's a code to block calling this command in FA versions that don't support it)
- FIXED bot getting stuck in infinite Benelli shotgun reload loop in FA in version 2.7 and below (since learning the ability to merge clips in version 094 Marine Bot became obsessive reloader and due to different max ammo capacity on Benelli and Remington shotguns the bots that used Benelli in old Firearms version got stuck at infinite reloading loop couple seconds after respawn, now there's a code to set correct max ammo capacity for specific FA versions)
- FIXED reading custom classes from configuration file (function that counts them ignored missing header e.g. 'class123' which caused subsequent bug where some bots were unable to finish spawning to the game, now it will detect it and report it as warning, also the call of this function has been moved to map load, which removed that short game freezing due to intensive workload right after you've entered the game)
- Updated ps_marie waypoints (changed 2 sniper & mgunner paths in the valley from two-way to one-way, also removed nearby aim waypoint that sometimes caused issues)
- Updated sd_oberland waypoints (fixed the position of one aim waypoint for claymore waypoint near stairway leading to the pass)
- FIXED inability to destroy s&d or breakable object if you used shoot waypoint without wait-time (bot fired just once at that object and then simply left, now he'll keep shooting till the object is destroyed, also fixed inability to reload the gun during such action, but that wasn't an issue seeing bot fired just one round and left this waypoint)
- FIXED path changing commands incorrectly doing the changes to a path on nearby waypoint instead of currently edited path (when you were creating a path and you used any of path properties changing commands e.g. 'setteam' while you were standing near a waypoint with another path then the changes were applied to the other path instead of the path you were creating, now the changes will be correctly applied to the path you are creating)
- FIXED bot visiting ammobox twice in row sometimes (under certain conditions bot was able to go for ammo twice due to not updating the ammo reserves count fast enough, this bug is visible in MB Waypointing video guide, now there's a new check for ammo reserves right after bot leaves the ammobox so he will behave correctly)
This is a test version not a full beta release so it's only for skilled users who can deal with its specific installation process.
20 August 2023
Past week was quite successful when it comes to fixing bugs. Managed to patch 3 issues which doesn't happen often. Usually it takes 3 weeks to kill one bug. Not vice versa. Nah I'm kidding, but really things don't go this well all the time. One of the fixes is the thing I promised in that Waypointing video guide. Bot now rechecks his ammunition reserves right after he left the ammobox. So you won't see him trying to refill ammo twice in a row anymore like you can see in the video guide. Also the other two fixes are connected to waypoints or waypoint based behaviour. One of the reasons why I found and fixed them is fact that the plan for next couple weeks or probably months is that I want to add new waypoint based ability. So I wanted to have these things done before I do some bigger changes to these parts of the source code.
I mean I want to make MB be able to deal with spots like the avalanche pit on ps_coldwar. Or the moving bridge there too. Or the destroyable & reappearing gate on obj_paradise. Basically a sort of "roadblock" that doesn't have any text message so you can't use the Triggers to waypoint such spot. The idea is to have a new waypoint type that would be placed on both sides of such "roadblock". Then a mechanism to scan the area between those two waypoints. And finally a new path type, an internal type like are the RedGoal and BlueGoal related to Pushpoint/Flag waypoint. So when the area between those 2 "roadblock" (not sure about the name yet) waypoints is blocked ... or better to say, it is impossible to reach the other waypoint in case of the avalanche pit or the moving bridge ... then the whole path will be unavailable on the cross waypoint.
Problem is that I'll have to change the waypoint system version for this. You know, you can't add new stuff to a system without making sure you won't cause a mismatch. Thus I'll have to write a new conversion function for the waypoints/paths. This also means the conversion function from waypoint system version 5 (was used in MB 0.8b) will be removed. So if you happen to have such old waypoints and you haven't fully converted them yet, then do so now, because MB 0.96b won't be able to read them. Check the written Waypointing guide for commands (there's a list at the end) that will help you check waypoints version and all conversion options.
Also I'll probably release another alpha/test version like I did last year in October. I can't say when exactly, but hopefully in next few days or maybe within one week. I already compiled the .dll, but I still need to do at least a few game tests to see whether there isn't any stupid bug that would make it crash over and over again. Random crash is kinda expected, it's a test version after all, but having it crash over and over again would be really stupid. And honestly, making something like that go public would be totally pointless.
11 August 2023
Fixed the out of sync subtitles for Waypointing Video Guide on YouTube. After watching and reading through some "how to do ..." I did everything right when I uploaded the video. It seems the sync algorithm on YT had a bad moment or it's not tuned well for such kind of video. Doesn't matter. I manually edited them and here I have to say that YT has pretty cool tool for the subtitles. Fixing all the issues the auto sync created was really easy. So everything should be in order now. Feel free to let me know if you notice anything I missed.
7 August 2023
[APG]RoboCop pointed out that you can get a traffic limit warning watching that waypointing video guide. I knew there's such thing on MEGA, but I didn't realize that it's applied even to streams. I ran into this traffic limit a few years ago when I was downloading some huge zip file stored on mega.nz. Solution is to use VPN when you reach that limit. I think that Opera browser has a free VPN built-in. Still I decided to create a YouTube channel for Marine Bot and I uploaded the video guide there. You can find the link in 'LINKS' section. First time I ever did anything like that on YouTube. Also used the commentary transcript and added it to YT. It synced it automatically, but I have no idea how to set it up so it also hides the commentary subtitles after the voice commentary is over. You know it keeps showing the last sentence till the start of next one. I'll try to do some search, but as always it may take me a while ... if there's any solution for that at all.
As for development alone. Past two weeks I had summer vacation so some of the free time I used to work on Marine Bot. I mostly continued in source code cleanup. Much like the functions connected to waypoint system are various utility functions merged into a class now. So reading through and understanding the code should be again a bit easier. Along that I finished adding another new class to help managing the team names. Till now Firearms team names (e.g. 'red' or 'red team') were simply part of each console output. If you wanted to change the format you had to search for them in the code and manually rewrite each occurance. Now it's done so that this class allows me to define a few specific team name versions all in one place. Which also unified the naming. I mean most outputs showed 'Red Team' for example but a few showed 'RED team' here or there. Now I defined one word name, 2 words name all lowercase, 2 words with first capitals and two other one word versions for waypoint system ... i.e. 'RedGoal' and 'RedTeam' that are used mainly for waypoint and path tags. So you won't see anything else used anywhere anymore. There's more in this class. But the best thing about that is fact that this will greatly ease the work on new port for Global Warfare in the future. Yup I want to update that port one day, because I find GW a fun mod to play.
Last thing I want to mention is that if you noticed short freezes right after you enter the game, then this has been fixed. It's related to the new configuration system introduced in version 0.95b. Specifically with counting the custom classes. Reading almost 400 classes is quite a workload. So I've modified the function that processes the configuration file so that it can be called for just this particular task. And now this call is done during map load so you won't be affected that much. I mean you won't notice that the map was loading a 3 seconds longer ;). I also fixed a bug in this part of the code. The reading could catch and report empty class, but it wasn't able to catch a missing class. So now if you make a mistake and instead of sequence ... class24 class25 class26 ... you have ... class24 class26 class27 ... you'll see a warning in the console as well as later on in game on top of your screen in a form of those fancy HUD messages. Well "now" I mean in next MB version.
2 August 2023
Updated the FAQ in 'SUPPORT' section. There are two new questions/answers. One is the thing I wrote about in 27 March 2023 news. And the other is answer to this question 'When I view the scoreboard, I see some bots that joined one of the teams, but never really appeared in the game. Why they don't want to spawn to the game?'. Also fixed couple sort of typos or better to say formating stuff. And added one or two words/phrases here and there to make things a bit more clear ... hopefully.
30 July 2023
As promised couple days ago, ps_rubicon waypoints that match the state shown in the video guide are uploaded to 'FILES' section -> Additional Marine Bot files -> Marine Bot waypoints (updated or not used in official releases). In case you don't have that map and still want to try them, then you can download it from my MEGA account (available in the 'LINKS' section). Also the voice commentary transcription for the very same video is available now. Head to 'LINKS' section and you'll find it next to the link to that video.
26 July 2023
Finally managed to finish the work on the Waypointing Video Guide. Previous video has been edited a bit and new footage has been added to the end. Also I've added a few new commentary to a few spots in the original footage. Hopefully everything is clear and I haven't missed any errors. Here's the new link Marine Bot Waypointing Video Guide. The 'LINKS' section has also been updated. I plan to upload the waypoints matching the status that you can see in the video guide so that you can check them yourself. Also the commentary text will be uploaded so that everyone who doesn't speak english well and doesn't understand it, can use a translator on it. But give me some time to create that html file. Hopefully in next couple days. Oh and as usual previous version of the Video Guide is erased so the links to it won't work anymore.
9 July 2023
This week there were two days a bank holiday here in Czechia. The company I work for used that to close the gate for the whole week. So I had some free time to continue working on the waypointing video guide. The video grew over 5 gigabytes in size and there's almost 2 hours of footage. It's getting to almost a finished guide. The only missing parts are setting the priorities and then the final testing with bots. Here's the link Marine Bot Waypointing Video Guide Part 1 & 2 (updated also the 'LINKS' section). Previous video was removed so if you've bookmarked the link or put it somewhere then it won't work anymore.
1 July 2023
Long time no update. Real life stuff as usual. Even Deus Ex was put on ice. No point to start up the desktop PC in order to game for like 30 minutes and turning it off again. Due to very limited free time for some serious development I've been toying with idea to improve the Waypointing Guide and decided that the best way would be to show the waypointing in real action. So I was working on a Video Guide. I was quite surprised what cool tools needed to create a video are available in Windows by default. I do all the development including game testing and waypointing on my main laptop where there is just weak discrete graphics card nVidia GeForce 940mx. According to Internet sources this one cannot run the nVidia software for recording your games. But Microsoft has its own software called XBox Game Bar as a part of Windows where you can record gaming session. Then there is this Video Editor in Windows 10 Photos App which allows you to process the video including trimming and adding various sources such as custom audio tracks. Then you have Google Translate tool where you can listen to pronunciation and you can use Voice Recorder within Windows to record it. So an easy way to add "professional looking" voice commentary to your video. Finished processing the video earlier today. Uploaded it to the MEGA account and here's the link Marine Bot Waypointing Video Guide Part 1 (reachable also via 'LINKS' section).
27 March 2023
I've noticed there's an unsolved issue on Marine Bot GitHub. I'm not affiliated with that project. It's maintaned by [APG]RoboCop. But I'm aware of this problem. From what I know this isn't really a problem with Marine Bot, but more of an issue with Valve's SteamCMD Dedicated Server for Linux. It's the famous 'libstdc++.so.6: version `CXXABI_1.3.9' not found' error. One solution of this problem is described in 'mb_readme.txt' file which is part of the source code since version 0.94b. However that solution works only if you are going to compile your own Marine Bot build. If you don't feel like doing it or if you don't want to use the static linking then there's another solution. The trick is that you will either delete or just rename 3 files within your HLDS folder. Look at this picture hlds_fa_linux. You can see I've only added '.orig' to their names. This will ensure that HLDS will fail to locate them and will have to use your system libraries which won't cause the error. So your server will run just fine. If you use SteamCMD to update your server or to validate it then these 3 files will probably be recreated again. So be sure to check that before starting it up again.
I'll try to update the support section with this, but don't hold your breath for that, please. I mean I'm distracted by Deus Ex lately ... well since the start of the year actually. This is the reason why there wasn't any update till now and why there hasn't been any work done on Marine Bot. Deus Ex is my all time favourite game series. I'm not a big gamer. Haven't played many games. But when Deus Ex showed in year 2000 I was totally addicted to it since the day one. Got to Deus Ex 2 (Invisible War) several years after its release. Still I enjoyed it. And it only strengthened my addiction. Deus Ex 3 (Human Revolution) was released when I was at the start of building my own house. So there was absolutely no time for that. And Deus Ex 4 (Mankind Divided) was released when I was finishing the work on the house ... well more like around the house ... as the house was already habitable and I moved into it. Ever since I returned to this virtual life (Marine Bot and some gaming here and there) I was playing with the idea to get to both of them and play them. And here I am. Bought Deus Ex Human Revolution at the beginning of January and finished it by the end of it. Then I've been doing some research of modern graphic cards for a while in order to actually run the Deus Ex Mankind Divided. My previous Sapphire Pulse RX 560 was replaced by Sapphire Pulse RX 6700 XT. And I jumped into the story of latest Deus Ex game. Yeah addiction. I know. Can't help it :). If you want to see what keeps me in it then here's a small tease ... Deus Ex Mankind Divided Video Clips (accessible also via 'LINKS' section).
23 December 2022
Year 2022 is about to come to its end so here comes the last update of this year. Before I get to the details I just wanted to point out one thing. November 30 marked 10 years since the birth of this web site, but Marine Bot project alone is 20 years old. I started toying with Botman's bot template during Nov 2002. Yeah I guess I'm getting really old. Oh wait I didn't want to reveal that I'm old fart :). I just wanted to mention those two anniversaries.
So to Marine Bot development. As I said last time I've been working on making the source code clean and together with the changes I also found some bugs and added a few new features or improvements to previously unfinished features. Here are some of them:
- Bot can now use optics/scope on all weapons that have it (bot was using scope only on sniper rifles, but now he'll use it even on anaconda, g36e and m14, also on steyr aug in FA 2.4 and 2.5)
- Bot can now correctly handle two weapons with silencer (previously bot could mount the silencer only on the weapon he spawned with, now he'll always check the weapon that he switched to whether it supports silencer and will mount the silencer on it if it is not mounted yet)
- Bot can now reload empty grenade chamber on attached m203 or gp25 grenade launcher (bot used to be able to fire the only grenade that's loaded by default and then completely ignored the attached launcher, but since now bot is able to check whether he has additional grenades for the launcher and reload it after battle or anytime later when he refills the grenades for it)
- FIXED switching to main weapon right after bot spawned in Firearms 2.4 and 2.5 (due to the way how these old FA versions spawn weapons the bot detected that he doesn't use his main weapon and tried to switch to it despite the fact that he received it soon after, now there is a short delay before the bot starts to use his weapon, this "weapon lock" is actually implemented in all supported Firearms versions, because it doesn't cause issues and it's easier to code it this way)
- FIXED getting the zoom level for weapons with optics in FA 2.4 and 2.5 (these old FA versions don't use specific variable to store current zoom level for the few weapons that have optics so the code that allows the bot to use optics didn't work well in the old FA versions, now I've found a workaround and wrote simple patch that manually sets the needed variable in order to make things work well even in these old FA versions)
Then there are also changes you can't see. I mean stuff on the source code level. Up till now the explosives, grenades and the claymore mine, used to be handled out of standard weapon code. They had their own variables and made many things on the code level quite cumbersome. Not to mention that it also meant higher chance of various strange bugs. Honestly I don't really remember why it was done so originally. Probably due to the fact that the claymore mine isn't used in combat at all. And the grenades also have quite specific manipulation so I might have decided to keep them away from standard weapon code too. Either way around the source code clean up was a perfect moment for getting rid of that mess and making the explosives be part of a standard weapon manipulation code. So the one internal variable telling the bot which weapon he should be using now knows even these 2 types of explosives. The bot finally has only one generic source of information to use when he has to deal with various weapon types in various cases. This one variable will always let him know to which weapon he should switch to. I mean whether he needs to use main weapon or backup weapon or a knife or a grenade or a claymore mine. Many safety checks could have been simplified due to this change and the bot should always be able to switch between weapons without occasional bug where he got stuck with one weapon in hands while thinking he's using a different one. Of course this will need a lot of proper testing, but from the few simple tests I already made using my own developer mode commands forcing the bot to switch to this or that weapon type, it seems the change of the source code turned out just fine. He was always able to switch back to his main weapon without any issues. Or to backup weapon (pistol) in case of class without main weapon I specifically used for such test.
Okay this wraps up today's announcement. I wish you all Merry Christmas and Happy New Year.
23 October 2022
In the past few weeks I've been doing some work on Marine Bot. I found the will to finally do some cleaning in the source code. This time I focused on the waypointing section. As there was a real mess. I've decided to create a few classes and split the waypointing functions into them. The whole thing follows similar logic as you can see in Marine Bot console commands related to waypointing. There's a class of functions for editing waypoints, then a class of functions for editing paths, then waypoint repair functions class and so on. So now if you go through the source code you won't see something like 'WaypointFindAvailable()', but 'wptmanager.FindNextWaypointForBot()'. I mean you will get an idea what this or that function does right away instead of having to look it up ... or figure it up by going through the function code. Besides Visual Studio has a nice feature where you type just the class name and you'll get a list of its functions so that makes your life a bit easier. Actually there already was one such class. It is called waypoints browser. And it has functions related to displaying and checking waypoints in game. Like IsShowPaths() or ResetCheckCross() or GetCompassIndex(). So I simply continued in making the source code more readable and less confusing. And safer of course, because OOP is meant to provide that. After finishing the clean up in waypointing section I looked at the main bot class. I made a few changes there, but this class is not even half way there, because the original change from struct to class was started ages ago in times when Marine Bot was still in active development. Finishing it will take a lot of time and changes through out the whole source code. So I don't think I'll finish it this time. Although a few changes have been made and a few more will be done for sure. As a result of that I've decided to make a test version of Marine Bot 0.95.1b available to public. Don't expect it to be as stable as usual beta releases. This is a test version so basically an alpha version. There may be fatal bugs and quite a high chance of various forms of instability. Such as an infinite loop resulting in game freezing. I've dealt with two such issues just a few days ago. Despite the .dll in this test version is a release build, there are still lines of code to dump such event to MB error log. I haven't seen neither 'GenerateNewFASkill()->Rnd()->breaking' nor 'TargetAimWpt()->Aim.GetRnd()->breaking' in that log from last 2 or 3 test sessions, but that doesn't mean that these two infinite loop bugs are really fixed. Either way this is the change log:
- Updated tc_caen waypoints (fixed missing wait-time for red team on one waypoint close to blue spawn, fixed bad cross waypoint range close to blue spawn, erased couple waypoints and paths, reworked couple cross waypoints close to the Radio Studio, added the Triggers and a few new paths based on them, opened the route through breakable wall at the Armory and fixed bad cross waypoint range there too)
- FIXED not reporting an error when reading weapons initialization data file (in case when 'min_safe_distance' was missing for example, but you had 'max_effective_distance' twice there, the reading function counted correct amount of entries and returned that all is okay, now the reading function remembers what has been read and won't count the same entry twice or more times so you'll get the missing entry error)
- Added 'targetbodyoffsets' file to 'weapons' folder (originally hard-coded aiming offsets are now available as external values, that gamers can tweak to their likings)
- Updated 'check_cross' feature (the connection to a waypoint with zero priority for both teams within 'cross' waypoint range will be drawn red now, to make it clear at the first sight that this waypoint will be ignored in the decision making)
- Added client command 'wpt triggerevent test' (allows you to test whether you've set the messages right and the triggers are actually being activated)
- FIXED 'wpt repair sniperspot' feature (it was incorrectly reporting nothing was repaired while it actually fixed some issues, 'claymore' and 'shoot' waypoints are now correctly ignored since both can be used at the end of a path as a search & destroy object spot so not a possible sniper spot, fixed a critical bug where this repair function focused only on the path end and ignored the path start, now it'll check both, also it'll try to force the 'sniper' tag on waypoints that are being processed, so a crouch+goback waypoint with wait-time will become a crouch+goback+sniper with wait-time)
- Added client command 'wpt checkproblems' (works same way as the 'pathwpt checkproblem' but with the focus on waypoint related issues, e.g. a missing 'sniper' flag/tag on a waypoint with wait time, or invalid combination of waypoint types such as ammobox + goback, or missing events on a trigger waypoint, or wait time set on a jump waypoint)
- Changed 'wpt change' client command (it can now take two arguments the new waypoint type and also its index number, their order doesn't matter, this allows you to do changes remotely without the need to actually get close to such waypoint, also the automatic bad type combinations fixes that are part of this function were improved a little, on top of that you may now get a new error if you try to make a bad type combination e.g. ammobox + goback will fire such message, and of course there will be no changes done on that waypoint)
- Changed 'pathwpt setdirection' and 'pathwpt setteam' client commands (unified the way how do all path changing commands work, the first use will add the type/tag and the second use will remove it with the exception of the default path tags, ie. 'pathwpt setteam red' will make the path a red team only path while the second use of this command on the same path will return the path back to a both teams path, 'setclass' and 'setmics' already worked this way, so now all these commands and 'wpt change' command are using the same logic, hopefully that will finally remove the confusion)
- FIXED another bunch of unsafed client commands (this time I went through waypointing commands and fixed hopefully all unsafe operations, e.g. passing an invalid argument, also fixed wrong or misleading console output for some commands, mostly the error messages as a result of passing invalid arguments, e.g. 'pathwpt insert' command was one of the worst in this matter)
- Updated 'pathwpt checkproblems' feature (added several warnings for patrol type path and the use of some waypoint types on it)
- FIXED 'pathwpt printall' feature (it was unable to correctly report when the path had both sniper as well as mgunner class set, it printed that it's a sniper only path)
- FIXED not using waypoint range at certain cases (e.g. when the bot was leaving his current path then he headed towards the real position of the newly found waypoint instead of using its range, or when the bot was returning back to patrolling after battle then he also headed towards real position of the waypoint instead of using its range)
- FIXED couple bugs in picking Firearms specific skills (e.g. if marksmanship 2 was listed before marksmanship 1 the bot correctly set marksmanship 1 first, but didn't call the right command for it so Firearms didn't assign it to him, also when there were no skills listed in the custom configuration file for particular class then the code to generate one caused assigning wrong or no skill, this bug was only for 'sv_useskills 1' system, the 'sv_useskills 2' & 'sv_useskills 3' systems were not affected by that)
- FIXED bot getting stuck in a try to merge clips in FA 2.4 and 2.5 (bot simply crouched and waited till the merging is finished, but this command isn't supported in old Firearms versions so he returned to standard navigation only after being killed, now there's an exception to break the merging right away in these old Firearms, that means the bot won't call the command and won't pause to finish it)
Also I managed to get a while to upload some new stuff to the MEGA account. Well uploading didn't take that much time, but using the old laptop with Ubuntu to install and zip the old Firearms versions. So now the MEGA account hosts all Firearms versions since 2.6 up to the latest 3.0 in .zip archives. Plus some other stuff I found on those old CDRWs with backups. Feel free to check for yourself via the 'LINKS' section.
30 August 2022
August seems to be pretty productive month, huh. Nah seriously, I'm only finishing the things I've promised couple weeks ago. One of such promises was that I'll update 'tc_caen' waypoints. Originally planned to be part of Marine Bot 0.95b release, but I didn't want to delay the release and said that I'll make them available later as a stand-alone package. Basically I've worked on them since the release. Not full time. More like half an hour here, hour or two there. It were the last two days when I spent several hours in row testing them and doing the final fine tuning. The waypoints fully utilize the system of Triggers now. If you ever read the Waypointing Guide then you know that the Triggers allow the bots to dynamically react on the gameplay instead of following just the standard waypoint priorities. This change should finally fix the issue when the bots were not able to win this map from time to time. Also I've reworked two or three spots (especially close to the Radio Studio) where there were two cross waypoints really close to each other. Now there's just one cross waypoint covering the whole area. So less computing is needed when the bots play the map. Then there's a new path leading to the Armory. It's the route through the breakable wall. And second new path is for the blue team snipers that gives them a new spot where they can "show their skills" :). Okay there are a few other new paths, but those are paths specifically made for the Triggers. Also I've fixed one missing wait-time on a "camper" waypoint for red team bots near blue spawn. Then bad cross waypoint range that was again near exit from blue team spawn area. And also not really well done cross waypoint range inside Armory. You can get these waypoints at 'FILES' section -> Additional Marine Bot files -> Marine Bot waypoints (updated or not used in official releases).
28 August 2022
The past few days I've been going through the backup of Firearms maps from that old CD and tested them whether they aren't missing models or textures etc. So now there are another 12 new maps uploaded to the MEGA account. All of them work in Firearms 3.0 just fine. No missing textures nor crashes due to missing models. Make sure you always unzip them to a temporary folder and then move them to either 'firearms/maps' or just to root 'firearms' folder, because some are just the .bsp and .txt added to the zip while others include several additional resources in subfolders. Durandal dusk and night versions and then 'tc_battlefield_r2' are maps that Marine Bot can play just out-of-the-box, because there are waypoints for them since 0.94b release. Also I'd like to point out the 'sd_climax_b11' as that map is just breathtaking. In my opinion that map totally beats most of official FA 3.0 maps in both visual as well as technical design. The link to my MEGA account is available at the 'LINKS' section.
19 August 2022
Good news. The new chapters for Waypointing Guide that I mentioned last time took less time than I expected. So the updated guide is already uploaded and available at the 'LINKS' section. The changes are:
- 3 new sketches for 'Waypoint range' that will explain the importance of proper range setting in a detail and the issues with overlapping ranges
- new chapter called 'The scope of a cross waypoint has limits' which will show you what the bots can actually "see" when they are doing the decisions at the cross waypoints and how to deal with these limits
- new chapter called 'Don't delete and recreate, but move the waypoints' which will explain the 'wpt move' command ... i.e. a command that people who are familiar with other bots waypointing may not even guess that something like this is doable
Also I've created an account at mega.nz and uploaded Firearms 3.0 in zip archive and a few additional maps in zip archives for Firearms that Marine Bot has waypoints for. I plan to upload more maps there in the future. I must first copy them from the old CD and check them ... maybe even repack some of them to zips. I might even upload other older Firearms releases like 2.8 or 2.7 etc., because I don't think those can be found somewhere on the Internet these days. Either way the link to my new MEGA account is available at the 'LINKS' section from now. Hopefully it'll work and the account will stay available, because it's a free service. I mean I've seen such services going down once in a while, but this one is running for a few years already and seems to be doing well.
5 August 2022
My two weeks summer vacation is almost over so I might update the news. Not that there's much to say. You know summer vacation isn't about sitting in front of the screen there's a lot of real life things you can ... sometime have to ... do. And of course there's some lazing too. Actually that's the main reason to have a summer vacation :). But when there's just too hot outside, when the temperature is over 30 degree Celsius, you run back inside and spend some time on the laptop enjoying your favourite hobby. I've finally got to installing latest MS Visual Studio 2022. I didn't want to do that in the middle of development of MB 0.95b. Now when that version is out I moved the source code to this version of VS. It seems that there's no issue with it. The source code compiled just fine. And the following game tests also ran without any problem. That means I'll say a goodbye to MS Visual Studio 2019 that was used for the last three Marine Bot releases. And the next version(s) will be done using VS 2022.
Also I've decided to create two new guides. The first one will help you with setting up the Proton compatibility tool for Half-Life on a Linux machine. Which then allows you to play Firearms with Marine Bot on Linux. The second guide will show you some small tweaks to your Steam Library related to Firearms. But those tricks can be used to any other old Half-Life modification. Both these guides were added to the 'LINKS' section. The next thing I'll work on is adding two new chapters to the waypointing guide/manual, because there are still things related to Marine Bot waypointing system that are not covered or explained yet.
8 July 2022
Today is the day. After almost two years of development Marine Bot in version 0.95b is being released. This time there are some quite big changes. The biggest one is the new configuration system. Maybe not that important for the gameplay, but it needs to be stressed for all those that use Marine Bot for a long time. This change makes all the configurations you may have created for your gaming sessions in the past incompatible. I'm sorry for the inconvenience, but the old configuration system really wasn't good. Also I wanted to add couple new options for you the users to fine tune your game and the old system was holding me back. So it was the time to finally do something with it. I won't point out any of other changes. I believe that the full list of changes is detailed enough.
- Added new configuration system (completely scrapped the old monstrous system that used 3rd party source code and wrote brand new much simpler own system, the external configuration files now use the same syntax as 'liblist.gam' file so a keyword then space and then a value inside double quotes while previously you've been forced to use a syntax similar to a programing language with equal signs, curly brackets and semicolon characters, also the new system addresses many drawbacks of the previous system, it's simpler and reduced the dll size by almost 25%)
- Added 'custom_headshot_percentage' as a configuration variable (allows you to set your own percentual chance for bots to aim for a headshot, by default this option is disabled which means the bots will use the hard-coded decision based on their aiming skill and whether they are using a sniper rifle or not, but you can assign any value between 0 and 100 which will then be used as a general percentual chance to aim for the headshot for all bots no matter what their aiming skill is or whether they are using sniper rifle or not, where 0 = no headshots and 100 = always aim for the headshot)
- Added 'dont_chat_tobots' as a configuration variable as well as a Dedicated and Listen Server commands (allows you to limit the use of say&say_team commands for bots so that they will use it only when it is directed at a human player, this means that if you enable this variable then they won't say "Cease fire" or "Stay still and I'll treat you" to another bot)
- Added 'change_armory_start' as a configuration variable as well as a Dedicated and Listen Server commands (moves red team player start positions to he bottom of the cave, by default this is disabled, the way this tweak is applied won't allow instant change, you must restart the map in order to take effect, also it won't work if obj_armory is the first map when you start the game server)
- Added 'change_coldwar_start' as a configuration variable as well as a Dedicated and Listen Server commands (moves blue team player start positions from the airplane to the roof of the Observatory, by default this is disabled, the way this tweak is applied won't allow instant change, you must restart the map in order to take effect, also it won't work if ps_coldwar is the first map when you start the game server)
- Added 'change_vengeance_start' as a configuration variable as well as a Dedicated and Listen Server commands (moves the player start positions from inside the airplanes down to the street level when enabled, by default this is set to enabled in order to prevent getting the bots be stuck in the air and subsequent bug of inability to pick up the parachutes, which happens quite often on obj_vengeance map, you can always disable it to revert back to original parachuting, but you must restart the map, because the player start position entities are being modified at the moment when the map is loading to the server)
- Added hard-coded parachute use delay specific for obj_armory map (it's a random delay to make them open the parachute in the lower cave parts in order to spend as little time in the air as possible)
- Added option to have a custom name for MB root folder (for example you can rename it to 'marinebot' to deal with Linux HLDS crashing when there's an underscore character in gamedll_linux entry, but it can be any name up to 16 characters long, MB will read the custom folder name from the gamedll or gamedll_linux entry in liblist.gam file)
- Added option to add 'marinebot_folder_name' entry to liblist.gam file in order to allow custom MB folder name even in case you are using Metamod (when MB detects that the gamedll or gamedll_linux doesn't point to MB folder it'll look for this optional entry to figure out the custom name, so if you're using Metamod and want to use also custom MB folder name then just open liblist.gam file and add a line marinebot_folder_name "marinebot" for example, also make sure to update gamedll entry in Metamod config.ini or +localinfo mm_gamedll to point to the new custom MB folder name)
- Added second MB CVAR 'mbot' for HLDS (also all the commands have an option to omit the underscore character now, it's easier to type them and the new Windows console seems to have issues with the SHIFT key)
- Added 'kick_bot' command to Dedicated Server commands (works the same way as the one you can use in your own game)
- Added 'kill_bot' command to Dedicated Server commands (works the same way as the one you can use in your own game)
- Added message for missing 'marine_dog-tags' file (for both the dedicated server as well as the client HUD welcome message)
- Added name of the map to the info message on HLDS (previously it printed: MARINE_BOT INFO - there are <number> clients on the server ..., now it will print: MARINE_BOT INFO - there are <number> clients on <mapname> ...)
- Changed behaviour on ignore_enemy path where bleeding bot won't start applying the bandages and won't wait for medic either (these paths have special purpose so bots should not expose themselves there, also fixed bug from version 0.94b where the bot couldn't apply the bandages in certain cases, hardly present during standard gaming)
- Changed default value for the reaction time to 0.5s
- Changed the max wait time you can set to a waypoint to 600 seconds (that means 10 minutes in case of bot with standard behaviour, defender bots always modify the time thus they'll wait even longer of course)
- Re-enabled bug counter for 'pathwpt checkproblems' client command (it's been disabled in the last version due to inaccurate counting, now there's a new system that handles the console output for reporting bugs in waypoints which includes not only the counter, but it also watches how many lines of text was already printed into console to prevent its overloading and keeps max readability of reported issues)
- Reworked the system of fancy HUD text welcome messages (serious errors such as missing weapon definitions file will display repeatedly and will disable the welcome messages while warnings such as missing waypoints will show after the welcome messages, also changed the code so that it allows adding more warnings easily, and it's done so that it'll always print them one after another to prevent overloading and/or mingled messages, which was possible before)
- Updated obj_armory waypoints (lowered the priority setting for one of the two ammobox paths at the bottom of the cave in red team spawn area in order to have there just one top priority waypoint that forces the bots leave that area and rush to the Temple)
- Updated obj_sweden waypoints (added new waypoint and new path next to the dry well in blue team spawn area to fix navigation issue for respawning bots on that spot, also fixed a range setting for a different waypoint in the same area)
- Updated ps_coldwar waypoints (added new path to allow blue bots leave the alternative start positions in case you enable that option, fixed issue with crouch waypoint leading to ladder top waypoint at the Observatory that caused that the bots often fell off the ladder and broke their legs due to sudden stance change, the top ladder waypoint is now ladder+crouch in order to keep the bot in crouched stance until he fully sticks to the ladder)
- Updated ps_splinter waypoints (general rework, the original layout has been mostly kept, extended several paths, added many new paths, waypoints now utilize both the pushpoint as well as the triggers, fixed and/or removed all outdated techniques, changed a lot of junctions, also fixed the ranges and placements of many waypoints)
- Updated sd_force waypoints (general rework, the original style of "move -> short camping -> move" has been kept, but the excessive use of cross waypoint has been removed, also fixed usual waypoint priority and range issues, added a few new paths and fixed the inability to get away from the sd objective area after the crates have been destroyed)
- FIXED inability to leave a path when there was an 'ammobox' or 'use' waypoint as its first or last waypoint and this waypoint was connected to a 'cross' waypoint (the fact that these two can automatically work as turnback waypoints when they are used at the end of path completely blocked the standard code that looks for new waypoint, usually a 'cross' waypoint, to leave the path, simply put they shared the same branch of the code with 'goback' waypoint that is meant to do such thing)
- FIXED inability to stand up from crouch when following a player (recent changes in the code to set bot stance caused a bug where the bot became stuck in crouch after the first time he mimicked your crouching or if the bot was in crouch at the moment you made him follow you then he also became stuck in this stance)
- FIXED occasional inability to watch surrounding right after the bot started following you (if the bot was doing the waiting duties on a waypoint at the moment when you made him follow you then he wasn't able to watch the surrounding and kept looking just at you till the timer set during previous waiting ran out)
- FIXED parachuting (changed landing detection in order to prevent the bot to occasionally drop the parachute when he lands on/touches someone else while still in mid air, also improved the unstuck behaviour to better detect the cases when bots get stuck in the big mass of bodies, not just in the mid air but in general, they'll commit suicides much faster so in case of the mass of bodies in mid air it should not last long to free the space)
- FIXED attaching MB tag to names used in custom recruiting section in .cfg file (previously it set the name without any processing, now it'll correctly check the rich names setting first and process the name based on it)
- FIXED console input allowing you to assign wrong values under certain conditions (e.g. setting a zero priority to a waypoint by typing 'wpt setpriority w', basically if you used a letter instead of a number, I wrote a new system of reading input from console that hopefully fixed all vulnerable places, but also improves the input in general so now you can for example set true float values like 30.5 for all time and range variables with the exception of bot reaction time that has been left the way it was, plus the new system makes things a lot more simpler and safer even on the source code level)
- FIXED inconsistency between waypoint and path loading messages (also the system will now switch back to 'defaultwpts' folder on a map load if the search for waypoints failed in 'customwpts' folder too, i.e. there are no waypoints at all, so if you start creating brand new waypoints then they'll be saved to the 'defaultwpts' folder, if you prefer the previous way to have them saved to 'customwpts' then you can use the 'directory' command prior the first use of 'wpt save' command)
- FIXED crash when MB can't load the default 'fa_i386.so' library (this happens when some server admin previously renamed the FA library to deal with Linux HLDS crash when loading these _i386 suffixed libraries, MB will now try to load the renamed 'fa.so' library if the default library returned error, added the same check even for 'firearms.dll' -> 'fa.dll' in case someone renamed it on Windows HLDS too)
- FIXED MB console output being printed twice into HLDS console
- FIXED not printing the welcome message to HLDS console after map change (now it'll print the "write [m_bot help]..." message after each map change unless there was a serious error detected, previously the message was printed only at the server start)
- FIXED saving paths file after waypoints conversion from older version on Dedicated Server (if you used 'm_bot load_unsupported' command on the HLDS to convert older waypoints it didn't save the paths file at all, it correctly converted both the waypoints as well as paths, but then it saved just the waypoints, so the waypoints file and the paths file got out of sync due to that and stopped working)
- FIXED excessive printing of "there's no path to continue on waypoint no. <number>" message (when you turned 'developer 1' mode on together with auto adding to path then this message was being printed to console every time you've been close to any waypoint that can be added to a path, now it's being correctly printed only once when you start autowaypointing while standing next to a waypoint)
- FIXED missing cross waypoint range repair routine in 'masterrepair' (now it's correctly added to be the first one in the row of fixes, the order at which 'masterrepair' runs these fixes is: crosswpt -> pathmerge -> pathend -> sniperspot)
- FIXED 'wpt repair crosswpt' client command (originally this routine was very simple addition to autowaypointing so it didn't do thorough checks and it was able to create nasty bugs such as extreme cross waypoint range that covered several unwanted waypoints, now it'll correctly find the nearest cross waypoint for each loose path end, it won't connect unreachable waypoints anymore and it won't connect both ends of the path to the same cross waypoint, finally it received an upgrade where it will now also decrease the range to the lowest possible value because then there will be minimal number of unwanted waypoints connected to each cross waypoint, it'll again try to specifically deal with both ends of one path being connected to the same cross waypoint so that it'll disconnect the farther path end if the situation allows such action of course)
- FIXED 'wpt repair pathmerge', 'wpt repair masterrepair' and 'pathwpt checkproblems' client commands incorrectly reporting one-way path starting inside another path as a bug (now it's changed to a warning message to give the waypointer chance checking it just in case, but in most of the times such path is totally valid path)
- FIXED 'wpt repair range_and_position' client command being able to set negative range value in some cases (there's a general recommendation to not work with the waypoints when there are bots in the game and that's exactly what was making the routine for this client command malfunction, now there's a specific code to ignore all 'player' entities including bots inside this routine, also this client command has a simple patch now that will reset any negative range value to range = 5)
You may have noticed that I didn't update the tc_caen waypoints as I announced last time. Simply put I decided not to delay the release anymore. The truth is that if you play locally with just the bots then these waypoints won't get you into any real problems. Only the admins that run public servers may run into cases when the bots can't end (win) this map once in a while. But that's the case for past few releases, because all recent updates to these waypoints always addressed more general issues. This one specific problem that randomly happens has not yet been fixed. Since that would require bigger changes within the waypoints. Besides I can release the updated waypoints as a standalone package. Like there are the waypoints for old Firearms versions you can find in 'FILES' section.
Either way around this Marine Bot release includes the 3 typical packages. The main MB095.zip archive that's meant for local gaming on both Windows as well as Linux systems. I mean when you create a game and play with the bots on your own computer. So even if you are a gamer with Linux OS then you will need this Marine Bot for Windows package too. For more details head to 'SUPPORT' section and read the F.A.Q. 'Can I use Marine Bot on Linux OS?'. Next there's the server MB095.tar.gz archive for Linux Dedicated Server admins. It's been compiled and tested on Ubuntu 20.04 LTS with all updates to the date of compilation (July 6 2022). The final test server with this release compilation of Marine Bot .so library ran for over 36 hours without any issue. But as always there's also the source code archive (mb095b_sc.zip) in case you prefer to compile the .so library on your own. Besides those 3 packages there are 2 other .zip archives. And those are the updated configuration files for Marine Bot in version 0.95b for Firearms 2.5 and 2.4. Like I said earlier the new configuration system isn't compatible with the old .cfg files thus these 2 additional configuration files had to be updated too.
Also I went through 'Marine Bot waypointing manual' and fixed and updated several things that should make it again a bit more clear hopefully. So together with the tools in new Marine Bot 0.95b you should be able to create waypoints for your favourite custom map that doesn't have waypoints. Lastly I also fixed all typos and grammar fails I was able to find in all the documents that come with Marine Bot and/or are here on this site. But I'm sure there are still many left, because English isn't my native language. Honestly it wouldn't help much if all was written in Czech. Czech is terrible language with all its grammar rules and I've never been good at it either :). Anyway I hope you'll enjoy this new release at least as much as I've enjoyed making it. Thanks for the support and interest in Marine Bot. Have fun.
1 June 2022
Guess I should reveal some news on how is the development going. Honestly it goes slower than I expected. The good thing is that I have both fixes I mentioned previously done. Okay one is finished the second one is still in process of finalizing, because I'm not entirely happy with how does that routine work now so I want to improve it. The changes are:
- FIXED 'wpt repair range_and_position' client command being able to set negative range value in some cases (there's a general recommendation to not work with the waypoints when there are bots in the game and that's exactly what was making the routine for this client command malfunction, now there's a specific code to ignore all 'player' entities including bots inside this routine, also this client command has a simple patch now that will reset any negative range value to range = 5)
- FIXED 'wpt repair crosswpt' client command (originally this routine was very simple addition to autowaypointing so it didn't do thorough checks and it was able to create nasty bugs such as extreme cross waypoint range that covered several unwanted waypoints, now it'll correctly find the nearest cross waypoint to each loose path end, it won't connect unreachable waypoints anymore and it won't connect both ends of the path to the same cross waypoint)
The fixes for 'range and position' will work also for just the 'range' repair command, because it's the same code only called with different parameters. As well as for autowaypointing. Because whenever you stop autowaypointing then this very same routine is also called, but with paramenters to limit it to range only. The cross waypoint repair routine is the one I'm going to work on some more. Currently it can extend the range just fine. It doesn't seem to create fatal errors in the waypoints when you use it. Now I want to add a feature to allow also the reduction of the range when it is just too large and reaches to unwanted waypoints. That's a bit tricky task, because it may often go against the original purpose. I mean that I'll have to find a good balance between having all loose path ends connected to this cross waypoint and having minimum of unwanted waypoints within the range. So it's still hard to give any estimation of the release date. If things go really bad then I may eventually drop the idea to update tc_caen waypoints. As that isn't that crucial flaw. I mean that they do work. Only sometimes when there are specific game events the waypoints won't allow bots to win the map.
18 February 2022
I'm sorry for the lack of updates in the past year. I don't want to get in too much details, but I've been hit by the covid-19 soon after I posted the last update and that basically stopped all the work for several months. Today I'm going to post usual work in progress change log for the version 0.95b. As always with these work in progress logs it's ordered chronologically (i.e. how did the changes happen over the time). So here we go.
- Updated ps_splinter waypoints (general rework, the original layout has been mostly kept, extended several paths, added many new paths, waypoints now utilize both the pushpoint as well as the triggers, fixed and/or removed all outdated techniques, changed a lot of junctions, also fixed ranges and placements of many waypoints)
- FIXED inconsistency between waypoint and path loading messages (also the system will now switch back to 'defaultwpts' folder on a map load if the search for waypoints failed even in 'customwpts' folder, i.e. there are no waypoints at all, so if you start creating brand new waypoints then they'll be saved to the 'defaultwpts' folder, if you prefer the previous way to have them saved to 'customwpts' then you can use the 'directory' command prior the first use of 'wpt save' command)
- Added name of the map to the info message on HLDS (previously it printed: MARINE_BOT INFO - there are <number> clients on the server ..., now it will print: MARINE_BOT INFO - there are <number> clients on <mapname> ...)
- FIXED MB console output being printed twice into HLDS console
- Added second MB CVAR 'mbot' for HLDS (also all the commands have an option to omit the underscore character now, it's easier to type them and the new Windows console seems to have issues with the SHIFT key)
- Added 'kick_bot' command to Dedicated Server commands (works the same way as the one you can use in your own game)
- Added 'kill_bot' command to Dedicated Server commands (works the same way as the one you can use in your own game)
- FIXED crash when MB can't load the default 'fa_i386.so' library (this happens when some server admin previously renamed the FA library to deal with Linux HLDS crash when loading these _i386 suffixed libraries, MB will now try to load the renamed 'fa.so' library if the default library returned error, added the same check even for 'firearms.dll' -> 'fa.dll' in case someone renamed it on Windows HLDS too)
- Added option to have a custom name for MB root folder (for example you can rename it to 'marinebot' to deal with Linux HLDS crashing when there's an underscore character in gamedll_linux entry, but it can be any name up to 16 characters long, MB will read the custom folder name from the gamedll or gamedll_linux entry in liblist.gam file)
- Added option to add 'marinebot_folder_name' entry to liblist.gam file in order to allow custom MB folder name even in case you are using Metamod (when MB detects that the gamedll or gamedll_linux doesn't point to MB folder it'll look for this optional entry to figure out the custom name, so if you're using Metamod and want to use also custom MB folder name then just open liblist.gam file and add a line marinebot_folder_name "marinebot" for example, also make sure to update gamedll entry in Metamod config.ini or +localinfo mm_gamedll to point to the new custom MB folder name)
- Reworked the system of fancy HUD text welcome messages (serious errors such as missing weapon definitions file will display repeatedly and disable the welcome messages while warnings such as missing waypoints will show after the welcome messages, also changed the code so that it allows adding more warnings easily, finally done it so that it'll always print them one after another to prevent overloading and/or mingled messages, which was possible before)
- Added message for missing 'marine_dog-tags' file (for both the dedicated server as well as the client HUD welcome message)
- Added new configuration system (completely scrapped the old monstrous system that used 3rd party source code and wrote brand new much simpler own system, the external configuration files now use the same syntax as 'liblist.gam' files so a keyword then space and then a value inside double quotes while previously you've been forced to use a syntax similar to a programing language with equal signs, curly brackets and semicolon characters, also the new system addresses many drawbacks of the previous system, it's simpler and reduced the dll size by almost 25%)
- FIXED not printing the welcome message to DS console after map change (now it'll print the "write [m_bot help]..." message after each map change unless there was a serious error detected, previously the message was printed only at server start)
- FIXED attaching MB tag to names used in custom recruiting section in .cfg file (previously it set the name without any processing, now it'll correctly check the rich names setting first and process the name based on it)
- Changed default value for the reaction time to 0.5s
- Added 'change_vengeance_start' as a configuration variable as well as a Dedicated and Listen Server commands (moves the player start positions from inside the airplanes down to the street level when enabled, by default this is set to enabled in order to prevent getting the bots be stuck in the air and subsequent bug of inability to pick up the parachutes, which happens quite often on obj_vengeance map, you can always disable it to revert back to original parachuting, but you must restart the map, because the player start position entities are being modified at the moment when the map is loading to the server)
- FIXED saving paths file after waypoints conversion from older version on Dedicated Server (if you used 'm_bot load_unsupported' command on the DS to convert older waypoints it didn't save the paths file at all, it correctly converted both the waypoints as well as paths, but then it saved just the waypoints, so the waypoints file and the paths file got out of sync due to that and stopped working)
- Changed the max wait time you can set to a waypoint to 600 seconds (that means 10 minutes in case of bot with standard behaviour, defender bots always modify the time thus they'll wait even longer of course)
- FIXED console input allowing you to assign wrong values under certain conditions (e.g. setting a zero priority to a waypoint by typing 'wpt setpriority w', basically if you used a letter instead of a number, I wrote a new system of reading input from console that hopefully fixed all vulnerable places, but also improves the input in general so now you can for example set a true float values like 30.5 for all time and range variables with the exception of bot reaction time that has been left the way it was, plus the new system makes things a lot more simpler and safer even on the source code level)
- FIXED inability to leave a path when there was an 'ammobox' or 'use' waypoint as its first or last waypoint and this waypoint was connected to a 'cross' waypoint (the fact that these two can automatically work as turnback waypoints when they are used at the end of path completely blocked the standard code that looks for new waypoint, usually a 'cross' waypoint, to leave the path, simply put they shared the same branch of the code with 'goback' waypoint that is meant to do such thing)
- FIXED excessive printing of "there's no path to continue on waypoint no. <number>" message (when you turned 'developer 1' mode on together with auto adding to path then this message was being printed to console every time you've been close to any waypoint that can be added to a path, now it's being correctly printed only once when you start autowaypointing while standing next to a waypoint)
- FIXED inability to stand up from crouch when following a player (recent changes in the code to set bot stance caused a bug where the bot became stuck in crouch after the first time he mimicked your crouching or if the bot was in crouch at the moment you've made him follow you then he also became stuck in this stance)
- FIXED occasional inability to watch surrounding right after the bot started to follow you (if the bot was doing the waiting duties on a waypoint at the moment when you made him follow you then he wasn't able to watch the surrounding and kept looking just at you till the timer set during previous waiting ran out)
- Changed behaviour on ignore_enemy path where bleeding bot won't start applying the bandages and won't wait for medic either (these paths have special purpose so bots should not expose themselves there, also fixed bug from version 0.94b where the bot couldn't apply the bandages in certain cases, hardly present during standard gaming)
- Added 'change_coldwar_start' as a configuration variable as well as a Dedicated and Listen Server commands (moves blue team player start positions from the airplane to the roof of the observatory, by default this is disabled, the way this tweak is applied won't allow instant change, you must restart the map in order to take effect, also it won't work if ps_coldwar is the first map when you start the game server)
- Updated ps_coldwar waypoints (added new path to allow blue bots leave the alternative start positions in case you enable that option, fixed issue with crouch waypoint leading to ladder top waypoint that caused that the bots often fell off the ladder and broke their legs due to sudden stance change, the top ladder waypoint is now ladder+crouch in order to keep the bot in crouched stance until he fully sticks to the ladder)
- Added 'change_armory_start' as a configuration variable as well as a Dedicated and Listen Server commands (moves red team player start positions to he bottom of the cave, by default this is disabled, the way this tweak is applied won't allow instant change, you must restart the map in order to take effect, also it won't work if obj_armory is the first map when you start the game server)
- Added hard-coded parachute use delay specific for obj_armory map (it's a random delay to make them open the parachute in the lower cave parts in order to spend as little time in the air as possible)
- FIXED parachuting (changed landing detection in order to prevent the bot to occasionally drop the parachute when he lands on/touches someone else while still in mid air, also improved the unstuck behaviour to better detect the cases when bots get stuck in the big mass of bodies, not just in the mid air but in general, they'll commit suicides much faster so in case of the mass of bodies in mid air it should not last long to free the space)
- Added 'dont_chat_tobots' as a configuration variable as well as a Dedicated and Listen Server commands (allows you to limit the use of say&say_team commands for bots so that they will use it only when it is directed at a human player, this means that if you enable this variable then they won't say "Cease fire" or "Stay still and I'll treat you" to another bot)
- Updated obj_armory waypoints (lowered the priority setting for one of the two ammobox paths at the bottom of the cave in red team spawn area in order to have there just one top priority waypoint that forces the bots leave that area and rush to the Temple)
- Updated obj_sweden waypoints (added new waypoint and new path next to the dry well in blue team spawn area to fix navigation issue for respawning bots on that spot, also fixed a range setting for a different waypoint in the same area)
- FIXED 'wpt repair pathmerge', 'wpt repair masterrepair' and 'pathwpt checkproblems' client commands incorrectly reporting one-way path starting inside another path as a bug (now it's changed to a warning message to give the waypointer chance to check it just in case, but in most of the times such path is totally valid path)
- FIXED missing cross waypoint range repair routine in 'masterrepair' (now it's correctly added to be the first one in the row of fixes, the order at which 'masterrepair' runs these fixes is: crosswpt -> pathmerge -> pathend -> sniperspot)
- Re-enabled bug counter for 'pathwpt checkproblems' client command (it's been disabled in the last version due to inaccurate counting, now there's a new system that handles the console output for reporting bugs in waypoints which includes not only the counter, but also watches how many lines of text was already printed into console to prevent its overloading and keeps max readability of reported issues)
- Added 'custom_headshot_percentage' as a configuration variable (allows you to set your own percentual chance for bots to aim for a headshot, by default this option is disabled which means the bots will use the hard-coded decision based on their aiming skill and whether they are using a sniper rifle or not, but you can assign any value between 0 and 100 which will then be used as a general percentual chance to aim for the headshots for all bots no matter what their aiming skill is or whether they are using sniper rifle or not, where 0 = no headshots and 100 = always aim for the headshot)
- Updated sd_force waypoints (general rework, the original style of "move -> short camping -> move" has been kept, but the excessive use of cross waypoint has been removed, also fixed usual waypoint priority and range issues, added a few new paths and fixed the inability to get away from the sd objective area after the crates have been destroyed)
You already know some of these changes from previous announcement. There also have already been compiled a test version where most of these changes were present. That test version has been used on a private server and everything seemed fine. However that doesn't mean version 0.95b is about to be released. I know of at least two more bugs I want to fix. Also tc_caen waypoints still need a few touches to make the bots play that map well. I mean that there are times when the bots just don't act the way I would like to see. So I want to put some time in it and tweak those waypoints a bit. Then there's the final series of tests to confirm that these changes really work the way they are meant to and don't cause new bugs. That means that if everything goes well then the development will take at least a few more months.
4 February 2021
Today's update adds two detail texture files. One for sd_force and one for ps_outlands map. The ps_outlands detail textures is the only thing I was able to recover from the HDD failure I had in 2012-ish where I've lost quite a lot of old work-in-progress stuff from Marine Bot development past the version 0.91b and some of my additions to Firearms. The recovered file has been slightly polished and zipped to match the detail texture archive style. The detail textures for sd_force is a brand new work. I've basically created it while I was working on waypoints update for this map. Yeah this reveals another new thing about future MB0.95b. The waypoints are a rework of the original ones where I tried to keep the original idea, but fixed the crazy overusage of cross waypoint and other bugs present in those waypoints. In case you wonder what was wrong with sd_force waypoints then there are two pictures in Waypointing Guide in a chapter named 'Most common errors or bugs (i.e. things you should NOT do)'. To download both new detail texture packages head to FILES -> Miscellaneous files -> Firearms detail texture files.
15 December 2020
Updated the site. I've went through the documents and fixed hopefully all typos in them. Except for fixing the typos the waypointing guide has also a new chapter now and a few new lines here and there to make the explanations more clear. The new chapter shows you a proper way how to finish the waypoints in case that you haven't covered the whole map yet and you plan to continue on them in the future. Then there's a brand new guide where you can learn about the Detail Textures. What are they. How do they work. And how can you add them to maps that don't have them yet. Also I've added two new Detail Texture packages to the 'FILES' section. You can find them at the bottom of that page. Detail Textures for ps_river were finished in 2005 as my second addition to the official FA 3.0 maps after ps_marie. I remember posting them on the original Firearms forums. But then I've completely forgotten about them. So here's a big Thank you to Drek for reminding me these Detail Textures. The next ones are for obj_thanatos map. They were created in late 2005 too, but recently I've updated them. Actually I worked on them while I was finishing MB0.94b, but I didn't get to cleaning the zip archive up. Thus they go public now together with the ps_river ones. You can download them both from FILES -> Miscellaneous files -> Firearms detail texture files. Speaking about updating old stuff. I have also updated the waypoints package for Firearms 2.5. Basically all of its waypoints were cleaned up and fixed using the tools in Marine Bot 0.94b. It was part of MB0.94b final testing. So if you haven't noticed them yet they are marked as June 2020 update and are available for download at FILES -> Additional Marine Bot files -> Marine Bot waypoints for older Firearms.
If you are interested in current Marine Bot development then I'll make it short this time. There have been added options to change the start positions on 3 official FA 3.0 maps so that you'll skip the need to parachute. There's an option to limit bots in using the chat channel. And an option that allows you to set your own headshot percentage for the bots. Also there are several fixes of found bugs including those in waypoints.
I wish you happy holiday season. Enjoy them as much as current situation allows you. And stay tuned for more news in the future.
11 October 2020
Initial series of tests passed just fine so I guess I can share some news about current Marine Bot development. While doing the final testing of the 094b I've noticed some weird stuff that were causing server crashes. I've found out that it's not really Marine Bot source code related, but the source of these crashes is the Dedicated Server. Actually the way how does it handle certain things. I'm talking about the underscore character now. During the time when Marine Bot development was frozen the Linux world decided to drop the _i386 suffixes. Well that wouldn't be all that bad, but how Valve handled it on their Dedicated Server is simply lame. From my tests it seems that they simply stop reading the 'liblist.gam' entries when they reach the underscore character. Which means that instead of passing "dlls/fa_i386.so" to the server they pass just "dlls/fa" which then results in a crash, because the server cannot find such file. I've proved this assumption by renaming MB library to 'marinebot.so' and moving it to 'firearms/dlls' folder. After that the server started up and worked just fine. Irony about that is fact that even in Windows world has been changes that make the use of an underscore character quite hard. I'm talking about the new Windows terminal (console if you wish) that disabled the standard SHIFT key function. Now try to type the underscore character without SHIFT key. *Sigh*. Both of these things led to following changes:
- Added second MB CVAR 'mbot' for HLDS (also all the commands have an option to omit the underscore character now, it's easier to type them and the new Windows console seems to have issues with the SHIFT key)
- FIXED crash when MB can't load the default 'fa_i386.so' library (this happens when some server admin previously renamed the FA library to deal with Linux HLDS crash when loading these _i386 suffixed libraries, MB will now try to load the renamed 'fa.so' library if the default library returned error, added the same check even for 'firearms.dll' -> 'fa.dll' in case someone renamed it on Windows HLDS too)
- Added option to have a custom name for MB root folder (for example you can rename it to 'marinebot' to deal with Linux HLDS crashing when there's an underscore character in gamedll_linux entry, but it can be any name up to 16 characters long, MB will read the custom folder name from the gamedll or gamedll_linux entry in liblist.gam file)
- Added option to add 'marinebot_folder_name' entry to liblist.gam file in order to allow custom MB folder name even in case you are using Metamod (when MB detects that the gamedll or gamedll_linux doesn't point to MB folder it'll look for this optional entry to figure out the custom name, so if you're using Metamod and want to use also custom MB folder name then just open liblist.gam file and add a line marinebot_folder_name "marinebot" for example, also make sure to update gamedll entry in Metamod config.ini or +localinfo mm_gamedll to point to the new custom MB folder name)
On top of that I've also added output for all external files Marine Bot is loading so that you can always see what has failed. Here you can see how does it look like on Steam Dedicated Server on my notebook for Linux testing on Ubuntu 20.04 LTS:

The following picture shows the changes made to the two important configuration files. By the way if you commented out the Metamod line and used just plain FA + MB through uncommenting this line // gamedll_linux "mbot/marinebot.so" then you wouldn't need to use the bottom line with marinebot_folder_name "mbot", because MB would then get the folder name right from the gamedll_linux entry.

Next even bigger change is that Marine Bot will have a new configuration system. With all the respect to author or authors of the 3rd party software used for it and to Andrey who did implement it to MB back in the days of active development, the old configuration system was a huge and complicated monstrosity. It also had its drawbacks like complicated syntax that wasn't even unified between the external files MB is using and it needed a few patching touches to fix the issues. I also feared a moment when some of the stuff become obsolete. Basically it wasn't a good system for what a simple bot program really needs. Therefore I've completely scrapped it and wrote a brand new and way simpler system. It's pretty similar to how a 'liblist.gam' file works. There are keywords and values. Where the values are always enclosed in double quotes and everything is separated just by spaces. This last picture shows how the new configuration handles syntax errors I purposely made for the testing on Windows old WON HLDS. Yeah I'm still trying to keep MB compatible even with that system. The picture is a merge of console output and snippets from the 'marine.cfg' related to those errors. What you may also see on the part from 'commands' (tagged as bindings in the configuration file) is fact that you can have all on one line now if you want and as long as it's correctly separated by spaces. So there should not be even a slight mark of new line problem on Linux systems. Which was actually the original reason for using the old configuration system. Last thing you may notice is that you can use even tabulator spaces to separate the keys and values in the new system if you wish and/or feel that it would improve readability.

In case you wonder about the errors. Let's sum them up. The value for passive_healing is commented out thus it's missing. Then the empty class warning. Well there's just the class header and nothing else for that custom class so it's more than obvious. The binding/commands error. The first command correctly binds marinebotmenu to an END key which does the second command confirm by the console output END = marinebotmenu. It's the third command that fires the error and it's because the command isn't enclosed in double quotes. The forth command that is commented out and thus it's not performed shows the correct way how the third command should have look like. Finally the custom recruiting errors. First bot is added without issues. The second bot fires an error due to too long name so his name is set to default name 'marine'. You can see that at the bottom of the screenshot. Third bot fires also an error. This time it's due to invalid skin value. There are only 5 skins in Firearms. Fourth and fifth bots are recruited without issues. Sixth bot is correctly skipped, because it's commented out in the configuration file. So it's the seventh bot that is added to the game despite the fact that it would normally haven't been added due to max_bots limit of only 6 bots.
I was going to post this news earlier, but as always when I moved the source code over to my Linux laptop it fired a few errors due to the fact that Microsoft Visual Studio follows the C/C++ rules in a slightly different way than GCC on the Linux side. So I had to add and change a few things to make the source code work on both platforms. That's just how it is. I've always been a Windows guy so I'm running Windows 10 on my main laptop and thus I'm writing the code in Visual Studio which is actually pretty convenient environment. However then I have to do a test on Linux side to check for the compatibility of the source code as well as compile the library and test it on the Linux Dedicated Server. I mean that I just didn't want to write about something that wasn't done yet. See you next time.
4 August 2020
The day you all have been waiting for is finally here. This is the public release of Marine Bot in version 0.94b. As you may have already noticed the whole webpage also got a small visual update. However the important fact is that there's an updated support section as I've promised. The other sections have some new content too. I'm not going to list all the things that have been updated on the web. Feel free to go through all sections and read or download what you are interested in. I'll just mention that you can find the updated Waypointing guide (manual if you wish) in 'LINKS' section. You know I can't make waypoints for every single custom map that has ever been made for Firearms so that guide should help you in making your own waypoints for such maps.
As always you can get all the release packages in 'FILES' section. RoboCop didn't reply back to me yet. So I've used my Ubuntu 20.04 LTS laptop to build the .so library. Also I ran a test Linux HLDS there for over 12 hours to see that this release build won't crash the server right away. However the source code is available too. So that you can always compile your own library. The liblist.gam utilities that allow you to install Marine Bot to Firearms are now a separate source code package. They were part of the 0.91b release source code, but since then I always forgot to include them. So this way solves the problem.
Marine Bot 0.94b change log:
- Bot can now fast switch to sidearm or smg (if he has one) instead of reloading main weapon in battle
- Bot can now use merge clips feature (will now often reload weapon after battle to keep full magazine in weapon and merge those that were partly used)
- Bot can now fully use the nomenclature skill
- Bot will now deploy bipod only if the enemy is far (he used to deploy it in each battle, which in case of close encounter often led to his quick death)
- Bot can now use bipod even outside battles while he's waiting at waypoint with wait-time greater than 50 seconds (he may or may not use it, because deploying bipod has been changed to a randomly generated chance for in-battle case as well as out of battle case)
- Bot will now switch back to normal fire mode after battle if he leaves the battle (enemy died or was lost) with weapon set to fire the attached grenade launcher
- Bot will now correctly handle multiple grenades (bot was able to use only the first grenade type in any custom class that gave him both concussion as well as frag, now he is able to detect also the other grenade and use it once the first grenade was depleted)
- Bot with grenade in hands will no longer advance towards his enemy (which often caused that the bot was too close to safely throw the grenade and had to switch back to firearm or knife)
- Bot will now stop guarding some spot when he runs out of ammo for main weapon (he will also ignore any other wait-time waypoint until he refills ammunition)
- Bot will now try to sidestep to be able to go prone if someone else is blocking the original spot (e.g. prone waypoint with small range where other bot or player is already waiting so 2nd bot usually just stood still on top of the 1st bot, but now the 2nd bot will strafe to left or right and go prone beside the 1st bot)
- Bot can now see through all fences in the central alley on obj_armory (previous code had exception to disable the feature on this map, now the exception was replaced with specific code to handle this case)
- Increased m14 rate of fire (base delay between two shots has been cut in half, if you'd prefer original slower rate of fire feel free to edit the file matching your FA version inside ...\marine_bot\weapons)
- Minimal safe distance for sniper rifles has been cut in half which means the bots will use them even to shoot at close enemies instead of switching to backup weapon or knife
- Added client command 'wpt compass <arg>' (it will display rapidly blinking beam that'll lead you to the waypoint given through the argument, 'off' will stop it, also if you pass invalid or no argument this feature will automatically turn off)
- Added client command 'pathwpt compass <arg>' (works the same way as 'wpt compass' so it'll lead you to the waypoint where given path begins i.e. its first waypoint, 'off' or invalid argument or no argument at all will turn this feature off)
- Added client command 'pathwpt split <path> <wpt>' (it will allow you to easily divide a path on two parts - two seperated paths, this is useful when you have a long path and you forgot about any side route, now you can easily split the long path where those routes cross one other and you can create standard cross waypoint there)
- Added option to combine waypoint time and priority to achieve exact wait time (the time you set on waypoint is always modified by the behaviour the bot generates after joining the game, bots that take a role of attacker always reduce the wait time by 35% while bots defenders increase it by 35%, this feature can be disabled now if you set priority to 1 on the waypoint, it's useful especially for specific cases where the bot must wait exact period of time to activate something e.g. the explosives on obj_bocage, basically a goal waypoint, therefore it follows the same logic as priority = 1 on claymore waypoint which is also meant for a goal usage e.g. trucks on sdtc_balcome)
- Added 'console_commands.html' file that replaces 'hlds_cmds.txt' and 'listenserver_cmds.txt' (both files were outdated and several commands were missing)
- Added 'faq.html' file that replaces 'faq.txt' (which was outdated and needed an update on a few places)
- Added sd_durandal_r47_dusk waypoints
- Added sd_durandal_r47_night waypoints
- Changed bot decision making at cross waypoint to allow you greater control (the chance to follow priority based decision is now based on highest priority used there, if you used waypoint with priority = 1 there then there's 90% chance the bot will act based on priority, but if you used waypoint with priority = 3 as the highest priority waypoint at this cross waypoint then the chance the bot will act based on priority drops to just 70% and the rest 30% is unpredictable action - either 2nd highest priority is used or it's completely random pick, previous code had the chance always at 85% for priority based action no matter what was the highest priority used around that cross waypoint)
- Changed inability to medevac is no longer logged into mb_error-log file
- Updated claymore evasion (fixed jumping over the mine and added ability to go prone and crawl through it if the movement speed is too low to jump)
- Updated autowaypointing feature (it's quite a big upgrade, now it creates paths together with the waypoints, it can change waypoint type to the 'ammobox' one if you are near the ammobox entity, it'll stop if you add 'cross' waypoint, it can use many self-fixing routines in order to help you build waypoints as bug free as possible)
- Updated client command 'wpt repair' has a new option 'crosswpt' (it checks the surrounding of 'cross' waypoint for free path ends, that means path start or end that isn't connected to any 'cross' waypoint, but is close enough to be connected to this 'cross' waypoint, if such thing is found then the range on this 'cross' waypoint is increased to connect it, so the path doesn't start or end in a void anymore, but is correctly connected to the whole network, this fix is meant to be used prior 'pathend' fix)
- Updated client command 'pathwpt highlight' has two new options 'sniper' and 'mgunner'
- Updated client command 'pathwpt insert' has now option to easily insert new waypoint to the beginning of existing path using appropriate keyword as its 3rd argument (eg. 'pathwpt insert 123 55 start' to insert waypoint no. 123 to the beginning of path no. 55)
- Updated client command 'pathwpt insert' has now option to insert new waypoint to the end of existing path using appropriate keyword as its 3rd argument, this unifies the options for insertion, waypointer can now insert new waypoint into an existing path by using just one command, where its 3rd & 4th argument will specify the exact place of the new waypoint in the path ('pathwpt insert 123 50 start' will place the new waypoint to the beginning of this path, 'pathwpt insert 123 50 end' will place the waypoint to the end of this path and finally the original option 'pathwpt insert 123 50 200 220' will place the waypoint into the path between its two waypoints 200 & 220 ... these two waypoints must be direct neighbours on this path of course)
- Updated client command 'pathwpt checkproblems' has a check for solitary waypoints (any waypoint that isn't part of a path with exception of 'aim' and 'cross' waypoints is reported)
- Updated client command 'pathwpt checkproblems' has a check for the same waypoint added to path more than once (that's a bug that would create a loop error, the new safety system in path creation routines won't allow it, but waypoints created prior MB 0.94b can have such bug, therefore there was this check added, you can fix it easily by using 'pathwpt continue' on such path followed by 'pathwpt stop' which runs the self-fixing routine or you can use the 'wpt repair masterrepair' that does fix this bug as well)
- Updated client command 'pathwpt info' works now in cooperation with path highlighting feature (it printed info about the first found path, now it does check if the path matches highlighing mask, if it doesn't match then it looks for next path)
- Updated client command 'pathwpt checkinvalid' now checks for 'aim' and 'cross' waypoints being part of path as well as having the same waypoint added twice or more times in the same path, either of these cases is considered as invalid path and will be fixed by removing such waypoint from the path, then will be used the original function of this command, the check for path lenght so any path with length = 1 will be deleted
- Updated client command 'wpt repair masterrepair' has the same sequence of checks and fixes as the 'pathwpt checkinvalid', it's the last step of the fixes that this command calls in order to finalize all the automated fixes so that you had nearly flawless waypoints (if you don't know the purpose of 'repair' command please check the list of valid commands in waypointing guide or read one of previous changelogs where was this command announced and described)
- Updated client command 'wpt repair pathmerge' (it used to check for/repair only typical 'invalid merge of paths' so it tested only path end, but now it will check and repair even if there are two paths that share the same starting waypoint and aren't connected to cross waypoint of course)
- Updated client command 'pathwpt checkproblems' match the changes in 'wpt repair pathmerge' command (honestly it's the same routine, but it runs in a checking mode only, it's done for those who prefer manual checking before automatic fixing)
- Updated MB console command help (added missing commands, rephrased some explanations, moved commands to correct groups)
- Updated obj_armory waypoints (minor changes in the waypoint placement & properties on the upper level and roof of blue team armory)
- Updated obj_bocage waypoints (added priority 1 for blue team to all 5 waypoints where you need to wait to activate the explosives)
- Updated obj_paradise waypoints (basically reworked most of the waypoints to match todays standards, the general layout has been kept, but the outdated zig zag style has been removed, also fixed most of the ranges and changed a lot of placement, added some new paths to cover previously unwaypointed places and several paths received the additional tags that were not available at the time these waypoints were created)
- Updated ps_coldwar waypoints (fixed one blue path on the red side of the movable bridge, there was the same waypoint being added twice to this path)
- Updated ps_crash waypoints (fixed one cross waypoint layout inside church, it used to cause the loop problem)
- Updated ps_outlands waypoints (changed the 4 parachuting paths in red team spawn area to two-way paths, did minor changes in two one-way paths in the 1st red flag area so that they don't share their starting waypoint and fixed 'invalid path end' on one red path leading to the final red flag)
- Updated psobj_thanatos waypoints (just erased couple waypoints and paths that were inside unreachable places, basically the leftover from the conversion from obj_thanatos waypoints, because both maps have small changes in architecture)
- Updated sd_durandal waypoints (erased one 2 waypoints long path inside red team spawn area that was basically just a path with the same waypoint added twice to it, erased solitary waypoint on the right route from blue spawn to bridge area, there was a 'sniper' waypoint exactly on 'prone' waypoint, together they blended into yellow colored 'shoot' waypoint, this must have been pretty old bug, because the system doesn't allow such placement anymore for quite a long time, the path leading through long hallway and doors to the red side of bridge area is now 'red team only' path, because those doors there won't open to blue players, finally all 'door' waypoints have been moved closer to the doors so the bots won't wait there that long)
- Updated sd_oberland waypoints (fixed missing goback tag on 4 waypoints)
- Updated tc_basrah waypoints (general rework, the original layout has been kept, but the ranges and placement of many waypoints has been changed, added some new and changed several original paths to allow bots visit previously unreachable places or leave places like the Town Center where they were stuck till the very end, and finally fixed the ladder waypointing so the bots should not get stuck there so often)
- Updated tc_battlefield_r2 waypoints (erased one 2 waypoints long path in red team spawn, it was again a path built of the same waypoint added twice to it and erased 3 solitary waypoints near red team spawn)
- Updated tc_caen waypoints (fixed blue path in red armory area, blue bots can now correctly jump on top of the crates there and erased 9 solitary waypoints from unreachable map locations, it again must have been consequence of conversion from different version of this map)
- Updated tc_golan waypoints (fixed cross waypoint setup in front of the radio house, there was one waypoint disconnected that caused incorrect path end for one-way path leaving that house)
- Updated tc_rubble waypoints (erased two 2 waypoints long paths that were again paths built from the same waypoint added twice to them, it's obvious that Drek really liked doing that :), also reworked the maze in front of the tc house, now there's just one big junction there, replaced 3 other cross waypoints with longer paths that followed previous logic and fixed problem with unwanted 'aim' waypoint sharing in a few places, except for one waypoint at the entrance to tc house where it isn't possible, there would be a loss of original layout)
- Updated tc_thebes waypoints (extended 4 paths, 2 in each team spawn zone, to correctly end at appropriate cross waypoint, also changed them to one-way paths because they all start on upper terrace and end on ground level)
- FIXED occasional case where bot was able to target and shoot at enemy without actual visibility (this bug was present since ver. 0.92 in code that gave the bot ability to see through fence and like objects)
- FIXED inability to sprint downhill (for Firearms mod the bot was sprinting, the fatigue system worked correctly, but the method that the bot is using to send his movement speed to the game engine was sending incorrect speed value, it was sending slow speed due to high pitch angle, now there's an exception ignoring pitch angle when sprinting is active)
- FIXED bot trying to place claymore mine while being in crouch stance (the bot got a message and reset his action later on, but he was vulnerable to attacks for a while, human player doesn't try that either, therefore there's an exception for this case now together with a proper message for you if you encounter such situation while debugging your waypoints)
- FIXED bot reading the FA text messages (when someone else gives you a medical treatment or you treat someone else the message that gets sent has additional string variable, message system decoding function got corrupted by this event so bot after the 1st healing wasn't able to read following messages correctly, which was causing subsequent bugs in bot behaviour)
- FIXED bot spawning "phantom" grenade in any class with m82 weapon which he then tried to use in game (if there was real grenade in the class then all was okay)
- FIXED weapon reload bug (when the bot decided to go prone or resume from prone while trying to reload his weapon)
- FIXED bot using ammobox for extremly long period of time (when bot with benelli m3 or remington or colt anaconda or m11 ran completely of out ammo he ignored the fact that these weapons are getting ammo from the ammobox in something like a virtual magazine, in case of regular ammobox visit with one of those weapons then things worked fine)
- FIXED (hopefully) all weapon based actions that were causing occasional stuck and inability to act
- FIXED mgunner bot ignoring wait time on waypoint if the path was sniper + mgunner path
- FIXED detection of waypoint range (this means the bot should not dance around waypoints with small range)
- FIXED resetting navigation if he got stuck for a while when he was heading towards next waypoint
- FIXED resetting navigation (i.e. the bot forgets current waypoint & path and looks for a new one) while moving down the hill or stairs (basically whenever the pitch angle was too steep and bot switched to slow walking then if the waypoint was quite far away, he wasn't able to reach it in less than 4 seconds, which is hardcoded delay for the bot to reach his next waypoint)
- FIXED bot returning to already visited waypoint and starting the action there again (e.g. prone waypoint with small range and wait time - bot did wait there, then he crawled back to it and almost always repeated the waiting, which means he waited twice as long as what he should have done according to waypoints)
- FIXED bot with sniper rifle wasn't able to fire his weapon at the shoot waypoint and was stuck there (the code allowing bot stop using weapon scope after battle was also breaking his try to zoom in and fire the weapon when being at the shoot waypoint)
- FIXED targetting the aim waypoints when the bot is at shoot or claymore mine (bot often wasn't able to correctly face the direction of the aim waypoint, sometimes the targetting was completely skipped there which caused bugs like claymore mine placed to a wrong direction)
- FIXED 'wpt autosave' feature stopping currently created path (in order to properly save waypoints the system must finish all paths, that means it has to stop even the path that's currently in creation, usually you don't save waypoints at the moment when you are creating a path, however the 'autosave' feature saves waypoints every 90 seconds so it often hits the moment when you are working with them, now this feature checks for such activity and postpone the save for later moment)
- FIXED pathwpt autoadd feature bug that was preventing you to add waypoint into path under certain conditions (basically if you created 3 waypoints long path, deleted it and tried to recreate it then the 2nd waypoint was never added, there was primitive 2 waypoints history for 'pathwpt autoadd' feature that was meant to prevent unwanted addition of the same waypoint to the path twice, now there's a new system to check for that, it's placed right inside the path creation routines so it works always even if you're creating paths manually)
- FIXED bug in starting autowaypointing after waypoint deletion (if you deleted the last added waypoint you weren't able to properly start the autowaypointing feature in vicinity of the deleted waypoint, because the last waypoint position wasn't correctly freed, manual waypoint addition doesn't use position history so it wasn't affected by this bug)
- FIXED client command 'wpt detect' causing game crash with a 'overload on netchan->message' error (if there was too many entities around then the way how this command reported them overloaded the netchan, now it lists them one by one so there should be no overloading)
- FIXED client command 'wpt repair sniperspot <index>' returning error if used on single waypoint through index argument (it was getting the value from wrong argument)
Now this is an awfully long list of changes. Let's hope the testing squashed all bugs so that you all can now enjoy playing Firearms with new version of Marine Bot. Have fun.
13 July 2020
Three months later and the development is still going. Truth is that now when things returned to somewhat normal state I have less time to work on Marine Bot. Since last update I've found two game crashing bugs in the source codes. Both were related to waypointing commands. Both did crash the game with 'Overload on netchan -> message' error. One was probably present since last MB version 0.93b. The other one was a result of extending the feedback for one of the waypoints checking function. Simply put too much data has been sent into console at one moment. Both cases resulted in a change how the feedback is printed into console for both commands. This will probably lead to yet another change related to this in the future MB version. Because I don't want to do bigger changes in the code now when is current MB version close to public release.
The next thing that happened in those three months was that I have finally installed Linux OS on old laptop. It's a Ubuntu 20.04 LTS. So Marine Bot has finally been correctly ported to work on Linux the same way it does on Windows. I mean that I've been able to experience the issues that a Linux user can have when he/she is trying to use Marine Bot on that system. Expect updated support once the version 0.94b will go public. I've been updating the whole MB website with info related to using MB on Linux system. So with the release of MB0.94b this whole web will be updated as well. Together with that, MB waypointing guide (manual if you wish) has also received an update to match changes made to MB0.94b. That means it'll also be made public when the version 0.94b is released.
After figuring out how to use Marine Bot on Linux I've made sure to make it compile successfully there too. As I've said in the last news MB source codes have been reworked and cleaned a lot. That means many unused things have been removed including whole files. On the other hand some new files have been added to the project. Thus the 'makefile' was totally out of sync and Linux users were not able to build 'marine_bot.so' at all. This is fixed now. MB0.94b source codes allow the Dedicated Server admin to build the shared object library (.so) right out of the box. I've also added an option to use the '-static-libstdc++' linker flag to link the 'libstdc++.so.6' statically into 'marine_bot.so' in order to deal with SteamCMD HLDS bug that results in 'libstdc++.so.6: version CXXABI_1.3.9 not found' error. My Linux skills are below basic level. I know nearly nothing about building programs in Linux environment. But with the help of Google I was able to find this static linking solution. I mean not everyone is able to do symbolic link to system library to deal with the outdated 'libstdc++.so.6' inside SteamCMD HLDS folder. I certainly wasn't able to overcome that problem for like 2 weeks. Until one random burst of my mad mind suggested to try such crazy thing. Well first I had to read through many web pages about Linux to be able to have such idea. On the other hand this is part of the fun when one is trying out new things.
Finally I've made Marine Bot source codes compatible with the three probably most used versions of HL SDKs. The source codes have always been compatible with the original HL SDK v2.3 where I'm doing all the work. Year or two ago RoboCop from AGP clan asked me to help him with moving Marine Bot source codes to new HL SDK that Valve released in year 2013. He also suggested to do the same with my main MB source codes. I don't really want to do it, because from what I have read the SDK v 2.3 has still best compatibility with the old WON Half-Life version. And Marine Bot is meant for offline gaming so it should be available even to people who never moved to Steam. But I understand that people who want to compile MB on their own, for whatever reason they have for it, will probably use newer HL SDKs. Thus as of version 0.94b Marine Bot source codes will be compatible with Valve's HL SDK 2013. Then the modified version of that SDK done by Allied Modders. And also with Metamod's patched version of HL SDK v2.3. I'm using the preprocessor directives for this. So all one has to do is set the flag matching the SDK version and things will work just fine. I've added this option even into the 'makefile'. I compiled the .dll in all three SDKs and tested them in game. All three worked. I did the same on Linux. Dedicated Server always started and a few bots joined it. So far all seems to be okay. Also there has been added new simple text file into the project that has all the info related to this feature. Basically if you aren't using the original HL SDK v2.3, but one of those three, you'll edit just one file to set the appropriate flag on and you're ready to go.
To summarize it. Things are moving forward. There is still some work needed to be done, but as of now it seems that the public release of Marine Bot 0.94b is close.
13 April 2020
This year Easter bunny isn't going to hide stuff on your garden. But he's going to reveal a few things from Marine Bot kitchen. This winter for almost four full months I've been home because of problems with my hip joint. So I was able to work on new Marine Bot version. Now there's a covid-19 crisis and the company I work for has stopped production for a few weeks so I'm home again. And I can continue working on Marine Bot 0.94b.
Here's current change log. It's a work in progress log. In the order how did the things happen.
- ADDED sd_durandal_r47_dusk waypoints
- ADDED sd_durandal_r47_night waypoints
- CHANGED inability to medevac is no longer logged into mb_error-log file
- FIXED mgunner bot ignoring wait time on waypoint if the path was sniper + mgunner path
- ADDED client command 'wpt compass ' (it will display rapidly blinking beam that'll lead you to the waypoint given through the argument, 'off' will stop it, also if you pass invalid or no argument this feature will automatically turn off)
- ADDED client command 'pathwpt compass ' (works the same way as 'wpt compass' so it'll lead you to the waypoint where given path begins i.e. its first waypoint, 'off' or invalid argument or no argument at all will turn this feature off)
- UPDATED client command 'pathwpt checkproblems' has a check for solitary waypoints (any waypoint that isn't part of a path with exception of 'aim' and 'cross' waypoints is reported)
- UPDATED client command 'pathwpt checkproblems' has a check for the same waypoint added to path more than once (that's a bug that would create a loop error, the new safety system in path creation routines won't allow it, but waypoints created prior MB 0.94b can have such bug, therefore there was this check added, you can fix it easily by using 'pathwpt continue' on such path followed by 'pathwpt stop' which runs the self-fixing routine or you can use the 'wpt repair masterrepair' that does fix this bug as well)
- UPDATED client command 'pathwpt info' works now in cooperation with path highlighting feature (it printed info about the first found path, now it does check if the path matches highlighing mask, if it doesn't match then it looks for next path)
- UPDATED 'pathwpt highlight' command has two new options 'sniper' and 'mgunner'
- Bot can now fast switch to sidearm or smg (if he has one) instead of reloading main weapon in battle
- FIXED bot spawning "phantom" grenade in any class with m82 weapon which he then tried to use in game (if there was real grenade in the class then all was okay)
- FIXED weapon reload bug (when the bot decided to go prone or resume from prone while trying to reload his weapon)
- FIXED bot using ammobox for extremly long period of time (when bot with benelli m3 or remington or colt anaconda or m11 ran completely of out ammo he ignored the fact that these weapons are getting ammo from the ammobox in something like a virtual magazine, in case of regular ammobox visit with one of those weapons then things worked fine)
- Bot can now fully use the nomenclature skill
- UPDATED tc_caen waypoints (fixed blue path in red armory area, blue bots can now correctly jump on top of the crates there and erased 9 solitary waypoints from unreachable map locations, it again must have been consequence of conversion from different version of this map)
- FIXED occasional case where bot was able to target and shoot at enemy without actual visibility (this bug was present since ver. 0.92 in code that gave the bot ability to see through fence and like objects)
- Bot can now see through all fences in the central alley on obj_armory (previous code had exception to disable the feature on this map, now the exception was replaced with specific code to handle this case)
- Bot will now correctly handle multiple grenades (bot was able to use only the first grenade type in any custom class that gave him both concussion as well as frag, now he is able to detect also the other grenade and use it once the first grenade was depleted)
- Increased m14 rate of fire (base delay between two shots has been cut in half, if you'd prefer original slower rate of fire feel free to edit the file matching your FA version inside ...\marine_bot\weapons)
- Bot with grenade in hands will no longer advance towards his enemy (which often caused that the bot was too close to safely throw the grenade and had to switch back to firearm or knife)
- Bot can now use merge clips feature (will now often reload weapon after battle to keep full magazine in weapon and merge those that were partly used)
- Bot will now stop guarding some spot when he runs out of ammo for main weapon (he will also ignore any other wait-timed waypoint until he refills ammunition)
- Bot will now switch back to normal fire mode after battle if he leaves the battle (enemy died or was lost) with weapon set to fire the attached grenade launcher
- Minimal safe distance for sniper rifles has been cut in half which means the bots will use them even to shoot at close enemies instead of switching to backup weapon or knife
- Bot will now deploy bipod only if the enemy is far (he used to deploy it in each battle, which in case of close encounter often led to his quick death)
- FIXED (hopefully) all weapon based actions that were causing occasional stuck and inability to act
- Bot can now use bipod even outside battles while he's waiting at waypoint with wait-time greater than 50 seconds (he may or may not use it, because deploying bipod has been changed to a randomly generated chance for in-battle case as well as out of battle case)
- FIXED resetting navigation (i.e. the bot forgets current waypoint & path and looks for a new one) while moving down the hill or stairs (basically whenever the pitch angle was too steep and bot switched to slow walking then if the waypoint was quite far away, he wasn't able to reach it in less than 4 seconds, which is hardcoded delay for the bot to reach his next waypoint)
- FIXED bot returning to already visited waypoint and starting the action there again (e.g. prone waypoint with small range and wait time - bot did wait there, then he crawled back to it and almost always repeated the waiting, which means he waited twice as long as what he should have done according to waypoints)
- Bot will now try to sidestep to be able to go prone if someone else is blocking the original spot (e.g. prone waypoint with small range where other bot or player is already waiting so 2nd bot usually just stood still on top of the 1st bot, but now the 2nd bot will strafe to left or right and go prone beside the 1st bot)
- FIXED bot with sniper rifle wasn't able to fire his weapon at the shoot waypoint and was stuck there (the code allowing bot stop using weapon scope after battle was also breaking his try to zoom in and fire the weapon when being at the shoot waypoint)
- FIXED targetting the aim waypoints when the bot is at shoot or claymore mine (bot often wasn't able to correctly face the direction of the aim waypoint, sometimes the targetting was completely skipped there which caused bugs like claymore mine placed to a wrong direction)
- UPDATED sd_durandal waypoints (erased one 2 waypoints long path inside red team spawn area that was basically just a path with the same waypoint added twice to it, erased solitary waypoint on the right route from blue spawn to bridge area, there was a 'sniper' waypoint exactly on 'prone' waypoint, together they blended into yellow colored 'shoot' waypoint, this must have been pretty old bug, because the system doesn't allow such placement anymore for quite a long time, the path leading through long hallway and doors to the red side of bridge area is now 'red team only' path, because those doors there won't open to blue players, finally all 'door' waypoints have been moved closer to the doors so the bots won't wait there that long)
- UPDATED client command 'pathwpt insert' has now option to easily insert new waypoint to the beginning of existing path using appropriate keyword as its 3rd argument (eg. 'pathwpt insert 123 55 start' to insert waypoint no. 123 to the beginning of path no. 55)
- UPDATED client command 'pathwpt insert' has now option to insert new waypoint to the end of existing path using appropriate keyword as its 3rd argument, this unifies the options for insertion, waypointer can now insert new waypoint into an existing path by using just one command, where its 3rd & 4th argument will specify the exact place of the new waypoint in the path ('pathwpt insert 123 50 start' will place the new waypoint to the beginning of this path, 'pathwpt insert 123 50 end' will place the waypoint to the end of this path and finally the original option 'pathwpt insert 123 50 200 220' will place the waypoint into the path between its two waypoints 200 & 220 ... these two waypoints must be direct neighbours on this path of course)
- UPDATED client command 'pathwpt checkinvalid' now checks for 'aim' and 'cross' waypoints being part of path as well as having the same waypoint added twice or more times in the same path, either of these cases is considered as invalid path and will be fixed by removing such waypoint from the path, then will be used the original function of this command, the check for path lenght so any path with length = 1 will be deleted
- UPDATED client command 'wpt repair masterrepair' has the same sequence of checks and fixes as the 'pathwpt checkinvalid', it's the last step of the fixes that this command calls in order to finalize all the automated fixes so that you had nearly flawless waypoints (if you don't know the purpose of 'repair' command please check the list of valid commands in waypointing guide or read one of previous changelogs where was this command announced and described)
- ADDED client command 'pathwpt split ' (it will allow you to easily divide a path on two parts - two seperated paths, this is useful when you have a long path and you forgot about any side route, now you can easily split the long path where those routes cross one other and you can create standard cross waypoint there)
- CHANGED bot decision making at cross waypoint to allow you greater control (the chance to follow priority based decision is now based on highest priority used there, if you used waypoint with priority = 1 there then there's 85% chance the bot will act based on priority, but if you used waypoint with priority = 3 as the highest priority waypoint at this cross waypoint then the chance the bot will act based on priority drops to just 65% and the rest 35% is unpredictable action - either 2nd highest priority is used or it's completely random pick, previous code had the chance always at 85% for priority based action no matter what was the highest priority used around that cross waypoint)
- UPDATED sd_oberland waypoints (fixed missing goback tag on 4 waypoints)
- UPDATED tc_golan waypoints (fixed cross waypoint setup in front of the radio house, there was one waypoint disconnected that caused incorrect path end for one-way path leaving that house)
- UPDATED tc_thebes waypoints (extended 4 paths, 2 in each team spawn zone, to correctly end at appropriate cross waypoint, also changed them to one-way paths because they all start on upper terrace and end on ground level)
- FIXED pathwpt autoadd feature bug that was preventing you to add waypoint into path under certain conditions (basically if you created 3 waypoints long path, deleted it and tried to recreate it then the 2nd waypoint was never added, there was primitive 2 waypoints history for 'pathwpt autoadd' feature that was meant to prevent unwanted addition of the same waypoint to the path twice, now there's a new system to check for that, it's placed right inside the path creation routines so it works always even if you're creating paths manually)
- FIXED bug in starting autowaypointing after waypoint deletion (if you deleted the last added waypoint you weren't able to properly start the autowaypointing feature in vicinity of the deleted waypoint, because the last waypoint position wasn't correctly freed, manual waypoint addition doesn't use position history so it wasn't affected by this bug)
- UPDATED client command 'wpt repair pathmerge' (it used to check for/repair only typical 'invalid merge of paths' so it tested only path end, but now it will check and repair even if there are two paths that share the same starting waypoint and aren't connected to cross waypoint of course)
- UPDATED client command 'pathwpt checkproblems' match the changes in 'wpt repair pathmerge' command (honestly it's the same routine, but it runs in a checking mode only, it's done for those who prefer manual checking before automatic fixing)
- UPDATED client command 'wpt repair' has a new option 'crosswpt' (it checks the surrounding of 'cross' waypoint for free path ends, that means path start or end that isn't connected to any 'cross' waypoint, but is close enough to be connected to this 'cross' waypoint, if such thing is found then the range on this 'cross' waypoint is increased to connect it, so the path doesn't start or end in a void anymore, but is correctly connected to the whole network, this fix is meant to be used prior 'pathend' fix)
- FIXED client command 'wpt repair sniperspot ' returning error if used on single waypoint through index argument (it was getting the value from wrong argument)
- UPDATED autowaypointing feature (it's quite a big upgrade, now it creates paths together with the waypoints, it can change waypoint type to the 'ammobox' one if you are near the ammobox entity, it'll stop if you add 'cross' waypoint, it can use many self-fixing routines in order to help you build waypoints as bug free as possible)
- FIXED 'wpt autosave' feature stopping currently created path (in order to properly save waypoints the system must finish all paths, that means it has to stop even the path that's currently in creation, usually you don't save waypoints at the moment when you are creating a path, however the 'autosave' feature saves waypoints every 90 seconds so it often hits the moment when you are working with them, now this feature checks for such activity and postpone the save for later moment)
- UPDATED claymore evasion (fixed jumping over the mine and added ability to go prone and crawl through it if the movement speed is too low to jump)
- FIXED inability to sprint downhill (for Firearms mod the bot was sprinting, the fatigue system worked correctly, but the method that the bot is using to send his movement speed to the game engine was sending incorrect speed value, it was sending slow speed due to high pitch angle, now there's an exception ignoring pitch angle when sprinting is active)
- FIXED detection of waypoint range (this means the bot should not dance around waypoints with small range)
- FIXED resetting navigation if he got stuck for a while when he was heading towards next waypoint
- ADDED option to combine waypoint time and priority to achieve exact wait time (the time you set on waypoint is always modified by the behaviour the bot generates after joining the game, bots that take a role of attacker always reduce the wait time by 35% while bots defenders increase it by 35%, this feature can be disabled now if you set priority to 1 on the waypoint, it's useful especially for specific cases where the bot must wait exact period of time to activate something e.g. the explosives on obj_bocage, basically a goal waypoint, therefore it follows the same logic as priority = 1 on claymore waypoint which is also meant for a goal usage e.g. trucks on sdtc_balcome)
- UPDATED obj_bocage waypoints (added priority 1 for blue team to all 5 waypoints where you need to wait to activate the explosives)
- UPDATED ps_coldwar waypoints (fixed one blue path on the red side of the movable bridge, there was the same waypoint being added twice to this path)
- UPDATED psobj_thanatos waypoints (just erased couple waypoints and paths that were inside unreachable places, basically the leftover from the conversion from obj_thanatos waypoints, because both maps have small changes in architecture)
- UPDATED tc_battlefield_r2 waypoints (erased one 2 waypoints long path in red team spawn, it was again a path built of the same waypoint added twice to it and erased 3 solitary waypoints near red team spawn)
- UPDATED tc_rubble waypoints (erased two 2 waypoints long paths that were again paths built from the same waypoint added twice to them, it's obvious that Drek really liked doing that :), also reworked the maze in front of the tc house, now there's just one big junction there, replaced 3 other cross waypoints with longer paths that followed previous logic and fixed problem with unwanted 'aim' waypoint sharing in a few places, except for one waypoint at the entrance to tc house where it isn't possible, there would be a loss of original layout)
- FIXED bot trying to place claymore mine while being in crouch stance (the bot got a message and reset his action later on, but he was vulnerable to attacks for a while, human player doesn't try that either, therefore there's an exception for this case now together with a proper message for you if you encounter such situation while debugging your waypoints)
- UPDATED ps_crash waypoints (fixed one cross waypoint layout inside church, it used to cause the loop problem)
- FIXED bot reading the FA text messages (when someone else gives you a medical treatment the message that gets sent has additional string variable, message system decoding function got corrupted by this event so bot after the 1st healing wasn't able to read following messages correctly, which was causing subsequent bugs in bot behaviour)
As you can see this time it's quite a big pack of changes, fixes and also new features. Plus as I've had a lot of time to work with the source code I was also able to do a big clean up and finally finish the part that allows me to debug (watch) one particular bot and filter out all other bots that are needed for testing. This allows me to do much better testing. That is basically what I'm doing now. I'm testing all new features and all the fixes one by one to confirm that they are really working the way they should. In order to release as bug free version as possible. I'll show you two recent logs so you can see how does it work 'in real world'.
This is a log from test of ability to handle unexpected interruption of weapon switching. I've modified obj_thanatos waypoints where is one sniper bot (ssg3000+ber92f) holding one of the buildings near blue spawn area against 3 or 4 red bots with ber92f. The goal is to test how well does the sniper bot handle weapon switching and weapon reloading in cases when his enemies are showing and hiding and even hitting him. I'm his teammate, but in observer mode, and I'm the one who did interrupt his weapon switch with a medical treatment. I'll only add that not every action is logged. I'm logging just the actions that are necessary for the test otherwise the log would have been hard to read and basically pointless.
***new record(time:824.278381)(map:obj_thanatos)***
([MB]Charles O'Neil)***FindEnemy() -> Got NEW ENEMY!!!
***new record(time:825.662903)(map:obj_thanatos)***
([MB]Charles O'Neil)FireWeapon() -> going to change current weapon
***new record(time:825.662903)(map:obj_thanatos)***
([MB]Charles O'Neil)bot think() -> weaponaction == takeother or inchange
***new record(time:827.064270)(map:obj_thanatos)***
([MB]Charles O'Neil)ChangeWeapon() -> changed to BACKUP weapon
***new record(time:827.081116)(map:obj_thanatos)***
([MB]Charles O'Neil)bot think() -> weaponaction == takeother or inchange
***new record(time:827.264404)(map:obj_thanatos)***
([MB]Charles O'Neil)ChangeWeapon() -> WEAPON is READY now!
***new record(time:827.281189)(map:obj_thanatos)***
([MB]Charles O'Neil)Select MainWeapon() called @ DontSeeEnemy Actions() -> time to switch back to MAIN WEAPON
***new record(time:827.281189)(map:obj_thanatos)***
([MB]Charles O'Neil)is trying to switch back to MAIN weapon
***new record(time:827.281189)(map:obj_thanatos)***
([MB]Charles O'Neil)bot think() -> weaponaction == takeother or inchange
***new record(time:828.982849)(map:obj_thanatos)***
([MB]Charles O'Neil)ChangeWeapon() -> changed to MAIN weapon
***new record(time:829.000061)(map:obj_thanatos)***
([MB]Charles O'Neil)bot think() -> weaponaction == takeother or inchange
***new record(time:829.182922)(map:obj_thanatos)***
([MB]Charles O'Neil)ChangeWeapon() -> WEAPON is READY now!
***new record(time:829.201660)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil SET DONTGOPRONE behaviour @ Check Stance()|enemydistance < 800 && bot NOT proned
***new record(time:829.216309)(map:obj_thanatos)***
([MB]Charles O'Neil)FireWeapon() -> going to change current weapon
***new record(time:829.216309)(map:obj_thanatos)***
([MB]Charles O'Neil)bot think() -> weaponaction == takeother or inchange
***new record(time:830.617676)(map:obj_thanatos)***
([MB]Charles O'Neil)ChangeWeapon() -> changed to BACKUP weapon
***new record(time:830.634583)(map:obj_thanatos)***
([MB]Charles O'Neil)bot think() -> weaponaction == takeother or inchange
***new record(time:830.818298)(map:obj_thanatos)***
([MB]Charles O'Neil)ChangeWeapon() -> WEAPON is READY now!
***new record(time:832.219421)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil SET DONTGOPRONE behaviour @ Check Stance()|enemydistance < 800 && bot NOT proned
***new record(time:833.003662)(map:obj_thanatos)***
[MB]Charles O'Neil called ForgetEnemy()
***new record(time:833.003662)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil REMOVED behaviour BOT DONTGOPRONE @ BotThink() -> clearing section
***new record(time:833.020386)(map:obj_thanatos)***
([MB]Charles O'Neil)SetDontCheckStuck() called @ bot think() -> facing pItem or AimWpt
***new record(time:833.303894)(map:obj_thanatos)***
([MB]Charles O'Neil)Select MainWeapon() called @ DontSeeEnemy Actions() -> time to switch back to MAIN WEAPON
***new record(time:833.303894)(map:obj_thanatos)***
([MB]Charles O'Neil)is trying to switch back to MAIN weapon
***new record(time:833.303894)(map:obj_thanatos)***
([MB]Charles O'Neil)bot think() -> weaponaction == takeother or inchange
***new record(time:833.804382)(map:obj_thanatos)***
(bot_client.cpp) [MB]Charles O'Neil is being healed by a teammate!
***new record(time:833.804382)(map:obj_thanatos)***
(bot_client.cpp) [MB]Charles O'Neil invalidated weapon change, because of being healed by a teammate!
pause time needed to finish the treatment will end at 838.347
***new record(time:833.837830)(map:obj_thanatos)***
([MB]Charles O'Neil)SetDontCheckStuck() called @ bot think() -> pause time
***new record(time:833.837830)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil Called SetStance() @ BotThink()|PauseTime -> GOTO crouch
***new record(time:836.790527)(map:obj_thanatos)***
([MB]Charles O'Neil)SetDontCheckStuck() called @ bot think() -> pause time
***new record(time:838.358887)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil Called SetStance() @ WaitHere()|Bot in crouch but NOT at crouch wpt -> GOTO standing
***new record(time:838.358887)(map:obj_thanatos)***
([MB]Charles O'Neil)bot think() -> weaponaction == takeother or inchange
***new record(time:838.358887)(map:obj_thanatos)***
([MB]Charles O'Neil)ChangeWeapon() -> weapon change has been invalidated -> resetting the action!
***new record(time:838.358887)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil - CheckAmmoReserves() called @ BotThink() -> is task AND is time for it)
***new record(time:838.358887)(map:obj_thanatos)***
([MB]Charles O'Neil)CheckAmmoReserves() -> ammunition was checked ...
***new record(time:838.358887)(map:obj_thanatos)***
([MB]Charles O'Neil)CheckAmmoReserves() -> need ammo flag has been set
***new record(time:838.375427)(map:obj_thanatos)***
([MB]Charles O'Neil)bot_combat.cpp|DontSeeEnemy Actions() -> bandaging ALLOWED again
***new record(time:838.375427)(map:obj_thanatos)***
([MB]Charles O'Neil)SetDontCheckStuck() called @ bot think() -> facing pItem or AimWpt
***new record(time:838.392151)(map:obj_thanatos)***
([MB]Charles O'Neil)Reload Weapon() called @ weapon is empty while waiting at wait-timed waypoint>
***new record(time:838.392151)(map:obj_thanatos)***
[MB]Charles O'Neil SET DONTGOPRONE behaviour @ Reload Weapon()
***new record(time:838.392151)(map:obj_thanatos)***
([MB]Charles O'Neil)SetDontCheckStuck() called @ bot think() -> reloading weapon
***new record(time:838.392151)(map:obj_thanatos)***
[MB]Charles O'Neil's weapon reloading will be finished at 842.392
***new record(time:838.392151)(map:obj_thanatos)***
([MB]Charles O'Neil)(botthink()|in reload) -> reload button pressed
***new record(time:838.859253)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil Called SetStance() @ BotThink()|In_Reload -> GOTO crouch
***new record(time:842.396606)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil Called SetStance() @ WaitHere()|Bot in crouch but NOT at crouch wpt -> GOTO standing
***new record(time:842.396606)(map:obj_thanatos)***
([MB]Charles O'Neil)(botthink()|in reload) weapon fully loaded -> WEAPON is READY
***new record(time:842.396606)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil REMOVED behaviour BOT DONTGOPRONE @ BotThink() -> clearing section
***new record(time:842.412720)(map:obj_thanatos)***
([MB]Charles O'Neil)SetDontCheckStuck() called @ bot think() -> facing pItem or AimWpt
***new record(time:842.429565)(map:obj_thanatos)***
([MB]Charles O'Neil)is trying to switch to the KNIFE
***new record(time:842.429565)(map:obj_thanatos)***
([MB]Charles O'Neil)bot think() -> weaponaction == takeother or inchange
***new record(time:843.630615)(map:obj_thanatos)***
([MB]Charles O'Neil)ChangeWeapon() -> changed to KNIFE
***new record(time:843.647339)(map:obj_thanatos)***
([MB]Charles O'Neil)bot think() -> weaponaction == takeother or inchange
***new record(time:843.830750)(map:obj_thanatos)***
([MB]Charles O'Neil)ChangeWeapon() -> WEAPON is READY now!
***new record(time:843.847595)(map:obj_thanatos)***
([MB]Charles O'Neil)Select MainWeapon() called @ DontSeeEnemy Actions() -> time to switch back to MAIN WEAPON
***new record(time:843.847595)(map:obj_thanatos)***
([MB]Charles O'Neil)is trying to switch back to MAIN weapon
***new record(time:843.847595)(map:obj_thanatos)***
([MB]Charles O'Neil)bot think() -> weaponaction == takeother or inchange
***new record(time:845.549255)(map:obj_thanatos)***
([MB]Charles O'Neil)ChangeWeapon() -> changed to MAIN weapon
***new record(time:845.566223)(map:obj_thanatos)***
([MB]Charles O'Neil)bot think() -> weaponaction == takeother or inchange
***new record(time:845.749512)(map:obj_thanatos)***
([MB]Charles O'Neil)ChangeWeapon() -> WEAPON is READY now!
***new record(time:846.550293)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil - CheckAmmoReserves() called @ BotThink() -> is task AND is time for it)
***new record(time:846.550293)(map:obj_thanatos)***
([MB]Charles O'Neil)CheckAmmoReserves() -> ammunition was checked ...
***new record(time:846.550293)(map:obj_thanatos)***
([MB]Charles O'Neil)CheckAmmoReserves() -> need ammo flag has been set
What happened there is that when the weapon switching was interrupted it was flagged as invalid. Bot paused himself for the medical treatment. Then he did reset the variables and the weapon switch action was canceled. It doesn't matter whether FA mod finished that action or not. As you probably know FA mod has sometimes issues with weapon selection. Medical treatment or going prone sometimes break it. Therefore bot simply canceled his previous decision. After a while the first code that caught recent events was 'weapon reload routine'. So the bot let the weapon reload. Again it doesn't matter whether it was the original weapon or the weapon the bot wanted to use. Once that action finished the bot simply switched to a knife, because that one is always present. Finally standard code figured that the bot has better weapon than a knife and allowed him to select the best available weapon ... which is of course the main weapon ... ssg3000 in this case. Previously if there wasn't the invalidation action and the safety switching to a knife then there used to be cases where the bot was stuck in the middle of weapon switching and was unable to act.
Next log is a test of ignoring waypoint actions under certain circumstances. This time it's a moment when the bot runs out of ammo for his main weapon. He must ignore waypoints with wait time. You know he can't effectively kill enemies from a sniper position if he has no ammo for a sniper rifle. The test is done under the same condition as previous example i.e. a sniper bot holding a building against 3 or 4 enemies. Basically I let the game continue after the first test until a moment when the sniper bot reached low level of ammunition.
***new record(time:1060.713989)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil - CheckAmmoReserves() called @ BotThink() -> is task AND is time for it)
***new record(time:1060.713989)(map:obj_thanatos)***
([MB]Charles O'Neil)CheckAmmoReserves() -> ammunition was checked ...
***new record(time:1060.713989)(map:obj_thanatos)***
([MB]Charles O'Neil)CheckAmmoReserves() -> need ammo flag has been set
***new record(time:1060.747314)(map:obj_thanatos)***
([MB]Charles O'Neil)SetDontCheckStuck() called @ bot think() -> facing pItem or AimWpt
***new record(time:1060.780884)(map:obj_thanatos)***
([MB]Charles O'Neil)***FindEnemy() -> Got NEW ENEMY!!!
***new record(time:1064.651367)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil SET DONTGOPRONE behaviour @ Check Stance()|enemydistance < 800 && bot NOT proned
***new record(time:1065.068726)(map:obj_thanatos)***
([MB]Charles O'Neil)Decide NextWeapon() called @ ShootAtEnemy() -> FireWeapon() returned NO AMMO
***new record(time:1065.085449)(map:obj_thanatos)***
([MB]Charles O'Neil)FireWeapon() -> going to change current weapon
***new record(time:1065.085449)(map:obj_thanatos)***
([MB]Charles O'Neil)bot think() -> weaponaction == takeother or inchange
***new record(time:1066.486450)(map:obj_thanatos)***
([MB]Charles O'Neil)ChangeWeapon() -> changed to BACKUP weapon
***new record(time:1066.503540)(map:obj_thanatos)***
([MB]Charles O'Neil)bot think() -> weaponaction == takeother or inchange
***new record(time:1066.686646)(map:obj_thanatos)***
([MB]Charles O'Neil)ChangeWeapon() -> WEAPON is READY now!
***new record(time:1066.720703)(map:obj_thanatos)***
[MB]Charles O'Neil called ForgetEnemy()
***new record(time:1066.720703)(map:obj_thanatos)***
Ran OUT OF AMMO for main weapon! Breaking the wait at my current waypoint (index=183)!
***new record(time:1066.720703)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil breaking the wait at wait-timed wpt -> ran OUT OF AMMO for main weapon!
***new record(time:1066.720703)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil REMOVED behaviour BOT DONTGOPRONE @ BotThink() -> clearing section
***new record(time:1066.737061)(map:obj_thanatos)***
([MB]Charles O'Neil)SetDontCheckStuck() called @ bot think() -> facing pItem or AimWpt
***new record(time:1066.753662)(map:obj_thanatos)***
([MB]Charles O'Neil)***Now moving again (dontmove cleared)
***new record(time:1067.203857)(map:obj_thanatos)***
([MB]Charles O'Neil)bot_combat.cpp|DontSeeEnemy Actions() -> bandaging ALLOWED again
***new record(time:1067.670898)(map:obj_thanatos)***
([MB]Charles O'Neil)***Start bandage treatment
***new record(time:1067.687988)(map:obj_thanatos)***
([MB]Charles O'Neil)SetDontCheckStuck() called @ bot think() -> bandage time
***new record(time:1067.687988)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil Called SetStance() @ BotThink()|BandageTime -> GOTO crouch
***new record(time:1068.022217)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil - CheckAmmoReserves() called @ BotThink() -> is task AND is time for it)
***new record(time:1068.022217)(map:obj_thanatos)***
([MB]Charles O'Neil)CheckAmmoReserves() -> ammunition was checked ...
***new record(time:1068.022217)(map:obj_thanatos)***
([MB]Charles O'Neil)CheckAmmoReserves() -> need ammo flag has been set
***new record(time:1072.175537)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil Called SetStance() @ bot_navigate.cpp|HeadTowardWpt() -> GOTO standing because NOT at crouch wpt
***new record(time:1085.855713)(map:obj_thanatos)***
([MB]Charles O'Neil)ResetAims() called @ HeadTowardWpt() -> Reached wpt with WAIT TIME
***new record(time:1085.855713)(map:obj_thanatos)***
([MB]Charles O'Neil)*** aiming marks were cleared (curr wpt index 199)
***new record(time:1085.872314)(map:obj_thanatos)***
Ran OUT OF AMMO for main weapon! Breaking the wait at my current waypoint (index=199)!
***new record(time:1085.872314)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil breaking the wait at wait-timed wpt -> ran OUT OF AMMO for main weapon!
***new record(time:1085.872314)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil - CheckAmmoReserves() called @ BotThink() -> is task AND is time for it)
***new record(time:1085.872314)(map:obj_thanatos)***
([MB]Charles O'Neil)CheckAmmoReserves() -> ammunition was checked ...
***new record(time:1085.872314)(map:obj_thanatos)***
([MB]Charles O'Neil)CheckAmmoReserves() -> need ammo flag has been set
***new record(time:1085.889282)(map:obj_thanatos)***
([MB]Charles O'Neil)***Now moving again (dontmove cleared)
***new record(time:1086.806519)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil - CheckAmmoReserves() called @ HeadTowardWpt() -> current wpt is AMMOBOX)
***new record(time:1086.806519)(map:obj_thanatos)***
([MB]Charles O'Neil)CheckAmmoReserves() -> ammunition was checked ...
***new record(time:1086.806519)(map:obj_thanatos)***
([MB]Charles O'Neil)CheckAmmoReserves() -> need ammo flag has been set
***new record(time:1086.823242)(map:obj_thanatos)***
([MB]Charles O'Neil)SetDontCheckStuck() called @ bot think() -> wpt action time
***new record(time:1086.823242)(map:obj_thanatos)***
([MB]Charles O'Neil)Bot has no item yet. Going to check for it now...
***new record(time:1086.823242)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil - UTIL_CheckForUsables() called
***new record(time:1086.823242)(map:obj_thanatos)***
([MB]Charles O'Neil)Found ammobox
***new record(time:1086.823242)(map:obj_thanatos)***
([MB]Charles O'Neil)ResetAims() called @ BotThink() -> WptActionTime
***new record(time:1086.823242)(map:obj_thanatos)***
([MB]Charles O'Neil)*** aiming marks were cleared (curr wpt index 934)
***new record(time:1086.840088)(map:obj_thanatos)***
([MB]Charles O'Neil)SetDontCheckStuck() called @ bot think() -> facing pItem or AimWpt
***new record(time:1086.890381)(map:obj_thanatos)***
([MB]Charles O'Neil)SetDontCheckStuck() called @ bot think() -> wpt action time
***new record(time:1097.517456)(map:obj_thanatos)***
([MB]Charles O'Neil)***Use waypoint action time over - (actions cleared)
***new record(time:1097.517456)(map:obj_thanatos)***
([MB]Charles O'Neil)BotThink()|ClearingSection -> (curr wpt #199) Task WptAction RESET (wpt action Time is OVER)
***new record(time:1098.034546)(map:obj_thanatos)***
([MB]Charles O'Neil)ResetAims() called @ HeadTowardWpt() -> Reached wpt with WAIT TIME
***new record(time:1098.034546)(map:obj_thanatos)***
([MB]Charles O'Neil)*** aiming marks were cleared (curr wpt index 199)
***new record(time:1098.051514)(map:obj_thanatos)***
Ran OUT OF AMMO for main weapon! Breaking the wait at my current waypoint (index=199)!
***new record(time:1098.051514)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil breaking the wait at wait-timed wpt -> ran OUT OF AMMO for main weapon!
***new record(time:1098.051514)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil - CheckAmmoReserves() called @ BotThink() -> is task AND is time for it)
***new record(time:1098.051514)(map:obj_thanatos)***
([MB]Charles O'Neil)CheckAmmoReserves() -> ammunition was checked ...
***new record(time:1098.051514)(map:obj_thanatos)***
([MB]Charles O'Neil)CheckAmmoReserves() -> main weapon is usable again
***new record(time:1098.051514)(map:obj_thanatos)***
([MB]Charles O'Neil)CheckAmmoReserves() -> need ammo flag has been set
***new record(time:1098.067993)(map:obj_thanatos)***
([MB]Charles O'Neil)Select MainWeapon() called @ DontSeeEnemy Actions() -> time to switch back to MAIN WEAPON
***new record(time:1098.067993)(map:obj_thanatos)***
([MB]Charles O'Neil)is trying to switch back to MAIN weapon
***new record(time:1098.067993)(map:obj_thanatos)***
([MB]Charles O'Neil)bot think() -> weaponaction == takeother or inchange
***new record(time:1098.067993)(map:obj_thanatos)***
([MB]Charles O'Neil)***Now moving again (dontmove cleared)
***new record(time:1098.084473)(map:obj_thanatos)***
([MB]Charles O'Neil)bot think() -> weaponaction == takeother or inchange
***new record(time:1099.769897)(map:obj_thanatos)***
([MB]Charles O'Neil)ChangeWeapon() -> changed to MAIN weapon
***new record(time:1099.786255)(map:obj_thanatos)***
([MB]Charles O'Neil)bot think() -> weaponaction == takeother or inchange
***new record(time:1099.987305)(map:obj_thanatos)***
([MB]Charles O'Neil)ChangeWeapon() -> WEAPON is READY now!
***new record(time:1100.003296)(map:obj_thanatos)***
([MB]Charles O'Neil)Reload Weapon() called @ NO enemy>
***new record(time:1100.003296)(map:obj_thanatos)***
[MB]Charles O'Neil SET DONTGOPRONE behaviour @ Reload Weapon()
***new record(time:1100.003296)(map:obj_thanatos)***
([MB]Charles O'Neil)Going to reload current weapon
***new record(time:1100.003296)(map:obj_thanatos)***
([MB]Charles O'Neil)SetDontCheckStuck() called @ bot think() -> reloading weapon
***new record(time:1100.003296)(map:obj_thanatos)***
[MB]Charles O'Neil's weapon reloading will be finished at 1104.003
***new record(time:1100.003296)(map:obj_thanatos)***
([MB]Charles O'Neil)(botthink()|in reload) -> reload button pressed
***new record(time:1100.003296)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil Called SetStance() @ BotThink()|In_Reload -> GOTO crouch
***new record(time:1104.006958)(map:obj_thanatos)***
([MB]Charles O'Neil)Checking ammunition after weapon reload
***new record(time:1104.006958)(map:obj_thanatos)***
([MB]Charles O'Neil)(botthink()|in reload) weapon fully loaded -> WEAPON is READY
***new record(time:1104.006958)(map:obj_thanatos)***
([MB]Charles O'Neil)[MB]Charles O'Neil - CheckAmmoReserves() called @ BotThink() -> is task AND is time for it)
***new record(time:1104.006958)(map:obj_thanatos)***
([MB]Charles O'Neil)CheckAmmoReserves() -> ammunition was checked ...
***new record(time:1104.006958)(map:obj_thanatos)***
([MB]Charles O'Neil)CheckAmmoReserves() -> need ammo flag has been removed
The 'check ammo reserves' routine, which gets called periodically unless the bot is in combat, already says 'go get some ammo' right at the beginning of the log. But the bot is tasked to wait at his current waypoint and hold that position. It's a window in the basement of one of the houses on obj_thanatos. Then he sees new enemy and starts a firefight. Soon after he's completely out of ammo for the ssg3000. He's forced to switch to backup weapon. Meanwhile the enemy is lost ... enemy is out of sight. Bot correctly reacts and stops holding this position, because he has no ammo for main weapon. He detects bleeding so he must apply bandages first. Then he can finally move on. He reached next sniper position upstairs. He again correctly ignores it due to inability to shoot at enemies from empty gun. Right next to that sniper position is finally the ammobox. He spends quite a while refilling the ammo. His next waypoint is the previously visited window upstairs right next to the ammobox. However he didn't have time to reload his weapon yet. Thus he's ignoring it yet again. Right after that decision 'check ammo reserves' routine tells him he has enough ammo for main gun and marks it usable again. Bot switches to main weapon and reloads it. Then continues in patrolling the house so he moves towards the sniper position in the basement. The 'check ammo reserves' routine that was forced after bot reloaded his gun finally says 'you have enough ammo'. I'm only going to add that I don't force the bot to reload the weapon right by the ammobox, because if there were more bots there then they would get stuck there pretty often. This way they leave the ammobox as fast as possible and things work fairly well in my opinion. Same logic is used even when it comes to the sniper spot decision. If the bot isn't ready to start a firefight right away ... he would have had to prepare (select & reload) his gun first ... it's better to leave that position for other bot.
As always I can't promise a release date, because I have no idea how long will the testing take. It's a slow process. And if I find some bugs it will take even more time to finish it. Next task is to update the documents that come with each release and there's also the waypointing guide. Which still needs some work to bring it closer to a useful manual that will answer most questions and allow people create decent waypoints for their favourite custom maps that are available for firearms mod. Well have fun if it's possible in these days and stay safe.
22 February 2019
Again it took me a few years to put together new version of Marine Bot for those of you who still play Firearms. Let's see what is new.
Marine Bot 0.93b change log:
- Added client command 'pathwpt checkproblems ' (it will test all paths for possible problems like a goback waypoint in one-way path or path ending in a void, it can write all findings in MB error log if 'save' argument is used)
- Added client command 'pathwpt printpath ' (it will list all waypoints with their types in 'index' path, works pretty much the same as 'pathwpt printall' command so if the path is really long it will print just 22 waypoints and will wait for you to repeat the same command to continue with the next set of waypoints)
- Added client command 'wpt position ' (it will print 'index' waypoint position in a map using x/y/z coordinate, it prints your current position as well)
- Added client command 'wpt detect ' (it will print all entities around this waypoint like ammobox, button etc.)
- Added client command 'wpt printall' (it will list all used waypoints with their flags/tags, works same as the other list commands so it'll print just 22 waypoints in console and it will wait for you to repeat the command to print another set of 22 waypoints until it gets to the very last waypoint)
- Completely reworked tc_golan waypoints (actually they are brand new waypoints, instead of updating and fixing the previous waypoints I decided to create new based on triggers that allow the bots to play the map with some sort of wisdom, I mean the triggers dynamically open/close paths according to actual game state)
- Updated MB web page HUD message (it doesn't show marinebot.net anymore because there is no content there, now it shows marinebot.xf.cz)
- Updated client command 'wpt info' (it will now take two arguments so you don't need to move next to the waypoint you can just type in waypoints' index, order of the arguments doesn't matter, 'wpt info more 12' will do the same thing as 'wpt info 12 more' so if you have a key binding it will still work the way it used to, also fixed a problem with composing the short description if you used the 'wpt info full' option - it used to add extra '&' sign in certain cases)
- Updated obj_armory waypoints (fixed one invalid path merge in blue team spawn area)
- Updated obj_paradise waypoints (converted them into up-to-date waypoint version and fixed 14 bugs of invalid path end, however these waypoints would still need some real work to make them fit todays standards)
- Updated obj_sweden waypoints (fixed one missing trigger setting, one bad cross waypoint layout, removed the door waypoint at the howitzer house making the bots be stuck there and fixed couple goback waypoint in one-way path bugs)
- Updated obj_thanatos waypoints (fixed one bad cross waypoint layout)
- Updated obj_willow waypoints (fixed one non fatal error with red team path in their goal area, it didn't end properly at cross waypoint)
- Updated ps_crash waypoints (fixed one bad cross waypoint layout near the house and a problem with goback waypoint in the church pushpoint area)
- Updated ps_inlands waypoints (extended two paths near blue team spawn)
- Updated ps_marie waypoints (fixed one bad cross waypoint layout in blue spawn area)
- Updated ps_outlands waypoints (fixed couple goback waypoint in one-way path problems and added missing wait times on a few blue team waypoints)
- Updated ps_river waypoints (fixed 3 missing goback waypoints)
- Updated ps_splinter waypoints (converted them into up-to-date waypoint version and fixed 19 bugs of invalid path end or path merge, yet these waypoints would need major work to make them bug free)
- Updated ps_storm_r1 waypoints (fixed one missing goback waypoint in red spawn area)
- Updated psobj_thanatos waypoints (fixed one bad cross waypoint layout)
- Updated sd_durandal waypoints (fixed 3 bugs in the central bridge area, goback waypoint in one-way path, invalid path merge and some invalid path ends)
- Updated sd_force waypoints (converted them into up-to-date waypoint version and fixed 3 invalid path ends, however these waypoints would need some real changes)
- Updated sd_oberland waypoints (fixed 4 invalid path ends ie. missing goback waypoints)
- Updated tc_basrah waypoints (converted them into up-to-date waypoint version and fixed two invalid path ends, yet these are still unfinished and would need serious work)
- Updated tc_battlefield_r2 waypoints (converted them into up-to-date waypoint version and fixed one invalid path end)
- Updated tc_caen waypoints (turned some paths into avoid enemy ones, changed layout of couple paths in blue team spawn area and fixed one invalid path end close to red spawn)
- Updated tc_iwojima waypoints (fixed one invalid path end in red spawn)
- Updated tc_rubble waypoints (fixed one invalid path merge, couple invalid path ends and turned couple paths that involve jumping into avoid enemy ones)
- FIXED bots shooting beams when they saw their target (the .dll was actually compiled as 'debug' code instead of 'release' code so many routines used to test stuff were then present in game)
- FIXED client command 'test aimcode' not available (it will turn experimental aim code on or off, this new aim code isn't fully finished yet so it's not for general use)
- FIXED client command 'pathwpt highlight' not turning waypoints and paths on (you had to use 'pathwpt show' command in order to actually see any path, now it will turn waypoints and paths on by default)
- FIXED client command 'pathwpt printall' (if used to print all paths it printed more lines than a non steam (WON) console could show so you couldn't see/check all paths, now it prints only 22 lines in one go)
- FIXED client command 'wpt repair masterrepair' not available (it will run all available repair functions in specific order, range and position functions are skipped)
Yet another bug fixing release. This is the way how it is now. It really is just a hobby that I can't dedicate much time in anymore. The download link can be found in the files section.
I've also done some digging in my backups and I found two interesting things. Both are Marine Bot ports to different Half-Life 1 mods. First one might be quite known. It's a port for The Battle Grounds 1.2.1 mod. Second one's just a test version of Marine Bot port for the Global Warfare 1.5 mod. Both are based on Marine Bot 0.9b so many new features aren't available there. Yet the bots can play those mods to a degree. If there's anyone who still have either of the two and want to have some fun in it feel free to try it. But it really is on your own risk. I'm not able to give any support there. Both are available for download at the files section.
Finally I've also done some work on the waypointing guide. Basically I rewrote most of it. I've also added missing things like the triggers, the way how you can work with paths, and full command list. There's a lot of pictures there now. Hopefully it will make things clear. Anyways you can check it in the support section. And I've added direct link to this manual to the links section as well.
8 March 2013
Today is a good time for a little teaser update. Nah really. Here's a little something for those who still play Firearms ...
Marine Bot 0.92b change log:
- FIXED 'Cease fire' message bug (bot used his enemy name instead of the guilty teammate name)
- FIXED crash due to array pointer at -1 position in couple path routines (no idea why it didn't use to crash the game before as this bug was present since the path system introduction in version 0.6beta)
- FIXED string allocation crash (why this bug didn't cause crashes before is beyond me)
- FIXED debug_cross toggle option (if used without argument it only turned it 'on' instead of switching between 'on' and 'off')
- Bot can now see enemy through most fence like objects
- FIXED reading FA Text messages on obj maps (obj_armory triggers didn't work at all due to extra string variable being sent there)
- Bot can now read the fancy HUD messages (triggers are finally available even on maps like obj_thanatos)
- UPDATED obj_thanatos waypoints (added triggers, avoid paths and generally improved and fixed)
- UPDATED obj_armory waypoints (triggers didn't match the game messages and fixed one cross setting)
- ADDED obj_vengeance waypoints (based on basic layout someone sent me ages ago ... they weren't signed, but it could have been someone from our friends at YIS)
- UPDATED cross waypoint behaviour (bot can read the overall setting better and should be a little clever there)
- UPDATED 'debug_cross' feedback so the waypointers have better idea how the bot decides there
- FIXED trigger_camera crash on obj_armory, obj_willow and tc_thebes (also known as the cutscenes crash ... it used to crash when a team captured the weapon and you've been watching the cutscenes)
- UPDATED ps_upham waypoints (avoid paths, added a few new paths and fixed couple ugly errors that made MB log file grow over 1 megabyte)
- FIXED bot using grenades (the bot wasn't really able to handle the fuse removal so any thrown grenade in FA version 2.8 and above was just a coincidence)
- UPDATED ps_river waypoints (avoid paths and general improvement)
- FIXED bot sniper-hunters camping at sniper paths (they should just scout those paths not camp there)
- FIXED bot machinegun-hunters camping at gunner paths (again they should just scout such paths not camp there)
- FIXED occasional incorrect behaviour on waypoint with wait time (if this waypoint was the first waypoint the bot reached after leaving the cross waypoint then any path limiting factors were ignored)
- FIXED goback waypoint breaking small range behaviour (the bot stopped slowing down at small range waypoints after the goback turn)
- UPDATED console command help (few commands were missing and some had wrong info, fixed also one length overflow causing missing characters at the end of the line)
- UPDATED the weapon data files due to changes in the grenade code (they now use the base delay variable as well)
- FIXED wrong weapon data file for version 2.5 (the data inside the file were for 2.8 and above so due to big changes between the versions the weapons didn't match at all and must have caused fatal bugs in weapon use)
- FIXED parachute detection in spawn (the bot couldn't pass the parachute waypoint because the backward compatibility code used to reset parachute icon whenever the bot respawned right on top of the parachute bag)
- FIXED throwing the parachute off in old FA versions (the way FA 2.4-2.65 informed the client about parachute used to reset one variable that led to faulty parachute behaviour after the first landing)
- FIXED team kill detection (bot ignored team mates in his line of sight when shooting at his target, the whole code wasn't ready, now it's finished and turned on so there should be less TKs)
- ADDED client command 'wpt loadunsupportedversion5' (allows waypoint and path conversion from waypoint system ver. 5 in MB0.8b, this command isn't available on Dedicated server, see MB documentation for more info)
- UPDATED waypoint self-cleaning (ammobox+goback is invalid waypoint type combination yet it was still present in official waypoints, now the self-cleaning routine will catch it and fix it right on waypoint load)
- ADDED client command 'wpt repair range' (it can automatically repair poorly designed waypoint range setting by reducing it in order to fix any solid object intersection)
- ADDED client command 'wpt repair range_and_position' (a lot more aggressive than the range alone as it combines range reducing with repositioning the waypoint itself)
- ADDED client command 'wpt repair pathend' (it can automatically repair missing goback waypoint on any path that ends in nowhere ie. not at cross and like, also it can turn one-way path into two-way where possible)
- ADDED client command 'wpt repair pathmerge' (it can automatically repair invalid path merge ... you know when one path starts on the same waypoint as another path ends and we aren't connected to a cross waypoint)
- UPDATED ps_crash waypoints (avoid paths, added one new path, fixed couple ugly errors on blue paths in red spawn area and a few other minor tweaks)
- ADDED client command 'pathwpt printall ' (lists all used paths on current map if used without arg or all paths on waypoint specified by the arg or on closest waypoint if you use 'nearby' as the argument)
- Console command help no longer uses the notify area (top left corner on the screen) ... these are now printed directly into the console
- ADDED client command 'wpt repair sniperspot' (it can automatically repair incorrectly set sniper spot at the end of a path, it can add missing aim waypoint, turn the waypoint into a sniper one or even set some wait time)
- UPDATED ps_inlands waypoints (fixed one cross setting)
- UPDATED ps_outlands waypoints (fixed one cross setting)
- UPDATED ps_marie waypoints (fixed missing goback tag on one waypoint in red spawn area)
- UPDATED sd_oberland waypoints (fixed one sniper path)
- UPDATED sdtc_balcome waypoints (fixed one path and couple missing sniper tags)
- ADDED client command 'wpt repair masterrepair' (it will run all available repair functions in specific order, range and position functions are skipped)
- ADDED client command 'test aimcode' (it will turn experimental aim code on or off, this new aim code isn't fully finished yet so not for general use)
As you can see there was a lot of fixing done. Not many new features added. Please do not take this as a new start. It's just that I had some free time especially over the Christmas time and I dedicated it to this project. I mean I've been playing with the code on and off since the end of November to the end of February. The list of changes is in exact order of how things happened during that period of time.
The release date is unclear as of now. The winter time is almost over and I'll be returning to my real life tasks. I'm in process of getting my own house. I'm building it on my own so that takes basically all my time. Anyways I already compiled the release .dll and let it ran for over 8 hours. No crashes or other bad events. So that's the positive part. However the Linux .so will be problem again, because I don't have Linux installed and I never really did well in this operating system. Finally the documents aren't updated yet either. Wish me luck and stay tuned! Marine Bot 0.92b will be released sooner or later. Let's hope it'll be sooner rather than later.
4 March 2013
The whole site launched. You can download the last Marine Bot beta release in 'FILES' section of the left hand menu. Many Thanks to Drek for digging the Linux and the source code packages from his backups, because I didn't have those files on my HDD nor in any of my poorly managed backups. You may find some additional files and support in the other sections too. Hopefully there isn't many errors and/or misleading info there. I'll try to add more stuff whenever I have a free while. But for now have fun and thanks for using Marine Bot!