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 03-01-10, 03:36 PM   #1
gutted
The Old Man
 
Join Date: Apr 2005
Location: New Orleans, LA.
Posts: 1,353
Downloads: 470
Uploads: 10
Default

Quote:
Originally Posted by gutted View Post
I found everything but the script manager. where is it?


found it!

with the modding controls enabled, you have to right click the Slient Hunter 5 Taskbar icon and select it from the menu... as was shown in the screenshots further up.

Took me abit to realize that's what it was showing.
gutted is offline   Reply With Quote
Old 03-01-10, 05:02 PM   #2
jmr
Commander
 
Join Date: Sep 2004
Posts: 462
Downloads: 62
Uploads: 0
Default

I wonder how many of our talented modders will buy SHV though. How many of them are refusing to buy the game solely because of the DRM?
jmr is offline   Reply With Quote
Old 03-01-10, 05:10 PM   #3
Safe-Keeper
Ocean Warrior
 
Join Date: Dec 2005
Location: Norway
Posts: 3,234
Downloads: 11
Uploads: 0
Default

Quote:
My first hunch is that these are traffic lanes where ships/convoys may choose alternate routes. I.e. shipping routes are possibly less scripted than they were before. I did notice that traffic shows up in a lot more places than I would've expected; I also noticed traffic actually avoiding coasts (not always successfully). I suspect that the traffic scripting has undergone a pretty big overhaul towards the dynamic.
I'm guessing traffic routes, too, they definitely seem to go in and out of ports and follow shipping lanes.

My hypothesis is that it's a way to increase performance by not making all ships plot their own routes. Instead of the game tracking I don't know how many different routes, now all you have to do is tell a ship to, for example, patrol between nodes X, Y and Z, and it will stick in that area. Hopefully you can add some randomness into the game, too ("go within 30nm of Node 60, then transit to Node 100 or within 2nm of Node 62, then...").
S
I see there is a "StateAbandon" and "StateSurrender" in the Script editor, too. So do crews actually abandon ship or surrender now?
Safe-Keeper is offline   Reply With Quote
Old 03-03-10, 11:47 PM   #4
karamazovnew
The Old Man
 
Join Date: Mar 2009
Location: Bucharest, Romania
Posts: 1,403
Downloads: 151
Uploads: 0


Default

Quote:
Originally Posted by gutted View Post
found it!

with the modding controls enabled, you have to right click the Slient Hunter 5 Taskbar icon and select it from the menu... as was shown in the screenshots further up.

Took me abit to realize that's what it was showing.
This doesn't work on Windows 7 because of the new QuickLaunch Taskbar thingie.
Even RightClick and then Shift RightClick doesn't work. We need a different solution. I'm not going back to Vista
karamazovnew is offline   Reply With Quote
Old 03-04-10, 06:12 AM   #5
karamazovnew
The Old Man
 
Join Date: Mar 2009
Location: Bucharest, Romania
Posts: 1,403
Downloads: 151
Uploads: 0


Default

YEEES, found a way! All W7 users listen up.

Open the Menu Editor and right click on the window top. You'll get a menu that allows you to open any of the tools

karamazovnew is offline   Reply With Quote
Old 03-04-10, 07:32 AM   #6
piri_reis
Seasoned Skipper
 
Join Date: Aug 2005
Location: Istanbul, Turkiye
Posts: 715
Downloads: 115
Uploads: 0
Default

It's weird, Menu editor, Script Manager and AI debugger works but the terrain geometry and object editors will not open..
__________________

Lt.z.S. Barbaros Hayreddin, U-35, 2nd Flot/Kiel, Type VIIB
Oct.29.1939, 2nd Patrol Eastern English Waters
Running SH5/TWOS
piri_reis is offline   Reply With Quote
Old 03-05-10, 04:52 AM   #7
blechritter
Watch
 
Join Date: Feb 2005
Location: Germany
Posts: 17
Downloads: 94
Uploads: 0
Default Script Manager

Thanks! As Win 7 user I was at a loss.

But does anyone know already the names of all the waypoints on the u-boat?

I really would like to implemet a crash dive strategy which resembles the action of the trailer

Thanks in advance
__________________
Perhaps it is better to be irresponsible and right than to be responsible and wrong - Sir Winston Churchill, 1950
blechritter is offline   Reply With Quote
Old 03-06-10, 02:28 AM   #8
maerean_m
Captain
 
Join Date: Mar 2007
Location: Bucharest, Romania
Posts: 529
Downloads: 0
Uploads: 0
Default

