FINDarkside / TLD-Save-Editor

Edit The Long Dark save files
http://www.moddb.com/mods/the-long-dark-save-editor-2/downloads
MIT License
77 stars 31 forks source link

Minimum requirements for functionality. #84

Open amcgregor opened 3 months ago

amcgregor commented 3 months ago

Howdy!

On macOS (and even Linux, but I'm focusing on Mac) you can use Wine (or the "Game Porting Toolkit" on ARM) to run this application, which is great!

Screenshot 2024-07-01 at 02 01 49

There are a few notes on the console during start-up, but as can be seen in the above screenshot things look relatively okay.

> wine64 The\ Long\ Dark\ Save\ Editor\ 2.exe

01e8:err:environ:init_peb starting L"Z:\\…\\The Long Dark Save Editor 2.exe" in experimental wow64 mode
01e8:fixme:mscoree:parse_supported_runtime sku=L".NETFramework,Version=v4.8" not implemented
01e8:fixme:mscoree:parse_supported_runtime sku=L".NETFramework,Version=v4.8" not implemented
01e8:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
01e8:err:mscoree:LoadLibraryShim error reading registry key for installroot
… above line repeated a few dozen times …
… some graphics set-up and a few more of that line …

Only problem, there are no characters / saves to select from. That's what I'm hoping the registry key errors are pointing out; it can't look up the actual installation location for the game as the game was actually installed on the host system, accessible below the Z: "drive". The question becomes: where is the save editor expecting the files to be located, and where on a macOS system would those files be likewise located?

I could just symlink the save location into the appropriate location below the virtual C: drive, or set the registry key to point at the host. Once this is worked out, I can provide instructions for constructing macOS-capable releases using tools like WineBottler, which create independent redistributable .app bundles which include a Wine redistributable in addition to the app being wrapped.

Thanks and have a great day!


Edit: Ah… oh.

https://github.com/FINDarkside/TLD-Save-Editor/blob/ad3378a7c6f4bdf3a2a83a8f6f7fc331ba13c57c/The%20Long%20Dark%20Save%20Editor%202/MainWindow.xaml.cs#L142

https://github.com/FINDarkside/TLD-Save-Editor/blob/38cf906255fcd15b0ac34f2fa1d4b0bec07fb208/The%20Long%20Dark%20Save%20Editor%202/Helpers/Util.cs#L86-L90

FINDarkside commented 3 months ago

Cool to see you got it mostly working on Mac!

Yeah it's looking for C:/Users/USERNAME/AppData/Local/Hinterland/TheLongDark/Survival for most users. I'm not really sure what that GetKnownFolderPath stuff would return on Mac. I also don't know where the actualy save files are on mac.

Once this is worked out, I can provide instructions for constructing macOS-capable releases using tools like WineBottler, which create independent redistributable .app bundles which include a Wine redistributable in addition to the app being wrapped.

I'm not really developing this project anymore, latest update #83 was also not done by me. Even though it's very cool that this could work on Mac, I don't think I'll spend time on that. Especially since I don't own any Mac computers so I'd have no way to test that the builds actually work.