Description
Missed a reference to SupplyRocket
Windows
Steam
What is your game version?
Tito hotfix 4
Do you have Space Race installed?
Yes
Please explain your issue is in as much detail as possible.
Changing the SupplyRocket class name to RocketBase means sometimes missing a reference or two
[LUA ERROR] Mars/Lua/Buildings/RocketTrade.lua:71: attempt to call a nil value (field 'OnModifiableValueChanged')
Can you replicate the issue?
Yes
Edit:
Found two more
Missed a reference to SupplyRocket
Windows
Steam
What is your game version?
Tito hotfix 4
Do you have Space Race installed?
Yes
Please explain your issue is in as much detail as possible.
Changing the SupplyRocket class name to RocketBase means sometimes missing a reference or two
[LUA ERROR] Mars/Lua/Buildings/RocketTrade.lua:71: attempt to call a nil value (field 'OnModifiableValueChanged')
Code:
function TradeRocket:OnModifiableValueChanged(prop, ...)
if prop ~= "max_export_storage" then
SupplyRocket.OnModifiableValueChanged(self, prop, ...)
end
end
Can you replicate the issue?
Yes
Edit:
Found two more
Code:
function RocketExpedition:OnDemolish()
ClearDestroyedExpeditionRocketSpot(self)
SupplyRocket.OnDemolish(self)
end
function ForeignTradeRocket:OnModifiableValueChanged(prop, ...)
if prop ~= "max_export_storage" and prop ~= "launch_fuel" then
SupplyRocket.OnModifiableValueChanged(self, prop, ...)
end
end
Attachments
Last edited:
Upvote
0