SUBSIM®  Radio Room Forums


SUBSIM: The Web's #1 BBS for all submarine and 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 10-11-2015, 04:59 AM   #1
Fader_Berg
Lieutenant
 
Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 253
Downloads: 41
Uploads: 0
Default patSH3r - Reborn

patSH3r
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

patSH3r changes the way Silent Hunter III works by bringing new functionallity to the game. It uses a technique called code injection, which adds/replaces code in live memory while running the game. Thus it doesn't make modifications to any of the original game files. When the files belonging to this project are removed, the game is left as nothing ever happened.

I'm restarting this project from scratch, since h.sie's project have died out. The first goal is to rewrite the h.sie patches (copy the behaviour, not the code) into this project, and later on extend them further and add new patches.

patSH3r-code is licensed under the GNU GPL3 license. Contributions are welcome.

FEATURES:
  • Watch officer experience
Range estimation will suffer penalties if the WO don't have the Watchman qualification and/or is inexperienced. (For more in depth information, see Watch officer experience - Explained)
  • Watch officer & hydrophone targeting
Watch officer will estimate range and bearing on locked target. Hydrophone will report on the hydrophone targeted contact. If no target is locked/targeted, the closest ship is reported.
  • Repair time factor (not V16b1)
This fix sets the repair time factor, to make it act a bit more realistic. It also displays the time left of the repairs correct.
  • Night vision factor
Lets you set the reduced view range when its dark, to make spotting of ships act more realistic. This patch is based on H.sies Night Vision Fix. The patch will override a H.sie patched exe if enabled.
  • Watch officer to bridge
The watch officer - with best endurance - in either bow- or stern compartment, will be moved to bridge when surfacing.
This patch will override the hsie equivalent if both are enabled.
  • No news TC1
Time compression will not fall down to 1 when recieving news.
Minor fixes
- profile_name - Lets you choose a profile directory under your personal SH3 folder to store the game data.
- Bugfix: Stupid petty officer - All crew are moved between electric and diesel compartments when submerging and surfacing.

INSTALLATION:
Unzip the downloaded file and copy the two files (patSH3r.act & patSH3r.cfg) to the directory where your SH3 installations resides. patSH3r will do its magic next time you start the game.

To remove it. Just remove patSH3r.act & patSH3r.cfg and there will be no magic no more.

patSH3r is compatible with all different v1.4 EXE-files including the v1.6B1 h.sie patched ones. Some patches (if incompatible) will be disabled automatically, so no harm will come to your experience.

DOWNLOADS:

Current revision: 36
latest-patSH3r.zip

Source repository

CREDITS & Special Thanks:
  • H.sie - for opening his source code which perhaps will be the source of many patches to come.
  • Stiebler - for a comprehensive list of memory locations.
aero16, Magic1111


Known Bugs:
None

Have a nice day!

/Fader Berg
__________________
patSH3r-developer
Type II junkie

Last edited by Fader_Berg; 06-28-2016 at 04:14 AM.
Fader_Berg is offline   Reply With Quote
Old 10-11-2015, 05:04 AM   #2
areo16
Weps
 
Join Date: Oct 2013
Posts: 352
Downloads: 57
Uploads: 0
Default

Quote:
Originally Posted by Fader_Berg View Post
- patSH3r -

patSH3r changes the way Silent Hunter III works by bringing new functionallity to the game. It uses a technique called code injection, which adds/replaces code in live memory while running the game. Thus it doesn't make modifications to any of the original game files. When the files belonging to this project are removed, the game is left as nothing ever happened.

I'm restarting this project from scratch, since h.sie's project have died out. The first goal is to rewrite the h.sie patches (copy the behaviour, not the code) into this project, and later on extend them further and add new patches.

patSH3r-code is licensed under the GNU GPL3 license. Contributions are welcome.

FEATURES:
  • WO range estimation fix
Currently this fix mimics the h.sie range estimation fix (yet only WO). Accuracy is off by the following rules:
- Range < 2000m: Steps: 100m
- Range 2000-4000m: Steps: 200m
- Range 4000-9000m: Steps: 500m
- Range 9000-12000m: Steps: 1000m
- Range > 12000m: Steps: 2000m

INSTALLATION:
Unzip the downloaded file and copy the two files (patSH3r.act & patSH3r.cfg) to the directory where your SH3 installations resides. patSH3r will do its magic next time you start the game.

