Thermal Solar Power (Shadow Fix) deprecated


Fork of Thermal Solar Power by MarximusMaximus. Adds missing shadows to thermal solar panels. This mod will be removed if merged into the original version.

Content
1 year, 12 days ago
1.1
282
Power

b [Mod Conflict] Mod makes other mod fail to load [ADDRESSED]

1 year, 12 days ago

https://mods.factorio.com/mod/SE_faster_caster

模组加载错误
模组加载失败:SE_faster_caster/data-final-fixes.lua:26: attempt to perform arithmetic on field 'result_count' (a nil valu
stack traceback:
SE_faster_caster/data-final-fixes lua:26: in main chunk
下列模组需禁用:
·SE_faster_caster (1.0.4)

1 year, 12 days ago

Hi, I have confirmed that this error indeed occurs with at least version 1.1.1 and 1.1.2 of this mod when SE and that tweak mod is installed. I will look into it.

1 year, 12 days ago
(updated 1 year, 11 days ago)

Okay. It would seem that the SE tweak mod is using unreliable/too broad criteria for narrowing down which recipes to change the ingredient and result amount of. It searches the entire recipe database for any recipe with the string "molten" in their name, and that criterium accidentally applies to several recipes within the TSP mod. So in the first place, the SE tweak mod attempts to change recipes that it shouldn't. As for the error message, the mod further tries to change a property called result_amount [EDIT: result_count (my bad)], but this does not exist within the code for these particular mod recipes. Instead TSP uses either the property result with the amount of 1 merely implied by default, or results which contains its own set of properties, type, name and amount. You can read about the alternative methods here.

So the problem doesn't really lie with this mod (TSP). It is the SE tweak mod which has to refine its criteria and error checks so it doesn't apply changes to the wrong recipes, or fails to load when it doesn't find the expected property for those recipes. The error message is kind of besides the point in this case.

Hope this helps.

1 year, 11 days ago

Oh,thanks!

1 year, 11 days ago

No problem! 👍 (By the way, I wrote something wrong, I meant result_count. I also fixed my answer above).

New response