#tweakdefs issue when making a game

1 messages · Page 1 of 1 (latest)

glacial oar
#

The tweakdefs I have been using for like a year seem to be no longer functioning. Seems to be registering, but looks like something has changed.

#

Double checked that the custom paramaters are still correct and those seems to have stayed the same.

for name, ud in pairs(UnitDefs) do
if ud.customparams.energyconv_capacity then
ud.customparams.energyconv_capacity = math.round(ud.customparams.energyconv_capacity * 5)
end

if ud.metalstorage then
ud.metalstorage = math.round(ud.metalstorage * 2)
end

if ud.energystorage then
ud.energystorage = math.round(ud.energystorage * 2)
end
end