Page 1 of 1

[0.12.0] [Rseding91] Changing player character while crafting crash.

Posted: Fri Jul 17, 2015 10:34 pm
by ljdp
Factorio version: 0.12.0
How to reproduce: Change the player character (via the lua API) while the current character is crafting. I.e:

Code: Select all

local old_character = player.character
player.character = nil
Log file:
Log File
Note, this can be fixed by asserting

Code: Select all

player.crafting_queue_size == 0
However I assume this is not intended behaviour.

Re: [0.12.0] Changing player character while crafting crash.

Posted: Mon Jul 20, 2015 2:16 pm
by bobingabout
player.character = nil doesn't sound like a good idea to me.

Re: [0.12.0] Changing player character while crafting crash.

Posted: Mon Jul 20, 2015 5:29 pm
by Rseding91
bobingabout wrote:player.character = nil doesn't sound like a good idea to me.
That's actually supported and detaches the controller from the character (switches to god mode).

I'll look into the crash and work on getting it fixed.

Re: [0.12.0] [Rseding91] Changing player character while crafting crash.

Posted: Tue Jul 21, 2015 3:23 am
by Rseding91
Thanks for the report. This is now fixed for 0.12.1.