Open misterbeebee opened 2 years ago
I found that the original Civ assets are copied/stored in
C:\Users\[username]\AppData\Local\CivOne
and the data there seems fine, so the problem isn't that the assets are just missing.
I deleted C:\Users\[username]\AppData\Local\CivOne
and re-ran the app. It prompted me to copy data files from original source, which I did, and now the app works.
So the problem must have been that the data got corrupted somehow.
So, the request here is to catch the exception at a reasonable place
(maybe CivOne.Graphics.Resources.get_Item()
),
and offer troubleshooting advice: "Delete IRuntime.StorageDirectory
and restart app"
No, it's worse. The corruption happens every time I quit and restart the app.
So, if I delete AppData\Local\CivOne
and launch the app, it prompts to copy data files, copies, and starts the game.
The game plays fine, then I quit.
I run the app again: the new-game options (# of players, etc), the Customize World screen, and the Load Saved Game screen, all work fine.
But the game crashes when it tries to show the game map main screen where I interact with the units and cities.
So you're still having the same problem as per the original repo, issue #507 ? Does your workaround from that issue help this issue here?
Ha! You know me better than I know myself. I forgot about #507... And I was better set up for debugging back in 2020.
I'm on my phone now, but I'm confident the same workaround from then on Mac will work now on Windows.
(I'd still leave the issue open for a usability enhancement for handling corrupt data files.)
Oh, and it's also interesting that the bad ICONPGA.PIC
file is corrupt in CivOne but not in original Civ under DOSBox.
I'm curious if I have a different ICONPGA.PIC
from other people.
This is the file I have: https://drive.google.com/file/d/19uho8XdfgRxrE4Whpb7VXOZskmahFDml/view?usp=drivesdk
(I'd still leave the issue open for a usability enhancement for handling corrupt data files.)
Absolutely.
Here's my ICONPGA.PIC file. There is a 5 byte difference, starting at byte 5016, between mine and yours.
After launching the game and choosing nation, number of AI, etc, the app crashes with this exception.
1) I suspect it's something to do with failing to load the original Civ art assets, but I don't see where to input the path to assets -- I think the app prompted for that once in the past, and I don't know where to change it.
2) If there is a known cause for this error, it would be good if the error message gave useful advice..
The error is in
SetIcon
, trying to load data from LZW-compressed image file: