Marine Bot banner

Marine Bot Waypointing Video Guide Commentary Transcription

The commentary transcription from Marine Bot Waypointing Video Guide

ch1c1

Welcome to Marine Bot waypointing video guide. This video serves as an additional material to written waypointing guide that is available as a HTML on Marine Bot homepage. You are going to see the waypointing in an action. This video will show you how to turn the principles explained in that HTML text into working waypoints that will allow the bots navigate through the map. Please keep that written guide open in another tab of your browser so that you can check all the details everytime you see something that you're not familiar with.

ch1c2

Let's start with couple useful key bindings. You can of course use the command menu or type the commands into the console, but these few key bindings make things easier.

ch1c3

You can check what exactly these commands do in the written guide, but basically they will allow you to place the two most used waypoints. To remove or reposition any waypoint that has already been added. To change default waypoint range to fit most spots on a map. And to check the properties of either waypoint or path.

ch2c1

First thing will be to find the starting positions. There is an easy trick to do so. There are commands that allow you to deactivate standard bot behaviour. Start with turning off the automatic team balancing feature. Then freeze the bots, which means you will prevent them from moving around. Finally you will recruit several bots to your team.

ch2c2

As you can see the bots show you the exact starting positions now. So you are ready to start adding waypoints to cover this respawn area. Now the key bindings, we prepared earlier, come handy. Things will go pretty fast with them.

ch2c3

To add a new cross waypoint just press the delete key on your keypad and a short blue vertical line will show on your position.

ch2c4

To add a new normal waypoint press the insert key on your keypad and a longer orange vertical line will show on your position.

ch2c5

Press the right arrow on your keypad to view waypoint range which is represented by thin white horizontal lines.

ch2c6

Pressing the page down on your keypad will instantly reduce the range to 30 units for waypoint you are touching.

ch2c7

If you add the waypoint to a bad place you can use the plus key on your keypad to reposition it. Just move a little and press the plus key. Nearby waypoint will be moved to your position.

ch2c8

When you have all the starting points covered, kick all bots off the game. First you don't need them anymore. And second they may block your way.

ch2c9

Press number 5 on your keypad to check cross waypoint range. Thin light blue horizontal lines will show you all waypoints are connected to each cross waypoint. Thin red horizontal lines mark waypoints that are connected to a cross waypoint, but are purposely disabled. So that the bots cannot choose them.

ch2c10

Make sure to set correct range for each waypoint you've added. Always try to move from the newly added waypoint to all its neighbours in order to check that the space is free of any obstacle. As you can see right now.

ch2c11

On some places you will have to place waypoints quite close to each other in order to make the bot move round all corners, bendings or obstacles smoothly. Like this ledge. You don't want the bots hit the bulge on the wall, or fall into the pit.

ch2c12

However if you have enough free space then add the waypoints only to spots where the bot really has to adjust his direction. Even when it comes to junctions. As you can see you can increase cross waypoint range so that the junction is quite large, and bots can move freely through this area.

ch2c13

When you are adding an ammobox waypoint make sure you can activate the box from the farthest point of its range. If you place this waypoint too far the bots won't be able to resupply their ammo reserves.

ch2c14

Once you have the waypoints positioned you can start laying the paths. Feel free to make your life easier by activating the mode where any waypoint you touch is automatically added to the path you're creating. Just slow down and move carefully when you get close to places where there are multiple waypoints close to each other.

ch2c15

To check whether there are multiple paths on particular waypoint, get close to that waypoint and press page down. Then open the console and you'll see all the details.

ch2c16

The commands that allow you to modify properties always take the first waypoint or path that is found in your vicinity. So if you need to change properties of a specific waypoint or path you will always have to use its unique number that is called an index. And then use this index as an argument for the exact command you type into the console.

ch2c17

To see the properties of a path get close to one of its waypoints and press multiply key on your keypad.

ch2c18

Avoid enemy path type will modify bots behaviour so that they will engage only enemies that are within their weapon effective range. Also they will hold their positions in a battle. You should use this path type in any area where there is a risk of falling over the edge into a pit like you can see here. Other examples are bridges, rooftops, stairways and various ledges.

