Error while loading entity prototype "bob-artifact-radar" (radar): Value (-1) outside of range. The data type allows values from 0 to 18446744073709551615 in property tree at ROOT.radar.bob-artifact-radar.max_distance_of_sector_revealed
Modifications: Bob's Enemies mod › Inverted Quality
The bobenemies mod issues an out-of-range error
the solution is to add a line
if new_value<0 then new_value=0 end
To this file
Inverted-Quality_0.5.7\Inverted-Quality_0.5.7\prototypes\override-final\negative-quality.lua
To make it look like this
local function apply_modifier(value, modifier)
if modifier.unit then
return undo_quality_effects_on_physical_value(value, modifier)
else
local new_value
if modifier.relative then
new_value = value / (1 + modifier.relative * QUALITY_LEVELS_TO_UNDO)
if modifier.floor then
-- Inverted floor is ceil
new_value = math.ceil(new_value)
end
elseif modifier.absolute then
new_value = value - (modifier.absolute * QUALITY_LEVELS_TO_UNDO)
if new_value<0 then new_value=0 end
else
return value
end
if modifier.bonus then
new_value = new_value + modifier.bonus
end
if modifier.lower_bound then
return math.max(new_value, modifier.lower_bound)
end
return new_value
end
end