文章编辑人员:雪舞
内容测试时间:2023-2-4 20:09:37
测试环境:LUA天龙
测试版本:仿官 彻底符
客户端报错提示:
例如:
pos1,pos2,DunJiaShu_PosZ[1],DunJiaShu_PosX[1],DunJiaShu_PosZ[2],DunJiaShu_PosX[2],DunJiaShu_PosZ[3],DunJiaShu_PosX[3],DunJiaShu_PosZ[4],DunJiaShu_PosX[4],DunJiaShu_PosZ[5],DunJiaShu_PosX[5],DunJiaShu_PosZ[6],DunJiaShu_PosX[6],DunJiaShu_PosZ[7],DunJiaShu_PosX[7],DunJiaShu_PosZ[8],DunJiaShu_PosX[8],DunJiaShu_PosZ[9],DunJiaShu_PosX[9],DunJiaShu_PosZ[10],DunJiaShu_PosX[10],DunJiaShu_PosZ[11],DunJiaShu_PosX[11],DunJiaShu_PosZ[12],DunJiaShu_PosX[12] = string.find(g_mydinghunstring,string.rep("(%d%d%d)",24))
24个变量是不会报错的,当超过32个的时候就会爆这个错误。解决方法将他拆分多段
引用一个帖子的内容:
https://stackoverflow.com/questi ... captures-how-fix-it
I think the error is self-explanatory: you have too many captures in your pattern (those groups that are wrapped into parentheses). The default value is 32. You have a couple of options: (1) recompile your Lua version to use a large number (you'll have to modify LUA_MAXCAPTURES value), but keep in mind that this limit is there for a reason and (2) change your pattern to avoid this many captures (possibly splitting into smaller fragments/patterns). You may also consider using more powerful parsers, like LPEG.
|