You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.
I load the game and press my bomb hotkey (in the lobby, not that it should matter), and necrolua.exe crashes:
c_Player::p_UseBomb
[←[33mNecroLuaAPI.dll←[0m][←[32mLua←[0m] nl_luainit.lua:424: nl_get :: cast("c_Familiar*", 11)
mods\0luatest\lua\init.lua:5: 'struct c_Familiar' has no member named 'm_GetRandomEnemy'
stack traceback:
mods\0luatest\lua\init.lua:5: in function <mods\0luatest\lua\init.lua:1>
[C]: in function 'xpcall'
nl_luainit.lua:451: in function <nl_luainit.lua:450>
[←[33mNecroLuaAPI.dll←[0m] nl_payload.c:150: Mod API finalized.
[NecroLua.exe] nl_launcher.c: 58: Done with exit code 0x00000001
Note in particular: 'struct c_Familiar' has no member named 'm_GetRandomEnemy'. This is strange; did necrolua.get("c_Enemy") return a c_Familiar instead of a c_Enemy?
Changing necrolua.get("c_Enemy") to necrolua.get("c_Player") results in the exact same error (still c_Familiar)
The text was updated successfully, but these errors were encountered:
Oh, this is strange; I left the hook alone but added a necrolua.enumsymbols call earlier in the program, and now instead of complaining about c_Familiar, the program is complaining about c_XMLNode:
This lists 145 c_Enemy* symbols on startup. I press my bomb hotkey, and necrolua.exe crashes:
c_Player::p_UseBomb
[←[33mNecroLuaAPI.dll←[0m][←[32mLua←[0m] nl_luainit.lua:424: nl_get :: cast("c_XMLNode*", 11)
mods\0luatest\lua\init.lua:18: 'struct c_XMLNode' has no member named 'm_GetRandomEnemy'
stack traceback:
mods\0luatest\lua\init.lua:18: in function <mods\0luatest\lua\init.lua:14>
[C]: in function 'xpcall'
nl_luainit.lua:451: in function <nl_luainit.lua:450>
[←[33mNecroLuaAPI.dll←[0m] nl_payload.c:150: Mod API finalized.
[NecroLua.exe] nl_launcher.c: 58: Done with exit code 0x00000001
Here's the full text of my mod:
I load the game and press my bomb hotkey (in the lobby, not that it should matter), and necrolua.exe crashes:
Note in particular:
'struct c_Familiar' has no member named 'm_GetRandomEnemy'
. This is strange; didnecrolua.get("c_Enemy")
return a c_Familiar instead of a c_Enemy?Changing
necrolua.get("c_Enemy")
tonecrolua.get("c_Player")
results in the exact same error (stillc_Familiar
)The text was updated successfully, but these errors were encountered: