-
Notifications
You must be signed in to change notification settings - Fork 349
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
有userdata的时候会崩游戏 #64
Comments
ud崩溃就我所知有两种可能性
|
我调试的游戏貌似是自己写的ud结构(游戏开发商自己写的引擎),所以我也不太清楚细节。。一般UD里面有一些数组什么的,需要用#调用长度然后遍历,有几个数据是固定长度的数组所以连#也没有,好像没有实现遍历器。 |
如果游戏会直接崩溃的话对应了第一个问题 如果是是报lua error 错误但游戏没有崩溃,就按第二个问题的方案操作试下。 |
关于2.其他情况,我这里有个临时的解决方案:修改__pairs遍历ud这一部分,修改如下: |
为了避免这种问题, 3.2.0 版本开始,LuaPanda.lua 加入了 |
就是如果scope里面如果存在userdata的话,在断点下来之后游戏就会马上崩
希望可以有方法注入userdata的自定义解析函数
The text was updated successfully, but these errors were encountered: