Jump to content

Is Util.ExcludeClass/priorities supposed to work with ROUTE goals?


Recommended Posts

Good morning,

In 1944 Nordwind, I saw bots spawning at Warehouse (so Warehouse Door destroyed) wrongly following a route for BUILD_Tank once the Tank is past the Depot area
Same if spawning at Axis Spawn
When the Tank is damaged, there's Util.ForceRouting on

I wrongly wrote the Util.ExcludeClass in Tank_Past_Depot_Area, fixed it locally
From: Util.ExcludeClass( "ROUTE_Hill3", CLASS.ENGINEER );
To: Util.ExcludeClass( "ROUTE_Hill3", 0, CLASS.ENGINEER );

When typing /bot sag 3 1 0 (3 to avoid the rendering), I can see the priorities are good for Engis: 0, as expected

I've edited the routes to only have the ones involving ROUTE_Hill3 available to ease testing/monitoring

The Axis Engis still go through that route note, which has a 0 priority for their class

Thus the question: is the route node priority taken into account in the routing processing? Or only its team availability?
My goal here is to have it disabled for BUILD_Tank mainly; I could re-affect the routing tables to have it restricted only to that goal and not all Axis BUILD, but I think it's good and simple enough to just affect the priority of the route node for the Engi class ^^" (Allies don't have that route node in their routing)

Map download link: https://wolffiles.de/filebase/ET/Maps/1944_nordwind.zip

---

Side note:
In the same context, I've scripted OnBotJoin so that Axis bots select the Warehouse spawn, then there's a spawn split function that shouldn't change it
Added prints before the 3 possible calls to ChangeSpawnPoint, they correctly select spawn 4
But they still spawn at Axis Spawn, number 2
I suspect the fact spawns are quite broken on that map to be the culprit
Or I've written some mistake I can't catch

---

Thank you

Edited by Mateos
Map download link
Link to comment
Share on other sites

  • Moderators

Priorities of ROUTE goals were ignored. It will be fixed in the next Omni-bot version, or you can build it now from GitHub.

The 1944_nordwind map automatically changes spawns just after a player joins the game, so you have to add yield() before ChangeSpawnPoint.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...