It appears only 2 of the 5 ammo/health resupply crates on desertcircle are func_door, so they just stand by the last 3 . Could you have them use func_rot_button as well as func_button & func_door to use the crates?

I always use the z option rather than distance. So you shouldn't need to move the waypoint if you use that. I also noticed the flags got sick before which is why i added the 'active'option to script with the hope of using it but couldn't find anything useful unless you can... Tried to decompile the map to get some idea but no brushes would load so just got lost.

I've been using z for a while now. What happened this last time was the sprite got stuck about 1/4 way up the pole, usually it is stuck near the bottom half. The action was completed and the next flag was enabled, so just the sprite stopped moving. It would seem to be a map bug, but I haven't confirmed this happens with players. Removing staynears on some flags has helped, on others moving the flag pole wpt has helped, or like in the case of the 2nd flag I moved the important flag to the wpt just before the normal wpt on the flag. Not having the important wpt right against the flag pole seems to be the most reliable solution.

Anyway, it has been getting much better, it's just so random. The only flags I'm not 100% sure of are the last 2, but I think they are OK now. The last flag still has an important wpt right on the pole, but I haven't seen that flag get stuck since removing the staynear on it and adding a wait flag to the normal wpt just before the important, a long time & many game tests.

I was experimenting last night with adding a few more scripted wpts, non-entity (-1) wpts for navigation/goto points after the main objectives are done. After putting the ammo/health wpts back in, they mainly want to circle the outer areas and not use the middle or reverse path to the front door. It seems to be working, as they now use those paths . I don't have ammo/health on the first crate so bots will multi-path and use the both trench's there at the start of the map, so that contributes to them circling the outer area. I do want them to do that some, just not all the time.

Do you know of any things that might break the scripts? When I was working on desertcircle, the script broke again (about 2 builds ago), the explosives/breakables re-enabled after all goals were done. I didn't notice it right away, so it kinda screwed my test session. The only thing I can think of, was I think I did a waypoint_load a some point. I had changed a couple wpt flags then did the load later. I didn't touch the important wpts that session, I would assume that could cause a script failure?

