• 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
I can't say I see the connection between your description and that Reddit report - you're way over my head!

I wonder if we can get a layman's description of the core of the bug? Or do I not need to know that, I should just pass it on as is?
 
From his log file:
[LUA ERROR] Mars/Lua/Buildings/RocketTrade.lua:71: attempt to call a nil value (field 'OnModifiableValueChanged')


Line 71 of RocketTrade.lua is calling a nonexistent func
SupplyRocket.OnModifiableValueChanged(self, prop, ...)
It should probably be this instead:
RocketBase.OnModifiableValueChanged(self, prop, ...)

Like this: https://github.com/ChoGGi/SurvivingMars_CheatMods/blob/master/Mods ChoGGi/Fix Tourism Rockets/Code/Script.lua#L53


Sorry, I'll try to remember to do bug reports less codey, for some reason I thought you knew lua?
 
MAC-5716
Thanks for that! I've logged a bug on that now and used all your material above to illustrate it.