To remove it. Just remove patSH3r.act & patSH3r.cfg and there will be no magic no more.
DOWNLOADS:
latest-patSH3r.zip
latest-patSH3r-source.zip

Have a nice day!

/Fader Berg
I'm so glad someone here who has some time and knows about code injection has taken on this project. Your skills are valueable. Do you mind sharing your methods for reverse engineering? Do you use CheatEngine or just read the hex directly in OllyDbg or WinHex?

What do you write in? C#?

I do have some other information that may be of assistance to you. Let me know if you need it. It regards information about the EXE.
areo16 is offline   Reply With Quote
Old 10-11-2015, 05:28 AM   #3
Fader_Berg
Lieutenant
 
Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 253
Downloads: 41
Uploads: 0
Default

Quote:
Originally Posted by areo16 View Post
I'm so glad someone here who has some time and knows about code injection has taken on this project. Your skills are valueable. Do you mind sharing your methods for reverse engineering? Do you use CheatEngine or just read the hex directly in OllyDbg or WinHex?

What do you write in? C#?

I do have some other information that may be of assistance to you. Let me know if you need it. It regards information about the EXE.
I've not been using CheatEngine so far, but it will be required along the road. I'm currently using Ollydbg 1.10 and HT Editor (http://hte.sourceforge.net/).

I write in plain good old C and assembler.

You're more than welcome to contribute in one or another way. Code snippets or just general findings. All small contributions will sum up to the big whole.
__________________
patSH3r-developer
Type II junkie

Last edited by Fader_Berg; 10-11-2015 at 05:44 AM.
Fader_Berg is offline   Reply With Quote
Old 10-11-2015, 05:44 AM   #4
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,114
Downloads: 144
Uploads: 12
Default

Hi Fader_Berg,

good news! There is still much room for improvements!

One question: Why don't you start from H.Sie's patched exe for injecting the new code? I guess this would save a lot of work and time because re-doing H.Sie's work will be A LOT of work without benefit for the community.

Regards, LGN1
LGN1 is offline   Reply With Quote
Old 10-11-2015, 06:06 AM   #5
Fader_Berg
Lieutenant
 
Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 253
Downloads: 41
Uploads: 0
Default

Quote:
Originally Posted by LGN1 View Post
Hi Fader_Berg,

good news! There is still much room for improvements!

One question: Why don't you start from H.Sie's patched exe for injecting the new code? I guess this would save a lot of work and time because re-doing H.Sie's work will be A LOT of work without benefit for the community.

Regards, LGN1
Going through h.sies patches is a good way to learn his findings and catch up with the program flow (where things are at). But ofcourse... If I find something that steals my attention for a bit, I won't hesitate.
There is a huge benefit for the community. First of all, I share my code to you all and everyone is welcome to join in at any time. Second; it's mainly written in C, which is far more simplier than assambly to cope with. I think we'll reach a larger developer base.
__________________
patSH3r-developer
Type II junkie
Fader_Berg is offline   Reply With Quote
Old 10-11-2015, 07:00 AM   #6
La vache
Helmsman
 
Join Date: Nov 2012
Posts: 109
Downloads: 104
Uploads: 0
Default

Good news

Will they also add "Added crew rotation" for new version?
This was no longer compatible with h.sie / stiebler.exe.

Regards, La vache
__________________
U-218 U-2324
La vache is offline   Reply With Quote
Old 10-11-2015, 12:53 PM   #7
areo16
Weps
 
Join Date: Oct 2013
Posts: 352
Downloads: 57
Uploads: 0
Default

Quote:
Originally Posted by LGN1 View Post
Hi Fader_Berg,

good news! There is still much room for improvements!

One question: Why don't you start from H.Sie's patched exe for injecting the new code? I guess this would save a lot of work and time because re-doing H.Sie's work will be A LOT of work without benefit for the community.

Regards, LGN1
H.Sie's work isn't open source is it?
areo16 is offline   Reply With Quote
Old 10-12-2015, 01:12 PM   #8
Fader_Berg
Lieutenant
 
Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 253
Downloads: 41
Uploads: 0
Default

r16:
  • Code clean-up
  • Removed inaccurate_wo
  • Added wo_experience


Watch Officer Experience

Range estimation will suffer penalties if the WO don't have the Watchman qualification and/or is inexperienced.
__________________
patSH3r-developer
Type II junkie
Fader_Berg is offline   Reply With Quote
Old 10-24-2015, 05:31 PM   #9
BL!TZKR!EG
Ocean Warrior
 
Join Date: Mar 2013
Posts: 2,927
Downloads: 40
Uploads: 76


Default

Quote:
Originally Posted by areo16 View Post
H.Sie's work isn't open source is it?
It is. Since NOW (!)
BL!TZKR!EG is offline   Reply With Quote
Old 10-15-2015, 03:34 AM   #10
Anvar1061
Ace of the Deep
 
Join Date: May 2012
Location: on land,on air and on sea
Posts: 1,090
Downloads: 575
Uploads: 0
Default

Quote:
Originally Posted by Fader_Berg View Post
INSTALLATION:Unzip the downloaded file and copy the two files (patSH3r.act & patSH3r.cfg) to the directory where your SH3 installations resides. patSH3r will do its magic next time you start the game.
To remove it. Just remove patSH3r.act & patSH3r.cfg and there will be no magic no more.
patSH3r is compatible with all different v1.4 EXE-files including the v1.6B1 h.sie patched ones.
Fader Berg
SSS
I do not understand why we need this download if you are using only two files to the right.

Anvar1061 is online   Reply With Quote
Old 10-15-2015, 04:04 AM   #11
Fader_Berg
Lieutenant
 
Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 253
Downloads: 41
Uploads: 0
Default

Quote:
Originally Posted by Anvar1061 View Post
SSS
I do not understand why we need this download if you are using only two files to the right.

latest-patSH3r.zip is for people who just want to play the game. No more files are needed for that.
latest-patSH3r-source.zip is for people who want to see the code, and is interested in how it's done.
__________________
patSH3r-developer
Type II junkie
Fader_Berg is offline   Reply With Quote
Old 10-15-2015, 04:30 AM   #12
Fader_Berg
Lieutenant
 
Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 253
Downloads: 41
Uploads: 0
Default

aero16 has given me a list of found memory locations made by Stiebler (with his permisson of course).

I officially want to thank you both for this contribution. This will speed things up.
__________________
patSH3r-developer
Type II junkie
Fader_Berg is offline   Reply With Quote
Old 10-15-2015, 07:40 AM   #13
Fader_Berg
Lieutenant
 
Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 253
Downloads: 41
Uploads: 0
Default

Hmmm... The hydro-guy loses all contacts when the periscope is used. That lovely bug made me threw a way a couple of hours for nothing.
Man... I've been playing this game so many hours, but never noticed it before. Not that I can remember anyways.
__________________
patSH3r-developer
Type II junkie
Fader_Berg is offline   Reply With Quote
Old 10-15-2015, 09:30 AM   #14
makman94
Hellas
 
Join Date: Jul 2008
Posts: 2,334
Downloads: 180
Uploads: 7


Default

Quote:
Originally Posted by Fader_Berg View Post
Hmmm... The hydro-guy loses all contacts when the periscope is used. That lovely bug made me threw a way a couple of hours for nothing.
Man... I've been playing this game so many hours, but never noticed it before. Not that I can remember anyways.
yes...another annoying bug !!

i am very excited with your thread and your achievements ! hope to have success to this new task too!
(see if you can import Rubini's hydrophone layers-plus Leitender's addition- in your code.would be nice to have all in one if possible:
http://www.subsim.com/radioroom/showthread.php?t=193199)

many thanks to Stiebler for his very valuable sharing

all the best to you guys
__________________
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 10-17-2015, 05:45 AM   #15
rowi58
Seasoned Skipper
 
Join Date: Jun 2006
Location: Karlsruhe
Posts: 683
Downloads: 56
Uploads: 0


Default

Quote:
Originally Posted by Fader_Berg View Post
Hmmm... The hydro-guy loses all contacts when the periscope is used. That lovely bug made me threw a way a couple of hours for nothing.
Man... I've been playing this game so many hours, but never noticed it before. Not that I can remember anyways.
Hi Fader_Berg,

this is not a bug, this is normal. The sensor "Visual" is the dominat sensor. If a ship is in the range of this sensor, the hydrophone lines will disappeaer. And if you loose the visual contact - they come back. The same with the radar and rwr.

And that is very good becuase you can't identify a sighted ship within a labyrinth of black hydro-lines.

Greetings
rowi58
__________________
rowi58 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 09:41 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright © 1995- 2018 Subsim