@smokeman It did not solve the problem to put " plainCost: 2, swampCost: 10". Still the same result
Posts made by Nidit
-
RE: pos.findPathTo error not respecting roads as it should
-
pos.findPathTo error not respecting roads as it should
Hi, I have encountered persisting error on path creation. As far as I know new PathFinder is not enabled. It does not respect roads as it should. I tried to increase maxOps but there is no change. Without range also returns the same result (but in a different place). Maybe I do something wrong here.
Code that creates path:
structure = creep.room.controller; if (structure != null) { creep.memory.path = creep.pos.findPathTo(structure, { maxOps: 1000, ignoreCreeps: true, maxRooms: 1, range: 2}); Game.rooms[creep.room.name].visual.poly(creep.memory.path, { stroke: '#00ff00', strokeWidth: .1, opacity: .5, lineStyle: 'dashed' });}
With range:
No range or 0:
-
RE: inactive structure store.getUsedCapacity returns null
The same issue occurs in TOMBSTONEs.
- Game.getObjectById("X").store.getUsedCapacity() = null
- Game.getObjectById("X").store.getUsedCapacity(RESOURCE_ENERGY) = 207
Hmm..