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

This subforum contains all the issues which we already resolved.
ljdp
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Wed Jul 01, 2015 12:33 am
Contact:

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

Post 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.
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

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

Post by bobingabout »

player.character = nil doesn't sound like a good idea to me.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14268
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14268
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

Thanks for the report. This is now fixed for 0.12.1.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”