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 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 07-19-16, 04:20 AM   #1
Haukka81
Medic
 
Join Date: Jan 2008
Location: Oulu, Finland
Posts: 160
Downloads: 368
Uploads: 0
Default

Quote:
Originally Posted by J0313 View Post
I have a question. Why hasn't anybody managed to get into the hardcode of SH4 like they did in SH3? Just asking.


I would like to know too , never found reason for this :O


Sent from my iPhone using Tapatalk
Haukka81 is offline   Reply With Quote
Old 07-19-16, 01:36 PM   #2
CapnScurvy
Admiral
 
CapnScurvy's Avatar
 
Join Date: Apr 2005
Location: Dayton, Ohio
Posts: 2,292
Downloads: 474
Uploads: 64


Default

I can do a lot with the game................but I'm no expert with the hard coded stuff. That's probably about the same answer for most of us. It would take access to the core files to make changes to them. This requires a knowledge of program design, and the tools to work within these files.

Those kinds of tools aren't free for the using. You need to be working within an established computer design company (where they bought your tools and application software for you) and have an interest to work within the SH4 coded files to do the kind of work that's been done with SHIII. So far, no ones stepped up. As with game programing, typical 3D modeling software can cost a 1000 dollars that can do what some have done with the game. Sure Blender is free, but it's not going to do everything what the game calls for.

So, we're left with shuffling around images; adding a new 3D model now and again; coming in through the back door to make a change; or just switching something's name and calling it a modification. We will never get to the real meat and potatoes of the game when we're left to just white wash the surface.
__________________


The HMS Shannon vs. USS Chesapeake outside Boston Harbor June 1, 1813

USS Chesapeake Captain James Lawrence lay mortally wounded...
Quote:
.."tell the men to fire faster, fight 'till she sinks,..boys don't give up the ship!"

Last edited by CapnScurvy; 07-19-16 at 01:46 PM.
CapnScurvy is offline   Reply With Quote
Old 07-19-16, 01:53 PM   #3
aanker
Eternal Patrol
 
aanker's Avatar
 
Join Date: Apr 2004
Location: Yellow Sea
Posts: 1,894
Downloads: 236
Uploads: 14


Default

Quote:
Originally Posted by J0313
I have a question. Why hasn't anybody managed to get into the hardcode of SH4 like they did in SH3? Just asking.
-
Quote:
Originally Posted by Haukka81 View Post
I would like to know too , never found reason for this :O
Is it legal to HEX edit the exe and include it in a mod? That would be like giving SH4 away for free, right? I don't know.

It would be nice to 'un-join' the two screens so each could be elevated to different heights (surface & air) - and display like the SH1 A scope & SJ radar stations. Probably a lot of HEX work and many other files, plus it would still be directional; which isn't historically accurate.

I don't know how powerful the 010 tool is yet.
aanker is offline   Reply With Quote
Old 07-19-16, 03:11 PM   #4
Rockin Robbins
Navy Seal
 
Join Date: Mar 2007
Location: DeLand, FL
Posts: 8,844
Downloads: 136
Uploads: 50


Default

Quote:
Originally Posted by aanker View Post
-

Is it legal to HEX edit the exe and include it in a mod? That would be like giving SH4 away for free, right? I don't know.

It would be nice to 'un-join' the two screens so each could be elevated to different heights (surface & air) - and display like the SH1 A scope & SJ radar stations. Probably a lot of HEX work and many other files, plus it would still be directional; which isn't historically accurate.

I don't know how powerful the 010 tool is yet.
That has been the opinion of SH4 modders from the beginning: that modding is the modification of configuration files in the /data directory. Everything else is hacking. If you read the EULA, which nobody does, we're specifically forbidden to deconstruct, modify, publish a derivative, blah, blah, blah with the executable file.

There has been one exception to that rule in SH4 and that has been MultiSH4, which basically makes a three byte hex edit to the exe to put saves in a directory of your choice (three letter names only!)

As far as decompiling the radar modules, rewriting them, hooking them into the exe so it doesn't know there's been a change, I can't imagine that flying. Early on the the game, 2007 and 2008 we were mighty glad Ubi gave us a moddable game and purposely chose not to do anything they might construe as invasion of their territory.

Our feeling was that if we wanted moddable games in the future we'd better keep our nose clean. So we made a strict definition of what permissible modding was.

I'm not familiar with what the SH3 modders have done with the exe there. But I'm not in favor of doing something just because we might not get called on it. I think we should do right because it's the right thing to do.
Rockin Robbins is offline   Reply With Quote
Old 07-19-16, 03:25 PM   #5
max-peck
Grey Wolf
 
Join Date: Jun 2011
Location: UK
Posts: 751
Downloads: 490
Uploads: 0
Default

Quote:
Originally Posted by Rockin Robbins View Post
I'm not familiar with what the SH3 modders have done with the exe there. But I'm not in favor of doing something just because we might not get called on it. I think we should do right because it's the right thing to do.
Hi RR

I have played SH3 with HSIES patch, that changes the executable to change things such as O2 usage, torpedo reloading times, repair times, range estimations, periscopes, external top reload times and many many more things

If only out of interest I suggest you read the first post here to see what HSIE managed to accomplish
http://www.subsim.com/radioroom/showthread.php?t=174225

As I understand it, and as HSIE says in his thread, he cannot release a modified version of the executable.
However, what he has done, is release the Patch Kit to allow us to modify our own executables
This does not break the EULA (I think? Neal lets HSIE host his patch kit on SUBSIM?)

I am sure if it did Neal would have shut HSIES thread down six years ago

As to how relevant this is to us?
Probably not very much - unless we have the following

