xLua icon indicating copy to clipboard operation
xLua copied to clipboard

WebGL平台下使用字节码问题

Open pl01898759 opened this issue 3 years ago • 1 comments

https://github.com/Tencent/xLua/blob/master/Assets/XLua/Doc/compatible_bytecode.md,我字节码生成按照这个逻辑去生成的,但是webgl发布出来运行的时候,提示 format mismatch in precompiled chunk。直接用原lua文件没问题,字节码的就出错了。

有尝试把WebGLPlugins里面的ldump.c lundump.c lundump.h替换成build/lua5.3.5里面的对应文件。但是一样是这个错误。

pl01898759 avatar May 13 '22 12:05 pl01898759

解决了,Unity的Library删掉重新生成再导出可以了。有点坑。。。。。顺便说下,ldump.c lundump.c lundump.h这几个我直接写死了DLUAC_COMPATIBLE_FORMAT对应的内容。应该没啥问题吧。

pl01898759 avatar May 13 '22 14:05 pl01898759