Fahrenheit Unit Converter

by Saienai

Converts all known (and several unknown) temperature units to Fahrenheit. For all the freedom lovers out there.

Tweaks
10 months ago
2.0
110

b Incompatibility with Paracelsin

18 days ago

The minimum temperature limit causes an incompatibility with the mod Paracelsin. Paracelsin is a modded planet that has a resource that has a temp of 30, which is below the mod's minimum 59.
Error: https://i.imgur.com/6SbNiiZ.png
Mod: https://mods.factorio.com/mod/Paracelsin

18 days ago
(updated 18 days ago)

This is going to be a generic problem, paracelsin uses that value as a gameplay feature.

Things that can be checked for values outside the bounds you want to use. resource mineable results:
https://github.com/AndreusAxolotl/Paracelsin/blob/5080468da714acd5b4be55aa66e81d9165a167b3/prototypes/resources.lua#L187-L212
A generator's required minimum and maximum temperature.
https://github.com/AndreusAxolotl/Paracelsin/blob/5080468da714acd5b4be55aa66e81d9165a167b3/prototypes/machines.lua#L559-L586

I'd recommend just adjusting to these on your side, and not touching them because you will cause issues.

18 days ago
(updated 18 days ago)

This is going to be a generic problem, paracelsin uses that value as a gameplay feature.

Things that can be checked for values outside the bounds you want to use. resource mineable results:
https://github.com/AndreusAxolotl/Paracelsin/blob/5080468da714acd5b4be55aa66e81d9165a167b3/prototypes/resources.lua#L187-L212
A generator's required minimum and maximum temperature.
https://github.com/AndreusAxolotl/Paracelsin/blob/5080468da714acd5b4be55aa66e81d9165a167b3/prototypes/machines.lua#L559-L586

I'd recommend just adjusting to these on your side, and not touching them because you will cause issues.

This is objectively false for two reasons.
One: if this was a generic issue Paracelsin would have an issue on its own.
Two: I've tested that Paracelsin would work with the modlist I have if I swapped out Fahrenheit converter with it, game launches fine. There is a compatibility issue with Paracelsin and Fahrenheit and it looks like Fahrenheit has a temperature range that Paracelsin is below.

I've even taken the liberty to test this by swapping out Fahrenheit and Paracelsin in my mod list and it not only launches, I can make a new map. To show this, I made a new map with Paracelsin without Fahrenheit, made a save, swapped it back so Fahrenheit was in and Paracelsin was out, went into the load game menu and clicked the button to sync mods with the save. This shows the mods that the save has enabled and what the current mod list needs to disable/enable to sync with the save:
https://i.imgur.com/94geKZk.jpeg
You can see Paracelsin and Paracelsin graphic is enabled in this save while Fahrenheit is disabled. It's not a Paracelsin issue with a game function, this is an issue of a mod modifying the value of that function and Paracelsin having a value outside of the range Fahrenheit sets it to.

18 days ago
(updated 18 days ago)

Only thing I did is point out why that value matters (the exact function that it performs), and you tried to deny it. xD

This may also be a balance patch, I'd have to check if it makes turbines produce more power by increasing the temperatures. (efficiencies need to be updated to match)

The bug is in data-final-fixes.lua line 84 to be exact. For some reason the mod uses mineable_properties instead of the mineable field that is in the docs. I don't see a field named like that in the latest and the first prototype docs for 2.0. (nor for 1.0)

The code is not even bad, just bugged. I did not see the full reason, but I'm still right.

17 days ago

It read as the issue was with Paracelsin to me when it was late and I was tired. I can see what you're saying now but it took a minute to figure out what you meant. Though I'm not sure what you meant by the last sentence of "I'd recommend just adjusting on your side, and not touching them because you will cause issues"

Regardless, I can confirm at least that your fix version does work. Thanks for helping :)

17 days ago
(updated 17 days ago)

It read as the issue was with Paracelsin to me when it was late and I was tired. I can see what you're saying now but it took a minute to figure out what you meant. Though I'm not sure what you meant by the last sentence of "I'd recommend just adjusting on your side, and not touching them because you will cause issues"

Regardless, I can confirm at least that your fix version does work. Thanks for helping :)

In general what I meant is that touching values like this is risky. But, after examining this mod's code it does a solid job at ensuring that things do end up working, and was only missing one thing that Paracelsin was explicitly using. Still a bug on this side, but not as big as it looked like.

Do check, because vulcanus steam may have been the wrong temperature all along and the turbines just did not care.

I have a pet peeve for this because I saw this exact kind of bug coming up for modded carbon dioxide for the third time. xD

17 days ago

Fair nuff! I'll let ya know if if that's a thing on Vulcanus. Thanks :)

17 days ago

Fair nuff! I'll let ya know if if that's a thing on Vulcanus. Thanks :)

If it was ever a thing, then the other version fixed it. That would have been caused by the same issue, as vulcanus vents are the same as the ones on paracelsin, outputting fluid with a custom temperature. (: Just so happens that turbines don't care that much about the steam temp they get.

New response