Dependency oversight, if reputation changes loading generates log error in moneybar.

  • 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.

eis_os

Major
3 Badges
Mar 2, 2011
609
2
www.bytetransfer.de
  • Cities in Motion
  • Cities in Motion 2
  • 500k Club
The load order of scripts is as following (as defined by game.script):
/metro/ui/announcement/announcement.script
/metro/ui/moneybar/moneybar.script
/metro/ui/briefing/briefing.script
/metro/ui/petitionbar/petitionbar.script

Moneybar when loading calls MAIN.$playerData.updateReputation();
In player.script updateReputation() we have:

if ($oldReputation < 0.890 && $data.$totalReputation >= 0.890)
then calling MAIN.$petitionbar.addTickerText

At this point however the petitionbar isn't loaded yet! So it's not possible to load a savegame with bad reputation without getting a script error.

It would be nice if Paradox, Colossal Order is still interested in detailed bug reports, anything reported here seems to go to /dev/null, this isn't nice.