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 08-10-10, 11:59 AM   #1
PL_Andrev
Grey Wolf
 
Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
What's left to do is add code for when you mouse over an activated script it highlights in black (and stays highlighted). Then if it's highlighted to add controls to allow you to start, stop, and pause that activated script. Clicking an activated script deactives it and removes it from the activated scripts list.
Mhmmm, good way.
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...
__________________

PL_Andrev is offline   Reply With Quote
Old 08-10-10, 02:16 PM   #2
Krauter
Ocean Warrior
 
Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,870
Downloads: 102
Uploads: 1
Default

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:
The U.S almost went to war over some missles in Cuba... Thank god the X-Men were there to save us right?
Krauter is offline   Reply With Quote
Old 08-10-10, 02:23 PM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Krauter View Post
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
Let's say you're crossing the pond. Now while crossing the pond you usually do what? You stop every so often, dive, listen for sound contacts, surface, sweep the periscope looking for contacts, etc. Well what if all that was automated for you? Then you just sit back and let your 'XO' do all the work. It can be used for just about anything

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.
TheDarkWraith is offline   Reply With Quote
Old 08-10-10, 04:23 PM   #4
Hans Hansen
Loader
 
Join Date: Aug 2009
Posts: 89
Downloads: 216
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
Automation.....beautiful....sit back and be Captain!
hmm, sounds like this could heal the missing searchpattern-functionality as well...

brilliant anyway!
__________________
H.H.

Gute Jagd!
Hans Hansen is offline   Reply With Quote
Old 08-10-10, 04:35 PM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Hans Hansen View Post
hmm, sounds like this could heal the missing searchpattern-functionality as well...

brilliant anyway!
sure can. You can define ANY kind of search pattern(s) you want now
TheDarkWraith is offline   Reply With Quote
Old 08-10-10, 04:45 PM   #6
Hans Hansen
Loader
 
Join Date: Aug 2009
Posts: 89
Downloads: 216
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
sure can. You can define ANY kind of search pattern(s) you want now
amazing. Kudos!
__________________
H.H.

Gute Jagd!
Hans Hansen is offline   Reply With Quote
Old 08-10-10, 06:56 PM   #7
etheberge
Watch Officer
 
Join Date: Nov 2007
Location: Montreal, QC
Posts: 345
Downloads: 614
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
sure can. You can define ANY kind of search pattern(s) you want now
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
etheberge is offline   Reply With Quote
Old 08-10-10, 07:12 PM   #8
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by etheberge View Post
Mmm, do you think there will be a way to use this feature to automatically plot an inbound/outbound course through the Kiel canal ?
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.
TheDarkWraith is offline   Reply With Quote
Old 08-10-10, 05:09 PM   #9
von faust
Sparky
 
Join Date: May 2009
Location: Genova, Italy
Posts: 154
Downloads: 430
Uploads: 0
Default

Quote:
Originally Posted by Antar View Post
Mhmmm, good way.
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...
Great idea. If it is possible it would be fantastic !!!

Tanks TDW !!!!
von faust is offline   Reply With Quote
Old 08-10-10, 07:38 PM   #10
Krauter
Ocean Warrior
 
Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,870
Downloads: 102
Uploads: 1
Default

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:
The U.S almost went to war over some missles in Cuba... Thank god the X-Men were there to save us right?
Krauter is offline   Reply With Quote
Old 08-10-10, 07:40 PM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Krauter View Post
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
in the next version I was going to try and add an editor that would allow you to define new scripts and edit existing scripts on the fly. You won't be able to define new commands on the fly with the editor though, only new scripts.

I'll also look into adding a command that will allow you to 'call' another script from within a script.
TheDarkWraith is offline   Reply With Quote
Old 08-10-10, 07:42 PM   #12
Krauter
Ocean Warrior
 
Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,870
Downloads: 102
Uploads: 1
Default

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:
The U.S almost went to war over some missles in Cuba... Thank god the X-Men were there to save us right?

Last edited by Krauter; 08-10-10 at 08:40 PM.
Krauter is offline   Reply With Quote
Old 08-10-10, 08:49 PM   #13
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Krauter View Post
Hopefully this is clearer

Also, what changes did you do to the Submarine folder?
The sub's snorkel depth was adjusted and the rotating DF loop was added and the radio rod rises when submerging.

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.
TheDarkWraith is offline   Reply With Quote
Old 08-10-10, 08:51 PM   #14
Krauter
Ocean Warrior
 
Join Date: Aug 2007
Location: Montreal, Canada
Posts: 2,870
Downloads: 102
Uploads: 1
Default

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:
The U.S almost went to war over some missles in Cuba... Thank god the X-Men were there to save us right?
Krauter is offline   Reply With Quote
Reply

Tags
dbrn, favorite, new ui

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 04:45 AM.


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.