ch2c19

Every path that can only be used in one direction should always be created like that, and marked as a one way.

ch2c20

Ammobox waypoint automatically serves as a turn back marker so creating a short resupply path is an easy task.

ch2c21

Until you stop the path you can change its properties easily, because every command you use will be automatically set on this path, no matter where you are.

ch2c22

Sometimes you encounter strange map bugs. Take your time to deal with them, otherwise the bots will get stuck there too.

ch2c23

This is a nice spot for snipers. Both teams can use it. All you need to do is place a goback waypoint at the end of the path to tell the bots that they have to return back down once their wait time is over. Then add two aim waypoints. One for each team. This can be done using zero priority. Any aim waypoint with zero priority for particular team will be ignored by all bots from that team. Don't forget to set the wait times. Yet again each team can have its own value if you find a reason for that.

ch2c24

In order to check whether you've added the aim waypoints in a right way, press left arrow on your keypad. If you can see thin pink horizontal lines connecting the aim waypoints with the sniper waypoint then everything is allright. No pink connections would mean that you either placed the aim waypoints too far from the sniper waypoint or you forgot to set the wait time.

ch2c25

Despite using the avoid enemy path type everywhere in this location you should still create paths that would get the bots out of this pit. Just a simple one way path for each team is all you need.

ch3c1

Original footage has been cut here, because priority setting around cross waypoints and proper waypoint testing are shown at the end of this video. Also red team spawn zone is already waypointed, but that has been done off record. Now, let's resume the work from this junction.

ch3c2

If you know that the area where the flag can be captured is larger than default range for this waypoint type then you can tweak it so that you don't limit the bots that much.

ch3c3

Here you can clearly see that you can start, or end several paths on the same waypoint that is part of a junction. The bot will see them all and will pick the one that best fits his current needs. Which means a bot that is in need of ammunition will choose the path with the ammobox. While a bot that decided to reach map goals will choose the path through the pushpoint to capture it for his team.

ch3c4

You should always tweak waypoint range so that there is a free space for half of the body on the outside of the range. One of the reasons is the way how the bot moves. Marine Bot is trying to copy the way how real gamers move. You don't see a human player to stop, then do a sharp turn and start moving again, do you? No. Human player is usually moving smoothly around corners and various obstacles. And so does Marine Bot if you set the waypoint ranges right and give him enough space.

ch3c5

You don't have to worry touching the waypoints that are already part of the path you are just creating. Such waypoints won't be added again. You aren't allowed to add them even manually.

ch3c6

Blue bots moving through this tunnel may completely miss the second flag so there should be extra path that would allow them to capture that flag and keep them in moving towards red team positions.

ch4c1

Waypointing is slow and time consuming task. You will often stop here or there and resume your work later on. So everytime you need to stop, try to do it at a cross waypoint. Just like you see in this video. Leaving a path somewhere in a void or having some waypoints solitary is a bad habit. You will forget about them which will usually cause unwanted bugs.

ch4c2

As you can see you can have more than one flag waypoint inside one pushpoint area. Both of them will work correctly. Reason for having two of them here is fact that there isn't much space here so you want the bots to get through this spot as fast as possible.

ch4c3

Setting the range to just 10 units for these waypoints will make the bots slow down to walk speed and they will proceed carefully.

ch4c4

Now this path will fully utilize the second flag waypoint. Without that waypoint we would have to bend the path backwards and circle around those central pipes in order to make this path transmit the pushpoint status.

ch4c5

You may wonder why there isn't also a jump tag on this crouch waypoint, because moving through the window from this side needs jumping to pass through. Well, first this is a two way path so bots moving in opposite direction would have to jump too. That would look strange. Second, bot would have to turn quickly before jumping. Most of the times this doesn't work well. And last, Marine Bot can detect quite a few issues on its own when he gets stuck somewhere. Trying to jump over any obstacle is one of the things he tries. So if you are waypointing such awkward spot like we have here then you may leave it on the bot. Often he will figure that out.

