![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
10-21-23, 08:46 PM
|
#1 |
|
Bosun
![]() Join Date: Nov 2018
Posts: 64
Downloads: 149
Uploads: 0
|
I know I am necroposting, but I likely have figured out why this is happening.
I highly doubt that drive speed matters. I am using an external NVMe drive with about 1000MB/s read/write speeds. The deck gun is still stuck. The deck gun code probably doesn't work as intended if the game is installed on external drives for some reason. I only copied and pasted my install to an internal SSD. With only FotRSU installed on both external and internal drives, I got the deck gun to work. So to everybody who is experiencing this problem, only install SH4 with FotRSU on an internal storage device. It is not recommended to use any external storage device whatsoever. This particular part of the game code being unable to function properly while installed on external storage is the most likely cause. |
|
|
10-22-23, 06:36 AM
|
#2 | |
|
A-ganger
![]() Join Date: Mar 2018
Posts: 79
Downloads: 608
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. |
|
|
|
10-22-23, 08:46 AM
|
#3 | ||
|
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 |
||
|
|
10-24-23, 11:17 AM
|
#4 | |
|
A-ganger
![]() Join Date: Mar 2018
Posts: 79
Downloads: 608
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. |
|
|
|
10-27-23, 01:58 PM
|
#5 |
|
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 |
|
|
10-28-23, 08:12 AM
|
#6 |
|
A-ganger
![]() Join Date: Mar 2018
Posts: 79
Downloads: 608
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 |
| Thread Tools | |
| Display Modes | |
|
|
