SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH4 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=219)
-   -   Special effects from SH3 Missing in Sh4?? (https://www.subsim.com/radioroom/showthread.php?t=113426)

William516 05-03-07 04:47 PM

Still searching through the files to figure this out. Has anyone figured out how to force a sound to play in the game via scripting or any other method. Or anyone figured out how the sound is called to work.

For example i know that if i press the button on my keyboard for "P" it will play the periscope depth sound effect that is in my sound folder. Somewhere there has to be a way to see what actions cause sounds files to play and maybe we can alter them.

I'm still uncertain as to what conditions have to be met in order to play the file for thunder.

Maybe it is my sound card but never caused problems with sh3 or any other game for that matter. FSX plays many more sound files at a time then SH4 so i dont think it is related to a sound card lagging.

Hopefully somone else has had this issue and had it corrected.

William

William516 05-07-07 09:16 PM

Ok I'm going back to the original game to see if the effects work before i started modding with all the patches.

Still hoping to find the answer to these questions.

William516 05-08-07 06:05 PM

Ok i can now confirm that the problem has to be the install of the game or my sound card. People are saying they here thunder however I have yet to hear it on any setting.
I uninstalled the game completly erasing all the files and restarting the computer between the install and the reinstall of the game.
Install went fine again no problems, shut off all the outside programs.
Install completed and then I restarted the computer again. I left it at the original vanilla version of the game.
I started the mission builder and created a mission using the mission builder.
Mission parameters as follows
Outside Pearl Harbor by 90 miles or so
Time: 10am
Weather: Heavy clouds, medium rain, no fog, Wind 12kts
Weather change: Heavy on all choices.
I placed myself in the mission in a tambor class sub with a simple escort destroyer next to me. Both of us set at 0 kts.
I then saved the mission and closed the builder. Started up the game and chose my mission. After several minutes of loading time, I found myself in the ocean with heavy seas and heavy fog and rain. I said i didn't want fog if you remember correctly in the original settings.
Rain was pouring, the wind was howling, sounds of the surf also poured through the speakers. I never saw a single flash of the screen that i noticed and never heard a single crack of thunder. I let the game play out in 1x time for several hours. I simply layed down in bed and listened to the rain. I woke the next morning and the game had closed.
As far as i know i still even in the oringinal version of the game do not have the effects that i should see.
The only setting i had turned down in the audio settings were the music options. I had it turned completly down but this should not effect anything else.
As for it being the sound card i dont see the being possible. My sound card is not the best but it can hold up to FSX with all the sounds being played without an issue.
Hopefully somone out there can tell me what wrong with this or what else to test. For now im a little upset and frustrated
Thanks

Jungman 05-08-07 07:29 PM

I do not hear or see anything either. As posted above earlier.

Look inside the sh.sdl folder inside the Sound folder using hex editor. You will find the the four thunder types and the controls for the volume, Is3D, min and max distance, pitch, Loop, Doppler Factor, etc....other tie in numbers.

Something may be broken here. It could also get the other damage sounds playing again too.
���Category����
���Priority����
���Delay�����#��SoundInfo� ���Name�Particles.P24_@Lightning04����WaveName�Th under_4.wav�
���IsFolder�����Loop�����Play�
���Volume���¼B���VolumeVar�����
���Pitch���€?
���PitchVar��������Is3D�����DopplerFactor������ ��MinRadius��� A���MaxRadius���ÈB
���Category����
���Priority����
���Delay����?#

Well, I do not know how to post hex code, but the file that calls the trigger Particles.P24_@Lightning the maximum distance is c8 42 = 100 IIRC is not very far, you may want to change this to c8 44 so if there is lighting in the distance, then you hear it; else it would have to be very close to your boat to hear it. Maybe the lightining visual effect is covered by fog? Your test removed the fog though...

William516 05-08-07 09:29 PM

Ok well yes your right i did try and remove the fog from the equation, however the key word here is try. As you see when i actually try the mission with the same settings listed above i still saw heavy fog. So bad that sometimes i could barely see the front of my sub.

So the fog was not turned off as it should have been and never changed either. Even after the two hours time. I dont know how to work with hex code so maybe someone could help me out with this problem if i sent them the file your refering to.

I dont know what to do with the file. Has anyone else had this problem? I have had the game installed three times now and im guessing that even after three times the bugs from a bad install would have been worked out by now. I dont see any way that the disk could be bad. If it is a programing error on UBI side then shouldn't it effect everyone?

Thanks again for you help, hopefully someone that is far more tallented then me will pick this up and help me out.


thanks

William516 05-08-07 10:12 PM

A second thought, I downloaded a program called groovy hex editor or something like that along time ago. I just opened the file using that editor but i dont know how to figure out exactly what line i need to change.

I also remember that in SH3 we were able to play or modify that file using hte mini-tweeker program. I was not able to use the SH3 minitweeker to open that file because it is not a Txt file. Does anyone have the file changed to a TXT file that i can edit with the minitweaker.

Thanks

Jungman 05-08-07 10:51 PM

Nvdrifter use to make tweak files for Sh4, but he quit the forum.

I think I can do it too...but it is ALOT of work to type out all that text. The file for the sound is much longer. There is as many as there are sound files multiple entries. A real tweak job indead.

Since you want to only play with the certain values, such as thunder04.wav -the format is not that hard to figure out. Same as any other *.sim or *.zon file.

Maybe upload your test mission, let me download and mess with it. I want to test changing the maximum sound range, volumes, etc using my own quick hex editing to see what effects occur in game. the Delay value may be too long, the sounds in this game will not work if the clip + delay > is longer than 15 seconds. They will play once in game, then never again! This others have noted when making a better dive sequence sound or the diesel engine sounds.

It maybe that the Devs disabled the thunder sounds via hardcode, but several claim they heard them in game. I surely have never heard thunder yet, or seen lightning.

Beery 05-08-07 11:05 PM

I've definitely, 100% certain, heard thunder in the game. In fact I have a test mission in a storm where there's a lot of thunder to be heard. It doesn't have lightning because the fog is so dense, and I can't definitely confirm lightning because I haven't seen it since this issue came up, but I believe I saw it once a few weeks ago.

Jungman 05-08-07 11:23 PM

You have been around awhile enough I can trust your word on it. :yep:

If there is thunder in the game, I wonder if making some changes to the file will make it more noticed. The range is set for only maximum of 100.

Can you upload a test mission that has thunder in it, so I can try to see what is going on? Thanks.

I do not know how to make a mission yet, never tried.

Beery 05-08-07 11:37 PM

Quote:

Originally Posted by Jungman
Can you upload a test mission that has thunder in it, so I can try to see what is going on? Thanks..

I'll see if I can upload it tomorrow (it's 12:30am here so I'm beat). If I can figure out how to upload it it will probably need to be played using RFB though, as it is a campaign patrol.

Jungman 05-08-07 11:42 PM

OK. So far I did a clean re-install stock game. Maybe I should try make a quick Mission using the editor. I should be able to do it easy enough. Talk to you later.:D

CaptainCox 05-08-07 11:47 PM

Heard thunder? I heard that plenty of times in game...never saw a flash but.

Jungman 05-09-07 03:20 AM

OK. I modified the Sub School mission torpedo attack and tried different settings.

As long as you have cloud = 2 you will hear thunder (but saw no lightning). Even if you have medium or heavy rain, or wind from 0 to 15.

So I guess it works...at least in missions. Maybe in game I did not notice the storm cloud state since my computer will not render beyond 1 FPS if I turn on Enivromental Effects -so what I see as true storm state is not always so. I can have partial cloud state (1) with heavy rain (2) and high wind = 15 but not hear any Thunder even though you would thinks so by the looks of things.

The Cloud State must hit (2) before you will hear Thunder. I can hear thunder below with no rain and calm seas. As long as clouds sky is overcast at (2).

[Mission]
MissionType=0
MissionDataType=0
MultiMissionType=0
Year=1943
Month=1
Day=1
Hour=11
Minute=0
Fog=0
FogRand=0
Clouds=2 ---> I hear Thunder only at 2. any state less you hear nothing.
CloudsRand=0
Precip=0 ----> no effect
PrecipRand=0
WindHeading=0
WindSpeed=2.000000 ---> none
WindRand=0
WeatherRndInterval=5
SeaType=0

William516 05-09-07 06:51 PM

Below is a posting of the mission file in text view that I made to test just this thing. You will see that even with my cloud status or whatever it is called set to 0 i do not get any thunder or lightning. This is still the stock game i tried it in. I will have to try modding a mission file thats already in the game like you did or patching back to the current version. I decided to try it from a fresh install to see if maybe one of the mods of even the patches had caused the issue but it looks like it was this way from the beginning.

------------mission file--------------------

[Mission]
MissionType=0
MissionDataType=0
MultiMissionType=0
Year=1945
Month=1
Day=1
Hour=10
Minute=0
Fog=0
FogRand=2
Clouds=2
CloudsRand=2
Precip=2
PrecipRand=2
WindHeading=0
WindSpeed=12.000000
WindRand=2
WeatherRndInterval=2
SeaType=0
[Unit 1]
Name=_US Gato#1
Class=SSGato
Type=200
Origin=American
Side=1
Commander=1
CargoExt=-1
CargoInt=-1
CfgDate=19411201
DeleteOnLastWaypoint=true
DockedShip=false
GameEntryDate=19450101
GameEntryTime=1000
GameExitDate=19451231
GameExitTime=0
EvolveFromEntryDate=false
Long=-19000100.000000
Lat=2434800.000000
Height=0.000000
Heading=0.000000
Speed=0.000000
CrewRating=3
DelayMin=0
ReportPosMin=-1
ReportPosProbability=100
RandStartRadius=0.000000
NextWP=0
[Unit 2]
Name=_US DE Buckley#1
Class=DEBuckley
Type=3
Origin=American
Side=1
Commander=0
CargoExt=-1
CargoInt=-1
CfgDate=19430101
DeleteOnLastWaypoint=true
DockedShip=false
GameEntryDate=19450101
GameEntryTime=1000
GameExitDate=19451231
GameExitTime=0
EvolveFromEntryDate=false
Long=-19000360.000000
Lat=2434967.000000
Height=0.000000
Heading=0.000000
Speed=20.000000
CrewRating=3
DelayMin=0
ReportPosMin=-1
ReportPosProbability=100
RandStartRadius=0.000000
NextWP=0

----------------------------------------------------------

Thanks again for atleast trying. I'm still trying to figure out that hex mess to see if those settings would help me to force the thunder sound effect so i know it actually works. Is it also possible that weather will not CHANGE under time compression? The randomness of the weather was set to the min. 2hour setting but yet i never see it change even when playing real time.

I will keep digging through this mess.

By the way are there only
3 cloud settings

0,1,2
0 being now
and
2 being overcast

??

William516 07-13-08 06:50 PM

Been a long time and wondering if this was ever corrected or solved
 
For some strange reason the developers released a new patch / game made us pay for it but never fixed the things they promised to fix. So yet again it is up to the modders. I have now bought version 1.5 and installed it over a clean copy of SH4. I have no mods enabled or even installed at this time.

Back to square one, with new patch no lightning, no thunder sounds at all.

Created a mission and
placed clouds at value 0f 2 (as figured before)

Dark clouds with rain and high winds, not a single sound of thunder and no signs of lightning. Ran game for 2 hours real time with no advancments in time. Weather does not change at all even with wind, clouds and rain values for change set to 2.

Also still no oil from damaged or sinking ships.

Has anyone figured a work around for any of this, or is it something that is hard coded and we are at the mercy of UBI.

Thanks

Bill

Fearless 07-13-08 08:17 PM

No problems at my end. Plenty of thunder when I'm in a storm. I'm yet to see lightning though. I'm patched to v1.4 and have RFB 1.4 and PE v3.3 mods installed.

Go4It 07-14-08 12:05 AM

I hear thunder, but never seen lightning, but I which the devs would of fixed the splash effects when the torpedos, bomb, etc, explode! It looks STUPID when you see ur torpedos explode an no splash. SH3 has it

William516 07-14-08 03:20 PM

I will have to reinstall the game and try it again. I know in the original game before any of the patches i was able to set clouds to "2" and have a storm. I was able to hear thunder never saw lightning or oil or a vast number of other effects that were in sh3 and left out or forgotten in sh4.

After installing the different patches things that were working did not work anymore.

Now at a full install with only the 1.5 patch i have nothing again. I notice the first few comments are people using version 1.4 and not 1.5.

Has anyone seen these effects using 1.5.

Also since this game is so closed to sh3 (they used the same file structure and everything) would it be possible to imports the sounds missing in sh4. maybe examing the sound files in sh3 and locate the missing parameters.

Be nice if game developers looked into the threads and read what they missed or atleast gave us information as to how to fix these.

Thanks i will try another full reinstall and see if it fixes anything

Bill

William516 07-15-08 11:39 AM

Ok well i have now confirmed that after a clean install after a full uninstall the original game with no patches does in fact have thunder if your cloud settings are set to "2"

For even when set to "0" will still be heavy at least the three times i tried it.

There is no lightning at all, I'm going to create a backup of all the files that affect sound and the scene.dat file as well. Try and compare them to each of the patches as we go through.

Notice that as the developers fixed some of the noted bugs (SOME) they broke others. Still even at a FORCED patch 1.5 that we had to pay for there is still much that is lacking.

I'm no modder but maybe by comparing some file structers it might lead me to some answers. Does anyone know how to open a .act file extension.

Also noticed that in the scene file there are many refrences to lightning and even what is played for sound after it.

Has anyone figured out all the values and what they stand for when opening these files using the 3d program.
is there anyway to change or add the sounds to the game and have them called up randomly, for example adding more sounds for thunder, currently i think it is only 5-6 sound files that play and they are randomized. Be nice to add some more violent type of thunder and reduce the chance of it playing by decreasing the priority, say randomly once every 30 minutes or so. Seems like everybody is still very confused about how the sound file structures work.

If a developer happens to read this and you have no intentions on ever releasing another "FREE" patch, then please explain how the great team of modders can unlock and fix these issues.

Still trying to get my dolphins back into sh4, no luck but hey im not that good, keeps causing a ctd.

Bill

Sean142 07-15-08 12:47 PM

Same here. I think I've heard lightning several times but never seen one and I've been with SH since it was released. Oil slicks are visible but you need to have 1.4 + TMO+NSM. I also had PE3 but you should see oil without it. I haven't seen oil in 1.5 but I bought it a few weeks ago so it may as well be there.

Speaking about missing effects, I don't know if somebody noticed that this nice perturbed water after a depth charge or torpedo explosion is gone as well.


All times are GMT -5. The time now is 06:44 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.