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 08-19-12, 12:25 AM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
The mod comes with an historical mission based as well on TDW's torpedo tutorial mission. Just surface, get closer to the merchant and start fire for making her to turn on her searchlights. I was able to switch off one of them the hard way , with one well aimed shot (at close range)
So it worked? Hot damn! I did interpret what I decoded in that function in the SHCollisions.act file correctly You have no idea how happy that makes me! For one the amount of pointers I had to decode not to mention the code itself I had to decode and figure out what it was doing was HUGE
TheDarkWraith is offline   Reply With Quote
Old 08-19-12, 02:52 AM   #2
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

Quote:
Originally Posted by gap View Post
Here it is:

http://www.mediafire.com/?3qzxyk71fkjbhe6

It is based on IRAI for compatibility with TDW's mods. Changes done:

guns_radars_01.zon:
-added a SH3ZonesCtrl to reflector_base object, with a box set as WeaponsLight and a collision sphere centered on the reflector (though I am not sure that the latter is actually needed).

This is the core part of the mod.

guns_radars_01.sim:
-changed searchlight's beam color from full white to violet to reflect the spectrum of carbon arc lamps that WWII reflectors were based on;
-changed serchlight range from 200 mt to half a mile (the stock figure seemed a bit too short to me);
-adjusted attenuation parameters to reflect the new range.

Those changes are a bonus by me. You can remove the sim file from the mod if you don't like my settings, or you can give me your suggestions for improving them.

The mod comes with an historical mission based as well on TDW's torpedo tutorial mission. Just surface, get closer to the merchant and start fire for making her to turn on her searchlights. I was able to switch off one of them the hard way , with one well aimed shot (at close range)
Quote:
Originally Posted by TheDarkWraith View Post
So it worked? Hot damn! I did interpret what I decoded in that function in the SHCollisions.act file correctly You have no idea how happy that makes me! For one the amount of pointers I had to decode not to mention the code itself I had to decode and figure out what it was doing was HUGE
Well done guys
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 08-19-12, 04:22 AM   #3
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
So it worked? Hot damn! I did interpret what I decoded in that function in the SHCollisions.act file correctly You have no idea how happy that makes me! For one the amount of pointers I had to decode not to mention the code itself I had to decode and figure out what it was doing was HUGE
Yep, it worked TDW, thank you very much for your precious suggestions!

Let's wait for reports by other forum members now, just for making sure that the changes made don't have any undesired side effect. I will look for other equipments/armaments that may need the same fix in the meanwhile.

Needless to say that you should feel free to merge this little mod with possible new releases of IRAI/ FX Updates. I think there is no point in having a multitude of little mods that have to be done compatible with your ones, every time you make a change to one of the shared files.

Quote:
Originally Posted by Trevally. View Post
Well done guys
Thank you Trev
gap is offline   Reply With Quote
Old 08-19-12, 10:29 AM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
Yep, it worked TDW, thank you very much for your precious suggestions!

Let's wait for reports by other forum members now, just for making sure that the changes made don't have any undesired side effect. I will look for other equipments/armaments that may need the same fix in the meanwhile.
I'm pretty sure all the guns are missing boxes and spheres.
Let me tell you why you need the spheres as you were questioning that some posts ago. The game uses the spheres for broad collision test. If a collision test passes the broad test then it checks for collision against bounding boxes (a much more computational endeavor). If it passes that test then it checks every item's DMG_col node for collision (except if it has a weapon controller on it - then it uses the bounding box computed from the object). It's a 3 tiered approach for testing collisions. Testing for intersection with a sphere is a not so computationally intensive endeavor (it's cheap).

I see you like dabbling in the files and trying/testing things...I can give you something to keep you busy for awhile if you're interested. It involves testing some ideas dealing with the flooding model and zones (boxes)
TheDarkWraith is offline   Reply With Quote
Old 08-19-12, 10:55 AM   #5
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
I'm pretty sure all the guns are missing boxes and spheres.
I have checked it today. Only two guns with a wpn controller are missing their box. I can only think that devs oversighted them. All of them are missing collision spheres though. This is why I thought that collision spheres are not needed with the guns.

Quote:
Originally Posted by TheDarkWraith View Post
Let me tell you why you need the spheres as you were questioning that some posts ago. The game uses the spheres for broad collision test. If a collision test passes the broad test then it checks for collision against bounding boxes (a much more computational endeavor). If it passes that test then it checks every item's DMG_col node for collision (except if it has a weapon controller on it - then it uses the bounding box computed from the object). It's a 3 tiered approach for testing collisions. Testing for intersection with a sphere is a not so computationally intensive endeavor (it's cheap).
Okay thanks. I'm about to test your theory in game. If you are correct, I shouldn't be able to destroy any deck gun as I did with the searchlights.

Quote:
Originally Posted by TheDarkWraith View Post
I see you like dabbling in the files and trying/testing things...I can give you something to keep you busy for awhile if you're interested. It involves testing some ideas dealing with the flooding model and zones (boxes)
I tend to be a lazy tester, hate the long loading times, but please tell me: I am glad to help you if I can


P.S: has anyone tested the searchlight patch other than me? I am curious to know if it is working also for you guys as it did with me
gap is offline   Reply With Quote
Old 08-19-12, 10:59 AM   #6
volodya61
Ocean Warrior
 
volodya61's Avatar
 
Join Date: Feb 2012
Location: Rostov-on-Don, local time GMT+4
Posts: 3,292
Downloads: 374
Uploads: 0


Default

Quote:
Originally Posted by gap View Post
P.S: has anyone tested the searchlight patch other than me? I am curious to know if it is working also for you guys as it did with me
I promise, I'll try it tonight
__________________
.
Where does human stupidity end?

.


El sueño de la razón produce monstruos © - and for some people awakening will be cruel
volodya61 is offline   Reply With Quote
Old 08-19-12, 11:02 AM   #7
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by volodya61 View Post
I promise, I'll try it tonight
There's not hurry Volodya. Thanks for your support anyway
gap is offline   Reply With Quote
Old 08-19-12, 12:25 PM   #8
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 857
Downloads: 174
Uploads: 0
Default

Quote:
Originally Posted by gap View Post


P.S: has anyone tested the searchlight patch other than me? I am curious to know if it is working also for you guys as it did with me
Nice work Gap!

I did a quick test, and I think once I managed to blast it off! I have all sorts of deckgun modifications so it wasn't easy to hit, i was maybe 500 m from the ship and got lucky. So I aimed at the lights, boom, lights went off, but the ship was still alive and kicking. Looks like it works I wonder if you dim the lights with the AA-gun? Would be a lot easier!
Rongel 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:29 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.