View Single Post
Old 11-27-22, 11:20 AM   #3
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 873
Downloads: 72
Uploads: 3
Default

Quote:
Originally Posted by xavprx View Post
Hello everyone, I want to start understanding the game files in order to make mods, first I want to know how to change the
characteristics and change the years to improve the Silent Hunter 5 boat?,
diving depth and speed.
Ok, here's a quick start to meddling with ship characteristics:

1) Go to your game folder and launch GoblinEditorApp.exe

2) Go to Tools->Options-> find "Root folder" and "Actors Directory" fields and enter your game path there

3) Now, you don't want to edit files directly in your game folder, because you'd have to reinstall entire game in case you break something you
didn't backup. Solution for this is using JGSME mod manager:

3a) If you use TWoS, JGSME is already in your game folder, and the folder for mods is called TWoS_Parts. Create a folder for your mod there.

3b) If you dont, look HERE for link and instructions how to set it up and use.

4) Ok, you created your new mod folder. Now let's say you want to edit some parameters of Type VIIa U-boat. Find following folder:

/data/Submarine/NSS_Uboat7a

and copy its contents into your new mod folder (with path, so you need to create data/Submarine folders in your mod folder).

5) Now back to GoblinEditorApp. Open it, select File->Open and go to your newly created mod folder. Find NSS_Uboat7a.GR2 file and open it. It will take a while to load.

6) You need to merge unit's configuration files now. Go to File->Merge and select the following (hold Ctrl to select them all), then click "Open":

NSS_Uboat7a.sim
NSS_Uboat7a.zon
NSS_Uboat7a.val


7) You'll see four panes:
"Scene Tree" - listing all nodes of your opened unit
"Project Tree" - listing your configuration files and controller settings
"Waypoints Editor" - close this one
fourth pane shows 3d view of a U-Boat.

8) We'll change U-Boat's speed now. In "Project Tree" pane, find entry called
unit_Submarine@NSS_Uboat7a and double-click it. It will open a window with ship basic parameters. Find "unit_Submarine" behavior and click it. "Edit behavior" pane on the right find and expand unit_Ship class and then Propulsion. edit max_speed to your liking. If you want to edit submerged speed, do the same to E_propulsion class.

9) Now for crash depth. Find CollisionableObject behavior and edit CrashDepth parameter. Close the window.

10) After closing window you'll notice that some config files and their controllers in "Project Tree" pane changed color to red. To save changes you've made, right-click the highlighted file names and select "Save file" from menu that'll appear.

You can exit Goblin Editor now.

11) Now you need to enable your mod. Launch JGSME, find your mod on the list and enable it. Exit JGSME. You'll have to disable and then enable your mod again after every new change you make. The good part is that if you mess up something and, for example, cause game to CTD - all you need to do to fix the game is to disable the mod causing the problem.

12) Launch SH5 and have fun with your edited U-Boat

Useful links:
Goblin Editor Guide
GR2 Editor Thread
Also, if you get stuck at anything, feel free to PM me - I might be slow to answer but will try to help with whatever I can.
kapuhy is offline   Reply With Quote