daemitus / SomethingNeedDoing

85 stars 58 forks source link

Unable to use Lua #132

Open ONBBss opened 1 year ago

ONBBss commented 1 year ago

sorry to bother you, No matter how I set up Lua, it says "[SND]Peon has died unexpectedly." Even though I used this halfway through crafting:

if (IsCrafting()) then
yield('/echo Yes')
else
yield('/echo NO')
end

Is there anything wrong with this?

daemitus commented 1 year ago

gonna need the logs from /xldata

On Sun, Jun 4, 2023 at 12:12 PM ONBBss @.***> wrote:

sorry to bother you, No matter how I set up Lua, it says "[SND]Peon has died unexpectedly." Even though I used this halfway through crafting:

if (IsCrafting()) then yield('/echo Yes') else yield('/echo NO') end

Is there anything wrong with this?

— Reply to this email directly, view it on GitHub https://github.com/daemitus/SomethingNeedDoing/issues/132, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFMTBBO37I3PJTGI3WN5LLXJSXXNANCNFSM6AAAAAAY2BA2JM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ONBBss commented 1 year ago

I am a Chinese player, the Chinese meaning at the end of the second line is "Trying to load program with an incorrect format" My game and dalamud are both in the M:\ directory, is this the reason?

2023-06-05 18:42:45.973 +08:00 [ERR] [SomethingNeedDoing] Unhandled exception occurred
System.BadImageFormatException: Could not load file or assembly 'KeraLua, Version=1.3.1.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217'. 试图加载格式不正确的程序。
File name: 'KeraLua, Version=1.3.1.0, Culture=neutral, PublicKeyToken=6a194c04b9c89217' ---> System.BadImageFormatException: Bad IL format.
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromStream(IntPtr ptrNativeAssemblyBinder, IntPtr ptrAssemblyArray, Int32 iAssemblyArrayLen, IntPtr ptrSymbols, Int32 iSymbolArrayLen, ObjectHandleOnStack retAssembly)
   at System.Runtime.Loader.AssemblyLoadContext.InternalLoad(ReadOnlySpan`1 arrAssembly, ReadOnlySpan`1 arrSymbols)
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromStream(Stream assembly, Stream assemblySymbols)
   at Dalamud.Plugin.Internal.Loader.ManagedLoadContext.LoadAssemblyFromFilePath(String path)
   at Dalamud.Plugin.Internal.Loader.ManagedLoadContext.Load(AssemblyName assemblyName)
   at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad(AssemblyName assemblyName)
   at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
   at SomethingNeedDoing.Misc.ActiveMacro.InitLuaScript()
   at SomethingNeedDoing.Misc.ActiveMacro.GetCurrentStep() in D:\a\SomethingNeedDoing\SomethingNeedDoing\SomethingNeedDoing\Misc\CommandInterface.cs:line 120
   at SomethingNeedDoing.Managers.MacroManager.ProcessMacro(ActiveMacro macro, CancellationToken token, Int32 attempt) in D:\a\SomethingNeedDoing\SomethingNeedDoing\SomethingNeedDoing\Grammar\Modifiers\EchoModifier.cs:line 10
   at SomethingNeedDoing.Managers.MacroManager.EventLoop() in D:\a\SomethingNeedDoing\SomethingNeedDoing\SomethingNeedDoing\Grammar\Modifiers\EchoModifier.cs:line 20

gonna need the logs from /xldata On Sun, Jun 4, 2023 at 12:12 PM ONBBss @.> wrote: sorry to bother you, No matter how I set up Lua, it says "[SND]Peon has died unexpectedly." Even though I used this halfway through crafting: if (IsCrafting()) then yield('/echo Yes') else yield('/echo NO') end Is there anything wrong with this? — Reply to this email directly, view it on GitHub <#132>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFMTBBO37I3PJTGI3WN5LLXJSXXNANCNFSM6AAAAAAY2BA2JM . You are receiving this because you are subscribed to this thread.Message ID: @.>