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

Reply
 
Thread Tools Display Modes
Old 05-26-07, 09:57 PM   #1
leovampire
Eternal Patrol
 
Join Date: Apr 2007
Location: Waterbury, CT. USA
Posts: 2,336
Downloads: 0
Uploads: 0
Default [TEC] Question about lightning

I havn't seen lightning ing the game but see it is in the game files and that there is a tweek file for it in Mini Tweeker when it says Height 20 do they mean 20meters? Is what the game is set for?

If that is the case is this why we never see lightning in the game?

Dave
leovampire is offline   Reply With Quote
Old 07-27-07, 07:37 PM   #2
kapitan_zur_see
Commodore
 
Join Date: Mar 2005
Location: France
Posts: 614
Downloads: 60
Uploads: 0
Default mmm...

yeah, i found that too. I believe i tried quite about everything that was doable to mod the lightings back. Without success. Did you also looked for the textures? there are a set of 4 .TGA textures in Tnormal and Tlowres named lightning0x_add.tga (i tried removing this "_add" thing also). they're no RGB without Alpha channel. Since SH4 appears to more or so only use .DDS files (with RGB + Alpha), i converted those set in dds ,creating an alpha channel like they're made for those kind of textures in SH' (took exemple of things like foam textures etc.). It didn't work, no matter using dds or tga with rgb+alpha, alpha only, inverting greyscale etc. Also tried in conjunction with modding scene.dat. Still no luck, so at that point, i have strong belief it has been removed hard-coded way...! Give it a try though
__________________

kapitan_zur_see is offline   Reply With Quote
Old 07-28-07, 01:43 AM   #3
leovampire
Eternal Patrol
 
Join Date: Apr 2007
Location: Waterbury, CT. USA
Posts: 2,336
Downloads: 0
Uploads: 0
Default some where in one of the dat files I also saw somthing

about lightning but it was a long time ago and I don't remember where I guess I will have to look for it again and see what can be done.
leovampire is offline   Reply With Quote
Old 07-28-07, 06:19 AM   #4
Fearless
Ace of the Deep
 
Join Date: Feb 2007
Location: Adelaide, Australia
Posts: 1,047
Downloads: 340
Uploads: 1
Default

where is that file located and what is the tweakfile called as I don't have it in my mini tweaker?
__________________
Fearless

System Specs: AMD Ryzen 7 5800X 8 Core 16 Thread CPU, 3.8GHz Base Clock, 4.7GHz Boost, 105W TDP, 32MB L3 cache | MSI GeForce RTX3060Ti 8Gb Graphics | Corsair Vengeance RGB Pro 32Gb (2x16Gb) 3200 MHz CL16 DDR4 Ram | Samsung 970 Evo Plus NVMe SSD 1TB | Seagate Barracuda 2.5in 2TB HDD | AOC QHD 165 Hz FreeSync HDR curved 31.5in Monitor | ASUS ROG Strix LC 240 ARGB AIO Liquid CPU Cooler White Edition | ASUS ROG Strix Gold 750W Modular Power Supply | Corsair iCUE 5000X RGB Tempered Glass Mid Tower Case White.
Fearless is offline   Reply With Quote
Old 07-28-07, 06:24 AM   #5
switch.dota
Captain
 
Join Date: May 2007
Location: Romania
Posts: 492
Downloads: 0
Uploads: 0
Default

I don't know if it was a graphical glitch but I did experience lightning. Wierd thing is that it only happened when swiotching views. And no, it wasn't a random artifact, it was a rather realistic looking arced lightning.
switch.dota is offline   Reply With Quote
Old 07-28-07, 06:54 AM   #6
kapitan_zur_see
Commodore
 
Join Date: Mar 2005
Location: France
Posts: 614
Downloads: 60
Uploads: 0
Default

