PDA

View Full Version : XenoBot Bug - Non-Issue [Windows 7 x64] Depositer open wrong tile.



marcin252
08-23-2015, 05:51 PM
Bug Report
Operating System:
Windows 7 x64
Short Description:
Depositer open wrong tile.
Behaviors:

Feature error

Indepth Description:
In gray beach build in depositer isnt opening depot but is opening counter in middle of two depots, is reaching depot good but then he wont open depot just browse field on counter.
Im using it on hexera.net ots.
https://i.gyazo.com/777f721933a040c691e4c7c5d419139e.png

dovla92
12-22-2015, 10:46 PM
same here, but just on left depots

vicot3
01-02-2016, 08:47 PM
I'm having the same problem.

eldera
01-03-2016, 03:09 AM
I know how to solve this problem - buy XenoBot and then ask for it again.

shadowart
08-28-2016, 04:00 PM
Add this to your lua script to override the default Self.OpenLocker function which is bugged on Hexera (and possibly some other OTs):

function Self.OpenLocker()
-- Depot position (defaults to look pos)
local depotPos = Self.LookPosition(1)
-- Detect entry
local pos = Self.Position()
local adjacentWalkableTiles = Map.GetWalkableTiles(pos, 1)

if adjacentWalkableTiles then
for _, entryPos in ipairs(adjacentWalkableTiles) do
-- Some OTs don't detect our own position as unwalkable, so filter it out
if entryPos.x ~= pos.x or entryPos.y ~= pos.y then
depotPos = getPositionFromDirection(pos, Map.GetDirectionTo(entryPos, pos), 1)
break
end
end
end

wait(500, 1000)
local field = Container.New("Browse Field")
while (not field:isOpen()) do -- locker isn't open
Self.BrowseField(depotPos.x, depotPos.y, depotPos.z)
wait(800, 1000)
field = Container.New("Browse Field")
end
while (field:UseItem(0, true) ~= 1) do
wait(100)
end
end