The-International-Screeps-Bot / The-International-Open-Source

An automated bot for the coding game Screeps.com
MIT License
104 stars 35 forks source link

Adding Constructed Walls to Cost matrix #786

Open Amarantz opened 7 months ago

Amarantz commented 7 months ago

Found that some times creeps would want to path in the Constructed Walls in Respawn rooms.

CarsonBurke commented 7 months ago

avoidImpassibleStructures should already solve this? Any idea why it does not?

realacesu commented 5 months ago

Reproduced, there is no clear reason why this is occuring. Explicitly looping thru structures.constructedWall works. Structures["constructedWall"] does exist and should be looped through...

Il take a look further at commue paths to remote sources before advising further for this hack.

If anyone else has issues outside novice/respawn zone please LMK!

realacesu commented 5 months ago

@CarsonBurke , yeah not sure what is causing this, it is being looped but is not being added to the costmatrix. It does not appear any overrides occur to the CM other than a quadBulldoze CM ref. which would not affect haulers.

Once my respawn zone opens I will try to place walls in the room and see if it occurs globally and not just in novice/respawn.

CarsonBurke commented 5 months ago

Strange! thank you for the debugging