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, 04:22 AM   #1
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
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   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
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   #3
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
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   #4
volodya61
Ocean Warrior
 
volodya61's Avatar
 
Join Date: Feb 2012
Location: Rostov-on-Don, local time GMT+4
Posts: 3,300
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   #5
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
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, 11:19 AM   #6
volodya61
Ocean Warrior
 
volodya61's Avatar
 
Join Date: Feb 2012
Location: Rostov-on-Don, local time GMT+4
Posts: 3,300
Downloads: 374
Uploads: 0


Default

Quote:
Originally Posted by gap View Post
There's not hurry Volodya. Thanks for your support anyway
I wanted to try at once but I had problems with the new version of the TDW patcher.

__________________
.
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, 12:23 PM   #7
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by volodya61 View Post
I wanted to try at once but I had problems with the new version of the TDW patcher.

Yes, I noticed it from the other thread. I am sorry man, but I am sure that there is going to be a solution for you problem

Quote:
Originally Posted by gap View Post
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.
TDW,
I am just back fro an in game testing session. I was able to tear up a single barrel Oerlikon 20 mm cannon, with no need to give it a collision sphere.

In relation to your detailed description on how the game is calculating impacts, the question is: by adding the missing shperes, are we going to alleviate our CPU from having to calculate impacts directly from gun's boxes?

On a side note: as they are currently set in zones.cfg, light guns and searchlights can be currently destroyed with a single shell. Hitting them from long or even from medium distance is quite a challenging task anyway. If you think that getting rid of them is still too easy, their armor level/hit points can be slightly increased.
For you to know, these ones are the settings used for both heavy and light guns:

Code:
[WeaponsHeavy]
Category=Heavy Weapons
Multiplier=1.000000
Flotability=0.000000
HitPoints=40
Destructible=No
Armor Level=-1
Critic Flotation=0.300000
Critical=No
FloodingTime=59.999996
CargoType=None

[WeaponsLight]
Category=Light Weapons
Multiplier=1.000000
Flotability=0.000000
HitPoints=9
Destructible=Yes
Effect1=BAZA_FX_Explozie_mica, 100
Effect2=BAZA_FX_Splinter_fire, 100
Effect3=BAZA_FX_scantei_explozie,100
Armor Level=5
Critic Flotation=0.300000
Critical=No
FloodingTime=59.999996
CargoType=None
Let me know what do you think guys.
gap is offline   Reply With Quote
Old 08-19-12, 12:25 PM   #8
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 859
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


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 12:20 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.