Robotron wrote: ↑Tue Feb 07, 2023 12:50 pm
It's more about what you did
not say. See, if you want me to try out stuff then provide concise info about what I should do. Usually it's you asking me to be more precise about stuff, don't be surprised if I do the same.
Not surprised so much as confused. Let's put it down to misinterpretation.
Anyway, I can be more precise.
I think the crash we were having in the v17 and that you also saw in v16 is not caused by something wrong in the script or code per se, but it's due to a missing graphics file. The game crashed when we increased entrenchment level beyond level 4, and there are only 4 graphics files for each corresponding level.
Can you copy trenches_4.png and call it trenches_5.png, and then try if you can load any of the autosaves that Wolf and I sent you in the past which you couldn't open before. Also, can you try to continue from the endturnautosave and the test70 file, to see if you can continue those games with the entrenchment tech levels of v17 (so without lowering them to v15 or v18 levels).
You can experiment with increasing the entrenchment levels in the files beyond 5 to see if it has any effect, but from what I've gathered, the game won't increase entrenchment beyond a 5th level. However, adding level 6 entrenchment to a tech, without adding a corresponding trenches_6 graphics file, has not caused a crash in any of my tests.
I think this missing file was the root of the crashes we saw, but I don't know why the game stops processing entrenchment beyond level 5 (and why it doesn't cause the same problems when you add trenches_5 but not trenches_6). And I also don't know why it won't go higher than 18 entrenchment.
However, I have not seen any crashes after adding trenches_5.png, though I haven't finished a full playthrough yet, I did do fairly extensive messing around with different stats changes, to see if any of it would crash the game. So far, nothing has happened as I said, so I think you can safely add back certain changes you reverted in order to make v18 crash free, if you wish to do so.