![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 |
Ace of the deep .
|
![]()
This is prolly lame , but with this could you click on a button in game and bring up google earth and look at your navmarks on google earth while playing the game .
|
![]() |
![]() |
![]() |
#2 | |
Black Magic
![]() |
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#3 |
Ace of the deep .
|
![]()
You can already look at your sunk ship icons on google earth if you go on the official silent hunter 5 site . Not while playing the game though .
|
![]() |
![]() |
![]() |
#4 |
Ace of the deep .
|
![]()
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 .
|
![]() |
![]() |
![]() |
#5 | |
Black Magic
![]() |
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#6 | |
Sea Lord
![]() Join Date: Mar 2010
Posts: 1,845
Downloads: 184
Uploads: 2
|
![]() Quote:
Is no way to "suck" this data from g2w.ubi.com and make it available in the game?! |
|
![]() |
![]() |
![]() |
#7 |
Admiral
![]() |
![]()
@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 Last edited by h.sie; 02-28-11 at 07:22 AM. |
![]() |
![]() |
![]() |
#8 | |
Black Magic
![]() |
![]() 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). |
|
![]() |
![]() |
![]() |
#9 |
Black Magic
![]() |
![]()
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 ![]() EDIT: problem has been corrected. Now if someone can verify that the 32bit version works I would greatly appreciate it ![]() Last edited by TheDarkWraith; 02-28-11 at 10:45 AM. |
![]() |
![]() |
![]() |
#10 | |
Sea Lord
![]() Join Date: Jun 2006
Location: Somewhere else now
Posts: 1,740
Downloads: 825
Uploads: 4
|
![]() Quote:
![]() Maybe UBI's copyright infringement never went so far into these 'dynamics', then that's their problem....and I don't think they have the expertise to cover all windows's 'gaps'. ![]() |
|
![]() |
![]() |
![]() |
#11 | |
Ocean Warrior
![]() Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,983
Downloads: 102
Uploads: 1
|
![]()
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:
![]() |
|
![]() |
![]() |
![]() |
#12 | |
Black Magic
![]() |
![]() 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. |
|
![]() |
![]() |
![]() |
#13 | ||
Bilge Rat
![]() Join Date: Oct 2011
Posts: 1
Downloads: 49
Uploads: 0
|
![]()
Sorry for this necro-quote/post but i was wondering ...
Quote:
Quote:
This tool translate pure, but implicitly statically typed Python (2.4-2.6) programs into optimized C++ ( and dll if i'm correct ) Can we use this to improve the horrendous loading time and cpu usage of SHV ? Is such a feat possible, if so where do I begin ? |
||
![]() |
![]() |
![]() |
|
|