Jaksuhn / SomethingNeedDoing

51 stars 33 forks source link

I got Unexpected error. How can I fix it. #205

Open k2210000 opened 2 months ago

k2210000 commented 2 months ago

Here is the error. 23:53:47.405 | ERR | [SomethingNeedDoing] Unexpected error System.IndexOutOfRangeException: Index was outside the bounds of the array. at SomethingNeedDoing.Grammar.Commands.ClickCommand.Parse(String text) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Grammar/Commands/ClickCommand.cs:line 37 at SomethingNeedDoing.Grammar.MacroParser.ParseLine(String line) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Grammar/MacroParser.cs:line 58 at SomethingNeedDoing.Grammar.MacroParser.Parse(String macroText)+MoveNext() in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Grammar/MacroParser.cs:line 34 at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at SomethingNeedDoing.Misc.ActiveMacro..ctor(MacroNode node) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Misc/ActiveMacro.cs:line 37 at SomethingNeedDoing.Managers.MacroManager.EnqueueMacro(MacroNode node) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Managers/MacroManager.cs:line 205 at SomethingNeedDoing.Interface.MacroWindow.RunMacro(MacroNode node) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Interface/MacroWindow.cs:line 566 23:53:50.217 | ERR | [SomethingNeedDoing] Unexpected error System.IndexOutOfRangeException: Index was outside the bounds of the array. at SomethingNeedDoing.Grammar.Commands.ClickCommand.Parse(String text) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Grammar/Commands/ClickCommand.cs:line 37 at SomethingNeedDoing.Grammar.MacroParser.ParseLine(String line) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Grammar/MacroParser.cs:line 58 at SomethingNeedDoing.Grammar.MacroParser.Parse(String macroText)+MoveNext() in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Grammar/MacroParser.cs:line 34 at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at SomethingNeedDoing.Misc.ActiveMacro..ctor(MacroNode node) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Misc/ActiveMacro.cs:line 37 at SomethingNeedDoing.Managers.MacroManager.EnqueueMacro(MacroNode node) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Managers/MacroManager.cs:line 205 at SomethingNeedDoing.Interface.MacroWindow.RunMacro(MacroNode node) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Interface/MacroWindow.cs:line 566 23:53:51.132 | ERR | [SomethingNeedDoing] Unexpected error System.IndexOutOfRangeException: Index was outside the bounds of the array. at SomethingNeedDoing.Grammar.Commands.ClickCommand.Parse(String text) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Grammar/Commands/ClickCommand.cs:line 37 at SomethingNeedDoing.Grammar.MacroParser.ParseLine(String line) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Grammar/MacroParser.cs:line 58 at SomethingNeedDoing.Grammar.MacroParser.Parse(String macroText)+MoveNext() in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Grammar/MacroParser.cs:line 34 at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at SomethingNeedDoing.Misc.ActiveMacro..ctor(MacroNode node) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Misc/ActiveMacro.cs:line 37 at SomethingNeedDoing.Managers.MacroManager.EnqueueMacro(MacroNode node) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Managers/MacroManager.cs:line 205 at SomethingNeedDoing.Interface.MacroWindow.RunMacro(MacroNode node) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Interface/MacroWindow.cs:line 566 23:54:21.661 | ERR | [SomethingNeedDoing] Unexpected error System.IndexOutOfRangeException: Index was outside the bounds of the array. at SomethingNeedDoing.Grammar.Commands.ClickCommand.Parse(String text) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Grammar/Commands/ClickCommand.cs:line 37 at SomethingNeedDoing.Grammar.MacroParser.ParseLine(String line) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Grammar/MacroParser.cs:line 58 at SomethingNeedDoing.Grammar.MacroParser.Parse(String macroText)+MoveNext() in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Grammar/MacroParser.cs:line 34 at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at SomethingNeedDoing.Misc.ActiveMacro..ctor(MacroNode node) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Misc/ActiveMacro.cs:line 37 at SomethingNeedDoing.Managers.MacroManager.EnqueueMacro(MacroNode node) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Managers/MacroManager.cs:line 205 at SomethingNeedDoing.Interface.MacroWindow.RunMacro(MacroNode node) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Interface/MacroWindow.cs:line 566 23:54:22.297 | ERR | [SomethingNeedDoing] Unexpected error System.IndexOutOfRangeException: Index was outside the bounds of the array. at SomethingNeedDoing.Grammar.Commands.ClickCommand.Parse(String text) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Grammar/Commands/ClickCommand.cs:line 37 at SomethingNeedDoing.Grammar.MacroParser.ParseLine(String line) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Grammar/MacroParser.cs:line 58 at SomethingNeedDoing.Grammar.MacroParser.Parse(String macroText)+MoveNext() in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Grammar/MacroParser.cs:line 34 at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at SomethingNeedDoing.Misc.ActiveMacro..ctor(MacroNode node) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Misc/ActiveMacro.cs:line 37 at SomethingNeedDoing.Managers.MacroManager.EnqueueMacro(MacroNode node) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Managers/MacroManager.cs:line 205 at SomethingNeedDoing.Interface.MacroWindow.RunMacro(MacroNode node) in /home/runner/work/SomethingNeedDoing/SomethingNeedDoing/SomethingNeedDoing/Interface/MacroWindow.cs:line 566

My macro is

/target グリッグ /send Numpad0 /waitaddon JournalDetail /click journal_detail_accept /wait 1 /send Escape /click select_string4 /wait 1 /target アルダイルン /wait 0.5 /send Numpad0 /wait 1 /send Numpad0 /wait 3 /loop 19

McVaxius commented 1 month ago

can i suggest you write this in lua its almost the exact same thing but wrap all commands in yield("zzzzz") and use /interact instead of /send Numpad0