SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH5 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=249)
-   -   [TEC] Mod Tools, HowTo (https://www.subsim.com/radioroom/showthread.php?t=162702)

Schunken 03-02-10 05:14 AM

Now it looks not we buy a subsim game.... we buy a subsime engine and maybe we could make the Sim of our dreams... :yep:

Andreas

Friedl9te 03-02-10 05:14 AM

May the MATRIX be with us ... ;)

Drifter 03-02-10 06:31 AM

Quote:

Originally Posted by Schunken (Post 1287351)
Now it looks not we buy a subsim game.... we buy a subsime engine and maybe we could make the Sim of our dreams... :yep:

Andreas

Just look at what modders did for the Oblivion game. Unbelievable mods due to the wonderful editor they included.

gutted 03-02-10 05:56 PM

The menu editor is abit confusing.

Looking through it i see all sorts of stuff in the menu pages thats not in-game.

etheberge 03-02-10 09:33 PM

Did anyone figure out all the keyboard shortcuts for the Object Placement editor yet?

I couldn't figure out how to lower/raise an object, or even how to easily position them with the mouse.

kapitan_zur_see 03-03-10 06:09 PM

tools for modders right out of the box! big suprise indeed! can't wait to try them out :up:

awesome news

karamazovnew 03-03-10 11:47 PM

Quote:

Originally Posted by gutted (Post 1286326)
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. :doh:
Even RightClick and then Shift RightClick doesn't work. We need a different solution. I'm not going back to Vista :stare:

karamazovnew 03-04-10 06:12 AM

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 :rock:

http://img51.imageshack.us/img51/6205/tutorial2v.jpg

piri_reis 03-04-10 07:32 AM

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

blechritter 03-05-10 04:52 AM

Script Manager
 
Thanks! As Win 7 user I was at a loss.:oops:

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

urfisch 03-05-10 05:06 AM

Quote:

Originally Posted by piri_reis (Post 1292534)
It's weird, Menu editor, Script Manager and AI debugger works but the terrain geometry and object editors will not open.. :hmmm:

just near land and in the game!

maerean_m 03-06-10 02:28 AM

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):

http://img51.imageshack.us/img51/6205/tutorial2v.jpg

maerean_m 03-06-10 02:41 AM

:ping: 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 http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/1.gif (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:
http://img341.imageshack.us/img341/9...ingoptions.png

* 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:
http://img11.imageshack.us/img11/6097/toolsp.png
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 http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/1.gif) 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. :hmmm:



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

CCIP 03-06-10 03:38 AM

I agree, a Wiki would be great. Neal, any chance Subsim could host some sort of info repository like that?

And oh, thanks for the info Mihai, looking forward to more :)

maerean_m 03-06-10 03:48 AM

Nothing official or anything, but maybe Ubisoft could help with the Wiki. :hmmm:

karamazovnew 03-06-10 05:01 AM

Thanks Mihai, I never would've thought to use the game in window mode :woot:.

Edit: I'm having trouble with the drop down lists (for example when I try to select the Dial Type) in the Granny Editor. They open for just a second and then close and reset my values to a null value. And is there a way to open the Menu Editor while the game is running?

maerean_m 03-06-10 06:05 AM

Quote:

Originally Posted by karamazovnew (Post 1297321)
Thanks Mihai, I never would've thought to use the game in window mode :woot:.
Edit: I'm having trouble with the drop down lists (for example when I try to select the Dial Type) in the Granny Editor. They open for just a second and then close and reset my values to a null value. And is there a way to open the Menu Editor while the game is running?

* I've just tried the drop down list in the Goblin Editor and it works fine. Try using the arrow keys to change the value. (maybe you are opening a list that has so many values that it gets taller than the screen and closes itself).
* The menu editor is started after setting MenuEditor=Yes and clicking on sh5.exe. You'll be asked if you want to start the Menu Editor. That's the (only) way it works. You can change the behavior (the script) while the game is running.

urfisch 03-06-10 06:09 AM

so, whats the goblin editor for? changing animations? link animations to certain situations? changing the 3d model (this doesnt work, i think)?...i tried to deal with this editor for some hours and still havent learned what it was designed for...

please leave some thoughts on that! thanks.

jimimadrid 03-06-10 06:15 AM

Quote:

Originally Posted by maerean_m (Post 1297134)
:ping: Here are some basic steps to start with the modding (tools):


* with the game running (but NOT while there's a loading screen), right click on the window's title bar to show this menu:
http://img11.imageshack.us/img11/6097/toolsp.png
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.

Mihai

This do not work for me. WindowsXP Prof. I do not get the menu by right click.

I only get the "Do you want to activate Menu Editor?" Question at start.

karamazovnew 03-06-10 06:28 AM

Quote:

Originally Posted by maerean_m (Post 1297408)
* I've just tried the drop down list in the Goblin Editor and it works fine. Try using the arrow keys to change the value. (maybe you are opening a list that has so many values that it gets taller than the screen and closes itself).
* The menu editor is started after setting MenuEditor=Yes and clicking on sh5.exe. You'll be asked if you want to start the Menu Editor. That's the (only) way it works. You can change the behavior (the script) while the game is running.

Got it to work by changing the W7 theme to Windows Classic. Roger on the Menu Editor thing. I love that I can see each script in the game when I click buttons. By the way, is there a "published" list of possible commands in SH5?


However I'm getting an error in Granny when I try to merge *.prt files (I got the following when merging the ROOM_CT.prt file:

http://img40.imageshack.us/img40/82/tutorial2c.jpg

Then the editor exits.



@Jimimadrid: as m_maerean said, open the game in Windowed mode. For me it worked at a resolution of 1024*768.


All times are GMT -5. The time now is 01:20 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.