This menu is meant to be used only in patrol (I just didn't have the time to fix it being available in the menu editor):

__________________
Kilroy was here
maerean_m is offline   Reply With Quote
Old 03-06-10, 02:41 AM   #9
maerean_m
Captain
 
Join Date: Mar 2007
Location: Bucharest, Romania
Posts: 529
Downloads: 0
Uploads: 0
Default

Here are some basic steps to start with the modding (tools):

* do a back-up copy of the data folder. you'll thank me later for this (you'll have a backup to help you undo changes and be able to create a installation kit for your mod using a comparing tool (Beyond Compare etc)).

* configure the game to run in window mode in a resolution smaller than your Windows desktop

* change the main.cfg file in MyDocuments\SH5\data\cfg:


* there are several types of editors for SH5:
** standalone (Mission Editor and GoblinEditor, the descendant of Kashmir) are executables placed in the same folder as sh5.exe. You use the editor to edit data, close it and then start the game to test the changes. Closing the editor is very important because it frees important system resources that will, otherwise, be locked and the game may crash because there's not enough memory (RAM or video).
** used while the game is running so you can see the changes in real-time (terrain editors, python scripts manager, menu style sheets)
** using the game engine but not the game itself (the Menu Editor). This is the way it has been done for SH3 and while it has its advantages, it also has its drawbacks (but there's never enough time to fix this).

* with the game running (but NOT while there's a loading screen), right click on the window's title bar to show this menu:

With the Windows versions that have the standard task bar, this menu also appears if you right-click the application's button in the task-bar. That's not true for Windows 7 since it has a new API for the task-bar buttons.

* although it doesn't say in the menu, the terrain editors also require the game to be "in patrol mode". As a basic rule, you can't edit something that has not yet been instantiated. So this is also true, you can start the script manager to edit the python scripts while you're in main menu but you can't change the script for the default HUD (since, duh, it's not yet instantiated). You have to be in patrol and the HUD to be running to be able to apply changes you do it (yes, it's something like Edit & Continue).

* the GoblinEditor is used to attach and edit behaviors (controllers) to the structure of every 3D object in the game. This is the way the GDS engine works (the one in the kernel.dll). There are literally hundreds of controller types in the game and can be edited visually using a property grid.

* [very important]setting up the GoblinEditor means typing the folder where the sh5.exe is located in the ActorsDirectory property in the Tools\Options window (e.g. K:\Games\Silent Hunter 5). The actors are the .act files in the SilentHunter5 folder and are the ones holding the code for all the controllers.

* This is a use case for the GoblinEditor:
** Open a GR2 file (the one with the 3D geometry, G stands for the Granny engine). You'll see the object being rendered and its structure in the GDS Scene Tree panel.
** Merge the files containing the controllers (.sim, .dat, .chr, .cam, .val, .zon). The sim file contains the controllers for the simulation (see, SH5 is a simulation after all ) and the cam file contains the controllers for the camera parameters.
** let's try it. open data\Objects\Guns\Deck_Gun_GE88mm.GR2 and merge the Deck_Gun_GE88mm.sim and Deck_Gun_GE88mm.cam files. Open the Controller Editor (Ctrl+E) in the Tools menu. A window is displayed (you may have to resize it the first time) and click on the StationController to see the properties for the controller handling the situation when the player uses the deck gun as a station. The actual gameplay associated with the gun is handled by the wpn_Cannon controller.
** click on the 3D representation and move around with W,A,S,D,Home,End keys and holding the mouse right button.

* Now, a little about the folder structure. You can find GR2 files in many folders (Library, Objects, Submarine, Sea etc). The Library folder is special (hard-coded) and contains the objects that are always needed (e.g. torpedoes_g7a-e.gr2). All the other folders contain files loaded on-demand (e.g. there's a text configuration file indicating that the file is to be loaded).


Consider this the first episode of the series. There will be others following this one.


It strikes me that this info could be also stored in a SH5 wiki.



This is a generic thread, so post your questions here so all the modders can read the answer. I think this is much better than answering on every mod's forum thread.

Mihai
__________________
Kilroy was here

Last edited by maerean_m; 03-06-10 at 07:48 AM. Reason: spelling
maerean_m is offline   Reply With Quote
Old 03-05-10, 05:06 AM   #10
urfisch
Sea Lord
 
Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,969
Downloads: 42
Uploads: 0
Default

Quote:
Originally Posted by piri_reis View Post
It's weird, Menu editor, Script Manager and AI debugger works but the terrain geometry and object editors will not open..
just near land and in the game!
__________________


urfisch is offline   Reply With Quote
Reply


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 02:30 AM.


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