![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|||||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
02-15-17, 07:20 PM
|
#1 |
|
Grey Wolf
![]() Join Date: Nov 2010
Location: Texas
Posts: 877
Downloads: 1825
Uploads: 0
|
Howdy RR. I've got a little problem. When I run a fix on the game it restores the game back to a pristine state but it deletes my mod folder. I thought it wasn't suppose to do that?
|
|
|
02-15-17, 08:30 PM
|
#2 |
|
Navy Seal
![]() |
It's not supposed to do that. It moves the mods folder outside the game directory, mirrors the game directory with SH4Pristine, then moves the mods folder back into the game folder.
__________________
Sub Skipper's Bag of Tricks, Slightly Subnuclear Mk 14 & Cutie, Slightly Subnuclear Deck Gun, EZPlot 2.0, TMOPlot, TMOKeys, SH4CMS |
|
|
02-15-17, 08:47 PM
|
#3 |
|
Navy Seal
![]() |
Here's the code that restores game directories (or creates them if they don't exist):
Code:
@echo off If exist ..\%destiny%\mods robocopy ..\%destiny%\mods ..\MODS /move robocopy "..\Sh4 pristine" "..\%destiny%" /mir attrib -R "..\%destiny%\*.*" /S /D if exist ..\MODS robocopy ..\MODS ..\%destiny%\MODS /move @echo on menu.bat Then it mirrors \SH4Pristine against \%destiny%, in this case \SH4TMO. It removes any files not found in \SH4Pristeen. And it copies any files from \SH4Pristine which are not identical with the file of the same name in \SH4TMO. If it finds a file in \SH4Pristine which is not found in \SH4TMO it copies it there. When that operation is done, \SH4Pristine and \SH4TMO are identical with SH4Pristine being the master copy. The the line starting with attrib -r sets all the files and directories in \SH4TMO, which are write protected to a read/write state so the game can be played. Finally, if the \MODS directory exists, (it does if it existed above!) SH4CMS moves it back into the game directory. Four lines of code do a tremendous amount of work. If you do not interrupt the script during execution it basically cannot fail.
__________________
Sub Skipper's Bag of Tricks, Slightly Subnuclear Mk 14 & Cutie, Slightly Subnuclear Deck Gun, EZPlot 2.0, TMOPlot, TMOKeys, SH4CMS |
|
|
02-16-17, 10:29 AM
|
#4 |
|
Grey Wolf
![]() Join Date: Nov 2010
Location: Texas
Posts: 877
Downloads: 1825
Uploads: 0
|
I don't know what is going on then.
Just figured it out RR. I was screwing the pooch on this one. I had forgot to uninstall the mods before using the fix/make. Sorry about that. Another question though. How do you point the Webster fix to the correct install for it to work? Last edited by J0313; 02-16-17 at 10:38 AM. |
|
|
02-16-17, 03:29 PM
|
#5 | |
|
Navy Seal
![]() |
Quote:
Looks like I have a little work to do!
__________________
Sub Skipper's Bag of Tricks, Slightly Subnuclear Mk 14 & Cutie, Slightly Subnuclear Deck Gun, EZPlot 2.0, TMOPlot, TMOKeys, SH4CMS |
|
|
|
02-16-17, 03:53 PM
|
#6 |
|
Navy Seal
![]() |
Ummmmmm........ Silent Hunter 4 Corruption Management System v1.5 has been quietly fixed so Webster's fix works as intended. If you downloaded yesterday you'll have to redownload if you want to be able to use Webster's fix on Op Monsun, We Dive at Dawn or a custom directory for mod testing.
Thanks to J0313 for the kick in the hind quarters there! ![]() ![]() ![]() And yes, the Webster Fix module has a menu for you to choose the installation to perform it on.
__________________
Sub Skipper's Bag of Tricks, Slightly Subnuclear Mk 14 & Cutie, Slightly Subnuclear Deck Gun, EZPlot 2.0, TMOPlot, TMOKeys, SH4CMS |
|
|
02-16-17, 06:57 PM
|
#7 | |
|
CTD - it's not just a job
|
Quote:
__________________
"...and bollocks to the naysayers" - Jimbuna |
|
|
|
02-16-17, 07:24 PM
|
#8 |
|
Grey Wolf
![]() Join Date: Nov 2010
Location: Texas
Posts: 877
Downloads: 1825
Uploads: 0
|
I'm glad I helped out. I thought I was probably screwing that up too.
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