ch5c1

As you know the red spawn zone was waypointed off record. There's no point to repeat the same steps twice. So here we are. In front of the second flag for the red team. We only need to make the bots capture this pushpoint and then connect this junction with the one you've seen just a couple seconds ago.

ch5c2

It's not only about the farthest point of ammobox waypoint range. It's wise to leave enough space in the nearest point of this waypoint range too. Basically if the ammobox waypoint is too close the bot will try to step inside the ammobox itself.

ch5c3

Having the pushpoint in a room where the only entrance is a ladder isn't a bot friendly map design. Luckily there's a window that can be used as the exit. Plus the window isn't high enough to cause any damage when you fall out of it. So you can use one way path to pass through such spot.

ch5c4

Let's disable this landing waypoint for the cross waypoint. Like we would do with any other waypoint that is inside cross waypoint range but serves different purpose than to allow bot choose his new route.

ch5c5

The path will not only be a one way, but also dedicated to blue team and will get them a bit further away from here. We want them to leave this potentially problem spot fast.

ch5c6

Most of the times the position of a cross waypoint doesn't matter. It only serves as a signal to bots so they know they can choose a new route there. It's the glue that sticks paths together. So in places where there isn't much free space you can place it little sideway. This way it won't get in a way when you need to place waypoints, whose position matters.

ch5c7

It's a pity, but this junction will probably have to be a tight one. We will see later on during the testing. But there's a chance that all the waypoints around this cross waypoint will have to have a range under 20 units and so the bots will have to slow down to a walk speed here.

ch5c8

The gap in the railing is just about the size of a body. Besides the bot will have higher speed due to moving down the hill. That is why there is another waypoint with smaller range to help the bot take the turn into the gap. We may even use range less than 20 units on it to make the bot use walk speed here. Definitely a spot to watch closely during the final testing.

ch5c9

These beams are actually a breakable object, but crouching under them seems to work just fine. Besides if the bot would have gotten stuck on them he is usually able to detect such breakables and break them on its own.

ch5c10

Now this is a decision whether to limit this path to blue team only, or whether there may be cases when reds will benefit from using it too. For now it will be a blue team only path.

ch5c11

Also red team needs its own one way path that allows them to take this pushpoint. As you can see the whole idea behind the path is the same for both teams here.

ch5c12

The side route access to the central pushpoint from red side basically copies what has been done on the other side.

ch6c1

As you can see there are more paths on this junction now. They are meant to get the bots from the bottom back on this level. This video is getting huge so they were created off record and we will only look at them. So that you know what has to be done to free the bots if they happen to fall down there.

ch6c2

To view just one particular path you can use path highlighting feature. Get close to one of its waypoints. Press page down key to get the list of all paths on that waypoint. Then use the console to specify the exact path you want to view.

ch6c3

All of them are one way paths. But some of them are dedicated to just one team so that the bots move towards right direction.

ch6c4

The last part of the map that hasn't been waypointed yet is this route through the sewers or maintenance shaft or whatever it is. Again this is not a bot friendly map design part. You have to exit the ladder to the side and down there is really narrow and wavy corridor. So we will have to use two one way paths. One will start here and the other one will end here. Default two way path isn't possible here because of the way how you are entering and exiting this ladder, actually ladders at both ends of the corridor.

ch6c5

You have already seen it in this video. Still, to help the bot climb any ladder you should always enter the ladder, then do one or two steps up, and then you will finally add the ladder waypoint. That will ensure that the bot will stick to the ladder while looking up, which is the way we need to successfully climb it. To exit the ladder you should use similar technique. Add the ladder waypoint two or three steps before the real end of the ladder. Doing it this way will make the bot face the next standard waypoint while still looking upwards which will allow him to exit the ladder just fine. Even if he has to exit it to the side.

ch6c6

Very little space and we are heading towards the ladder from a side. That isn't good. But placing a waypoint with small range in front of the ladder will force the bot to slow down and gain enough time to face the ladder.

