![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
08-10-10, 11:59 AM
|
#1 | |
|
Grey Wolf
![]() Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
|
Quote:
But I suggest other solution for these scripts: Click on officer icon -> teleport to this officer -> (or click on officer at his station) -> choose the correct script and check status from officer's dialog menu. Adventages of this proposal: - next step for "uboat's real life" - no additional "unrealistic" dialog box for scripts menagement - usying uboat officers dialog boxes - no stupid dialogs (scripts instead "Herr kaleun, let's talk about my dog.") Of course, this is only proposal...
__________________
![]() |
|
|
|
08-10-10, 02:16 PM
|
#2 | |
|
Ocean Warrior
![]() Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,870
Downloads: 102
Uploads: 1
|
I'm curious to see what you are trying to do with this automation.. I don't quite understand what you are trying to achieve
__________________
Quote:
|
|
|
|
08-10-10, 02:23 PM
|
#3 | |
|
Black Magic
![]() |
Quote:
![]() For example here is one of the included scripts: [AS] TDW_Search [CATEGORY] Long Distance Travel [COMMANDS] Set_Time_Compression,1,0,0,0,0,0,0 ; set time compression to 1 and wait 1 second before next command Return_to_course,0,0,0,0,0,0,0 ; ensure we're following waypoints and wait 1 second before next command Activate_NavMap_Station,0,0,0,0,0,0,0 ; activate the nav map station so we can see the full map and wait 5 seconds before next command Set_Time_Compression,32,0,0,0,0,0,3600 ; set time compression to 32 and wait 3600 seconds (1 hour) before next command Set_Time_Compression,1,0,0,0,0,0,0 ; set time compression to 1 and wait 1 second before next command Periscope_depth,0,0,0,0,0,0,60 ; go to periscope depth and wait 15 seconds before next command All_stop,0,0,0,0,0,0,0 ; order all stop and wait 1 second before next command Hydrophone_normal_sweep,0,0,0,0,0,0,60 ; tell hydrophone operator to normal sweep listening for contacts. Let him listen for 1 min (60 seconds) before next command Report_nearest_sound_contact,0,0,0,0,0,0,10 ; report nearest sound contact heard and wait 10 seconds before next command (this gives time for user to cancel auto) Rise_whole_obs_periscope,1,0,0,0,0,0,15 ; fully raise the attack scope and wait 15 seconds before next command (take a look around to ensure it's ok to surface) Activate_Scope_Station,1,0,0,0,0,0,10 ; activate the attack scope station and wait 5 seconds before next command Sweep_Scope,1,0,360,90.0,0,0,60 ; sweep the scope from 0 to 360 in 30 seconds. Next command will be issued after sweep is finished Report_nearest_visual_contact,0,0,0,0,0,0,10 ; report nearest visual contact found. Wait 10 seconds before next command (this gives time for user to cancel auto) Lower_whole_obs_periscope,0,0,0,0,0,0,5 ; fully lower the attack scope and wait 1 second before next command Leave_Scope_Station,0,0,0,0,0,0,15 ; leave the scope station thus returning to nav map station and wait 1 second before next command Ahead_standard,0,0,0,0,0,0,0 ; order ahead standard and wait 1 second before next command Surface,0,0,0,0,0,1,90 ; surface the boat and wait 1 second before next command Activate_Scope_Station,2,0,0,0,0,0,120 ; activate the UZO scope Sweep_Scope,2,0,360,90.0,0,0,5 ; sweep the scope from 0 to 360 in 30 seconds. Next command will be issued after sweep is finished Leave_Scope_Station,2,0,0,0,0,0,0 Loop,2,0,0,0,0,0,0 ; loop through all this 2 times before stopping and ending this script [COMMANDS_END] so when you select the category Long Distance Travel and then you enable (start) the TDW_Search script in Automation the following happens: - time compression is set to 1 - return to course order is given - nav map is called up - time compression is set to 32 - 1 hr of game time passes - time compression set back to 1 - periscope depth is then ordered up - all stop is ordered up - hyrdophone operator is told to perform normal sweep of hydrophone looking for contacts - hydrophone operator is asked for nearest sound contact - obs pericope is risen and obs scope station activated - obs scope is swept from bearing 0 to bearing 360 in 90 seconds - nearest visual contact is requested - obs scope then lowered and obs scope station if left - ahead standard ordered up - surface order given - UZO scope station activated - UZO swept from bearing 0 to bearing 360 in 90 seconds - UZO station left - loop everything done again Automation.....beautiful....sit back and be Captain! Last edited by TheDarkWraith; 08-10-10 at 02:51 PM. |
|
|
|
08-10-10, 04:23 PM
|
#4 |
|
Loader
![]() Join Date: Aug 2009
Posts: 89
Downloads: 216
Uploads: 0
|
hmm, sounds like this could heal the missing searchpattern-functionality as well...
brilliant anyway!
__________________
H.H. Gute Jagd! |
|
|
08-10-10, 04:35 PM
|
#5 |
|
Black Magic
![]() |
|
|
|
08-10-10, 04:45 PM
|
#6 | |
|
Loader
![]() Join Date: Aug 2009
Posts: 89
Downloads: 216
Uploads: 0
|
Quote:
amazing. Kudos!
__________________
H.H. Gute Jagd! |
|
|
|
08-10-10, 06:56 PM
|
#7 |
|
Watch Officer
![]() Join Date: Nov 2007
Location: Montreal, QC
Posts: 345
Downloads: 614
Uploads: 10
|
Mmm, do you think there will be a way to use this feature to automatically plot an inbound/outbound course through the Kiel canal ?
__________________
11 War Patrols / 56 ships sunk or damaged for 212,022 tons Zero casualties throughout the war Scuttled on 8 May, 1945 in Sonderburg Bay, after German surrender |
|
|
08-10-10, 07:12 PM
|
#8 |
|
Black Magic
![]() |
it's possible but not for sure. I'll have to write some new commands for it to do that. But that relies on whether I can add waypoints via scripting to the sub or not. If I can then yes it can be done.
|
|
|
08-10-10, 05:09 PM
|
#9 | |
|
Sparky
![]() Join Date: May 2009
Location: Genova, Italy
Posts: 154
Downloads: 430
Uploads: 0
|
Quote:
Tanks TDW !!!! |
|
|
|
08-10-10, 07:38 PM
|
#10 | |
|
Ocean Warrior
![]() Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,870
Downloads: 102
Uploads: 1
|
Would it be possible to create our own automated sequences on the fly (ie: in the game) by combining or choosing a set/sequence of predetermined actions/options?
Kind of a crappy way to explain, ask if you don't understand and I'll try to explain better
__________________
Quote:
|
|
|
|
08-10-10, 07:40 PM
|
#11 | |
|
Black Magic
![]() |
Quote:
I'll also look into adding a command that will allow you to 'call' another script from within a script. |
|
|
|
08-10-10, 07:42 PM
|
#12 | |
|
Ocean Warrior
![]() Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,870
Downloads: 102
Uploads: 1
|
Basically what I meant was that:
First, you have your original scripts and automated actions (that came with v.4.0. Afterwards, you can have an option to combined and alter the scripts in a manner that you go step by step and select pre determined scripts by you to make custom scripts. In the sense: Instead of diving listening poking the scope up and then surfacing, I want to simply dive listen and then do a spiral search for 2 hours on 1/3. So you could have options like: Opening phase: A) Submerge Periscope Depth <-- Selected B) Submerge 40M C) etc, etc Middle: A)Scope up, listen, at 1/3 B)Scope down, listen at 1/3 C)1/3 spiral search for two hours, (scope up/down) End: A)Scope up, surface B) Scope down, listen, surface OR (if I chose dive to 40M say, a different set of options would appear. such as in the "middle phase" I have options of all stop, spiral search at 1/3 or straight run at 1/3, etc etc) Hopefully this is clearer Also, what changes did you do to the Submarine folder?
__________________
Quote:
Last edited by Krauter; 08-10-10 at 08:40 PM. |
|
|
|
08-10-10, 08:49 PM
|
#13 | |
|
Black Magic
![]() |
Quote:
Now as far as what you're asking regarding custom scripts I guess I still don't understand. You can create your own custom scripts. It's just a simple matter of editing the TDW_Automation.SHA file. If you really want to get creative and you're familiar with programming and classes then you can make you own commands to use in the automation scripts. I think what you're asking above is for something like triggers to be added. You're looking for decision making to be added. Decision making is there but not per se. The 'decision making' would have to be coded in to a custom command or an existing command edited. |
|
|
|
08-10-10, 08:51 PM
|
#14 | |
|
Ocean Warrior
![]() Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,870
Downloads: 102
Uploads: 1
|
Aaah ok, thank you for those two additions (I was wondering who changed them and wanted to thank whoever did
)Nono, basically what I mean is that someone (like me) who does not have experience scripting has the option to make their own automated actions by picking from a list of predetermined scripts/automations as defined by you. All in game of course
__________________
Quote:
|
|
|
|
![]() |
| Tags |
| dbrn, favorite, new ui |
| Thread Tools | |
| Display Modes | |
|
|
