![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|||||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
05-26-12, 01:42 PM
|
#1 | |
|
中国水兵
![]() Join Date: Jul 2011
Posts: 278
Downloads: 941
Uploads: 0
|
Quote:
Thanks |
|
|
|
05-26-12, 02:30 PM
|
#2 | |
|
Ocean Warrior
![]() |
Quote:
I would say the same thing, but couldn't find the right words.. my poor English.. I don't understand it myself (my poor English), and I can't explain this in sukhoi.ru.. TDW! Maybe you can make a simple version for children, please!
__________________
. Where does human stupidity end? . ![]() ![]() El sueño de la razón produce monstruos © - and for some people awakening will be cruel |
|
|
|
05-26-12, 04:03 PM
|
#3 |
|
Nub
![]() Join Date: May 2009
Posts: 3
Downloads: 5
Uploads: 0
|
Oh my! I can't seem to find the older patches, but the CO2 fix in the latest asks for it. What do I do?
|
|
|
05-26-12, 04:06 PM
|
#4 | ||
|
Black Magic
![]() |
Quote:
Quote:
DLL injection let's you write code in some editor (Visual Studio for instance), compile that code into a DLL, and then inject that into a process to either change it's functionality, override a functionality, and/or add new functionality. Now simply injecting a DLL isn't going to do much. Yes, the DLL is now part of the process but it's never being 'called'. You need to add hooks into the existing code so that your new code is called. If you're really computer saavy you can replace an existing DLL with your own. That lets you do things the app never intended to do (DLL injection/code injection does also but this way is easier for some) Injecting a file is just as it sounds - taking the contents of a file and placing it inside an active process. What does this do for you? I can think of many things! You all are familiar with my patches - you load up the patch file and then you enable the patches you want. Think of those patches as files being injected into the SH5 process (I actually write new data to existing files but it should help you understand the concept). Now for those of you, like me, who love assembly (long live DOS!) injecting a file is the way to go. You can write your 'code' in an assembler, take the hex file generated and inject it into the process. Once I code in the ability to dump and replace process memory then you will have an easy way to add your hooks to call your new code. I'm working on the ability to add watches currently. If your familiar with Visual Studio then you know what watches are already. If not I'll try to make it a little clear: say you have an application that displays a value on a screen and you'd really like to change that value and/or monitor it. We have no idea where this value resides so we have to do a little exploring inside the active process. We pick an area of memory and set a watch on it - the watch will monitor that area of memory for any changes. When it detects changes it can either suspend the process or just update the app with the new value. This allows you to see what that memory is doing in real time. By setting many different watches (and changing what they are monitoring) you will eventually find where the variable is located so you can manipulate it. I made the app generic in nature so that it can be used on anything. It's not fixed to any particular app or process. This app now let's you 'play' in my favorite playground...process memory. You are limited only by your imagination/skill level
Last edited by TheDarkWraith; 05-26-12 at 04:21 PM. |
||
|
|
05-26-12, 05:47 PM
|
#5 | |
|
中国水兵
![]() Join Date: Jul 2011
Posts: 278
Downloads: 941
Uploads: 0
|
Quote:
|
|
|
|
05-26-12, 11:53 PM
|
#6 |
|
Black Magic
![]() |
v1.0.34.0 released. See post #1
You can now add watches Click the watches button to open the watches window. Use Watches-->Add to add watches. Should be pretty self-explanatory ![]() Still working on the dumping/reloading of memory Same thing still applies to the kernel32.dll as I haven't gotten around to coding that either. |
|
|
05-27-12, 03:43 AM
|
#7 |
|
Nub
![]() Join Date: May 2009
Posts: 3
Downloads: 5
Uploads: 0
|
Hey TDW! Where can I find the older patches, like the first one? They don't appear to be in the latest patch's files.
|
|
|
05-27-12, 08:49 AM
|
#8 | |
|
Black Magic
![]() |
Quote:
I'm assuming when you say older patches like the first one you are referring to the hydro fix and map color changes. Those can be found in the TDW_SH5_Patches.s5p file. |
|
|
|
05-27-12, 11:34 AM
|
#9 |
|
Black Magic
![]() |
v1.0.35.0 released. See post #1
This version adds a new patch to the sh5.exe that fixes the broken resupply system while at sea There's no way I could test for the full impact of this change so you all will have to let me know anything odd. All the change does is remove the check that determines the number of resupplies available (thus allowing you to resupply as long as a resupply point is shown on the map) |
|
|
05-27-12, 05:22 PM
|
#10 | |
|
Nub
![]() Join Date: May 2009
Posts: 3
Downloads: 5
Uploads: 0
|
Quote:
|
|
|
|
05-27-12, 09:45 PM
|
#11 |
|
Ace of the deep .
|
Could we have the patcher remember the path to the sh5.exe or is that not allowed . Set path to sh5.exe rather than select path to sh5.exe .
|
|
|
05-27-12, 10:07 PM
|
#12 |
|
Black Magic
![]() |
|
|
|
05-27-12, 10:11 PM
|
#13 |
|
Ace of the deep .
|
|
|
|
06-27-12, 04:51 PM
|
#14 | |
|
Black Magic
![]() |
Quote:
This version remembers the path you last used to the file mentioned in the patch file. It will prompt you if you want to use the path found or select a new one This version (and all subsequent versions) are Linux friendly (compiled against .NET 2.0) |
|
|
|
06-27-12, 05:29 PM
|
#15 |
|
Watch
![]() Join Date: Mar 2010
Posts: 30
Downloads: 249
Uploads: 0
|
Thanks TDW
I wish i had half ur skills in this ... |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
