![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#16 | |
Bosun
![]() Join Date: Mar 2018
Posts: 64
Downloads: 559
Uploads: 0
|
![]() Quote:
Approximate location in the registry: "hklm\software\WOW6432Node\Ubisoft\Silent Hunter Wolves of the Pacific\GameUpdate" "hklm\software\WOW6432Node\Ubisoft\Silent Hunter 4 Wolves of the Pacific\GameUpdate" Have you tried using symlink for your external hdd? Console command as administrator: mklink /D с:\games\sh4 X:\sh4 X: this is your external HDD with the NTFS file system. |
|
![]() |
![]() |
![]() |
#17 | ||
CTD - it's not just a job
|
![]() Quote:
Quote:
@mazzi: Have you ever tried to use the Windows Path setting for similar reasons? We had put a batch file in an earlier FotRSU to set the player's path, but dropped it due to "user prompting" complications, and fears of trashing someone's computer settings. However, I have noticed "better" performance with the game's FotRSU folder on the path, though I do not know how to "test / compare" the difference between a registry setting from either an install, or use of SH Validator to re-set it, and having the registry point to an original install folder, while the path points to a modded copy of the game...
__________________
"...and bollocks to the naysayers" - Jimbuna |
||
![]() |
![]() |
![]() |
#18 | |
Bosun
![]() Join Date: Mar 2018
Posts: 64
Downloads: 559
Uploads: 0
|
![]() Quote:
Code:
@echo off for /F "Tokens=2*" %%I in ('Reg Query "hklm\software\WOW6432Node\Ubisoft\Silent Hunter 4 Wolves of the Pacific\GameUpdate" /v installdir') do set dir_reestr=%%J rem echo. rem echo The game folder spelled out in the registry: rem echo %dir_reestr% rem echo. rem pause set p=%~dp0% set "curent_dir=%p:~0,-1%\" rem echo. rem echo Current folder of the launched game: rem echo %curent_dir% rem echo. rem pause rem echo. rem echo Folder paths are compared with each other: rem echo. if /i "%curent_dir%"=="%dir_reestr%" (GOTO YES ) else (GOTO NO) :YES rem echo The paths coincide! :) rem echo. rem pause rem echo. rem echo The game starts... start "" "%curent_dir%\sh4.exe" goto :EOF :NO rem echo The paths are different! :( rem echo. rem pause rem echo. rem echo The proper current folder of the launched game is recorded in the register: rem echo %curent_dir% rem echo. REM for sh4 v1.00.0000 reg add "hklm\software\WOW6432Node\Ubisoft\Silent Hunter Wolves of the Pacific\GameUpdate" /v execPath /t reg_sz /f /d "%~dp0%sh4.exe reg add "hklm\software\WOW6432Node\Ubisoft\Silent Hunter Wolves of the Pacific\GameUpdate" /v installdir /t reg_sz /f /d "%~dp0% REM for sh4 v1.05.0000 reg add "hklm\software\WOW6432Node\Ubisoft\Silent Hunter 4 Wolves of the Pacific\GameUpdate" /v execPath /t reg_sz /f /d "%~dp0%sh4.exe reg add "hklm\software\WOW6432Node\Ubisoft\Silent Hunter 4 Wolves of the Pacific\GameUpdate" /v installdir /t reg_sz /f /d "%~dp0% rem pause rem echo. rem echo The game starts... start "" "%curent_dir%\sh4.exe" GOTO :EOF This .bat script can be converted into an .exe file using the program "Bat To Exe Converter". In the 'Bat To Exe Converter' itself, when converting .bat to .exe, you can set administrator rights. If you remove all the small 'rem' in the script, leaving the large 'REM' intact, you can see what the script does step by step. Last edited by mazzi; 10-25-23 at 12:39 AM. |
|
![]() |
![]() |
![]() |
#19 |
CTD - it's not just a job
|
![]()
Nicely done mazzi. If you don't mind, we'll attempt to include that in the next FotRSU release, editing it slightly to show your name in the REM lines.
__________________
"...and bollocks to the naysayers" - Jimbuna |
![]() |
![]() |
![]() |
#20 |
Bosun
![]() Join Date: Mar 2018
Posts: 64
Downloads: 559
Uploads: 0
|
![]()
Script.bat or Script.cmd will not be convenient for ordinary people to use.
It would be better if Script.bat was still converted into some kind of file.EXE and then this file.EXE would be posted for everyone. But do as you see fit, I don’t mind. |
![]() |
![]() |
![]() |
Tags |
help sh4 |
|
|