Page 1 of 1

[0.12.2][Twinsen]Crash when loading campaign 4 from 0.11.22

Posted: Tue Aug 04, 2015 7:57 pm
by kimsey0
After upgrading from 0.11.22 to 0.12.2 on Windows 8.1 64-bit through the auto-updater, the game crashes when loading a save of campaign map 4 from 0.11.22.

The error message is:
Error while running the event handler: ...Data/Roaming/Factorio/temp/currently-playing/control.lua:347: attempt to index field 'attack_data' (a nil value)
This is an image that shows the error:
Image

The relevant lines from the event handler in the Lua script are the following:

Code: Select all

function handleattacks()
  global.attack_data.until_next_attack = global.attack_data.until_next_attack - 1
  (...)
end
factorio-current.log contains the following:

Code: Select all

   0.001 2015-08-04 21:06:35; Factorio 0.12.2 (Build 16229, win64)
   0.001 Operating system: Windows 8.1 
   0.001 Read data path: C:/Program Files/Factorio/data
   0.001 Write data path: C:/Users/jacob_000/AppData/Roaming/Factorio
   0.001 Binaries path: C:/Program Files/Factorio/bin
   0.035 Initialised Direct3D: Intel(R) HD Graphics 4000; driver: dlumd9.dll 9.18.7.4
   0.065 Turning off Align To V-Sync because desktop composition was detected (ie. Windows Aero).
   0.065 Graphics options: [FullScreen: false] [VSync: true] [UIScale: 100%] [MultiSampling: OFF] [Graphics quality: normal] [Video memory usage: all]
   0.125 Loading mod core 0.0.0 (data.lua)
   0.127 Loading mod base 0.12.2 (data.lua)
   0.676 Initial atlas bitmap size is 8192
   0.685 Created atlas bitmap 8192x8191
   0.686 Created atlas bitmap 8192x6946
  11.291 Info Updater.cpp:720: Downloading https://www.factorio.com/updater/get-available-versions?username=kimsey0&token=<private>&apiVersion=2
  12.594 0 packages available to download (experimental updates disabled).
  12.643 Factorio initialised
  19.341 Loading map C:/Users\jacob_000\AppData\Roaming\Factorio\saves\Forward.zip
  19.522 Info Scenario.cpp:160: Map version 0.11.22-0
  19.527 Info PrototypeMigrationList.cpp:99: Activating migration base/2015-06-01_Factorio_0.12.0.json
  19.667 Applying migration: Base Mod: 2015-07-02_Factorio_0.12.0.lua
The save file is available at this link: https://dl.dropboxusercontent.com/u/3030674/Forward.zip

I don't know how these backwards-compatibility bugs are prioritized, but it would be neato if you could continue playing old campaign saves. :)

Re: [0.12.2][Twinsen]Crash when loading campaign 4 from 0.11.22

Posted: Tue Aug 11, 2015 1:54 pm
by Twinsen
Thanks for the report and the save.

It has been fixed and you should be able to load your save game again in 0.12.4.