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 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 11-17-16, 07:01 PM   #1
VonDos
Admiral
 
Join Date: Mar 2007
Location: Italy
Posts: 2,215
Downloads: 75
Uploads: 49


Default Question - damage effects and library

Hi everyone!
A question for all modders here:
I'm working to a new ship model, and i'm using library objects to compose unit in different configurations during war.
My question is: how can i render damage effects on a library object (bullets and torpedo holes) ?

Thanks everyone!

Best regards,
Vd.
__________________

Those, others and WIP ships are avaiable in my SHIPYARD here:
http://www.subsim.com/radioroom/showthread.php?t=136508
VonDos is offline   Reply With Quote
Old 11-19-16, 04:25 AM   #2
HanSolo78
Sea Lord
 
Join Date: Apr 2005
Location: Austria
Posts: 1,842
Downloads: 100
Uploads: 3


Default

Well... if you ask me I would say that it is the same behaviour like in a ship folder! Make a .val file with the visual damage controller (which is assigned to your .dat file)


But ... plz be sure every ID is new!
__________________
HanSolo78 is offline   Reply With Quote
Old 11-19-16, 06:27 AM   #3
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by HanSolo78 View Post
Well... if you ask me I would say that it is the same behaviour like in a ship folder! Make a .val file with the visual damage controller (which is assigned to your .dat file)


But ... plz be sure every ID is new!
I don't think so. See your U-Boat : when you take damage on the turm, there is no visual damage effect, even if the controller is in the .val file in the Objects folder...

  Reply With Quote
Old 11-19-16, 07:02 AM   #4
HanSolo78
Sea Lord
 
Join Date: Apr 2005
Location: Austria
Posts: 1,842
Downloads: 100
Uploads: 3


Default

Ok, maybe I am wrong... but it should be testet!

Otherwise... maybe it is possible to have several "visual damage controlers" in the ship. val file !?
__________________
HanSolo78 is offline   Reply With Quote
Old 11-19-16, 09:35 AM   #5
Tycho
Sonar Guy
 
Join Date: Oct 2009
Location: Sofia, Bg
Posts: 384
Downloads: 264
Uploads: 1


Default

Quote:
Originally Posted by Kendras View Post
I don't think so. See your U-Boat : when you take damage on the turm, there is no visual damage effect, even if the controller is in the .val file in the Objects folder...

"VisualDamage" controller, counts hit points. The hit points are found in the "ColisionableObject" controller and in the "Zones.cfg" file.
The turms have hit points in "Zones.cfg" (31=TowerWatch), but "VisualDamage" controller maybe read hit points only from "ColisionableObject" controller and the turms don't have this controller, only submarine's body have it.

Just speculate, I don't have time for tests.
__________________
If you ride like lightning, you're gonna crash like thunder.
Tycho is offline   Reply With Quote
Old 11-19-16, 11:08 AM   #6
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by Tycho View Post
"VisualDamage" controller, counts hit points. The hit points are found in the "ColisionableObject" controller and in the "Zones.cfg" file.
The turms have hit points in "Zones.cfg" (31=TowerWatch), but "VisualDamage" controller maybe read hit points only from "ColisionableObject" controller and the turms don't have this controller, only submarine's body have it.

Just speculate, I don't have time for tests.
If you add a "ColisionableObject" controller in the .zon file of the turm, the submarine becomes uncontrolable. So, it's not possible to add damage texture to the sub-objects, I guess...
  Reply With Quote
Old 11-19-16, 02:44 PM   #7
HanSolo78
Sea Lord
 
Join Date: Apr 2005
Location: Austria
Posts: 1,842
Downloads: 100
Uploads: 3


Default

It is definitely possible. I know there were mods Made for the player sub which had the conning Tower destroyable.
__________________
HanSolo78 is offline   Reply With Quote
Old 11-21-16, 06:02 PM   #8
VonDos
Admiral
 
Join Date: Mar 2007
Location: Italy
Posts: 2,215
Downloads: 75
Uploads: 49


Default

Quote:
Originally Posted by HanSolo78 View Post
Well... if you ask me I would say that it is the same behaviour like in a ship folder! Make a .val file with the visual damage controller (which is assigned to your .dat file)


But ... plz be sure every ID is new!
Just tested this solution...

It work!!!

Now my unit can change main hull design year by year (I've a couple of different hulls, with different details, livery ecc into a library\lib.dat file and the original one hidden into sea\ship.dat file)... and damage can be seen!!
Thanks!
Vd
__________________

Those, others and WIP ships are avaiable in my SHIPYARD here:
http://www.subsim.com/radioroom/showthread.php?t=136508
VonDos is offline   Reply With Quote
Old 11-22-16, 12:26 AM   #9
HanSolo78
Sea Lord
 
Join Date: Apr 2005
Location: Austria
Posts: 1,842
Downloads: 100
Uploads: 3


Default

Great!


EDIT: Just got my beer
__________________

Last edited by HanSolo78; 11-22-16 at 04:50 PM.
HanSolo78 is offline   Reply With Quote
Old 11-22-16, 07:45 AM   #10
Prometheus
Helmsman
 
Join Date: Sep 2016
Location: Serbia
Posts: 106
Downloads: 49
Uploads: 1


Default

Quote:
Originally Posted by VonDos View Post
Just tested this solution...

It work!!!

Now my unit can change main hull design year by year (I've a couple of different hulls, with different details, livery ecc into a library\lib.dat file and the original one hidden into sea\ship.dat file)... and damage can be seen!!
Thanks!
Vd

__________________

Prometheus
Mod for SH3 - Hull damage made by torpedo impact.
http://www.subsim.com/radioroom/down...o=file&id=5060
Prometheus 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 06:08 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.