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 09-10-13, 11:02 AM   #1
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,095
Downloads: 587
Uploads: 13


Default

Quote:
Originally Posted by sober View Post
Sure Sober,TY! everything related to the goblin editor is needed...


@ Gap, you are the savior!


Quote:
Originally Posted by gap View Post
cture).

- Copy it to the correct location and rename it appropriately. Using the deck gun as an example, you should have a Deck_Gun_GE88mm.zon file located in data/Objects/Guns.

- Open the file in Silent3ditor and delete all its controllers.

- Open Deck_Gun_GE88mm.GR2 in Goblin, merge it to the newly created zon file, and add the new damage boxes as you would do normally
Actually ,i tried to copy and rename other .zon files before but without use of silent3deditor and i didn't have any success. Now i made it for the deck gun! I hope i'll have luck with other equipment too...The main problem for me is that i still can't understand this "controller" concept quite enough, i never met it before...But we're on the track after all...

Just tell me one more thing, which controller do not belong here?

Last edited by vdr1981; 09-10-13 at 11:19 AM.
vdr1981 is offline   Reply With Quote
Old 09-10-13, 12:55 PM   #2
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,095
Downloads: 587
Uploads: 13


Default

Also, Room_EXT - Torp Doors + Anim.GR2 doesn't have it's own .sim file...Does this mean that i need to create one sim file with one wpn_SubTorpedoSys controller for each tube hatch? Something like this?

vdr1981 is offline   Reply With Quote
Old 09-10-13, 01:57 PM   #3
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by vdr1981 View Post
@ Gap, you are the savior!


a few more head-ups:

- many objects are formed by separated parts, and they are linked together hierarchically. For U-boat guns we have generally a fixed base (fitted on the deck), the mounting/pedestal (which rotates around its y axis) and the gun itself (rotating around the x axis) which, on turn, is often split in a "body" (including the breech and the back part of the gun) and one or more muzzles. There can also be other smaller parts, but we can ignore them. When adding damage boxes to a gun, you can link it to its root (the fixed base) and make it to envelop the remaining parts or, better, you can give each part its own box with a peculiar damage zone set in it. If, for instance, the mount had a shield, you can assign to it a zone with an higher AP setting than other parts, thus protecting them from enemy fire. Moreover, boxes will move together with their parent objects, thus better envelopping the whole object.

- no matter how many boxes you have assigned to a gun (or to any other SH5 object), model parts which are lower hierarchically will be destroyed when one of the parts containing them, i.e. their parent(s), are destroyed; this becomes evident when you give hierarchically high objects a zone which is tagged as 'destructible=yes': when their HP's reach 0, they will be ripped off together with their children objects.

- you can link a box to a non-child object, so that, when the box is detsroyed, both the parent object and tje linked object are destroyed.

Quote:
Originally Posted by vdr1981 View Post
Actually ,i tried to copy and rename other .zon files before but without use of silent3deditor and i didn't have any success. Now i made it for the deck gun! I hope i'll have luck with other equipment too...
There is a another way to remove unwanted controllers: open a GR2 or a dat file into Goblin Editor, and merge the newly cloned binary file to it. Goblin will warn you that some controllers didn't find their owner objects; this is because there will be an ID's mismatch. The unused controllers will be listed as "lot controllers", and deleted when you save the file.

Quote:
Originally Posted by vdr1981 View Post
The main problem for me is that i still can't understand this "controller" concept quite enough, i never met it before...But we're on the track after all...
For our purposes, we can define a controller as group of closely related properties, controlling the way an object works or interacts with other objects in the SH5 world. Most controllers have one or more configurable parameters, whereas others are not configurable. Controllers must be assigned to 3d objects and/or to particles in order to be applied in game, and when their owner objects are destroyed, they stop working. Objects and particles are stored into dat or GR2 files. Their controllers are located into binary files with various extensions. The most common ones are:

- .zon: contain controllers whose function is to control the way an object interacts with other object, giving or receiving damage from them;

- .dsd: used for sound controllers;

- .cam: used for camera controllers (firts person views, scope views, gun sights, etc);

- .fx: used for linking special effects to an object;

- .val: used mostly for ships wake controllers;

- .prt: used for linking an object to a second object in another file;

- .sim: this is the most widely used file type, and it can contain a big variety of controllers whose function is generally to set the way an object moves, behaves or works.

One last note: every object, particle or controller got an unique id and a parent id (you can see them more easily by opening one of the aforementioned files in s3d). This is the way they are linked to each other and referred to in game. Rarely node/bone names are used instead. When you merge two files in Goblin Editor, it sorts automatically controllers with the same parent Id, and it list them under the appropriate object when you click on one of them.

Quote:
Originally Posted by vdr1981 View Post
Just tell me one more thing, which controller do not belong here?
Is this a drill?

The wpn_cannon controller, indeed. Governing the way guns work, ts place is in the sim file.
gap is offline   Reply With Quote
Old 09-10-13, 02:12 PM   #4
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,095
Downloads: 587
Uploads: 13


Default

Gap, now you sound like Observer . I need some time to study your post carefully, then i'll come back with probably more questions (i'm such a pain in the ass...)
vdr1981 is offline   Reply With Quote
Old 09-10-13, 02:27 PM   #5
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by vdr1981 View Post
Gap, now you sound like Observer
More or less ...but much less than more

I have been studying a lot game files (and other's mods) in the last two years, I have digged in the forums for informations, and I have disturbed people who have more experience than me when I couldn't figure out things by myself

Quote:
Originally Posted by vdr1981 View Post
. I need some time to study your post carefully, then i'll come back with probably more questions (i'm such a pain in the ass...)
I will be glad to keep helping you if I can
gap is offline   Reply With Quote
Old 09-11-13, 02:46 AM   #6
tonschk
Sea Lord
 
Join Date: Mar 2007
Posts: 1,897
Downloads: 172
Uploads: 0
Default

Quote:
Originally Posted by gap View Post
For our purposes, we can define a controller as group of closely related properties, controlling the way an object works or interacts with other objects in the SH5 world. Most controllers have one or more configurable parameters, whereas others are not configurable. Controllers must be assigned to 3d objects and/or to particles in order to be applied in game, and when their owner objects are destroyed, they stop working. Objects and particles are stored into dat or GR2 files. Their controllers are located into binary files with various extensions. The most common ones are:

- .zon: contain controllers whose function is to control the way an object interacts with other object, giving or receiving damage from them;

- .dsd: used for sound controllers;

- .cam: used for camera controllers (firts person views, scope views, gun sights, etc);

- .fx: used for linking special effects to an object;

- .val: used mostly for ships wake controllers;

- .prt: used for linking an object to a second object in another file;

- .sim: this is the most widely used file type, and it can contain a big variety of controllers whose function is generally to set the way an object moves, behaves or works.

One last note: every object, particle or controller got an unique id and a parent id (you can see them more easily by opening one of the aforementioned files in s3d). This is the way they are linked to each other and referred to in game. Rarely node/bone names are used instead. When you merge two files in Goblin Editor, it sorts automatically controllers with the same parent Id, and it list them under the appropriate object when you click on one of them.
Thank you Gap
tonschk 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 02:08 PM.


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.