Hi,
I'm trying to make a portable version of this game and it uses a HKCU registry key.
So i set it up with [RegistryKeys] and it works fine, the .reg gets saved and its fine.
However, the second time the app is run, the settings (which are stored in said registry key), are all messed up.
I investigated the issue and found that the PAL Launcher saves the .reg wrong.
Below are the registry key i got with regedit, by running the game without PAL and the file the Launcher saved. Note the difference
Regedit Export :
[HKEY_CURRENT_USER\SOFTWARE\Failbetter Games\Sunless Sea] "UnitySelectMonitor_h17969598"=dword:00000000 "Screenmanager Resolution Width_h182942802"=dword:00000500 "Screenmanager Resolution Height_h2627697771"=dword:00000300 "Screenmanager Is Fullscreen mode_h3981298716"=dword:00000000 "unity.player_sessionid_h1351336811"=hex:36,37,30,33,33,38,37,37,32,31,35,32,\ 31,39,30,33,35,31,37,00 "unity.player_session_elapsed_time_h192694777"=hex:34,39,35,37,31,00 "unity.player_session_background_time_h123860221"=hex:31,35,30,34,32,31,33,31,\ 32,33,38,31,31,00 "MusicVolume_h3041295148"=hex(4):00,00,00,40,33,33,e3,3f "SFXVolume_h2009793184"=hex(4):00,00,00,a0,99,99,e9,3f "BlurEnabled_h1049161833"=dword:00000001 "FontSize_h80309299"=hex(4):00,00,00,00,00,00,2a,40 "UIScale_h186351137"=hex(4):00,00,00,00,00,00,f0,3f
PAL Launcher saved .reg file:
[HKEY_CURRENT_USER\SOFTWARE\Failbetter Games\Sunless Sea] "UnitySelectMonitor_h17969598"=dword:00000000 "Screenmanager Resolution Width_h182942802"=dword:00000500 "Screenmanager Resolution Height_h2627697771"=dword:00000300 "Screenmanager Is Fullscreen mode_h3981298716"=dword:00000000 "unity.player_sessionid_h1351336811"=hex:37,39,39,36,37,37,34,39,31,32,30,37,\ 34,38,35,38,36,30,31,00 "unity.player_session_elapsed_time_h192694777"=hex:31,37,36,31,35,00 "MusicVolume_h3041295148"=dword:40000000 "SFXVolume_h2009793184"=dword:a0000000 "BlurEnabled_h1049161833"=dword:00000001 "FontSize_h80309299"=dword:00000000 "UIScale_h186351137"=dword:00000000 "unity.player_session_background_time_h123860221"=hex:31,35,30,34,32,31,33,32,\ 31,35,39,33,38,00
Can this be solved with custom code? Or is there an easy workaround
Thank you