1
Bug reports / Re: [2.4.0 RC6][*.vfs][Menu->Save file system] almost empty file (less than 300byte)
« on: November 04, 2023, 05:13:40 PM »
This is the only method that comes to mind, and I hope that it will solve your problem of loss of VFS 
switch to expert mode (key F5)
select Menu>Save options to file, and activate Menu>Auto-save Options
in Menu>Virtual File System , choice Backup on Save and Autosave every: enter 900 (= every 15mn) or more
Menu>Others options> Edit Event Script... (ALT+F6)
put this content in hfs.events and save it in the hfs.exe folder
this script tests if the size of the vfs is less than a certain value (255 to be reduced if necessary) and in this case restores the backup, every time the server is SWITCHING ON ( not possible only when hfs is launched), allowing a functional VFS to be found
verify in windows registry if not exist those keys else delete them
HKEY_CURRENT_USER\Software\rejetto and HKEY_LOCAL_MACHINE\Software\rejetto

switch to expert mode (key F5)
select Menu>Save options to file, and activate Menu>Auto-save Options
in Menu>Virtual File System , choice Backup on Save and Autosave every: enter 900 (= every 15mn) or more
Menu>Others options> Edit Event Script... (ALT+F6)
put this content in hfs.events and save it in the hfs.exe folder
Code: [Select]
[server start]
{.if|{.{.filesize|hfs.vfs.}<255.}|
{:{.add to log|Empty VFS detected.}
{.if|{.exists|hfs.vfs.bak.}|
{:{.add to log| VFS backup found.}
{.delete|hfs.vfs.}
{.copy|hfs.vfs.bak|hfs.vfs.}
{.add to log| previous VFS restored and loaded.}
:}|{:{.add to log| VFS backup not found.}:}
/if.}:}
|{:{.add to log|VFS seems good.}:}
/if.}
this script tests if the size of the vfs is less than a certain value (255 to be reduced if necessary) and in this case restores the backup, every time the server is SWITCHING ON ( not possible only when hfs is launched), allowing a functional VFS to be found
verify in windows registry if not exist those keys else delete them
HKEY_CURRENT_USER\Software\rejetto and HKEY_LOCAL_MACHINE\Software\rejetto