[M1 Silicon Mac] - Cant save since 0.6.3.

Fixed Crash Saves & Loading
maddi7 [discord] · 2 years ago

Hey there.
The recent improvement to save game behavior (create a tmp save beforehand and check its integrity) leads to the problem, that COI doesnt have the permission to delete such tmp file on Mac. (At least thats my understanding of the error message.) I have attached a screenshot of the error message, 'Copy to Clipboard' doesnt work for me.

You can create and set permissions on a tmp file manually to resolve this issue. (see below). You have to do this for every save, however, as the .tmp file is deleted after a successful save process.

Workaround:

  • disable autosaves (to avoid error messages)
  • touch <save name>.tmp.save
  • chmod 755 <save name>.tmp.save

Bildschirmfoto_2024-04-24_um_15.52.01.jpg

I'm playing COI over Steam which runs in a Whisky Bottle, btw. Havent had any major issues so far.

itewk [discord] · 2 years ago

@Captain Marek this apears to be the same issue i reported in the release notes and sent you a copy of the logs of in a DM. seems like @maddi7 [discord] identifed more precisly the problem and fix.

@maddi7 [discord] if you ddin't see in the release note discussion (https://steamcommunity.com/app/1594320/eventcomments/4362374548284564873) Marek created a "beta" stream called "legacy-temporary" that you can temporarly switch to be able to play int he meantime.

itewk [discord] · 2 years ago

(and i didn't need to set the 755, just touching the file worked for me)

maddi7 [discord] · 2 years ago

itewk [discord] wrote:

this apears to be the same issue i reported in the release notes and sent you a copy of the logs of in a DM. seems like identifed more precisly the...

Yeah, i've looked into the betas but didnt know that 'legacy-temporary' was 0.6.2. Thanks for pointing that out. 👍

ratto3229 [discord] · 2 years ago

I am experiencing the same issue, here is the full log when trying to save with a new world
`W 18:27:21,406 S000025 ~Thr: Save tmp file already exists, deleting.
at Mafi.Core.SaveGame.ASyncSaver.doWork (System.Object _, System.ComponentModel.DoWorkEventArgs __) [0x00000]
at System.ComponentModel.BackgroundWorker.OnDoWork (System.ComponentModel.DoWorkEventArgs e) [0x00000]
at System.ComponentModel.BackgroundWorker.WorkerThreadStart (System.Object argument) [0x00000]
at System.ComponentModel.BackgroundWorker.<RunWorkerAsync>b__27_0 (System.Object arg) [0x00000]
at System.Threading.Tasks.Task.InnerInvoke () [0x00000]
at System.Threading.Tasks.Task.Execute () [0x00000]
at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00000]
System.Boolean preserveSyncCtx) [0x00000]
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000]
at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000]
X 18:27:21,407 S000025 ~Thr: Failed to write save file (last success: Unknown): C:\users\crossover\AppData\Roaming\Captain of Industry\Saves\Chile\chile.save
---> IOException: Success : 'C:\users\crossover\AppData\Roaming\Captain of Industry\Saves\Chile\chile.tmp.save'
at System.IO.FileSystem.DeleteFile (System.String fullPath) [0x0001a]
at System.IO.File.Delete (System.String path) [0x00014]
at Mafi.Core.SaveGame.ASyncSaver.doWork (System.Object _, System.ComponentModel.DoWorkEventArgs __) [0x000bf]
X 18:27:21,556 S000025 ~Mai: Exception when checking file size.

`

Captain Marek Captain Marek · 2 years ago

We are investigating this and this looks like an issue with CrossOver wher their filesystem API is causing our runtime to throw IOException that says Success. We are working on a workaround.

In the meantime, you can use legacy branch on steam that has the pre-patch version

ratto3229 [discord] · 2 years ago

Yeah Captain, I also found wierd that Success as an Exception.
I am using the touch fix for now, thanks for all you work and effort 🙏

Captain Marek Captain Marek · 2 years ago

This was hopefully patched in the latest v0.6.3a, please let us know if that's the case!

ratto3229 [discord] · 2 years ago

I can't believe how fast you guys responded even with this not being a officially supported platform. I will test right away and let you guys know. Thank you very much

ratto3229 [discord] · 2 years ago

I just tested with a previous game and it worked well, however if I try to save a new file it will fail, but with a different error, an also there is a temp file now generated wich can be used to load up the game again. So its working much better now. I will post the logs:

to be more clear, if using existing savefile it works, if new save, fails but keeps tmp file wich is usable

1 attachment only for registered users
maddi7 [discord] · 2 years ago

Captain Marek wrote:

This was hopefully patched in the latest v0.6.3a, please let us know if that's the case!

0.6.3a solved the saving issue for me, thx for the fast response. 👍

ratto3229 [discord] · 2 years ago

@Captain Marek I tried every combination (new game, old game, new save, etc) and I can confirm that with 0.6.3b the issue is solved. Thanks again for your effort 🙂

itewk [discord] · 1 year ago

@Captain Marek running into this again with update 3. Or at least someting similar.

Failed to save the game!:
An error occurred while moving save file to the final location, but a temporary file can be found at C:\users\crossover\AppData\Roaming\Captain of Industry\Saves\Secluded Reboot\test.tmp.save: Success : 'C:\users\crossover\AppData\Roaming\Captain of Industry\Saves\Secluded Reboot\test.save'

System.IO.IOException: Success : 'C:\users\crossover\AppData\Roaming\Captain of Industry\Saves\Secluded Reboot\test.save'
at System.IO.FileSystem.DeleteFile (System.String fullPath) [0x0001a] in <dc753a1061284f8e971ee88ee4826eee>:0
at System.IO.File.Delete (System.String path) [0x00014] in <dc753a1061284f8e971ee88ee4826eee>:0
at Mafi.Core.FileSystemHelper.DeleteFile (System.String filePath) [0x00078] in <ae54cd7f784e4e8c8c3520582e1e0cb9>:0
at Mafi.Core.SaveGame.ASyncSaver.doWork (System.Object _, System.ComponentModel.DoWorkEventArgs __) [0x00174] in <c14621bf826f4058b62de49d8cc6ed03>:0

the workaround of touching the file works, though hvae to turn off the autosave since that has a different file name every time.

Captain Marek Captain Marek · 1 year ago

Hmm, looks like Crossover team did not fix this issue....

itewk [discord] · 1 year ago

i forget if opened a bug with them last time or not. i can go do that, though not sure what to put in the error report

Captain Marek Captain Marek · 1 year ago

I did open bug and was talking with them, they confirmed that they have repro and I haven't heard from them since then

This is really something they should fix on their side

itewk [discord] · 1 year ago

okay, do you have a link to the bug? i can see if i can "bug" them about it

you gave me the workaround which works well enough

Closed as ✅ Fixed

8 Showing 1–20 of 35