ch6c7

If there is enough space then it's always better to keep some distance between the waypoints. That way the bot has enough time to adjust both his speed as well as ideal direction. So his overall movement is smooth then.

ch7c1

We have basic waypoint coverage done. Bots can travel all around the map now. But they don't really know which routes will get them towards enemy positions yet. We need to set priorities on waypoints around each junction to guide them. So let's start with priorities for red team.

ch7c2

First disable the waypoint that cannot be chosen. Doing so saves some CPU usage everytime any bot passes through this junction. Now seeing this other one way path would actually slow down the bots rather than speed them up, we will set high priority for the route leading through open warehouse and to the first pushpoint for red team.

ch7c3

We are keeping high priority for the faster and easier route on this junction too. Most bots that spawn inside the side warehouse will be heading towards first pushpoint. You will find that using the console is actually faster and way easier than dealing with the command menu.

ch7c4

Both routes forward are same so we will use equal priority setting for them both.

ch7c5

Here we are going to use the highest priority for the forward direction. We don't want to see red bots returning back to previous junction. Still, you will see one red bot doing so occasionally. Because there was added some randomness to their behaviour.

ch7c6

Again we are going to use highest priority setting for the forward direction. Bots that go after map goals, will head inside the house to capture the pushpoint. It's the one way path through the attic that transmits pushpoint status. Oh wait, looks like we forgot to add the pushpoint waypoint. Let's check which waypoint can be changed to a pushpoint one. Once we are done both one way paths are finally transmitting the status. So the junction will work correctly since now.

ch7c7

This junction isn't finished yet. Possible path to bandages isn't present, but we can set the priorities. In order to make some bots take the bandages once in awhile we won't use highest priority for the forward direction here.

ch7c8

If we used the highest priority for the main route then there would be almost no bots on that side route. Also we need to raise the priority for that side route a little. This will handle cases when there is some lost red bot returning to this junction from the central pushpoint area via main route. Doing it this way will force him to move towards blue positions again. The same here.

ch7c9

This is a bit harder junction to figure out the priorities. We want majority of red bots to use the main route towards blue positions, because the route through maintenance tunnel is a bit cumbersome for the bots. Now the case when a red bot is returning back. We want them to move towards blue position most of the times so we will set higher priority for that maintenance tunnel route than the route to central pushpoint. And we will leave the side way route on default priority level, because that would make the bot return even further back to red side of the map.

ch7c10

We don't want to give red bots basically any chance to return back to the central pushpoint. So we are using highest priority on forward direction. On the other hand if there's a red bot returning from blue side then we want him to use the main route towards central pushpoint.

ch7c11

Both forward routes are actually equal. So we will set same priorities for them both. Bot will decide based on his needs here. A need for ammunition or need to fulfill map goal will make him choose appropriate path. Otherwise he will choose randomly between the forward routes. What we don't want to allow red bot do here, is choosing the route through maintenance tunnel. So we will set zero priority for red team there.

ch7c12

Now this junction isn't good. It was designed with blue bots in mind and we completely forgot to plan how will a red bot move here. There are three paths on the waypoint, but one of them would get red bots back to previous junction. So we will have to rework this junction. Simple waypoint deletion won't fix all problems though. There's another long path that would then cause that a red bot could return back to previous junction again. We will have to transit the problem path through this junction. We will remove both waypoints that are part of the junction from the problem path. Then add a new waypoint to bend that path into the tunnel. Disable that waypoint for this junction. Then we will insert the new waypoint into the path. And finally we will make sure there are no obstacles on the way and finish setting the priorities for red team.

ch7c13

Most of red bots wouldn't need any priority setting here, but red snipers and red bots with camper hunter behaviour will visit the sniper path so we must tell them which way they need to go once they are returning from the sniper spot.

ch7c14

Similar case is here. You wouldn't have to set any priority when it comes to forward direction, because red bot can choose only one route. But when red bot is returning from blue spawn via the one way path then we should tell him to move away from here. Reason why there is highest priority used.

ch7c15

