UPS-up deprecated


Increases performance of the game and reduces save-file size

Tweaks
7 years ago
0.14 - 0.15.24
168

g Bug in version 0.1.6

8 years ago

Game startup fails with error "UPS-up__/data-final-fixes.lua:85: attempt to compare number with string"
Game with same mods and older UPS-up version(0.1.4) works fine

8 years ago

This is probably a compatibility problem with the other mods you are running, may you post me the complete list of those?

8 years ago

Yes, probably, but it fails only after update. I'm using a huge list of mods:

Additional-Turret_0.0.18.zip
add-loader_0.0.8.zip
Advanced-Tanks_0.1.2.zip
Aircraft_1.1.4.zip
Artillery_1.2.0.zip
autofill_1.4.5.zip
Avatars_0.4.2.zip
Beyond_0.2.0.zip
BigBags_1.0.19.zip
BioTech_0.1.8.zip
BioTech-Extended_0.1.1.zip
BlackMarket_1.0.31.zip
blueprint-string_4.0.0.zip
bobassembly_0.14.0.zip
bobelectronics_0.14.0.zip
bobenemies_0.14.0.zip
boblibrary_0.14.3.zip
boblogistics_0.14.4.zip
bobmining_0.14.0.zip
bobores_0.14.0.zip
bobplates_0.14.0.zip
bobpower_0.14.0.zip
bobtech_0.14.0.zip
bobwarfare_0.14.2.zip
Combat_Units_0.1.4.zip
electric-vehicles_0.3.5.zip
electric-vehicles-lib_0.2.8.zip
EMP Biters_1.0.7.zip
Equalizer_Chests_1.3.0.zip
Explosive Excavation_1.1.0.zip
FactorioExtended-Core_0.2.3.zip
FactorioExtended-Equipment_0.2.3.zip
FactorioExtended-Logistics_0.2.3.zip
FactorioExtended-Machines_0.2.3.zip
FactorioExtended-Power_0.2.3.zip
FactorioExtended-Transport_0.2.3.zip
FactorioExtended-Weaponry_0.2.3.zip
factorio-reach_2.1.1.zip
Factorissimo_0.2.0.zip
faster-flame_0.1.0.zip
flamenades_0.14.2.zip
Flare_14.0.3.zip
Flow Control_2.1.2.zip
FusionRobots_0.0.3.zip
gimprovements_0.4.4.zip
Grid_0.0.1.zip
IncendiaryMunitions_0.2.0.zip
InterfaceChest_1.14.2.zip
Larger stack Size_0.14.0.zip
LateUpgrades_0.2.0.zip
MeteMinigun_0.14.0.zip
MetePlasmaClip_0.14.0.zip
MetePlasmaDefense_0.14.0.zip
MeteRocketry_0.14.0.zip
MeteVehicles_0.14.0.zip
military-extended_1.0.7.zip
mini-machines_2.0.3.zip
mocombat_0.6.21.zip
mopower_0.5.21.zip
Natural_Evolution_Buildings_6.4.0.zip
NaturalTreeExpansion_0.2.0.zip
NPUtils_0.1.12.zip
Nucular_1.0.4.zip
Omnibarrels_1.1.3.zip
Orbital Ion Cannon_1.4.5.zip
Power Armor MK3_0.0.4.zip
PredictabowlEnemies_0.0.2.zip
PredictabowlVehicles_0.2.1.zip
PredictabowlWarfare_0.1.3.zip
Rampant_0.14.7.zip
Raven_0.0.4.zip
replicators_1.1.2.zip
reverse-factory_3.2.0.zip
Side Inserters_2.2.2.zip
SpaceBook_1.0.23.zip
Squeak Through_1.1.5.zip
tanks_for_bob_1.5.2.zip
tankwerkz_2.0.1.zip
Teleportation_0.14.9.zip
Tesla_Turret_0.14.1.zip
TimeTools_1.0.26.zip
undecorator_1.0.3.zip
UPS-up_0.1.4.zip
UraniumPower_0.6.5.zip
UsefulRocketLauncher_1.0.1.zip
vwtransporter_0.1.0.zip
yi_engines_0.4.19.zip
Yuoki_0.4.61.zip

8 years ago
(updated 8 years ago)

holy shit, thats gonna be some testing work... Are you the official mod compatibility tester :D ? The bug is new because i tried to fix a compatibility problem with another mod that was reported. Seems like I only shifted the problem :D

8 years ago

The issue was caused by "tanks_for_bob". There was a typo ("5" instead of 5) in a file. I added a workaround for UPS-up 0.1.7 to fix this issue from my side, but also reported the bug to the causing "tanks_for_bob".

8 years ago

No, i'm just playing =)
I researched a bit and found issue was caused by mod tanks_for_bob_1.5.2.zip, there are energy defined as string, not number:

energy_required = "5",

So UPS-up fails with numerical comparison in data-final-fixes.lua at line 85. It can be fixed with casting energy_required to number:

if UPS_CONFIG.SAVE_UPS_ASSEMBLING_MACHINE and not UPS_CONFIG.UNINSTALL then
for key, recipe in pairs(data.raw["recipe"]) do
if recipe.energy_required then
local energy=recipe.energy_required + 0
if energy > 10 then
elseif energy > 5 then
recipe.overload_multiplier = 5
elseif energy > 2 then
recipe.overload_multiplier = 10
elseif energy > 0.4 then
recipe.overload_multiplier = 30
else
recipe.overload_multiplier = 50
end
else
recipe.overload_multiplier = 30
end
end
data.raw["recipe"]["rocket-silo"].overload_multiplier = 1
data.raw["recipe"]["satellite"].overload_multiplier = 1
end

8 years ago

Great, thank you!

New response