The neighbor bonus for Thermal Solar Collectors does not appear to be calculated at all in Factorio 2.1.23.
Based on my investigation, this seems to be related to a change in how Factorio 2.1 handles the relevant calculation. The required declaration or configuration appears to be missing or no longer compatible with the updated behavior.
Factorio Version:2.1.23
Mod: Nullius 2.1.2
Expected Behavior
Thermal Solar Collectors should correctly calculate and apply their neighbor bonus when placed next to each other.
Actual Behavior
The neighbor bonus is not calculated at all, meaning that adjacent Thermal Solar Collectors do not receive the intended bonus.
Proposed Fix
I investigated the issue and, with the assistance of ClaudeIA, identified a possible fix by adding a declaration to the relevant code.
I tested the change in a separate test world and confirmed that the neighbor bonus works correctly for all three tiers of Thermal Solar Collectors.
AI assistance disclosure: ClaudeIA was used to assist in developing the proposed fix. I tested the resulting code in-game and verified that the neighbor bonus functions as expected for all three collector tiers in my test environment.
Here is the proposed code change:
solar_thermal.lua
neighbour_bonus = 0.1,
neighbour_connectable = {
connections = {
{
location = {position = {2.5, 0}, direction = defines.direction.east},
category = "nullius-solar-collector",
neighbour_category = {"nullius-solar-collector"}
},
{
location = {position = {-2.5, 0}, direction = defines.direction.west},
category = "nullius-solar-collector",
neighbour_category = {"nullius-solar-collector"}
},
{
location = {position = {0, 2}, direction = defines.direction.south},
category = "nullius-solar-collector",
neighbour_category = {"nullius-solar-collector"}
},
{
location = {position = {0, -2}, direction = defines.direction.north},
category = "nullius-solar-collector",
neighbour_category = {"nullius-solar-collector"}
}
}
},
The fix successfully restored the neighbor bonus functionality in my testing environment. I hope this helps resolve the issue in Factorio 2.1.