Highest priority is used here, because we don't want red bot to visit the ammo boxes. Only when he has low reserves, then his need of ammunition overrides the priority setting.

ch7c16

Both routes away from blue spawn zone are equal so we will use same priority setting for them. But we shouldn't use highest priority here, because if red bot came to this cross from the direction of first blue flag, then he would almost always take the one way route which involves jumping, so a possible problem. So we lower the priorities so that more red bots can head towards the ammo boxes and then leave this spawn area through the first blue flag.

ch7c17

Setting the priorities for red team is finished now. We need to do priorities for blue team now. You've already seen how it should be done. So blue team priority setting will be done off record.

ch8c1

Basic waypoint coverage is done. Setting priorities for both teams is also finished. So let's test the waypoints now. First turn team balancing off. Freeze the bots. Recruit one bot to your team. Turn Half Life developer mode on. Finally turn on the info about Marine Bot cross waypoint decision making.

ch8c2

Now follow the bot and watch for every weird move he does. Each time he enters a junction you will see how did he decide there. Whether he followed priority or not, which waypoint he chose and which path he picked. All these details are printed to the console. You can freeze him and check it all whenever you want.

ch8c3

When you see something that doesn't work the way you wanted, freeze the bot. Fix the problem spot and continue testing.

ch8c4

Be patient. Often it takes several tries to test whether your fix worked or not.

ch8c5

Just one quick run isn't enough. It won't reveal all bugs. Kill the bot and yourself several times so that you can test different routes. Or the same routes, but multiple times. Marine Bot will always pick a little different trajectory even when he is moving through the same area. That is due to the way how the waypoint ranges work.

ch8c6

Not everything can be fixed though. As you can see here. The jump waypoint doesn't always work the way we expect. The reason why bot gets stuck here once in awhile is fact that you can't jump when you aren't fully touching the ground. And when you are moving down the stairs you aren't touching the ground all the time. Therefore you will see the bot do a nice jump one time, and second time the jumping fails and he gets stuck here for a bit.

ch8c7

Obviously the bot is moving too fast to handle this tight turn. But there is an easy solution. We will slow down the bot before he reaches the crouch waypoint. So let's set the range to 19, because the space isn't the main source of the problem on this waypoint. It is the full speed at which is bot closing to it. Now the bot will be forced to slow down while he is still heading to this waypoint and will continue carefully even towards the crouch waypoint.

ch8c8

Again the same sort of a problem. The bot simply doesn't have enough time to slow down. So the trajectory he is following will make him hit the window and get stuck there. Let's fix it the same way as we did before.

ch8c9

Feel free to temporary disable some routes in order to get the bot to spots where there was a problem. To test whether the fix really works or not. Just keep in mind, you have to revert such changes before you save the waypoints.

ch8c10

What a coincidence. When you take the work and disable the main route, bot decided to go after map goal. So he would take the side route and test your fixes anyway. Well at least we know that red team bots can accomplish the main goal of this map if they decide so.

ch8c11

Red team looks good. Time to check blue bots. By the way the observer mode will make you invisible to all bots. So ideal for testing.

ch8c12

This sort of dance around this or that waypoint will happen from time to time. If it happens than it is around waypoints with small range. It's got to do with the randomness in using waypoint range and internal mechanisms that rule bot turning. You can't really do much with it. Except for ignoring places where there isn't much space. But then you would not be able to waypoint some parts of some maps.

ch8c13

Oh right. We didn't fix the other ledge around the central pushpoint building yet. So we will do the same waypoint range reduction like we did on the other side when we saw red bot in problems there.

ch8c14

Let's recruit a sniper bot so that we can really test that sniper spot. Especially whether we have set those aims right.

ch8c15

This is exactly why you should do as many test runs as possible. A bot passed through this turning several times now, but as you could just see the waypoint placement isn't allright. So we try moving this flag waypoint a little and we will see.

ch8c16

We haven't seen any problems when was red bot passing through this spot. Now the range seems to be too large when the bot moves in opposite direction. Let's reduce it by a few units. Bot will be forced to stay closer to the centre of this stairway and shouldn't hit the wall on the side anymore.

