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 10-30-11, 02:14 PM   #1
DrJones
Samurai Navy
 
Join Date: Jun 2009
Location: Germany, 50 Kilometers away from Kiel
Posts: 575
Downloads: 343
Uploads: 0
Default

Quote:
Originally Posted by reaper7 View Post
Sorry guys for being away for so long. But I've working on other project related to SH3.
I've gone back to Sh3 as I prefer it to Sh5 as it currently stands - maybe down the road the Issues will be fixed and make this a Sim worth playing for me.

But I've returned to finish this Mod up and not to leave it in its current state.

So to that end I've started recoding all my scripts to get them working from the PageLayout and PageDefaultHud pages intead of the current ones having Interface items across every page.
While not doing anything for the Game visual wise it will be alot better Interface wise.

Aslo plan on getting the Full TDC redone and fully working. And possibly a Fat/Lut panel to

And now have Finally working Target Lock code done (that was a tough one)
So now Lock button works 2 fold - First click locks the target and second click tracks the target (Scope sticks to contact bearing) .

So stay tuned hope to have a release soon.
That sounds very interesting. I'am very interessted in how you got it. Hope i will find some time to get my work further on...myuh to to do in normal life...work and family. Best Regards DrJones
DrJones is offline   Reply With Quote
Old 10-30-11, 03:19 PM   #2
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

Quote:
Originally Posted by DrJones View Post
That sounds very interesting. I'am very interessted in how you got it. Hope i will find some time to get my work further on...myuh to to do in normal life...work and family. Best Regards DrJones
Sure no problem DrJones.

Here is my code in the Attack Periscope
You can see similar code in the stock PageDefaultHud for the contacts in the TAI Map when clicked on causes the camera to point at the contact.
sub = PageDefaultHud_TAI_Mapcontrol.SubmarineContact
angle = sub.HeadingDEGToContact(PageDefaultHud_TAI_Mapcont rol.LockedOnContact ) - sub.HeadingDEG
import game
game.Game.SubmarineCommands.RotateActiveCameraToAn gleDEG( angle,0.001 )


Code:
# Globals

TrackTarget = False
Code:
def InitializeScript():

Pageattackperiscope_LockToggle.Clicked += LockToggle

LockToggle( None )
Code:
def Pageattackperiscope_AnimationStopped( animation ):

if TrackTarget == True:
		from Pagenavigationmap import Pagenavigationmap_Mapcontrol
		sub = Pagenavigationmap_Mapcontrol.SubmarineContact
		angle = sub.HeadingDEGToContact(Pagenavigationmap_Mapcontrol.LockedOnContact ) - sub.HeadingDEG
		import game
		game.Game.SubmarineCommands.RotateActiveCameraToAngleDEG( angle,0.001 )
Code:
def LockToggle( sender ):
	from Pagenavigationmap import Pagenavigationmap_Mapcontrol
	global TrackTarget
	if Pageattackperiscope_LockToggle.IsChecked:
		TargetLock = Pagenavigationmap_Mapcontrol.LockedOnContact
		if TargetLock == None:	
			Game.SubmarineCommands.ExecuteCommand( "Lock_target" )
			if contact == TargetLock:	
				Pageattackperiscope_LockToggle.SetCheck( False, False )
		else:	
			TrackTarget = True				
	else:		
		Game.SubmarineCommands.ExecuteCommand( "Unlock_target" )
		TrackTarget = False
Code:
def Menu_PageDeactivated( page ):

Pageattackperiscope_LockToggle.Clicked -= LockToggle

The same can be done at the Obs scope and UZO etc.

Hope that Helps Mate
reaper7 is offline   Reply With Quote
Old 10-31-11, 06:42 AM   #3
DrJones
Samurai Navy
 
Join Date: Jun 2009
Location: Germany, 50 Kilometers away from Kiel
Posts: 575
Downloads: 343
Uploads: 0
Default

[QUOTE=reaper7;1777086]Sure no problem DrJones.

Here is my code in the Attack Periscope
You can see similar code in the stock PageDefaultHud for the contacts in the TAI Map when clicked on causes the camera to point at the contact.
sub = PageDefaultHud_TAI_Mapcontrol.SubmarineContact
angle = sub.HeadingDEGToContact(PageDefaultHud_TAI_Mapcont rol.LockedOnContact ) - sub.HeadingDEG
import game
game.Game.SubmarineCommands.RotateActiveCameraToAn gleDEG( angle,0.001 )

Thank you very much for your help. it is on my to do list....
DrJones is offline   Reply With Quote
Old 11-05-11, 07:30 PM   #4
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default New Update

Got some Pics of the latest updates at last.

Finally pretty much back to where I originally was before losing all my work.
Also remade the TDC again, now its closer to the original as I've removed the Fat/lut dials and giving them a new home.

Main Interface


Replica TDC


Replica Fat/Lut Panel (Just need to make 2 Needles for the Top dials.)
reaper7 is offline   Reply With Quote
Old 11-06-11, 04:31 AM   #5
TheBeast
The Old Man
 
Join Date: Jan 2010
Location: Lynnwood, WA
Posts: 1,533
Downloads: 888
Uploads: 23


Default

Very nice work as always!
__________________
Fear me! I am, TheBeastBelow

SHIV-MediaFire | SHV-MediaFire
TheBeast is offline   Reply With Quote
Old 11-06-11, 12:51 PM   #6
voheret
Swabbie
 
Join Date: Aug 2011
Posts: 7
Downloads: 133
Uploads: 0
Default

Incredibly cool! Can't wait to try it...
voheret is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 06:34 PM.


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