Quote:
Originally Posted by switch.dota
I don't know if it was a graphical glitch but I did experience lightning. Wierd thing is that it only happened when swiotching views. And no, it wasn't a random artifact, it was a rather realistic looking arced lightning.
mmm... i didn't but could make sense as when i changed the lightning part values in scene.dat with minitweaker to match those of SH3, it made thunder to occurs apparently far closer from the sub, that is, whenever i was switching view from interior to freecam or bridge a far bigger thunder sound could be heard but only one time right after switching. Still i didn't saw a lightning but it may appear just once and in my back. Maybe something is interfering with lightnings graphics just after you switch to outside view as we know that some of the effects SH4 is using are triggered not instantly but rather few seconds after you switch view. Could you make any further testing? might be hardware related (like sun bloom not occuring on ATI's cards).
__________________

kapitan_zur_see is offline   Reply With Quote
Old 07-28-07, 07:10 AM   #7
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

Had a quick look at the scene.dat in hexed
Quote:
Debug..P...EffectNames.....@Lightning01.....@Light ning02.....@Lightning03.....@Lightning04.....Heigh t....A....MinDistance....B....MaxDistance...4C.... MinTime... A....MaxTime..
It is there. But as kapitan_zur_see said...could be a graphic glitch or a bug plain and simple. I wonder if elanaiba could confirm if the lightning actually works or not.
__________________

Last edited by CaptainCox; 07-28-07 at 07:45 AM.
CaptainCox is offline   Reply With Quote
Old 07-28-07, 07:40 AM   #8
kapitan_zur_see
Commodore
 
Join Date: Mar 2005
Location: France
Posts: 614
Downloads: 60
Uploads: 0
Default

Quote:
Originally Posted by CaptainCox
Had a quick look at the scene.dat in hexed
Quote:
Debug..P...EffectNames.....@Lightning01.....@Light ning02.....@Lightning03.....@Lightning04.....Heigh t....A....MinDistance....B....MaxDistance...4C.... MinTime... A....MaxTime..
It is there. But as kapitan_zur_see said...could be a graphic glitch or a bug plain and simple. I wonder if enalabia could confirm if the lightning actually works or not.
Who's that enalabia?? some dev that can be reached?
__________________

kapitan_zur_see is offline   Reply With Quote
Old 07-28-07, 07:42 AM   #9
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

Yea, he is one of the Dev's. He prowls SS once in a while
AND MY BAD! its elanaiba !!!!
__________________
CaptainCox is offline   Reply With Quote
Old 07-28-07, 02:12 PM   #10
kapitan_zur_see
Commodore
 
Join Date: Mar 2005
Location: France
Posts: 614
Downloads: 60
Uploads: 0
Default

mmm... i'll try to catch on with this guy :hmm: might help a lot cause this thing, while not essential at all, is frustrating. Would help, since a storm in SH4 don't look very much like one! it's a "calm" storm
__________________

kapitan_zur_see is offline   Reply With Quote
Old 07-28-07, 04:43 PM   #11
Fearless
Ace of the Deep
 
Join Date: Feb 2007
Location: Adelaide, Australia
Posts: 1,047
Downloads: 340
Uploads: 1
Default

Quote:
Originally Posted by CaptainCox
Had a quick look at the scene.dat in hexed
Quote:
Debug..P...EffectNames.....@Lightning01.....@Light ning02.....@Lightning03.....@Lightning04.....Heigh t....A....MinDistance....B....MaxDistance...4C.... MinTime... A....MaxTime..
It is there. But as kapitan_zur_see said...could be a graphic glitch or a bug plain and simple. I wonder if elanaiba could confirm if the lightning actually works or not.
CC did you copy and paste the Debug text above or did u type it in? Reason: @Lightning02 not @Light ning02 same with height shown as heigh t
__________________
Fearless

System Specs: AMD Ryzen 7 5800X 8 Core 16 Thread CPU, 3.8GHz Base Clock, 4.7GHz Boost, 105W TDP, 32MB L3 cache | MSI GeForce RTX3060Ti 8Gb Graphics | Corsair Vengeance RGB Pro 32Gb (2x16Gb) 3200 MHz CL16 DDR4 Ram | Samsung 970 Evo Plus NVMe SSD 1TB | Seagate Barracuda 2.5in 2TB HDD | AOC QHD 165 Hz FreeSync HDR curved 31.5in Monitor | ASUS ROG Strix LC 240 ARGB AIO Liquid CPU Cooler White Edition | ASUS ROG Strix Gold 750W Modular Power Supply | Corsair iCUE 5000X RGB Tempered Glass Mid Tower Case White.
Fearless is offline   Reply With Quote
Old 07-28-07, 06:12 PM   #12
leovampire
Eternal Patrol
 
Join Date: Apr 2007
Location: Waterbury, CT. USA
Posts: 2,336
Downloads: 0
Uploads: 0
Default BTW guys becarfull what you change when you hex

edit the scene file because some things are interlinked and you can throw off all the reflection and lighting effects in the entire game found that out the hard way and had to start with a whole new scene file all over again!
leovampire is offline   Reply With Quote
Old 07-28-07, 08:45 PM   #13
leovampire
Eternal Patrol
 
Join Date: Apr 2007
Location: Waterbury, CT. USA
Posts: 2,336
Downloads: 0
Uploads: 0
Default okay I found somthing

the particles files in library also help to control lightning effects so if someone wants to take a look at that and compair them to the shIII particle files maybe they can find the problem. Someone who is a good hex editor
leovampire is offline   Reply With Quote
Old 07-28-07, 08:53 PM   #14
Bando
Commodore
 
Join Date: May 2007
Location: Where you don't see me
Posts: 607
Downloads: 23
Uploads: 0
Default

Don't know why, but the name Anvart keeps popping up.

Maybe because he's called the Hexmaster.........

You may give him a PM
__________________
Regards,

Bando
Bando is offline   Reply With Quote
Old 07-28-07, 10:00 PM   #15
kapitan_zur_see
Commodore
 
Join Date: Mar 2005
Location: France
Posts: 614
Downloads: 60
Uploads: 0
Default

Quote:
Originally Posted by leovampire
the particles files in library also help to control lightning effects so if someone wants to take a look at that and compair them to the shIII particle files maybe they can find the problem. Someone who is a good hex editor
mmm...:hmm: yes indeed you're right, there's lots of modifiers for each of the 4 lightnings. Values varies slightly from the sh3 particles.dat. I'm going to have a closer look tomorrow, might be important. As particles.dat don't have it's minitweaker counterpart, i'll have to go hex editing, wich is less comfy

I'll keep in touch
__________________

kapitan_zur_see 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 05:55 PM.


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.