[0.12.31] Possible Bug - destroy_factor

Bugs that are actually features.
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1455
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

[0.12.31] Possible Bug - destroy_factor

Post by TheSAguy »

I say this is a possible bug, since I did not see anything about changes in the recent update.

So it seems that the "destroy_factor" does not work in my mod, after updating to 0.12.31.
I have it in my "data-final-fixes.lua" as follow:

Code: Select all

data.raw["map-settings"]["map-settings"]["enemy_evolution"].destroy_factor = 0.0002
I've tested this in 0.12.30 and it works, but going to 0.12.31 it has no effect and reverts to using Vanilla settings.
I've not had time to test "pollution_factor" or "time_factor".

Not sure if this has anything to do with this report I made.

Thanks.
Attachments
data-final-fixes.lua
data-final-fixes.lua
(1.14 KiB) Downloaded 64 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 15901
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.12.31] Possible Bug - destroy_factor

Post by Rseding91 »

There's a large portion of the mod file(s) missing which means I can't test this.

Can you please provide the full mod with steps you run and the expected results you're not seeing?
If you want to get ahold of me I'm almost always on Discord.
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1455
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Re: [0.12.31] Possible Bug - destroy_factor

Post by TheSAguy »

Attached.
I've tested the mod in 0.12.30 and it works as intended and in 0.12.31 it does nothing.
I only tested the "destroy_factor" section, so don't know if "pollution_factor" or "time_factor" is also affected.

I've also uploaded a "data-final-fixes.lua" file without any mod references. You can just drop that in a folder. I've changed the "destroy_factor" to 20% so you can immediately notice if it triggers.

EDIT: How I tested: I just killed a spawner. I used Test-Mode Mod and gave myself some ammo and went to the nearest spawner and killed it. The evolution factor only went up by 0.2% (Vanilla) and not 20% as I thought it should. (My NE Expansion mod is not at 20%, just set it to 20% for testing). I was messing with my code for half an hour, not knowing what was going on, since I knew it worked the night before. I then remembered the update to 12.31. I rolled back to 12.30 and it worked as intended.

Let me know if I can send anything else.
Thanks.
Attachments
data-final-fixes.lua
data-final-fixes.lua
(953 Bytes) Downloaded 62 times
Natural_Evolution_Expansion_5.2.0.zip
MOD
(8.53 KiB) Downloaded 66 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 15901
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.12.31] Possible Bug - destroy_factor

Post by Rseding91 »

I can't reproduce. The destroy_factor is properly set in 0.12.30 and 0.12.31 an the amount that increases every time I destroy a spawner is identical in both versions.

You've got some unrelated thing going on that's causing the issue.
If you want to get ahold of me I'm almost always on Discord.
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1455
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Re: [0.12.31] Possible Bug - destroy_factor

Post by TheSAguy »

Rseding91 wrote:I can't reproduce. The destroy_factor is properly set in 0.12.30 and 0.12.31 an the amount that increases every time I destroy a spawner is identical in both versions.

You've got some unrelated thing going on that's causing the issue.
Sorry I can't either now... Must have been in the wrong folder or something.
Sorry about the hassle.
Post Reply

Return to “Not a bug”