![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#31 |
Navy Seal
![]() |
![]()
Thanks again I will sort that.
As for new commands the teleporting would really great. As before more stations with sweep features. Some control over the camera movement (if poss) Not sure on this but if the script could react to information gained ie:- I am patroling on surface as part of script and aircraft is spotted. Automate then issues command- x1 time sclae battle stations ahead full Dive 50m |
![]() |
![]() |
![]() |
#32 |
The Old Man
![]() Join Date: Dec 2007
Location: Stink Drunk in Trinidad
Posts: 1,572
Downloads: 138
Uploads: 0
|
![]()
Erm, how do you make custom scripts?
__________________
"Silence means death. Stand on your feet. Inner fear your worst enemy."- Sepultura. ![]() My Silent Hunter 5 mantra is this......"Torpedo missed, sir!" ![]() A P-400 is a P-40 with a Zero after it. ![]() A proud member of the Wikipedia Haters Club |
![]() |
![]() |
![]() |
#33 |
Planesman
![]() Join Date: Apr 2007
Location: Canada
Posts: 185
Downloads: 223
Uploads: 0
|
![]()
i found another problem that i can't explain why it happens
but i found a way around it....here is what happens i want this script to run 12 times,but when i use the Loop,12,0,0,0,0,0,0 command....all works fine but the 2nd time around the Sweep_Scope,x,y,z,zz,0,0,t exits the station b4 it has completed the 360 scan....so to fix this i just copied the script 12 times within the same file and dropped the loop command.....now it works fine this new feature is really great....starting to feel like i have a crew thanks TDW |
![]() |
![]() |
![]() |
#34 | |
Black Magic
![]() |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#35 | |
Swabbie
![]() Join Date: Jan 2009
Location: Australia
Posts: 10
Downloads: 163
Uploads: 0
|
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#36 | |
Ocean Warrior
![]() Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,983
Downloads: 102
Uploads: 1
|
![]()
TDW; how would I package my scripts into folders so that they don't conflict with yours (ie: Like how I packaged them earlier, the game just ignored them completely).
Also, How do I upload onto subsim?
__________________
Quote:
![]() |
|
![]() |
![]() |
![]() |
#37 |
Black Magic
![]() |
![]()
open notepad and copy your script code into it. Save as a .SHA file in the \data\Automation folder.
|
![]() |
![]() |
![]() |
#38 | |
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:
![]() |
|
![]() |
![]() |
![]() |
#39 |
Navy Seal
![]() |
![]()
Hi Krauter
I would be interested in what you have written. |
![]() |
![]() |
![]() |
#40 | |
Sparky
![]() Join Date: Aug 2005
Posts: 156
Downloads: 500
Uploads: 0
|
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#41 |
Helmsman
![]() Join Date: Mar 2010
Location: España
Posts: 105
Downloads: 472
Uploads: 0
|
![]() |
![]() |
![]() |
![]() |
#42 |
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. |
![]() |
![]() |
![]() |
#43 |
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. |
![]() |
![]() |
![]() |
#44 | |
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:
![]() |
|
![]() |
![]() |
![]() |
#45 |
Black Magic
![]() |
![]() |
![]() |
![]() |
![]() |
|
|