[Rseding91] [0.17.72] Crash when writing tree_stage_index

This subforum contains all the issues which we already resolved.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

[Rseding91] [0.17.72] Crash when writing tree_stage_index

Post by eradicator »

Code: Select all

/c game.player.surface.create_entity{name='dead-grey-trunk',position={0,0}}.tree_stage_index = 1
Crashes for the following trees:

'dead-grey-trunk'
'dead-dry-hairy-tree'
'dead-tree-desert'
'dry-hairy-tree'
'dry-tree'
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

gabberworld
Long Handed Inserter
Long Handed Inserter
Posts: 70
Joined: Sat Aug 17, 2019 11:06 pm
Contact:

Re: [0.17.72] Crash when writing tree_stage_index

Post by gabberworld »

in code i usually myself never use that may subtree , but instead i check if function , nil or not

as never knows when memory corruption may happen.

but guess its normal in most cases for use this way

User avatar
MasterBuilder
Filter Inserter
Filter Inserter
Posts: 353
Joined: Sun Nov 23, 2014 1:22 am
Contact:

Re: [0.17.72] Crash when writing tree_stage_index

Post by MasterBuilder »

Seems to be a double post. It's twin is here in "Resolved for the next release".
Or maybe reading/writing were deliberately different, but it seems like this could be easily combined into a single bug report.
Give a man fire and he'll be warm for a day. Set a man on fire and he'll be warm for the rest of his life.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [0.17.72] Crash when writing tree_stage_index

Post by eradicator »

Not duplicate.
MasterBuilder wrote:
Wed Oct 23, 2019 7:01 pm
Or maybe reading/writing were deliberately different, but it seems like this could be easily combined into a single bug report.
The other one is for tree_stage_index_max, this one is for tree_stage_index. Yes, i deliberately made them different.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Rseding91
Factorio Staff
Factorio Staff
Posts: 14114
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding91] [0.17.72] Crash when writing tree_stage_index

Post by Rseding91 »

Thanks for the report. This is also fixed for the next version of 0.17.
If you want to get ahold of me I'm almost always on Discord.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [Rseding91] [0.17.72] Crash when writing tree_stage_index

Post by eradicator »

Great and fast work as always ;).
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Post Reply

Return to “Resolved Problems and Bugs”