ch8c17

First, that invisible map glitch is really annoying. Good thing is that bots dealt with it quite well so far. Second, it seems the delay on which Marine Bot rechecks his ammunition reserves should be lowered a bit. Because as we just saw he doesn't change his behaviour, the need of ammunition, fast enough. Well, it has been noted down and will be addressed, hopefully for the next release.

ch8c18

As we expected, the range on these waypoints has to be reduced. So that the bot is forced to move slowly and carefully not to get stuck on the doorways. Straight direction is fine. We have seen that couple times already. But when the bot takes the side route and then returns back to the main route, he is unable to turn into the doorway due to moving at full speed.

ch8c19

He had quite big problems trying to climb the ladder this time. All previous attempts were looking good though. Well, forcing bots to slow down even here seems to be the only solution. They won't be able to win the map as fast as we would like to see, but if they get stuck here and there, then they wouldn't do it fast either. So okay, we will reduce the range here too.

ch8c20

Now this is a lucky moment. It's great that you can see here, that even a sniper bot can decide not to follow the need to camp at sniper spot all the time, but to follow standard priority setting and will move forward.

ch8c21

Oh come on, even here? Well, you know the drill. If the bot cannot handle it at full speed then we have to slow him down.

ch8c22

Looks like that even blue team bots can win the map just fine, if they decide so.

ch8c23

The bots didn't choose the path that leads through the window outside to the side route. So in order to test that path we will use a little trick. But we better backup the waypoints first. Marine Bot has two folders for waypoint files. You can use them both if you want. That is what we are going to do now. We will switch to the second folder and save the waypoints there. This way you can load the waypoints from the other folder in case you have accidentally saved the changes we are going to do to force the bot use the path we need to test.

ch8c24

Now let's delete all the other paths that we don't want for this test. Keep in mind that if you don't specify exact path via its index then the system will use the first path that is available on the waypoint in your vicinity. So get close to waypoints with the other paths and delete them. Once you are done you can start testing.

ch8c25

Looks like the bot can deal with this spot. If he would get stuck then there are other waypoints close by. So once he resets his navigation, he will be able to pick different waypoint with different path and leave this area.

ch8c26

We haven't seen any bot using the path through this gap in the railing. So let's use the same trick as before, to force him do so. Actually everything is already prepared. We will just watch how will he act here.

ch9c1

Time for final test with both teams playing the game. But before we start it let's do one thing. Be proud of your work and sign your waypoints. Actually you should do this at the beginning, because signing can only be done once and cannot be changed. So if you mess it up you would have to either delete waypoint files from your drive and start afresh, or just accept the fact you have made a mistake.

ch9c2

Okay, try to stay away from the action. So make yourself invisible to all bots and use the no clipping mode to fly above the battlefield. Basically you will be just watching how do bots play. If you notice some bug you can always freeze them and fix it right away. If it is something more serious then break the test, kick all bots off the game and fix the issue. Then save waypoints and start this final test again. Simply put, never waypoint with bots in game.

ch9c3

The HTML written guide says that neither team should dominate the game during the testing, but that isn't only about the state of the waypoints. Look at this test session. You can clearly see that blue team is doing better. That isn't because we have made some mistakes in waypoints for red team. This is purely about the weapons. Blue team bots are using generally way stronger arsenal than red team. You can see there are 2 machinegunners and 2 or 3 snipers in blue team. While red team bots are mostly riflemen or submachine gunners. So if you want to have a good test to determine whether your waypoints are balanced for both sides then make sure to level out the teams first. Do not use the fill server command. Also disable automatic team balancing. Finally manually recruit bots with specified team and class in order to make both team equally equipped.

ch9c4

Well, this test should continue till they run out of reinforcements. Ideally watch them play the map several times. But we will stop it here. You should have a general idea what to do by now. Hopefully this video helped you understand how does Marine Bot waypointing work. Thanks for watching.

by Frank McNeil 2005-2023


end of file