Page 1 of 1

[0.15.x] Crash on tech screen if all techs disabled

Posted: Mon Jul 17, 2017 8:34 pm
by mpratt
I'm writing a scenario that has a "tutorial" component to it. As part of this, I want to disable *all* technologies until they reach the point in the 'Now research some stuff' part of the tutorial, at which point I enable techs incrementally in order to limit confusion. In 0.14 this was possible, but porting it to 0.15, attempting to open the tech screen with all tech disabled causes a game crash.

Steps to reproduce:
* Open scenario which disables all techs.
* Open tech screen: Game crashes.
* Until you open tech screen, game seems to play properly.

* Open game & scenario again.
* Use cheat to enable at least one tech.
* Open tech screen: Behaves as expected.

* Rewrite scenario to disable all *but one* tech
* Game (including tech screen) operates normally.

If you don't want to support all techs to be disabled, I'd understand that decision, but it probably should be validated at startup time rather than crashing during play.

Re: [0.15.x] Crash on tech screen if all techs disabled

Posted: Tue Jul 18, 2017 5:25 am
by Loewchen
Post the log, see my signature.

Re: [0.15.x] Crash on tech screen if all techs disabled

Posted: Tue Jul 18, 2017 1:47 pm
by Rseding91
Thanks for the report. The crash is now fixed for the next version of 0.15.