SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 09-05-10, 02:02 AM   #1
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 135
Uploads: 0


Default

CherryH.... is right. Open Command prompt from Accesoires
__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote
Old 09-05-10, 04:50 AM   #2
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 135
Uploads: 0


Default

I am sorry to say that for me it's not possible to also make a course and demonstrate how to add longer repair times to starforce-protected executables.

The reason is as follows:

The non-protected executable contains large areas with code caves (code that does nothing, all bytes are set to zeroes: 00) where one can easily place the bugfix code for the repair times.

In the protected version I cannot find these code caves with sufficient size to place the bugfix code in it. It seems that the code caves have been removed intentionally in order to make code manipulations very hard - too hard for me.

In my store I can get unprotected SH3 for 4,99 Euros. That is nothing compared to the time I have to invest to fix the protected version.

Sorry.
h.sie
__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote
Old 09-12-10, 04:32 AM   #3
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,481
Downloads: 122
Uploads: 1
Default

Quote:
Originally Posted by h.sie View Post
CherryH.... is right. Open Command prompt from Accesoires
I already wrote about it at this forum (for a long time)...
I have Win XP...
and you can do menu item "Command Prompt" (for example... or other name) for your explorer...
You must create reg-file with *.reg extension... with next content (and to execute this file):
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\O penDOSBox]
@="Command Prompt"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\O penDOSBox\Command]
@="CMD.EXE /K CD %1"
...
or slightly other form (more modern NT), but the same:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\C mdPromptW]
@="Command Prompt"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\C mdPromptW\Command]
@="cmd.exe /k cd \"%1\""
...
Using:
Open explorer,
go to folder, where you want to work with your file (using DosBox),
open File menu item...
lower you see the name of the chosen folder... open this menu item...
and you see "Command Prompt" menu item... click it
... cmd.exe will be executed and you will see your favorite DosBox...
or using right-click popup menu.
...
Advantage - speed and you will not be to write path (full name) for the work-file.

P.S. Some spaces - d efective forum engine...
__________________
Alex ®


Moses said: "Don't create yourself an idol"...

Last edited by Anvart; 09-12-10 at 05:11 AM.
Anvart is offline   Reply With Quote
Old 09-12-10, 10:18 AM   #4
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 135
Uploads: 0


@SquareSB: Yes, I meant Friedl's Site. Sorry for the wrong link.

@Anvart: Coool. That's what I was looking for.
__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote
Old 09-12-10, 12:06 PM   #5
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 135
Uploads: 0


Default V15A

New Version V15A of the online-course "How to fix SH3 repair times bug" available. Course material see my mediafire page, Folder: SH3-Bugfixes.

What it does:
--------------
* Repair times of equipment are 60 times longer than in stock.
* Flooding behaviour as in stock sh3/GWX.
* Longer Repair times are now displayed correct in damage screen (02:00 instead of 00:02).
* Shows patch version number v 1.5A in main menu.


How to apply the bugfix: See the course here:

http://www.subsim.com/radioroom/show...4&postcount=32

But use patch V15A instead of V01 now.

-----------------------------------------------------------------------
For those who want to enlarge the repair times by a factor of 120 instead of 60:

Open sh3.exe using a Hex-Editor and change the byte-value of hex-address 0x145022 from 70 to F0.

(works only for sh3.exe patched to V15A).

-----------------------------------------------------------------------
Use this information on your own risk. I am not responsible
for any damage caused by incorrect appliance of that information.
-----------------------------------------------------------------------

Reminder: This is a technical demonstation for educational and research purposes only. It shows a new technique how SH3 could be modified in order to achieve longer repair times AND realistic floodingtimes. Since it is strongly forbidden to modify copyrighted materials, you MUST IMMEDIATELY delete all files that are modified/created during this demonstration. It is not allowed to use these files for your gameplay and it is even more forbidden to share the files with others. If you are planning to break copyright laws, you are not allowed to take part at this demonstration.
__________________
My Mediafire page: http://www.mediafire.com/hsie

Last edited by h.sie; 09-12-10 at 12:21 PM.
h.sie is offline   Reply With Quote
Old 09-12-10, 02:55 PM   #6
CherryHarbey
Engineer
 
Join Date: Jul 2010
Location: Derby, UK
Posts: 200
Downloads: 86
Uploads: 0
Default

Quote:
Originally Posted by h.sie View Post
* Longer Repair times are now displayed correct in damage screen (02:00 instead of 00:02).
Would this show the minutes as well as the hours to repair.
eg stock displays 00:02 but is actually 00:02:35, would this display as 02:35 or 02:00 with V1.5A?

And once again, great demostration of what could be possible if the copyright laws were different.
CherryHarbey is offline   Reply With Quote
Old 09-12-10, 03:11 PM   #7
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 135
Uploads: 0


Default

@CH

Minutes (when more than 59) are messed up because of an SH3 bug. E.g. 1h20 should be displayed as 01:20, but in SH3 it looks 01:80 (one hour 80 minutes). So I programmed it to always show 00 minutes, that means, only 1 hour steps are displayed. But in RL nobody would be able to estimate repair time exactly for every minute.

