Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The code block that deals with erozea time needs fixing
#1
So this is the issue i've been seeing, i have a gathering profile i made to cover all hrs of the erozean day, however i'm having an issue where the bot is not taking in the eorzeamaxhour into consideration properly. So for example my task 1 runs from 0-4 and my task 2 runs from 4-8, meaning that at 4am ez time task 1 should not be able to pop at all, however there are times it'll tele to the task 2 zone, start flying a bit towards task 2 and then just teles back to task 1, however when it reach's the task 1 location it then re-reads the time and sends it back on it's way to task 2 (making me loose about 30mins-1hr of ez gathering time on task 2). I feel that should be looked into so that a task going from 0-4 will not pop/run at all once it hits 4 ez time.

Edit: I've also tried 0-3 ez time for task 1 and then 4-7 for task 2, but then it's just sit there at task 1 for a full ez hr from 3-4 and then at 4 it'll start task 2 and then will just sit another ez 1hr till task 3 is good to go.

i have a feeling it has something to do with the below code (pulled from ffxiv_task_gather), i'll probably take a shot at fixing it tomorrow sometime.

Code:
if (IsNull(currentTask.eorzeaminhour,-1) ~= -1 and IsNull(currentTask.eorzeamaxhour,-1) ~= -1) then
    local validHour = false
    local i = currentTask.eorzeaminhour
    while (i ~= currentTask.eorzeamaxhour) do
        if (i == eHour or (i == precedingHour and eMinute >= 45)) then
            validHour = true
            i = currentTask.eorzeamaxhour
        else
            i = AddHours(i,1)
        end
    end
    
    if (not validHour) then
        gd("[GatherNextTask]: We are not in a valid time window for this task, invalidate.",3)
        invalid = true
    end
end
Reply
 


Messages In This Thread
The code block that deals with erozea time needs fixing - by kidz14 - 10-14-2019, 02:24 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)

We help you win the game.

FFXIV Bot and More.

 

Products