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 02-28-11, 10:32 AM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

The 32bit version of SH5 injector has a flaw in it. For those who have downloaded it please do not use! The problem with it is the incorrect RVA is given for the LoadLibrary and FreeLibrary functions in kernel32.dll.

Normally one calls the Win32 API function GetProcAddress to get the address of the function they want to call in a dll. I had problems getting that working correctly with 64bit OS so I found another way to do it. Since I know the base address of kernel32.dll I just add an offset to that base to get to the function(s) I want (I know this offset from using dumpbin on kernel32.dll). Now here's the problem: Win7 64bit uses WoW (Windows 32 on Windows 64) to enable 32bit apps to run in the 64bit environment. When in WoW mode, kernel32.dll is different from the 32bit version of kernel32.dll (there are two versions of it on 64bit). This means the offsets are also different for the functions I need I'll be revising the 32bit version with the correct offsets here soon.

EDIT:

problem has been corrected. Now if someone can verify that the 32bit version works I would greatly appreciate it I know the 64bit version works correctly as I run a 64bit OS.

Last edited by TheDarkWraith; 02-28-11 at 10:45 AM.
TheDarkWraith is offline   Reply With Quote
Old 02-28-11, 11:03 AM   #2
Beltza
Mate
 
Join Date: Feb 2003
Location: España
Posts: 56
Downloads: 128
Uploads: 0
Default

All that sounds great!!!!

__________________
24th Flotilla Commander
Commander of the U 110
www.24flotilla.com
Beltza is offline   Reply With Quote
Old 02-28-11, 03:57 PM   #3
marleymen
Planesman
 
Join Date: Apr 2005
Location: Con dos cojones, ESPAÑA
Posts: 190
Downloads: 126
Uploads: 0
Default

Please moderators, this post should be moved to "SH5 Guru Programming" subforum.

marleymen is offline   Reply With Quote
Old 02-28-11, 04:14 PM   #4
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Excellent Tool for breaking OSI.exe

As I don't want to be brigged nor banned?
That's all I'll say on OSI
  Reply With Quote
Old 06-10-11, 12:36 PM   #5
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
Default

Quote:
Originally Posted by TheDarkWraith View Post
EDIT:

problem has been corrected. Now if someone can verify that the 32bit version works I would greatly appreciate it I know the 64bit version works correctly as I run a 64bit OS.

Keep getting an "SH5 Process not found!" error
Is there an SH3 version

Sh5 is up and running. SH5Injector32.exe is in SH5 Directory.
reaper7 is offline   Reply With Quote
Old 06-10-11, 02:43 PM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by reaper7 View Post
Keep getting an "SH5 Process not found!" error
Is there an SH3 version

Sh5 is up and running. SH5Injector32.exe is in SH5 Directory.
Do you have SH5 running when you try to run the app? If so, what version of the game do you have (steam, DVD, D2D,)?

I haven't made an SH3 version yet but I will.
TheDarkWraith is offline   Reply With Quote
Old 06-10-11, 04:10 PM   #7
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
Default

Quote:
Originally Posted by TheDarkWraith View Post
Do you have SH5 running when you try to run the app? If so, what version of the game do you have (steam, DVD, D2D,)?

I haven't made an SH3 version yet but I will.

Yes SH5 is running and using DVD version patched to 1.2 OS is Win7 32bit.
reaper7 is offline   Reply With Quote
Reply


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 08:18 AM.


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