![]() |
Quote:
|
Could this be done to earlier Silent Hunter games as well? Or would it be possible to take features missing/taken out of SH5 that were in 3 & 4 and put them back in?
(New Ships?? Switch over from GR2 Files??) |
Quote:
Anything is possible when you are able to inject DLLs into a running process. The DLL being injected defines what the new features are or removes some functionality or ??? Really you can do anything with it that you can code. |
So theoretically you could link 2 diffrent games up together . I could be playing SH5 , walk thru a door in the bunker and be instantly playing COD 5 entering a village . Walk thru a door in COD 5 that was coded in and be back in the SH5 bunker . Just a lame example .
|
Quote:
|
Quote:
could be possible then make a surface warships game or more complex submarines or weapons |
Quote:
|
:D Dam.. I could see the CWSS guys making good use of this in the SH4 Mod Workshop
|
Quote:
What most people don't know is that a .exe file is mapped in memory by the Windows loader when the process is started. By copying these memory blocks one can assemble their own .exe file. So after injecting your .dll you could have it save the memory regions to a file (with an appropriate PE header) thus creating a new version of the sh5.exe file (a patched version if you will with your changes). Sounds easy to do but it's rather involved (but doable). |
"SH4 Injector": Possibility?
DarkWraith,
I think Jhapprich can make good use of this for CWSS, (Cold Warriors: Steel Sharks). which is supposed to bring SH4 into the Cold War! i posted a reply on the CWSS thread found here: http://www.subsim.com/radioroom/showthread.php?t=161396 i said that i would recommend this program and to ask for a 32bit version for SH4:rock::up: ill shoot him a PM aswell. Yamato_NF |
Quote:
|
32bit version released for SH5. You'll have to tell me if this works or not (on a 32bit OS) as I run Windows 7 64bit and this whole WoW (Windows on Windows) stuff screws me up big time :shifty:
|
Quote:
Is no way to "suck" this data from g2w.ubi.com and make it available in the game?! |
@TDW: Very interesting and promising thread.
Until now I directly injected Hex Code into sh3.exe and some .act files in order to do some realism changes and additions. See this thread for details: http://www.subsim.com/radioroom/showthread.php?t=174225 I still stick on direct HexCode Injection because I am not very familiar to DLL based code injection. My question to you is: Does DLL code injection also work for .act files, which are loaded into different memory locations every time a game is started because of address space layout randomization (ASLR) in newer 64 Bit systems? By the way: In SH3, DLL code injection seems to be very easy, just place your .act file into the sh3 install directory and it will be loaded automatically by sh3.exe when it starts, regardless of it's name. Thanks very much and good luck! h.sie |
Quote:
Your question about DLL code injection for .act files I don't understand. Maybe you're asking if DLL code injection places the loaded module at random memory locations everytime it's injected? If so, the answer is yes. The Windows loader determines where the module will be placed in memory. Now some will say well how can you inject new code if the memory address is always changing? The answer is simple. You hook into the main game code and point it to your code. You have DLLMain do the hook into the main game code (suspend the main game thread - add hook - resume main game thread). |
All times are GMT -5. The time now is 01:00 PM. |
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.