Page 1 of 1

[2.0.11] Trying to port saves to 2.0

Posted: Mon Jul 21, 2025 11:47 am
by sw0924
After I changed the content of control.lua according to the instructions, a new issue occurred when loading. I also tried replacing "global" with "storage", but the issue remained the same, as shown in the following image

Code: Select all

Error while running event level::on_configuration_changed
__level__/control.lua:40: attempt to index global 'global' (a nil value)
stack traceback:
 __level__/control.lua:40: in function <__level__/control.lua:39>
stuff
Thanks a lot

Re: [2.0.11] Trying to port saves to 2.0

Posted: Mon Jul 21, 2025 12:03 pm
by Loewchen
This is impossible to understand without the context of your other post, either you stick to the comment in the other topic or you need to start from the beginning. So explain exactly what you want to do, what you did so far and post your original save file.

Re: [2.0.11] Trying to port saves to 2.0

Posted: Mon Jul 21, 2025 5:14 pm
by sw0924
加载我的沙盒自定义存档时最开始出现的错误提示是

Code: Select all

Error while running event level::on_configuration_changed
__level__/control.lua:40: attempt to index global 'global' (a nil value)
stack traceback:
 __level__/control.lua:40: in function <__level__/control.lua:39>
于是我找了相关的帖子和回复,首先我将新版本所保存下来的存档中的control.lua替换了我需要加载的旧存档,并且根据提示内容及提出解决办法的帖子内容将"global" 全部换成了 "storage",最后重新压缩了存档,放到存档目录下,进入游戏重新加载存档时提示level.dat not found,但是我查看我的存档压缩包,该文件是存在的,于是我不知道如何解决了,在这里发表求助,非常抱歉我使用中文,因为我的英文很差,不能表达清楚,不好意思,再次感谢各位专家。
附件是我自定义存档

Re: [2.0.11] Trying to port saves to 2.0

Posted: Mon Jul 21, 2025 5:17 pm
by sw0924
附件

Re: [2.0.11] Trying to port saves to 2.0

Posted: Mon Jul 21, 2025 10:51 pm
by Loewchen
Loads fine after replacing the file contents as instructed.

Re: [2.0.11] Trying to port saves to 2.0

Posted: Tue Jul 22, 2025 4:21 pm
by sw0924
非常感谢,太厉害了,我称你为宇宙级别的专家人才,该存档真的运行起来了,如果有机会真想当面感谢你!!!!