Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use Lua #132

Open
ONBBss opened this issue Jun 4, 2023 · 2 comments
Open

Unable to use Lua #132

ONBBss opened this issue Jun 4, 2023 · 2 comments

Comments

@ONBBss
Copy link

ONBBss commented Jun 4, 2023

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
Copy link
Owner

daemitus commented Jun 4, 2023 via email

@ONBBss
Copy link
Author

ONBBss commented Jun 5, 2023

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: @.>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants