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-14-10, 02:13 AM   #1
Freelanca
Swabbie
 
Join Date: Jan 2009
Location: Australia
Posts: 10
Downloads: 163
Uploads: 0
Default

Just had to say that the automation feature that you added is great. I have started to play with making my own and find it very useful. Now all it needs is the addition of writing scripts in game
Freelanca is offline   Reply With Quote
Old 08-14-10, 04:36 AM   #2
von faust
Sparky
 
Join Date: May 2009
Location: Genova, Italy
Posts: 154
Downloads: 430
Uploads: 0
Default

Hi DTW !!!
Do You think is possible in the future launch the scripts from dialog box of varius Officer ?
von faust is offline   Reply With Quote
Old 08-14-10, 04:43 AM   #3
Barso
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Apologies for the late repy DW but that fix worked perfect.
Thanks.
  Reply With Quote
Old 08-14-10, 05:36 AM   #4
sentenc3
Helmsman
 
Join Date: Mar 2010
Location: España
Posts: 105
Downloads: 472
Uploads: 0
Default

thanks for v4.0.3 , and I have no error in the game.
sentenc3 is offline   Reply With Quote
Old 08-14-10, 06:18 AM   #5
Nufsed
Sparky
 
Join Date: Aug 2005
Posts: 151
Downloads: 500
Uploads: 0
Default

Hi TDW, a million thanks, works perfectly, one really small glitch I am having though is the message box disappearing...is it somthing I'm doing?
__________________
Mike Collins
Nullius in Verba

Nufsed is offline   Reply With Quote
Old 08-14-10, 06:57 AM   #6
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

Thanks TDW this new version has fixed all

I have working automation and now correct mast heights. Superb.
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 08-14-10, 07:47 AM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Nufsed View Post
Hi TDW, a million thanks, works perfectly, one really small glitch I am having though is the message box disappearing...is it somthing I'm doing?
disappearing? When and what causes it to disappear? Is it TC level or ?? By default the L key is used to toggle the messagebox visibility and shift+L to toggle it's size vertically. Does it happen when pressing the L key?
TheDarkWraith is offline   Reply With Quote
Old 08-14-10, 04:55 PM   #8
Nufsed
Sparky
 
Join Date: Aug 2005
Posts: 151
Downloads: 500
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
disappearing? When and what causes it to disappear? Is it TC level or ?? By default the L key is used to toggle the messagebox visibility and shift+L to toggle it's size vertically. Does it happen when pressing the L key?
Oops, must read the notes more carefully, sorry TDW my bad. Great work though mate.
__________________
Mike Collins
Nullius in Verba

Nufsed is offline   Reply With Quote
Old 08-14-10, 08:06 AM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Freelanca View Post
Just had to say that the automation feature that you added is great. I have started to play with making my own and find it very useful. Now all it needs is the addition of writing scripts in game
I documented the TDW_Automation.SHA file with the current functions available to Automation and the new functions I have created for it. I didn't document how to make your own scripts or own commands though. Making your own scripts is probably pretty obvious from viewing the automation files but making new commands is not. The real power of Automation is the ability to make new commands - these new commands are script code and thus ANYTHING that one can do in a script can be done in Automation.
I also didn't document that multiple scripts can be running in Automation at the same time.
An Automation command in a script is defined as so:

command,1,2,3,4,5,6,t

where:

command = name of command
1 = parameter 1 passed to the command (has to be able to convert to float value)
2 = parameter 2 passed to the command (has to be able to convert to float value)
3 = parameter 3 passed to the command
4 = parameter 4 passed to the command
5 = parameter 5 passed to the command
6 = number of times to execute. If set to 0 then there's no limit. I'll explain this one more.
t = time in seconds to wait after command is given before next command is given. If 0 then the wait time will be 0.1 second. If command is the last command in the script then the wait time is ignored (it's 0)

Automation contains a Loop command that does what it sounds like - loop through the section of code defined by it x times. The times to execute parameter can control how many times a certain command is executed in this looping cycle. Maybe you want a command only given once during the loop cycle. i.e.:

[AS]
Test_Loop
[CATEGORY]
Testing
[COMMANDS]
Set_Time_Compression,1,0,0,0,0,1,0 ; set time compression to 1 and wait 1 second before next command
Rise_whole_obs_periscope,0,0,0,0,0,0,6 ; fully raise the obs scope. Wait 6 seconds before issuing next command
Activate_Scope_Station,1,0,0,0,0,0,0 ; activate the obs scope
Sweep_Scope,1,0,360,120.0,0,0,1 ; sweep the scope from 0 to 360 in 120 seconds. Next command will be issued 1 second after sweep is finished
Lower_whole_obs_periscope,0,0,0,0,0,0,0 ; fully lower the obs scope
Leave_Scope_Station,1,0,0,0,0,0,0 ; leave the obs scope
Wait,0,0,0,0,0,0,600 ; wait 10 mins
Loop,5,0,0,0,0,0,0 ; loop through everything 5 times
[COMMANDS_END]

this entire script will loop 5 times BUT the command Set_Time_Compression will only be given the first time through the loop. You can also have a Loop inside a Loop for some interesting effects

Once you understand Automation and the power it brings to the game you'll see the uses for it. And Automation was needed to lay the foundation for my next big idea.....

Last edited by TheDarkWraith; 08-14-10 at 08:27 AM.
TheDarkWraith is offline   Reply With Quote
Old 08-14-10, 09:36 AM   #10
PL_Andrev
Grey Wolf
 
Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
And Automation was needed to lay the foundation for my next big idea.....
Next big idea?

I looked at 2nd post at this thread, but it was not updated lately...
Menage mod's option panel?
New SH5 options at main menu?
__________________

PL_Andrev 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 01:55 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.