daemitus / SomethingNeedDoing

91 stars 64 forks source link

lua script loop crashing game #137

Open Palmtree64 opened 1 month ago

Palmtree64 commented 1 month ago

Issue

Game crashing while running lua script in pcraft

Macro description

I have this script that makes gathering those nodes that have the items always in a random slot easier.. It basically waits for the gathering window to pop up, down-arrows/numpad2s (cycling back to top after hitting bottom) until it is hovering over something that pops a tooltip, then clicks enter once and waits (for pandora to finish gathering the item). After the long wait that gives the gathering enough time to gather, it just jumps back to the beginning waiting for the next time you're at a gathering node

Macro

while true do
  if IsAddonReady("Gathering") then
    yield('/send NUMPAD2 <wait.1>')
    if IsAddonVisible("Tooltip") then
        yield('/send NUMPAD0 <wait.1>')
        yield('/wait 30')
        end
  end
end

Files

crash.log dmp_file_analyze.txt

Palmtree64 commented 1 month ago

Please let me know if anything more is needed!