• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

ChoGGi_2

Lt. General
21 Badges
Apr 3, 2018
1.419
114
  • Surviving Mars
  • Stellaris: Ancient Relics
  • Cities: Skylines - Campus
  • Surviving Mars: First Colony Edition
  • Prison Architect
  • Cities: Skylines Industries
  • Surviving Mars: First Colony Edition
  • Cities: Skylines - Parklife
  • Surviving Mars: Digital Deluxe Edition
  • Cities: Skylines - Green Cities
  • Age of Wonders III
  • Cities: Skylines - Mass Transit
  • Cities: Skylines - Natural Disasters
  • Stellaris
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines
  • Crusader Kings II
  • Ship Simulator Extremes
  • Magicka
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')

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

  • doggo.png
    doggo.png
    750,8 KB · Views: 0
Last edited:
Upvote 0
MAC-5716
  • Thanks for that! I've logged a bug on that now and used all your material above to illustrate it.