vargatom Posted Friday at 09:44 PM Share Posted Friday at 09:44 PM Hi Everyone! Why do BOTs ignore weight during movement and always take the object on the same path? Has anyone encountered this fault? Thanks for the helpful comments! Quote Link to comment Share on other sites More sharing options...
Mateos Posted 6 hours ago Share Posted 6 hours ago (edited) Hello, I just performed a test on Seawall Battery There's a definition for DEFEND_Flag_.* (5 nodes) with a weight of 3 involved MapRoutes["DEFEND_Flag_.*"] = { ROUTE_AxisSpawn = { ROUTE_flagroute = { Weight = 3 }, ROUTE_gunpatrol = {}, ROUTE_southstairs = { ROUTE_guntop = { ROUTE_guntop = {}, }, }, }, }; I've written a command to move all 15 spawned Axis bots to spawn #1 (Axis Main Bunker, where ROUTE_AxisSpawn is; command calling ETUtil.SuicideSpawn), and an other command so these DEFEND spots are the only available goals to them (e. g. a SetAvailableMapGoals called through a console command) I had all 15 bots go through the 3-weighted route (flagroute) 3 times in a row I know the CAMP-type goals are limited to a single bot, but I'd expect sometimes a bot to go through one of the 2 other routing nodes (gunpatrol and southstairs) Is this test biased in some way? Or any misunderstanding of weight behaviour/probabilities behind? Regards Edit: 5 Axis bots, 10 times with the help of kt command, always through the bottom 3-weighted node Edited 6 hours ago by Mateos Adding related MapRoutes section for clarity Quote Link to comment Share on other sites More sharing options...
vargatom Posted 2 hours ago Author Share Posted 2 hours ago (edited) What happens if in your case Weight = 2, ? My problem is the wished path got Weight = 5, but BOT go on shortest path always. Same as if is none defined routing to Cappoint goal. It seems like there is an error in one of the files but program not indicate that when I starting map. Edited 2 hours ago by vargatom Quote Link to comment Share on other sites More sharing options...
Moderators palota Posted 1 hour ago Moderators Share Posted 1 hour ago @ Mateos Route to "DEFEND_Flag_.*" in battery is useless because these goals are immediately disabled after allies capture the flag. All Axis bots run to the CHECKPOINT goal. I tried to manually enable "DEFEND_Flag_.*" and disable CHECKPOINT and then routes with weights work as expected. Some bots go downstairs and some bots go upstairs. @ vargatom Please attach all your waypoint files and share link to your map. Quote Link to comment Share on other sites More sharing options...
Mateos Posted 18 minutes ago Share Posted 18 minutes ago I just retried by editing the .gm (forcing spawn #1 in OnBotJoin and only enabling DEFEND_Flag_.* OnMapLoad), and it works first try... I don't know why doing something similar but during game progress with commands does not work the same I'll check my install and try with a clean one Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.