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 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 05-24-12, 04:41 PM   #1
flostt
Sonar Guy
 
Join Date: Sep 2010
Location: Switzerland
Posts: 384
Downloads: 86
Uploads: 0
Default

Quote:
Originally Posted by gap View Post

By the way, I've found a quite comprehensive essay on the torpedo crisis. Here's the link, just in case some willing person wants to dig in it, looking for facts and figures:

http://eaglescholar.georgiasouthern...._201005_MA.pdf
thanks for sharing this gap, very interesting to read, especially the failure rates at the beginning of the war and all the reasons for the failures
__________________
Von den 40'000 deutschen U-Boot-Männern des Zweiten Weltkrieges kehrten 30'000 nicht zurück...
40’000 German sailors served on U-boats during World War II – 30’000 never returned home...
flostt is offline   Reply With Quote
Old 05-25-12, 10:00 AM   #2
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by flostt View Post
thanks for sharing this gap, very interesting to read, especially the failure rates at the beginning of the war and all the reasons for the failures
yep, in my opinion that's a very good reference. I am glad that you like it too!
gap is offline   Reply With Quote
Old 05-25-12, 02:39 PM   #3
flostt
Sonar Guy
 
Join Date: Sep 2010
Location: Switzerland
Posts: 384
Downloads: 86
Uploads: 0
Default

When using TDW's Generic Patcher remember his note at the bottom of post #1 :

NOTE: DISABLE ALL PATCHES WITH OLD PATCHER BEFORE APPLYING NEW PATCHES WITH NEW PATCHER! THIS APPLIES ONLY TO PATCHES RELATED TO SHSIM.ACT AND SHCOLLISIONS.ACT

I read it and forgot about it......and it took me quite a while to get everything fixed again.....
__________________
Von den 40'000 deutschen U-Boot-Männern des Zweiten Weltkrieges kehrten 30'000 nicht zurück...
40’000 German sailors served on U-boats during World War II – 30’000 never returned home...
flostt is offline   Reply With Quote
Old 05-25-12, 09:11 PM   #4
Deepsheep
Nub
 
Join Date: Mar 2010
Posts: 2
Downloads: 13
Uploads: 0
Default

I have a steam version of the game. I'm sad the current patch will not work with my version, but it sounds like applying the fix at runtime would solve this issue as well.
Deepsheep is offline   Reply With Quote
Old 05-26-12, 12:05 AM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

v1.0.31.0 released. See post #1

This version adds the ability to attach to a process and inject/remove DLLs.

To attach to a process selected File-->Attach. To detach from the process select File-->Detach.

To inject a DLL/ACT file click Inject button. To remove a DLL/ACT file from the process select the file you want to remove from the Loaded modules listview. Then click Remove.

Everything else should be pretty self-explanatory.

If it's unable to inject/remove it's probably because you have older version of kernel32.dll on your computer. Currently I have the offsets for LoadLibraryA and FreeLibrary hard-coded. I have to add code that will read the IAT to get it's address yet.

This can be run on 32bit or 64bit OSs. I have it coded to select the appropriate function calls based on whether your OS is 32 bit or 64 bit.

Working on the ability to inject/remove files that are nothing but hex code. Since I can't call LoadLibraryA and FreeLibrary on them (they're not DLLs) I have to code in something to allocate process memory and then dump the contents of those files into the new process memory.

TheDarkWraith is offline   Reply With Quote
Old 05-26-12, 01:05 PM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

v1.0.33.0 released. See post #1

This version allows you to inject a file (ANY type of file) into a process. You also have the option of executing the file you loaded You can inject ANY file into a process (bmp, hex, txt, etc, dll, exe).

If you elect to execute the file you injected, the last command HAS to be a RETN statement (or a RETN x if you need to pop temp variables off the stack). If you forget this the process WILL CRASH! You don't have to add the RETN statement if you are going to branch to somewhere else in the process but in doing so don't forget to pop the return value pushed onto the stack by the stub!

The execution will begin at the first byte found in the file. I'll add a way for you to specify beginning execution point in next version.

I've included a little file (TestFile(retn).hex) that you can inject into the SH5 process. When it asks if you want to execute it say yes. SH5 will never know anything every happened! The file is just one command, RETN, which means return to caller. Here's how the inject file works:
- the app allocates memory in the process in a multiple of pagesize to fit the file being injected
- the file contents are copied into this memory
- if the user selected execute then:
- a stub is made that will branch execution to the injected file. The first thing the stub does is push the EIP to the stack. This way when the injected code issues a RETN statement execution goes back to it's original place

There are two new buttons - Inject file and Remove file. They do just as they sound. To remove a file select the file from the Injections listview and then press Remove file.

Working on dumping process memory and reloading it now so user can modify it. Also adding a way to set watches on memory and letting you define the update time interval on them

The LoadLibraryA and FreeLibray offsets are still hardcoded for kernel32.dll. If you get failed to inject or failed to remove it's probably because you have older version of kernel32.dll installed on your computer. I should have these hard codes removed in next version.

TheDarkWraith is offline   Reply With Quote
Old 05-26-12, 01:42 PM   #7
quink99
中国水兵
 
Join Date: Jul 2011
Posts: 278
Downloads: 941
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
v1.0.33.0 released. See post #1

This version allows you to inject a file (ANY type of file) into a process. You also have the option of executing the file you loaded You can inject ANY file into a process (bmp, hex, txt, etc, dll, exe).

If you elect to execute the file you injected, the last command HAS to be a RETN statement (or a RETN x if you need to pop temp variables off the stack). If you forget this the process WILL CRASH! You don't have to add the RETN statement if you are going to branch to somewhere else in the process but in doing so don't forget to pop the return value pushed onto the stack by the stub!

The execution will begin at the first byte found in the file. I'll add a way for you to specify beginning execution point in next version.

I've included a little file (TestFile(retn).hex) that you can inject into the SH5 process. When it asks if you want to execute it say yes. SH5 will never know anything every happened! The file is just one command, RETN, which means return to caller. Here's how the inject file works:
- the app allocates memory in the process in a multiple of pagesize to fit the file being injected
- the file contents are copied into this memory
- if the user selected execute then:
- a stub is made that will branch execution to the injected file. The first thing the stub does is push the EIP to the stack. This way when the injected code issues a RETN statement execution goes back to it's original place

There are two new buttons - Inject file and Remove file. They do just as they sound. To remove a file select the file from the Injections listview and then press Remove file.

Working on dumping process memory and reloading it now so user can modify it. Also adding a way to set watches on memory and letting you define the update time interval on them

The LoadLibraryA and FreeLibray offsets are still hardcoded for kernel32.dll. If you get failed to inject or failed to remove it's probably because you have older version of kernel32.dll installed on your computer. I should have these hard codes removed in next version.

TDW, I was wondering if you might have a Child's Garden-type explanation of your revised MOD above of what this revision is and what it does spoken slowly and using small words for those computer poster children among'st us.

Thanks
quink99 is offline   Reply With Quote
Old 05-26-12, 01:48 PM   #8
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default



To see this is great , but it is beyond my knowledge

What this mean in concrete

The possibility of adding what ?

- Contollers for. SIM? (Dials, lights ....)

- Otherwise to open other programes eg: Enigma, sextant ...

- .....
__________________
~~~~BigReg~BigRegOne~~~~



"Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water."

Proverbe Shadok

Last edited by BIGREG; 05-26-12 at 02:38 PM.
BIGREG 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 05:07 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.