Page 1 of 1

[0.17.32] Basic logistic system tutorial crashes after finished loading

Posted: Thu Apr 18, 2019 10:45 pm
by promarbler
Problem occurs after loading the "Basic logistic system" tutorial from within a freeplay game. The tutorial animates its setup and displays the top-left message, then immediately displays a message about a "non-recoverable error". Obviously the tutorial is supposed to run without error.

The message:

Code: Select all

 251.834 Supending game state
 251.834 Entering tutorial: [base]logistic-system-basic
 252.561 Loading level.dat: 564571 bytes.
 252.562 Info Scenario.cpp:161: Map version 0.17.32-1
 253.144 Checksum for script ...factorio/temp/currently-playing-tutorial/control.lua: 4210631720
 253.145 Applying migration: Base Mod: 2018-08-03_Factorio_0.17.0.lua
 253.199 Applying migration: Base Mod: 2018-10-25_Factorio_0.17.0.lua
 259.553 Error MainLoop.cpp:1166: Exception at tick 758: The scenario level caused a non-recoverable error.
Please report this error to the scenario author.

Error while running event level::on_tick (ID 0)
Callable only on entities that have request slots.
stack traceback:
	...factorio/temp/currently-playing-tutorial/control.lua:145: in function 'init'
	...factorio/data/core/lualib/story.lua:66: in function 'story_update'
	...factorio/temp/currently-playing-tutorial/control.lua:590: in function <...factorio/temp/currently-playing-tutorial/control.lua:583>
stack traceback:
	[C]: in function 'set_request_slot'
	...factorio/temp/currently-playing-tutorial/control.lua:145: in function 'init'
	...factorio/data/core/lualib/story.lua:66: in function 'story_update'
	...factorio/temp/currently-playing-tutorial/control.lua:590: in function <...factorio/temp/currently-playing-tutorial/control.lua:583
 721.726 Resuming game state



Re: [0.17.32] Basic logistic system tutorial crashes after finished loading

Posted: Thu Apr 18, 2019 10:53 pm
by Klonan
I can't reproduce the problem, it loads and runs just fine for me

Do you have any mods installed? Can you provide the full log?

Re: [0.17.32] Basic logistic system tutorial crashes after finished loading

Posted: Fri Apr 19, 2019 12:51 am
by promarbler
No mods, though two incompatible ones that were active in 0.16 were checked. I unchecked them; issue persists.

I created a new world just to see if there was something save-specific, but the problem still persists.

The other tutorials load fine.

I have attached a log with my efforts.

Re: [0.17.32] Basic logistic system tutorial crashes after finished loading

Posted: Sat Apr 20, 2019 12:40 pm
by promarbler
So I tested my issue on a very fresh Factorio install and didn't trigger the problem. However, of the file differences between copies, I found two files that would recreate the issue. The files 2018-08-03_Factorio_0.17.0.lua and 2018-10-25_Factorio_0.17.0.lua, both dated late February and located in data/base/migrations, would cause the issue to appear in the fresh game copy. Removing both files resolves the issue.

Both files have the exact same content, which is as follows:

Code: Select all

for k, force in pairs (game.forces) do
  force.reset_technology_effects()
end