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 04-06-20, 01:35 AM   #1
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 875
Downloads: 72
Uploads: 3
Default

Quote:
Originally Posted by vdr1981 View Post
. As I can see, all other damage boxes are packed inside it. This means that when distress flare zone is destroyed, all other zones within it will be destroyed as well , regardless of their hit points. This may need some adjustments.
That's how it works? If so it would completely change my understanding of how zones work, I thought damage is counted separately for each box within explosion zone each time ship gets hit (and thinking that I made flare zone encompass entire ship so that the flare will go up regardless where ship was damaged - it's not like someone would say " nah, they just blew our bow off, no cause for alarm on the stern"). I'll look into it, thanks!

EDIT: does it also happen for overlapping zones or just if one box is completely inside another?

Last edited by kapuhy; 04-06-20 at 02:41 AM.
kapuhy is offline   Reply With Quote
Old 04-06-20, 04:36 AM   #2
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,095
Downloads: 587
Uploads: 13


Default

Quote:
Originally Posted by kapuhy View Post
EDIT: does it also happen for overlapping zones or just if one box is completely inside another?
If I remember correctly, in case of overlapping zones, percentage values are taken. For example , if zone A takes 30% of volume of zone B, then when zone A is destroyed it will take 30% of hit points of zone B. Don't hold me on this one though...


I'll check my old RSD thread and if I find anything useful I'll let you know.
vdr1981 is offline   Reply With Quote
Old 04-07-20, 06:12 AM   #3
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 875
Downloads: 72
Uploads: 3
Default

Quote:
Originally Posted by vdr1981 View Post
If I remember correctly, in case of overlapping zones, percentage values are taken. For example , if zone A takes 30% of volume of zone B, then when zone A is destroyed it will take 30% of hit points of zone B. Don't hold me on this one though...


I'll check my old RSD thread and if I find anything useful I'll let you know.
At first glance, weird system though I'm sure I can find some creative ways to use it and yes, if you could point me to where I could learn how exactly zones work it would be much appreciated.

I'll rework zones this weekend hopefully and start work on next ship.
kapuhy is offline   Reply With Quote
Old 04-07-20, 10:13 AM   #4
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

You made it kapuhy

To my knowledge, this is the first fully fledged AI unit ever released for SH5 directly in GR2 format, and she looks nice too. Bravo!

Out of curisosity: I have noticed that your ship doesn't include any FX file.
As far as I can understand, those files are used for linking certain bones (opportunely placed around units' 3D meshes) with explosions/fire/smoke effects stored in Baza_FX.dat. A perfect copy of the same bones, but without 3D meshes, is also found in the *_FX.GR2 file of each stock sea unit though, to be honest, I don't understand the need for this redundancy.

More in general, I have not clear how the said effects are triggered by ship damage and how they interact with the effects linked to damage zones (see note below), nonetheless you have probably noticed how in SH5 fires and smoke seem to come out from portholes, doors, etc. where one of the stock ships has been damaged, and I am pretty sure that such a precise effect placement is achieved by means of those files.

Have you tried experimenting with them?

NOTE: a possible mechanism, but that's just my speculation, is that whenever a damage box is damaged beyond a certain level, and a given particle effect is triggered (according to Zones.cfg settings), the game checks if the damaged box overlaps one or more FX_* bone linked to the same effect. If yes, one instance of the said effect will originate from each of those bones, otherwise one instance of it will originate from the center of the box (or maybe from where the last impact has happened)
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 04-07-20, 12:50 PM   #5
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 875
Downloads: 72
Uploads: 3
Default

Quote:
Originally Posted by gap View Post
You made it kapuhy
And I would never have made it without all the help and information I got from you thanks!

Quote:
Originally Posted by gap View Post
Out of curisosity: I have noticed that your ship doesn't include any FX file.
The reason for it is simple - I used NF_boat_1, smallest GR2 ship, as template (I wanted to keep first attempt as simple as possible). As it turns out it's also the only GR2 ship without FX file whatsoever. But, I'll most probably use one with FX file for next ship so I'll keep what you've wrote here in mind when I try to make it work.
kapuhy is offline   Reply With Quote
Old 04-07-20, 02:30 PM   #6
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by kapuhy View Post
And I would never have made it without all the help and information I got from you thanks!
Helping other modders to make the best all the modding tools and knowledge that has been gathered so far, is part of my pleasure. Let we both thank the ones who have contributed with their time and energies to this knowledge and these tools.

Quote:
Originally Posted by kapuhy View Post
The reason for it is simple - I used NF_boat_1, smallest GR2 ship, as template (I wanted to keep first attempt as simple as possible). As it turns out it's also the only GR2 ship without FX file whatsoever. But, I'll most probably use one with FX file for next ship so I'll keep what you've wrote here in mind when I try to make it work.
The decision to start from a relatively simple unit was a wise one. Even though you used NF_boat_1 as a template for your own ship, you are always in time to add the discussed feature to it, but I realise that before doing that you are probably interested in testing your skills with some other unit. Talking about that, what happened with your motor lauch? I was thinking that she would have been your first 'official' release
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 04-08-20, 04:41 AM   #7
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 875
Downloads: 72
Uploads: 3
Default

Quote:
Originally Posted by gap View Post
Talking about that, what happened with your motor lauch? I was thinking that she would have been your first 'official' release
I wanted to keep it as simple as possible, and coaster had the advantage of matching NF_boat_1 exactly as far as number of meshes is concerned (one prop, one rudder, one boat, one funnel and one crane that I used for mast). I'm still planning to make gr2 Fairmile later though.
kapuhy is offline   Reply With Quote
Old 11-01-21, 09:53 AM   #8
Mister_M
Ace of the Deep
 
Join Date: Feb 2021
Posts: 1,055
Downloads: 31
Uploads: 0


Default

Quote:
Originally Posted by kapuhy View Post
if you could point me to where I could learn how exactly zones work it would be much appreciated.
Here, it is for SH3, but it probably works the same way in SH5...

https://kendras-sh3-modding.forumgam...ics-and-theory
Mister_M is offline   Reply With Quote
Old 11-03-21, 12:15 PM   #9
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 875
Downloads: 72
Uploads: 3
Default

Quote:
Originally Posted by Mister_M View Post
Here, it is for SH3, but it probably works the same way in SH5...

https://kendras-sh3-modding.forumgam...ics-and-theory
Thanks
kapuhy 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:09 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.