KingOfDog / startup-company-dynamic-products

A Startup Company mod adding a possibility to create new product types and more in-game
MIT License
2 stars 0 forks source link

Game crashes when loading save #11

Closed ttfking closed 4 years ago

ttfking commented 4 years ago

So, after playing a modded game, I saved and left to take a break. When I came back and loaded the save, I got the error at the bottom of this post. There are no crashes or warnings, however, these issues seem to occur after creating a custom framework. The save is now unloadable.

Cannot read property 'pricePerUser' of undefined TypeError: Cannot read property 'pricePerUser' of undefined at _.sum.e.settings.products.map.t (file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Startup%20Company/resources/app/dest/game.min.js:1:1509458) at Array.map (<anonymous>) at d.e.updateFinanceData (file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Startup%20Company/resources/app/dest/game.min.js:1:1509340) at Object.LoadGame (file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Startup%20Company/resources/app/dest/game.min.js:1:1268605) at controller.a.loadSaveGame.t [as loadSaveGame] (file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Startup%20Company/resources/app/dest/game.min.js:1:1544999) at fn (eval at compile (file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Startup%20Company/resources/app/dest/game.min.js:1:329946), <anonymous>:4:1104) at i (file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Startup%20Company/resources/app/dest/game.min.js:1:350376) at d.$eval (file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Startup%20Company/resources/app/dest/game.min.js:1:288777) at d.$apply (file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Startup%20Company/resources/app/dest/game.min.js:1:289007) at HTMLDivElement.<anonymous> (file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Startup%20Company/resources/app/dest/game.min.js:1:350428)

KingOfDog commented 4 years ago

Could you send your savegame so that I can take a look at it?

KingOfDog commented 4 years ago

Nevermind, I think I could reproduce the bug.

KingOfDog commented 4 years ago

Should be fixed with the upcoming update.