Last night, sc_doc script failed once, to detect the first door had been opened (#198). I was doing a lot of disconnects & restarting the map and it did that. Disconnected again, restarted and it was ok after that, so just a minor hiccup I guess. More concerned about things I might do that could cause a script failure while tweaking the wpt ?

Do you know of any things that might break the scripts? When I was working on desertcircle, the script broke again (about 2 builds ago), the explosives/breakables re-enabled after all goals were done. I didn't notice it right away, so it kinda screwed my test session. The only thing I can think of, was I think I did a waypoint_load a some point. I had changed a couple wpt flags then did the load later. I didn't touch the important wpts that session, I would assume that could cause a script failure?

Last night, sc_doc script failed once, to detect the first door had been opened (#198). I was doing a lot of disconnects & restarting the map and it did that. Disconnected again, restarted and it was ok after that, so just a minor hiccup I guess. More concerned about things I might do that could cause a script failure while tweaking the wpt ?

The only thing i know will break the scripts is maxplayers. It should be 8 when creating the scripts. But it will work it out after that. If the map has changed it might also break the script , check if the latest svencoop update hasnt changed any maps you are working on.

Other than that, the existing waypoint IDs should always remain the same even if you delete some. I've noticed sometimes waypoints don't appear to load...maybe AS bug , anyway bear in mind that the bot will load the waypoint file and script in the store folder first. If it doesn't exist will load from the rcw folder.

My max_players has been set to 8 (default). I'll be going back to desertcircle next, i'll see if it happens again?

I haven't updated Sven on this PC, since XP is no longer supported by Sven or Steam. I updated the 1-19-19 build (d3ec0c131d96959c890dced23e7a7939518ed08c) yesterday. Wasn't sure if it would be a problem, but it is still working with the previous sven version .

CODE

AngelScript

Added new hooks: PickupObject::CanCollect, PickupObject::Materialize, PickupObject::Collected. DamageInfo.pVictim is no longer constant. (Fixes casting issues.) Documentation: Changed how hook description is handled and added description for all existing hooks. The plug-in manager can handle multiple plug-in lists now. Updated AngelScript to version 2.33.0 (22nd December 2018). IMPORTANT: Arrays no longer contains a "length" property. Getting the length of an array must be done with "array.length()" instead of "array.length".

Not sure what I will do going forward on the XP PC, keep sven at the older version or risk updating it? So long as the bots continue to work i'd prefer to keep it static. I can check for map changes in the change logs and on my other PC. Map changes are usually minor...

While working on the first Last map bots were initially moving fine. At some point bots began to sort of freeze and stop moving, and refused to press the button to activate the teleporter. After some confusion, I discovered it started when I put important givetypes on the 2 barney wpts that were already in the rcwa. After Removing the important givetypes bots began functioning & moving normal again.

Bots would seem to move normally at the beginning of the map, but as they got closer to the teleport room, they would move in a stop & go fashion. Move a few wpts, then stop for a minute or longer, then move again. When they got to the teleporter button they refused to press it most of the time, and they were very reluctant to step into the teleporter. I'm not sure if they would step into the teleporter, because I had been teleporting bots to the other side and working on that area of the map. On the other side of the teleporter, bots were showing the same stop & go symptom. So the teleport room probably doesn't have anything to do with the problem, it just appeared that way to me? the teleport destination is near the barney wpts, but not close. Just strange they would not press the teleport button...

I ran debug on the bots while in this state, and speed would be 100% but they were not moving, also task was null. Sometimes both bots would not be moving, other times one bot would freeze but the other was moving. So a bot could freeze or start moving independently of another bot...

The 2 barney wpts are fairly close in proximity, located at these security doors, one behind the other. This is the first and only map I've tried to use barney wpts... Oh, I also tested this on sc5.17 (XP), not sc5.18...

Hey madmax, will have a look later. Will let you know how the barney waypoints work just in case you might see what they are doing, don't know why their tasks are null though, maybe need to debug the task in the console to get a history of how they go into that state.

Btw Barney waypoints must also be important waypoints

1. Bot wants to go to an important waypoint which is also a barney waypoint2. Bot has recently seen a barney/otis 2.1 bot goes to barney/otis 2.2 bot uses barney/otis 2.3 bot goes to barney waypoint2.4 bot waits for barney to arrive 2.5 bot finishes task

I was thinking maybe point 2.4 that the bots might be getting stuck. But their task should still be WaitForEntity or something.

Hey madmax, will have a look later. Will let you know how the barney waypoints work just in case you might see what they are doing, don't know why their tasks are null though, maybe need to debug the task in the console to get a history of how they go into that state.

Btw Barney waypoints must also be important waypoints

1. Bot wants to go to an important waypoint which is also a barney waypoint2. Bot has recently seen a barney/otis 2.1 bot goes to barney/otis 2.2 bot uses barney/otis 2.3 bot goes to barney waypoint2.4 bot waits for barney to arrive 2.5 bot finishes task

I was thinking maybe point 2.4 that the bots might be getting stuck. But their task should still be WaitForEntity or something.

Ran more tests today. Bots can take otis to a barney wpt (if I teleport a bot to the area). The problem shows up before that, at or before the teleport. On my first run today it did not happen, but every time after that it did. To be sure it wasn't something I did with the waypoint, I made the wpt more basic by changing a oneway path to 2 way, removing some extra important wpts in the area, as well as wait & staynear, then I removed one barney so there is just one barney/important wpt.

I think it failed as soon as bots entered this teleport room. Bots are forced to stay in this room by a oneway path on the door. The teleport wpt has an openslater on it and i've tested both 1 & 2 paths to the destination room from the teleport wpt. Again, if the important givetype is removed from the barney wpt, bots will start moving normally again...

Still on older build (1-19-19), I'll retest on latest build as soon as I'm done with this post. Assume it failed on new build if I don't report otherwise...

Ugh, found a problem in the wpt I was testing on (uploaded wpt is OK). That purple wpt in the image is a teleport wpt . I must of hit the wrong key there, recently? I removed it & retested 3 games, the problem still persists, but slightly different symptoms...

Bots still do the stop & go movement when they near or enter the teleport room. They now will press the button to open the teleport, but it is a very, very slow process. Once the teleport opens, bots will go through the teleport and seem to move normally afterwards. So the problem does seem to be related to the teleport/openslater wpt and the barney/important wpt used together on the same map?

Hmm, remember that if you use a teleport waypoint, then the path will only be valid when the teleport is active and arrives at the teleport destination that the path goes to. If the path is invalid and their current waypoint is a teleport waypoint then they will be stuck. Check if that is the problem. If it is, try adding a regular waypoint next to the teleport waypoint that has a fall back route. As it looks like the bot is continually choosing waypoint 162 as the current waypoint, and it should choose a different waypoint if it failed, which seems to me there may be no other waypoints nearby?

Hmm, remember that if you use a teleport waypoint, then the path will only be valid when the teleport is active and arrives at the teleport destination that the path goes to. If the path is invalid and their current waypoint is a teleport waypoint then they will be stuck. Check if that is the problem. If it is, try adding a regular waypoint next to the teleport waypoint that has a fall back route. As it looks like the bot is continually choosing waypoint 162 as the current waypoint, and it should choose a different waypoint if it failed, which seems to me there may be no other waypoints nearby?

Been shoveling snow the last couple days, was to exhausted last night to test/reply...

Retested/checked, That is not the problem. Think my last post was too wordy and you missed the point?

The current uploaded waypoint in my pack works perfectly at the teleport. Bots press the teleport button quickly and enter the teleport quickly. It currently does not have any important+barney wpts, just two barney wpts. If you add an important givetype to a barney wpt, save and restart the map, you will see the problem at the teleport room. Bots will pause on random wpts in that room for minutes. It took 8+ minutes for a bot to go to the teleport button & press it today (There is an important wpt at the button). None of this happens when there is no important+barney wpt in the map.

Been shoveling snow the last couple days, was to exhausted last night to test/reply...

Retested/checked, That is not the problem. Think my last post was too wordy and you missed the point?

The current uploaded waypoint in my pack works perfectly at the teleport. Bots press the teleport button quickly and enter the teleport quickly. It currently does not have any important+barney wpts, just two barney wpts. If you add an important givetype to a barney wpt, save and restart the map, you will see the problem at the teleport room. Bots will pause on random wpts in that room for minutes. It took 8+ minutes for a bot to go to the teleport button & press it today (There is an important wpt at the button). None of this happens when there is no important+barney wpt in the map.

It's a very strange problem...

The problem seems to be bots can no longer see the important wpt at the teleport button, when there is a important+barney wpt in the map. I can get them to press the teleport button better if I add an ammo/health givetype to it, as they think it is a dispenser. They still pause on wpts in & around the teleport room, but will go through the teleport once it is on. Bots will return to the button & turn the teleport off & on until they forward spawn. Kind of a wacky work-around.

It's not that important that bots can use otis in this map, they can finish the map without him. I can leave otis for the players. Just thought this problem could effect other maps too?