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-21-10, 07:22 AM   #1
Klub Bilderberg
Swabbie
 
Join Date: May 2010
Posts: 12
Downloads: 47
Uploads: 0
Default [TEC] wide moding playground using a gamehook

Hello fellow modders.

All of us know that we are pretty much limited about modding this game. Because modding in its traditional way is mostly changing parameters or graphics given by developers.

At this point ive got an idea how we can overcome those limits and maybe offer much more exiting mods. Im talking about game hooks. Not sure if this has been ever tried before so lets discuss.

for lads im not talking about hacking the game. A game hook in its general form must not be a hack. Basically it is an external tool that injects code into running process (i.e. sh5.exe). It can read out what is going on inside the game engine and eventualy bring its own logic in by reading private parameters (what you would call "hardcoded stuff") and/or calling functions under certain circumstances.

just a few examples what might be possible when we use a game hook for moding the game:

+ we can change the game logic. Like spawn other submarines in order to make a real dynamic wulfspack operations.

+ we can make dramatic changes to the AI

+ we can change the way how the 3d engine renders the scene.

+ we can fix bugs that are outside of moding area in its traditional way

+ we can add new game content

basically our options are only limited by our fantasy and coding skills.
Actualy i feel absolutely confident about what is possible. Because i doubt that the devs has put much effort into hiding code entries because there is no need in a wallhacks or aimbots in a subsim.

discuss

Last edited by Klub Bilderberg; 05-21-10 at 07:59 AM.
Klub Bilderberg is offline   Reply With Quote
Old 05-21-10, 08:03 AM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Klub Bilderberg View Post
Hello fellow modders.

All of us know that we are pretty much limited about modding this game. Because modding in its traditional way is mostly changing parameters or graphics given by developers.

At this point ive got an idea how we can overcome those limits and maybe offer much more exiting mods. Im talking about game hooks. Not sure if this has been ever tried before so lets discuss.

for lads im not talking about hacking the game. A game hook in its general form must not be a hack. Basically it is an external tool that injects code into running process (i.e. sh5.exe). It can read out what is going on inside the game engine and eventualy bring its own logic in by reading private parameters (what you would call "hardcoded stuff") and/or calling functions under certain circumstances.

just a few examples what might be possible when we use a game hook for moding the game:

+ we can change the game logic. Like spawn other submarines in order to make a real dynamic wulfspack operations.

+ we can make dramatic changes to the AI

+ we can change the way how the 3d engine renders the scene.

+ we can fix bugs that are outside of moding area in its traditional way

+ we can add new game content

basically our options are only limited by our fantasy and coding skills.
Actualy i feel absolutely confident about what is possible. Because i doubt that the devs has put much effort into hiding code entries because there is no need in a wallhacks or aimbots in a subsim.

discuss
In a way what you're doing is looking for security vulnerabilities, buffer overflows, and the likes so that you can inject code into them to call functions outside of the current application
TheDarkWraith is offline   Reply With Quote
Old 05-21-10, 08:53 AM   #3
Klub Bilderberg
Swabbie
 
Join Date: May 2010
Posts: 12
Downloads: 47
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
In a way what you're doing is looking for security vulnerabilities, buffer overflows, and the likes so that you can inject code into them to call functions outside of the current application
not realy. I was thinking about simple dll injection. after all sh5 is a windows process.
Klub Bilderberg is offline   Reply With Quote
Old 05-21-10, 10:43 AM   #4
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 26
Uploads: 3
Default

My speech mod uses an injected DLL. Technically, it's not even injecting, because you do not need to do tricky stuff, you can load any DLL from script. Hooking the DirectX functions or other functions, is very easy now (as opposed to SH3/4 where you actually need to inject a DLL using an injector). It all runs in the same process space so no memory related problems either.
skwasjer is offline   Reply With Quote
Old 05-21-10, 10:53 AM   #5
mobucks
Seasoned Skipper
 
Join Date: Jan 2010
Posts: 713
Downloads: 209
Uploads: 0
Default

but doesnt each one become outdated as soon as a new patch rolls around? (not much of an issue for SH5 but....) Someone made an excellent hook for Empire Total War that solved all the 3d models turning into 2d sprites at X distance, but only for one patch, and he wont make it again because it was such a pain to go through all the variables ect.
mobucks is offline   Reply With Quote
Old 06-24-10, 09:46 AM   #6
aergistal
Chief
 
Join Date: May 2010
Location: France
Posts: 326
Downloads: 23
Uploads: 1
Default

Before thinking about more advanced stuff I wish there was an easy way to just display a form on top of a fullscreen DX application.
aergistal is offline   Reply With Quote
Old 06-26-10, 04:13 AM   #7
urfisch
Sea Lord
 
Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,969
Downloads: 42
Uploads: 0
Default

nice idea!!!
__________________


urfisch 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 07:09 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.