![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 | |
Ocean Warrior
![]() Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,983
Downloads: 102
Uploads: 1
|
![]()
I was just wondering because I wanted to release some scripts I've created to see if there would be any interest in the population to create more.
__________________
Quote:
![]() |
|
![]() |
![]() |
![]() |
#2 |
Navy Seal
![]() |
![]()
Hi Krauter
I would be interested in what you have written. |
![]() |
![]() |
![]() |
#3 | |
Sparky
![]() Join Date: Aug 2005
Posts: 156
Downloads: 500
Uploads: 0
|
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#4 |
Helmsman
![]() Join Date: Mar 2010
Location: España
Posts: 105
Downloads: 472
Uploads: 0
|
![]() |
![]() |
![]() |
![]() |
#5 |
Navy Seal
![]() |
![]()
Here is my search on patrol script from the first page.
It now works quite well. [AS] patrol [CATEGORY] Search on patrol [COMMANDS] Set_Time_Compression,1,0,0,0,0,0,0 Get_depth_under_sub_keel,0,0,0,0,0,0,2 Periscope_depth,0,0,0,0,0,0,0 Toggle_free_camera,0,0,0,0,0,0,5 Camera_on_next_unit,0,0,0,0,0,0,45 Toggle_free_camera,0,0,0,0,0,0,0 Ahead_slow,0,0,0,0,0,0,0 Activate_NavMap_Station,0,0,0,0,0,0,0 Set_Time_Compression,2,0,0,0,0,0,0 Hydrophone_normal_sweep,0,0,0,0,0,0,60 Report_nearest_sound_contact,0,0,0,0,0,0,0 Knuckle_starboard,0,0,0,0,0,0,90 Hydrophone_normal_sweep,0,0,0,0,0,0,60 Report_nearest_sound_contact,0,0,0,0,0,0,0 Rise_whole_periscope,0,0,0,0,0,0,6 Activate_Scope_Station,0,0,0,0,0,0,0 Periscope_depth,0,0,0,0,0,0,30 Sweep_Scope,0,0,360,120.0,0,0,1 Report_nearest_visual_contact,0,0,0,0,0,0,1 Leave_Scope_Station,0,0,0,0,0,0,0 Lower_whole_periscope,0,0,0,0,0,0,10 Toggle_free_camera,0,0,0,0,0,0,0 Camera_on_next_unit,0,0,0,0,0,0,5 Set_Time_Compression,1,0,0,0,0,0,0 Ahead_full,0,0,0,0,0,0,0 Surface,0,0,0,0,0,0,0 Return_to_course,0,0,0,0,0,0,45 Ahead_standard,0,0,0,0,0,0,0 Activate_NavMap_Station,0,0,0,0,0,0,10 Leave_NavMap_Station,0,0,0,0,0,0,0 Surface,0,0,0,0,0,0,0 Activate_NavMap_Station,0,0,0,0,0,0,60 [COMMANDS_END] Note that I have used cameras to view the dive and surface. At he moment this may cause you to end up swimming when script ends. If it does you can teleport back to the bridge using UI commands. Adding the double surface at the end was due to my sub being stuck at 7m for some reason. |
![]() |
![]() |
![]() |
#6 |
Black Magic
![]() |
![]()
fixed the looping problem with Sweep_scope. I've also 'beefed up' Sweep_scope:
parameter 5 will determine the options below: # available options (parameter 5): # # bit 0 = lock the contact on contact spotted (if bit 2,3,4, or 5 isn't set then contact will be immediately unlocked) # bit 1 = set current heading for contact on contact spotted # bit 2 = stop sweep on contact spotted # bit 3 = stop sweep and follow target on contact spotted # bit 4 = pause script on contact spotted # bit 5 = abort script on contact spotted you have to do bitwise addition (you can use the calculator in Windows to do this - set it to Binary mode and enter the bit pattern wanted (1 for enabled and 0 for disabled) and then click on decimal to get your number to put into parameter 5) i.e.: we want bit 0, bit 1, and bit 4. This would be 10011 in binary. This would equal 1 + 2 + 16 = 19. Parameter 5 would be 19. Sweep_scope,0,0,360,90.0,19,0,5 So depending on how you set the options you can have the scope sweeping and reporting every new contact every time it spots one by locking it and unlocking it. |
![]() |
![]() |
![]() |
#7 | |
Ocean Warrior
![]() Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,983
Downloads: 102
Uploads: 1
|
![]()
How would you guys like me to release the current scripts? just Copy and paste onto a post? Or Upload the document they're written on? I currently do not know how to upload files to subsim, nor do I own a filefront account.
Also, how do I package the mod so that it does not overwrite TDWs Scripts? data\Automation\KrautersScripts.SHA?
__________________
Quote:
![]() |
|
![]() |
![]() |
![]() |
#8 |
Black Magic
![]() |
![]() |
![]() |
![]() |
![]() |
#9 | |
Ocean Warrior
![]() Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,983
Downloads: 102
Uploads: 1
|
![]()
OK, how do I upload them to subsim.com?
__________________
Quote:
![]() |
|
![]() |
![]() |
![]() |
#10 | |
Swabbie
![]() Join Date: Jan 2009
Location: Australia
Posts: 10
Downloads: 163
Uploads: 0
|
![]() Quote:
I had an idea and was wondering if it was possible to do for the lazy skipper ( IE, me)to add pause game on sound contact spotted. Say on a patrol I wanted to go and make some lunch or have a shower I could come back and see game is paused and then set up my solution. ![]() |
|
![]() |
![]() |
![]() |
#11 | |
Black Magic
![]() |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#12 | |
Swabbie
![]() Join Date: Jan 2009
Location: Australia
Posts: 10
Downloads: 163
Uploads: 0
|
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
|
|