Periscope damaged, sir. It'll take 2 hours, 34 minutes and 50 seconds.
Only Spock can do that.
__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote
Old 09-12-10, 03:17 PM   #8
CherryHarbey
Engineer
 
Join Date: Jul 2010
Location: Derby, UK
Posts: 200
Downloads: 86
Uploads: 0
Default

Quote:
Originally Posted by h.sie View Post
Periscope damaged, sir. It'll take 2 hours, 34 minutes and 50 seconds.
Only Spock can do that.

fair point, I hadn't thought it through.....
CherryHarbey is offline   Reply With Quote
Old 09-12-10, 09:56 PM   #9
Rubini
Ocean Warrior
 
Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 149
Uploads: 0
Default

Quote:
Originally Posted by h.sie View Post
New Version V15A of the online-course "How to fix SH3 repair times bug" available. Course material see my mediafire page, Folder: SH3-Bugfixes.

What it does:
--------------
* Repair times of equipment are 60 times longer than in stock.
* Flooding behaviour as in stock sh3/GWX.
* Longer Repair times are now displayed correct in damage screen (02:00 instead of 00:02).
* Shows patch version number v 1.5A in main menu.


How to apply the bugfix: See the course here:

http://www.subsim.com/radioroom/show...4&postcount=32

But use patch V15A instead of V01 now.

-----------------------------------------------------------------------
For those who want to enlarge the repair times by a factor of 120 instead of 60:

Open sh3.exe using a Hex-Editor and change the byte-value of hex-address 0x145022 from 70 to F0.

(works only for sh3.exe patched to V15A).

-----------------------------------------------------------------------
Use this information on your own risk. I am not responsible
for any damage caused by incorrect appliance of that information.
-----------------------------------------------------------------------

Reminder: This is a technical demonstation for educational and research purposes only. It shows a new technique how SH3 could be modified in order to achieve longer repair times AND realistic floodingtimes. Since it is strongly forbidden to modify copyrighted materials, you MUST IMMEDIATELY delete all files that are modified/created during this demonstration. It is not allowed to use these files for your gameplay and it is even more forbidden to share the files with others. If you are planning to break copyright laws, you are not allowed to take part at this demonstration.
Hi mate!

Thanks again by this great mod!

Two questions:
-If I use V15A and also the 120x fix - will my time (just an example) display now 4:00 instead 2:00 (as in current 60x)?

-Can I apply the V15A over an already coursed sh3.exe with V01 ?
__________________
One gamer's must-have mod is another gamer's waste of time.
-Sailor Steve
Rubini is offline   Reply With Quote
Old 09-13-10, 12:50 AM   #10
makman94
Hellas
 
Join Date: Jul 2008
Posts: 2,294
Downloads: 184
Uploads: 7


Default

first of all i want to congratulate you H.Sie not for this specific mod (which i still trying to create following your instructions) but becuase you are opening a NEW AGE to sh3's modding !

a modding that is definetely needed if we want to start having a simulator at last.of course this is only a start but i can't see a better start than this !!

is it valid now to start thinking (..hoping ) that the AI would become 'clever' at future ??

now, i can't create this .exe following your instructions becuase i have win 7 (x64) and the dos box doesn't stay open if i,for example, run the fciv.exe

i tried also, as someone allready posted , to use the dos box through acessories but what exactly do i have to type in there in order to continue the procedure ? you said something about ''cd'' but nothing happens....

can someone give instructions of the procedure on win 7 ?

bye
__________________
Knowledge is the only thing that nobody can ever take from you...



Mediafire page:http://www.mediafire.com/folder/da50.../Makman94_Mods
makman94 is offline   Reply With Quote
Old 09-13-10, 01:07 AM   #11
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 135
Uploads: 0


Default

@Rubini: The repair time display now works fine for all factors: 60 or 120 or whatever. But I would not suggest to choose a factor above 120. Repair times are displayed only in 1 hour steps.

the higher you choose the factor, the more often you see a funny effect that repair times rise during repair. this is, because the crew fatigues faster than repair progresses, so that as the result the calculated repair times rise. but I don't care because I will play without fatigue

ATM you always have to use the unpatched non-starforce sh3.exe (checksum see above) as the basis for patching. no other version can be used. otherwise you'll shred your executable. so always make a backup copy.

h.sie
__________________
My Mediafire page: http://www.mediafire.com/hsie

Last edited by h.sie; 09-13-10 at 07:30 AM.
h.sie is offline   Reply With Quote
Old 09-12-10, 11:51 AM   #12
SquareSteelBar
Sea Lord
 
Join Date: May 2006
Location: U-73
Posts: 1,635
Downloads: 632
Uploads: 0
Default

Quote:
Originally Posted by Anvart View Post
...
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\CmdPromptW]
@="Command Prompt"
...
Or in german:

[HKEY_LOCAL_MACHINE\........]
@="Eingabeaufforderung hier öffnen"


That's a good old registry tweak...
SquareSteelBar is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:08 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.