Someone with the time and inclination and skill to look into the code and figure out how to change the things we want
An indication from UBI that we are not breaking the EULA
Someone who can then make a patch kit to do these things
Permission from Neal to then host it here

EDIT
In summary - if you think you have someone on the team who can make a patch kit rather that modify the exe, try talking to Neal and see if this is a feasible idea
__________________


--------------------------------------------------
Authority should derive from the consent of the governed, not from the threat of force

If the only tool you have is a hammer, pretty soon everything starts to look like a nail

FOTRS Ultimate
http://www.subsim.com/radioroom/showthread.php?t=226270
The future of SH4 - coming to a PC near you soon

Last edited by max-peck; 07-19-16 at 03:33 PM.
max-peck is offline   Reply With Quote
Old 07-19-16, 04:17 PM   #6
james_nix
What's happenin' Cap'n'?
 
james_nix's Avatar
 
Join Date: Feb 2015
Posts: 324
Downloads: 730
Uploads: 6


Default

Quote:
Originally Posted by aanker View Post
-

Is it legal to HEX edit the exe and include it in a mod? That would be like giving SH4 away for free, right? I don't know.
You have to HEX edit to get the game to run on Windows 7,8, or 10. By increasing the memory to accept more than 2gb.
__________________
USS COPPERFINS-05
james_nix is offline   Reply With Quote
Old 07-19-16, 04:55 PM   #7
aanker
Eternal Patrol
 
aanker's Avatar
 
Join Date: Apr 2004
Location: Yellow Sea
Posts: 1,894
Downloads: 236
Uploads: 14


Default

Quote:
Originally Posted by james_nix View Post
You have to HEX edit to get the game to run on Windows 7,8, or 10. By increasing the memory to accept more than 2gb.
Yes, I use the LAA patch & Multi SH4 on the exe.

I agree RR, I won't look at the exe..... better to be safe than sorry.
__________________
" Bless those who serve beneath the deep,
Through lonely hours their vigil keep.
May peace their mission ever be,
Protect each one we ask of thee.
Bless those at home who wait and pray,
For their return by night and day."

aanker is offline   Reply With Quote
Old 07-19-16, 04:57 PM   #8
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

TDW also did the patches for SH5 files.
So SH4 is the Red-headed stepchild.


I highly doubt there'd be any issues doing the same to SH4.
It's just there's no one to do it.
Jeff-Groves is offline   Reply With Quote
Old 07-19-16, 07:18 PM   #9
Rockin Robbins
Navy Seal
 
Join Date: Mar 2007
Location: DeLand, FL
Posts: 8,844
Downloads: 136
Uploads: 50


Default

Quote:
Originally Posted by james_nix View Post
You have to HEX edit to get the game to run on Windows 7,8, or 10. By increasing the memory to accept more than 2gb.
I believe that is a registry patch. You can do it to any file on your machine. A hex edit would have to know where the memory lookup routines are in the exe (each one would be different) and then alter the exe. This would throw Windows protected folder software into a catatonic fit if the program were in the \program files or \program files (x86) directories. Since it does not do so, that is evidence that the LargeAddress Aware.exe file is a registry hack.
Rockin Robbins is offline   Reply With Quote
Old 07-19-16, 07:30 PM   #10
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

I believe there is a SH4 Patch here at SubSim I did to enable stuff.

It patches the EXE.

Oops!! Here it is!!!
http://www.subsim.com/radioroom/down...o=file&id=2889

3573 downloads!!
Jeff-Groves is offline   Reply With Quote
Old 07-19-16, 09:17 PM   #11
cdrsubron7
Sink'em All
 
cdrsubron7's Avatar
 
Join Date: Mar 2001
Location: Naperville, IL
Posts: 2,239
Downloads: 305
Uploads: 1


Default

Score one for me, I got my stopwatch back where I can find it now.
__________________



Head Deep and Keep'em Astern" - LtCDR Samuel D Dealy
SHIV Guide | Imperial Japanese Navy | US Submarines



cdrsubron7 is offline   Reply With Quote
Old 07-19-16, 11:14 PM   #12
cdrsubron7
Sink'em All
 
cdrsubron7's Avatar
 
Join Date: Mar 2001
Location: Naperville, IL
Posts: 2,239
Downloads: 305
Uploads: 1


Default

Working on a new mission late tonight and got some screenies of some of the merchants you worked on, max. Good work there, Sir!












FOTRS Ultimate just keeps getting better and better.
__________________



Head Deep and Keep'em Astern" - LtCDR Samuel D Dealy
SHIV Guide | Imperial Japanese Navy | US Submarines




Last edited by cdrsubron7; 07-20-16 at 10:01 AM.
cdrsubron7 is offline   Reply With Quote
Old 07-20-16, 06:50 AM   #13
Rockin Robbins
Navy Seal
 
Join Date: Mar 2007
Location: DeLand, FL
Posts: 8,844
Downloads: 136
Uploads: 50


Default

Quote:
Originally Posted by Jeff-Groves View Post
I believe there is a SH4 Patch here at SubSim I did to enable stuff.

It patches the EXE.

Oops!! Here it is!!!
http://www.subsim.com/radioroom/down...o=file&id=2889

3573 downloads!!
Well, LargeAddress Aware.exe starts up and asks you which program you want to make large address aware. You get a regular explorer dialog box, from which you can select any program running on your computer.

So it was research, research, research time and I found we're both right. Every file has a samely structured file header as the first block of the file. This file header tells Windows what manner of beast it is working with and in the file header is a flag that tells Windows whether the exe can access more than 2 GB of memory.

The header is not part of Ubi's code. It is a common chunk of every exe program on the machine. That's why Jeff is right: it's attached to Ubi's code. That's why I'm right: you are NOT changing Ubi code at all and so are in the clear.
Rockin Robbins 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 04:07 AM.


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