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 10-11-15, 03:59 AM   #1
Fader_Berg
中国水兵
 
Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 278
Downloads: 48
Uploads: 0
Default patSH3r - Reborn

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

patSH3r changes the way Silent Hunter III works by bringing new functionality 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... again. After getting a new interest in SH3. This time I'm going full assembly because it's easier to implement. And since no one ever joined in on the C-code, there is not much use of making things more accessible/complicated.


!!! patSH3r is no longer compatible with hsie-patched exe's !!!

FEATURES:
Read the manual for more information.


DOWNLOADS:
Current revision: 48

Download patSH3r and the manual from https://fb.tuxxor.net/


CREDITS & Special Thanks:
  • makman94 for testing and advices
  • H.sie - for opening his source code which perhaps will be the source of many patches to come.


Known Bugs:
None

Have a nice day!

/Fader Berg
__________________
patSH3r-developer, (https://fb.tuxxor.net)
Type II junkie

Last edited by Fader_Berg; 12-24-18 at 05:37 AM.
Fader_Berg is offline   Reply With Quote
Old 10-11-15, 04:04 AM   #2
areo16
Sonar Guy
 
Join Date: Oct 2013
Posts: 377
Downloads: 64
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-15, 04:28 AM   #3
Fader_Berg
中国水兵
 
Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 278
Downloads: 48
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, (https://fb.tuxxor.net)
Type II junkie

Last edited by Fader_Berg; 10-11-15 at 04:44 AM.
Fader_Berg is offline   Reply With Quote
Old 10-11-15, 04:44 AM   #4
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,138
Downloads: 147
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-15, 05:06 AM   #5
Fader_Berg
中国水兵
 
Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 278
Downloads: 48
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, (https://fb.tuxxor.net)
Type II junkie
Fader_Berg is offline   Reply With Quote
Old 10-11-15, 06:00 AM   #6
La vache
Electrician's Mate
 
Join Date: Nov 2012
Posts: 138
Downloads: 193
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
__________________
youtube
La vache is offline   Reply With Quote
Old 10-11-15, 06:27 AM   #7
Fader_Berg
中国水兵
 
Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 278
Downloads: 48
Uploads: 0
Default

Quote:
Originally Posted by La vache View Post
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
I'll look into it, but I don't know when.
__________________
patSH3r-developer, (https://fb.tuxxor.net)
Type II junkie
Fader_Berg is offline   Reply With Quote
Old 10-11-15, 11:53 AM   #8
areo16
Sonar Guy
 
Join Date: Oct 2013
Posts: 377
Downloads: 64
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-15, 12:12 PM   #9
Fader_Berg
中国水兵
 
Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 278
Downloads: 48
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, (https://fb.tuxxor.net)
Type II junkie
Fader_Berg is offline   Reply With Quote
Old 10-12-15, 04:51 PM   #10
Fader_Berg
中国水兵
 
Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 278
Downloads: 48
Uploads: 0
Default

r17:
  • Added wo_targeting


Watch officer targeting

Watch officer will give bearing and range to locked target (or pointed to with UZO). If no target is locked, the closest ship is reported.
__________________
patSH3r-developer, (https://fb.tuxxor.net)
Type II junkie
Fader_Berg is offline   Reply With Quote
Old 10-13-15, 09:29 AM   #11
makman94
Hellas
 
Join Date: Jul 2008
Posts: 2,325
Downloads: 182
Uploads: 7


Default

The sun is rising again for the moding of sh3

did i get it right ? no patching the .exe is needed ? just dropping the files in sh3 folder ? this is...heaven mate

also, this new feature you added ,WO giving range estimations for the locked target (and not for the closer ship) is more that needed and usefull !!!
i still remember the damn destroyer getting into WO eyes as closer item when i was looking for the large cargo


thank you very very much for these stuff Fader_Berg


question:
do you believe that is doable to alter the target's behaviour (routines) and make them 'smarter' ? you know , i am talking about if we can get rid of this silly zig-zagging (but staying on their current course) when the u-boat is detected or when they are attacked by torpedo
__________________
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-13-15, 11:35 AM   #12
Fader_Berg
中国水兵
 
Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 278
Downloads: 48
Uploads: 0
Default

Quote:
Originally Posted by makman94 View Post
do you believe that is doable to alter the target's behaviour (routines) and make them 'smarter' ? you know , i am talking about if we can get rid of this silly zig-zagging (but staying on their current course) when the u-boat is detected or when they are attacked by torpedo
Everything is possible, but I'm not sure I can do it. It sounds hard to find where this code is running and I don't think I'll look for it in a long, long time. Maybe if I just happen to run into it.
__________________
patSH3r-developer, (https://fb.tuxxor.net)
Type II junkie
Fader_Berg is offline   Reply With Quote
Old 10-13-15, 12:24 PM   #13
jaxa
The Old Man
 
Join Date: Mar 2005
Location: Poland
Posts: 1,485
Downloads: 413
Uploads: 0
Default

It's really very interesting, especially new WO behaviour depending on his experience .
What would you like to include in this mod in near future?
__________________
SHIII + GWX 3 Gold + V16B1 hardcode fixes + SH3Commander
SHIV + OM + OMEGU
SHV + WoS
jaxa is offline   Reply With Quote
Old 10-13-15, 12:24 PM   #14
sublynx
Sea Lord
 
Join Date: Mar 2011
Location: In the conning tower of my VIIC scanning the sea through the periscope
Posts: 1,698
Downloads: 173
Uploads: 7
Default

Range to the locked target!?! That's extremely useful Thanks a lot!
__________________
[SIGPIC][/SIGPIC]
NYGM+H.sie v16+Stiebler 4C+MaGui WS
sublynx is offline   Reply With Quote
Old 10-13-15, 02:00 PM   #15
Fader_Berg
中国水兵
 
Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 278
Downloads: 48
Uploads: 0
Default

Quote:
Originally Posted by jaxa View Post
It's really very interesting, especially new WO behaviour depending on his experience .
What would you like to include in this mod in near future?
I'm just playing around for now and getting to know my way. It depends much on what I run into.
Personally I miss a lot of things regarding the crew when I play. I want them to become a bigger part of the game. Make the experience more important than it is today. They should leave a bit of grief when they die or get transfered, 'cause you've worked so hard and long with them.
__________________
patSH3r-developer, (https://fb.tuxxor.net)
Type II junkie
Fader_Berg 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 12:16 AM.


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