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

运行时初始化提示attempt to index a nil value #626

Open
L93DC opened this issue Dec 17, 2024 · 3 comments
Open

运行时初始化提示attempt to index a nil value #626

L93DC opened this issue Dec 17, 2024 · 3 comments

Comments

@L93DC
Copy link

L93DC commented Dec 17, 2024

image

错误代码
Slua: Error: [string "[sluacode]"]:12: attempt to index a nil value (local 'base')
stack traceback:
[string "[sluacode]"]:12: in function 'Class'
(...tail calls...)
[C]: in function 'require'
I:/UE/UE4.26/SLua_UnrealUse/Content/Lua/InGameManager.lua:55: in main chunk
[C]: in function 'require'

image
image
image

@L93DC
Copy link
Author

L93DC commented Dec 17, 2024

使用UE4.26官方版本

@jtj8412
Copy link

jtj8412 commented Jan 17, 2025

slua_unreal\Source\slua_unreal\Public\LuaCalss.inl

classImplement.__super_impl = base.__inner_impl
-> classImplement.__super_impl = base and base.__inner_impl

@zjhongxian
Copy link
Collaborator

zjhongxian commented Jan 22, 2025

https://github.com/zjhongxian/sluaunreal
先用这个分支的,年后我再merge一波

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

3 participants