#987·xLua

WebGL平台下使用字节码问题

Author: pl01898759Created May 13, 2022Updated Feb 11, 2026

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里面的对应文件。但是一样是这个错误。