Script error using when loading save/launching rocket on old save game.

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
cool_balrog00
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Dec 10, 2021 2:45 pm
Contact:

Re: Script error using when loading save/launching rocket on old save game.

Post by cool_balrog00 »

Sorry about that. The original is larger than I expected and I must have submitted before it was done loading like you said.
Attachments
(Original)Industrial Punk 2.zip
(42.42 MiB) Downloaded 162 times
User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 531
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: Script error using when loading save/launching rocket on old save game.

Post by Silari »

Looks like level.datmetadata needs to be included in the list of things to not delete. Removing it makes the game complain about level.dat missing.

Clearing out the other files oddly still didn't remove the old GUI. It didn't crash anymore, but there's code that's SUPPOSED to remove the old button, but it didn't want to run. Took a bit of finagling to get it gone. Save should work fine now though.
Attachments
Fixed-Industrial Punk 2.zip
(22.13 MiB) Downloaded 128 times
cool_balrog00
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Dec 10, 2021 2:45 pm
Contact:

Re: Script error using when loading save/launching rocket on old save game.

Post by cool_balrog00 »

100% Fixed! I don't have the old GUI issue and was able to load the fixed version you uploaded. I launched a rocket without the game crashing. I've had this map for a very long time so I really appreciate your help! Thank you!
p1ncush10n
Manual Inserter
Manual Inserter
Posts: 4
Joined: Mon Oct 21, 2024 5:10 pm
Contact:

Re: Script error using when loading save/launching rocket on old save game.

Post by p1ncush10n »

Is this still a valid solution now that 2.x is out, or is there an alternate fix? I've tried and it's still bombing on startup. My map is ~260MB so I'm not sure I'll be able to upload it here for analysis.

I have an instance of 1.1.110 i can load the save from if it's just a matter of deleting some objects.

current error:

Code: Select all

The scenario level caused a non-recoverable error.
Please report this error to the scenario author.

Error while running event level::on_configuration_changed
__level__/freeplay.lua:53: attempt to index global 'global' (a nil value)
stack traceback:
	__level__/freeplay.lua:53: in function 'on_configuration_changed'
	__core__/lualib/event_handler.lua:87: in function <__core__/lualib/event_handler.lua:84>
vifir
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Oct 21, 2024 4:51 pm
Contact:

Re: Script error using when loading save/launching rocket on old save game.

Post by vifir »

Hi, I have followed instructions, but didn't work. Still getting error message below. Can you help me please?

The scenario level caused a non-recoverable error.
Please report this error to the scenario author.

Error while running event level::on_configuration_changed
__level__/freeplay.lua:220: attempt to index global 'global' (a nil value)
stack traceback:
__level__/freeplay.lua:220: in function 'on_configuration_changed'
__core__/lualib/event_handler.lua:87: in function <__core__/lualib/event_handler.lua:84>
Attachments
base.zip
(8.75 MiB) Downloaded 3 times
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5284
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Script error using when loading save/launching rocket on old save game.

Post by Klonan »

p1ncush10n wrote: Mon Oct 21, 2024 5:20 pm Is this still a valid solution now that 2.x is out, or is there an alternate fix? I've tried and it's still bombing on startup. My map is ~260MB so I'm not sure I'll be able to upload it here for analysis.
Hi the process should work for updating from 1.1 to 2.0,
Just copy the control.lua and such from the 2.0 freeplay in to the save game and overwrite the existing control lua
p1ncush10n
Manual Inserter
Manual Inserter
Posts: 4
Joined: Mon Oct 21, 2024 5:10 pm
Contact:

Re: Script error using when loading save/launching rocket on old save game.

Post by p1ncush10n »

Klonan wrote: Fri Oct 25, 2024 7:59 am Hi the process should work for updating from 1.1 to 2.0,
Just copy the control.lua and such from the 2.0 freeplay in to the save game and overwrite the existing control lua
I tried again just now with 2.0.10 and same results. I'll try to get an original copy of the map up to google drive and update later with a link.

For now here's the log. There are a number of warnings that precede the freeplay.lua message and subsequent shutdown, I'm not sure if any of those are complicating the situation.

I really appreciate the reply and all the extra time your team has been giving to help with these saves, especially on a launch week. If nothing can be done it's not the end of the world :)
Attachments
factorio-current.log
(10.64 KiB) Downloaded 5 times
p1ncush10n
Manual Inserter
Manual Inserter
Posts: 4
Joined: Mon Oct 21, 2024 5:10 pm
Contact:

Re: Script error using when loading save/launching rocket on old save game.

Post by p1ncush10n »

Google Drive link: https://drive.google.com/file/d/1ZuYdg8 ... sp=sharing

Again, thanks to you and the team!
Post Reply

Return to “Technical Help”