![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
02-09-11, 09:26 AM
|
#1 | |
|
Black Magic
![]() |
Quote:
.... # are radio messages enabled in game? # change below to either True or False RadioMessagesEnabled = False |
|
|
|
02-09-11, 09:34 AM
|
#2 | |
|
Canadian Wolf
|
Quote:
|
|
|
|
02-09-11, 06:00 PM
|
#3 |
|
Black Magic
![]() |
some exciting things might be happening here soon. While working with Stormfly on adding sounds to the radio messages I discovered that the game wouldn't let you define new .sdl entries for 'Menu' items. Being the determined one I am I wasn't about to give up. So I did what needed to be done - write a custom .dll file to play them for me. What does this have to do with anything? Simple - I now can retrieve the handle to the main SH5 window. This is HUGE
With that handle I can draw on it, play sounds, capture mouse events, basically I can do just about whatever I want ![]() Time to start really playing with the game now |
|
|
02-09-11, 06:14 PM
|
#4 |
|
Ocean Warrior
![]() Join Date: Dec 2010
Location: Montreal, Canada
Posts: 2,776
Downloads: 833
Uploads: 11
|
sounds promising
|
|
|
02-09-11, 06:18 PM
|
#5 |
|
Watch Officer
![]() Join Date: Apr 2005
Location: Oulu, Finland
Posts: 339
Downloads: 156
Uploads: 0
|
TDW, that sounds intriguing!
![]() Would that make it possible to automaticly show the U-Boat's flag only in close vicinity of the home port, and, say 50 miles from home port only an empty flagstaff? ![]() That would get closer to realism, I guess, instead of showing the flag throughout the mission.
__________________
Cheers Uffe |
|
|
02-09-11, 07:37 PM
|
#6 |
|
Black Magic
![]() |
Wrote a quick .dll to capture the mouse buttons and some code to decipher it:
It's telling me that I had the right mouse button down and the center mouse button down (Button0 is left mouse button). It's also telling me I moved the mouse x,y,z pixels since last call to the function (Note: Z is the mousewheel - this means I'll be able to tell when the map zooms in/out now!). Awesome. Yep, I'll be able to do some things I've been wanting to do now
Last edited by TheDarkWraith; 02-09-11 at 07:54 PM. |
|
|
02-09-11, 07:58 PM
|
#7 | |
|
Seasoned Skipper
![]() Join Date: Aug 2010
Location: 49°44´N 129°40´E
Posts: 665
Downloads: 124
Uploads: 7
|
Quote:
__________________
Speed squadron is the speed of the slowest ship ... but only so long as on the trail of the squadron did not sit submarines ...
|
|
|
|
02-10-11, 01:58 AM
|
#8 |
|
Sea Lord
![]() Join Date: Jun 2008
Location: Noch dabei
Posts: 1,732
Downloads: 618
Uploads: 0
|
Seen before?
Last night all of a sudden this happened.
It didn't influence on gameplay. At least I didn't see anything. // |
|
|
![]() |
| Tags |
| dbrn, favorite, new ui |
| Thread Tools | |
| Display Modes | |
|
|
