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 02-09-11, 01:58 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

we cannot define our own sounds and call them via script (tried every possible way/combination - everytime I use a pre-defined one it works). We have to use the existing ones that are given to us in Sh.sdl. So I'm going to write my own .dll and call it to have it play sounds for me
TheDarkWraith is offline   Reply With Quote
Old 02-09-11, 02:12 PM   #2
Stormfly
Serial Port Protector
 
Stormfly's Avatar
 
Join Date: Sep 2002
Posts: 1,424
Downloads: 370
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
we cannot define our own sounds and call them via script (tried every possible way/combination - everytime I use a pre-defined one it works). We have to use the existing ones that are given to us in Sh.sdl. So I'm going to write my own .dll and call it to have it play sounds for me
wow, you open totaly new possibilitys then nice !!!

...the only way i call new non used sounds using scripts is via ai crew strategy`s in 3D, but it seams that this isnt possible to call from your HUD script or ?
__________________
Stormy......

Stormfly is offline   Reply With Quote
Old 02-09-11, 02:22 PM   #3
Stormfly
Serial Port Protector
 
Stormfly's Avatar
 
Join Date: Sep 2002
Posts: 1,424
Downloads: 370
Uploads: 0
Default

@TDW you have PM...

EDIT: maybe the original HUD samples have also to be registered in a DSD file ?
__________________
Stormy......

Stormfly is offline   Reply With Quote
Old 02-09-11, 02:51 PM   #4
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 859
Downloads: 174
Uploads: 0
Default

Good luck to you two! Nice to see again progress in real time, and good work Stormfly on hotfix 2, I'll check the airplane guns later if I have time or notice any funny business.
Rongel is offline   Reply With Quote
Old 02-09-11, 03:45 PM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

my .dll is working superb!
TheDarkWraith is offline   Reply With Quote
Old 02-09-11, 03:52 PM   #6
Stormfly
Serial Port Protector
 
Stormfly's Avatar
 
Join Date: Sep 2002
Posts: 1,424
Downloads: 370
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
my .dll is working superb!
great ...so i will work on that english samples now.
__________________
Stormy......

Stormfly is offline   Reply With Quote
Old 02-09-11, 05:29 PM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Stormfly View Post
great ...so i will work on that english samples now.
sorry there was tweaking my .dll and the code for it

Your sounds work excellent for the radio messages There's no need for the Sh.sdl entries for them, as my .dll handles the sounds for them now. Here's the cool thing: We can play any sound we want now without having to register it with Sh.sdl. I see a whole bunch of new sounds for the UI being made I even added volume control for the sounds (via code). I'll get your PM request to you here in a few along with v6.4.0 as of now so you can test new radio messages out.

I still have a little work to do on the the implementation of the .dll but it's minor in nature so I can send to you v6.4.0 as of now.

Boy the hardest part of making the .dll was retrieving the handle of the main SH5 window. Now that I have it it opens up a whole new world of possibilities (DirectX anyone?). Now I should be able to capture anything I want from the mouse....oh this can get really interesting.....

Last edited by TheDarkWraith; 02-09-11 at 05:39 PM.
TheDarkWraith is offline   Reply With Quote
Reply

Tags
favorite


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 02:32 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.