[15:36:48:930]LuaException: c# exception:Value was either too large or too small for an Int32.,stack: at System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) [0x0001a] in <1071a2cb0cb3433aae80a793
这个错误提示“Value was either too large or too small for an Int32”表明在尝试将一个数值解析为32位整数(Int32)时,该数值超出了Int32的有效范围(-2,147,483,648 到 2,147,483,647)。错误发生在`ModelLegoEditor.InitScrollView()`方法中调用`System.Int32.Parse`时。
从堆栈信息看,问题出现在模型乐高编辑器初始化滚动视图的过程中,具体是在解析某个字符串为整数时,该字符串代表的数字过大或过小,无法用Int32类型表示。
你需要检查传递给`ModelLegoEditor.InitScrollView()`方法的相关数据,特别是那些预期为整数字符串的字段。可能的原因包括:
1. 配置表(如`ResModelLegoInfo`、`ResModelLegoInfoBase`等)中的某些ID字段值超过了Int32范围。
2. 在编辑器工具中读取或处理这些配置表数据时,某个字段的值被错误地设置为了一个非常大的数或非数字字符串。
建议检查相关配置表的数据完整性,确保所有ID字段的值在Int32的有效范围内。