[1.7.2](a220) Overwriting a building causes double entries in upgrades table

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

Grubsnik

Captain
10 Badges
May 16, 2016
312
122
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Prison Architect
  • Stellaris: Synthetic Dawn
Title says most of it. It's present in 1.7.2 and afaik all prior builds of the game.

If you in a mod overwrite any upgradeable buildings that are already in the core game, you will see a double entry in the gui when upgrading. It will just be 2 copies of the upgrades = {} table defined in your overwriting building, but it will still disable 1-click upgrading and ask the player to choose between two identical choices for no reason.

Steps to reproduce:
  1. Make an empty mod
  2. Copy /common/buildings/00_buildings.txt to your mod and rename it to something else, like 01_buildings.txt
  3. Start a new game
  4. Unlock technologies by console
  5. Check the upgrade options for your buildings, they will all have twice as many upgrade options as normal
 
Upvote 0