I've been running into an issue with an (old) policy yield modifier bug in the lua while running a couple of test games. It showed up with factories (so late in the game), and the net effect was
a) removed factories and other late game production buildings from the game (nuclear/solar power) despite nothing being done to them that differed from other buildings. Other buildings with similar changes remained active (workshop, stable, Iron Works). Disabling those changes (xml/sql data edits mid-game can usually be enabled or disabled without corrupting anything) and clearing the cache doesn't appear to have resolved the issue.
b) the tech tree getting very weird around the industrial age. Particularly industrialization itself was touchy. It would no longer obviously display which techs were already researched for example and industrialization had to be selected from the tech tree directly to get it.
c) the build queue crashing such that the game is unplayable (nothing can be bought or built that isn't already listed to do). It doesn't crash the build queue until factories are researched that I can tell. But that's the entire late game (eg, when you're most likely to be about to try to win the game if it wasn't wrapped up before then).
I'll have to disentangle this bug some more (disable some changes to see what's causing it exactly), but it puts right at line 399 in the yield library lua (which is a policy yield modifier bug similar to the old Wat Phra Kaew bug in GEM). Since this was, I thought, resolved a long time ago, I thought I would check to see if there was an easy fix.
a) removed factories and other late game production buildings from the game (nuclear/solar power) despite nothing being done to them that differed from other buildings. Other buildings with similar changes remained active (workshop, stable, Iron Works). Disabling those changes (xml/sql data edits mid-game can usually be enabled or disabled without corrupting anything) and clearing the cache doesn't appear to have resolved the issue.
b) the tech tree getting very weird around the industrial age. Particularly industrialization itself was touchy. It would no longer obviously display which techs were already researched for example and industrialization had to be selected from the tech tree directly to get it.
c) the build queue crashing such that the game is unplayable (nothing can be bought or built that isn't already listed to do). It doesn't crash the build queue until factories are researched that I can tell. But that's the entire late game (eg, when you're most likely to be about to try to win the game if it wasn't wrapped up before then).
I'll have to disentangle this bug some more (disable some changes to see what's causing it exactly), but it puts right at line 399 in the yield library lua (which is a policy yield modifier bug similar to the old Wat Phra Kaew bug in GEM). Since this was, I thought, resolved a long time ago, I thought I would check to see if there was an easy fix.