SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH5 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=249)
-   -   [REL] Trevally Auto Scripts (https://www.subsim.com/radioroom/showthread.php?t=174400)

arleeds 08-20-12 04:18 AM

Corrupted Automated File
 
Hi Guys,
Quick question.. why does all the tutorials in sobers mod list that i put in my mod folder (Trevally's auto script v0.6,Trevally's all tutorial for New UI etc), and enable it using JSGME, shows "Corrupted Automated File" on game play?
Need help please..

thanks in advance.. :salute:

Solution: unable all mods.. go to silent hunter 5\data\Automation... erase every thing.. go back to JSGME, enable all trevally's auto script, harbour and kiel, tutorials all (OHII/new UI)...

hehehhe...

Trevally. 08-20-12 02:54 PM

Quote:

Originally Posted by arleeds (Post 1923642)
Hi Guys,
Quick question.. why does all the tutorials in sobers mod list that i put in my mod folder (Trevally's auto script v0.6,Trevally's all tutorial for New UI etc), and enable it using JSGME, shows "Corrupted Automated File" on game play?
Need help please..

thanks in advance.. :salute:

Solution: unable all mods.. go to silent hunter 5\data\Automation... erase every thing.. go back to JSGME, enable all trevally's auto script, harbour and kiel, tutorials all (OHII/new UI)...

hehehhe...

Hi arleeds:salute:
I am glad you got this fixed and I hope you enjoy the tutorials etc:up:

The reason this happen is when a script is installed that has an error in it. Every script after it will also show as corrupt.
So by deleting all and installing my ones - the error was removed and all scripts could be read by TDWs script engine:know:

arleeds 08-20-12 07:57 PM

Quote:

Originally Posted by Trevally. (Post 1923868)
Hi arleeds:salute:
I am glad you got this fixed and I hope you enjoy the tutorials etc:up:

The reason this happen is when a script is installed that has an error in it. Every script after it will also show as corrupt.
So by deleting all and installing my ones - the error was removed and all scripts could be read by TDWs script engine:know:

Hi Trevally, :salute:

I'm glad too... oh.. it's WONDERFUL...!! :rock: :rock: :rock:

Sober's mod list (for env mod soup, with out the OHII, wanted to finish the stock ver first) TDW's UI 7.1.0 + Your Scripts from All Tutorials (ver new ui), auto script to harbor and kiel Pilot + Miton's speech recognition New Ui 0.4.1 (english)...

SPECTACULAR GAME PLAY!!!

I could just play your tutorials all day long and forgetting the campaign :haha:

Thank you SO MUCH for Your contributions.. You Sir, are a dear asset to this community!!

yooth17 02-11-13 07:17 PM

thanks a lot

THE_MASK 03-08-13 12:14 AM

Using the sobers mega mod with this mod . Couple of problems that i have with this mod combo . When the script goes to snorkel depth to do a scope search the view is under water in rough weather , havnt tried in calm weather . The surface cruising speed on search pattern script in a VIIB is 14 knots . Should be 7.5 to be the most fuel efficient maybe . cheers .

skip 03-27-13 01:50 PM

Coming across a problem when I load a saved game and click on the scripts icon to open the scrips box no scripts show in the box.

Any ideas how to get em back with the current save game.

thanks

TheDarkWraith 03-27-13 01:57 PM

Quote:

Originally Posted by skip (Post 2032326)
Coming across a problem when I load a saved game and click on the scripts icon to open the scrips box no scripts show in the box.

Any ideas how to get em back with the current save game.

thanks

You have a corrupted script or incompatible script somewhere then. That's the only reason none would show :yep:

skip 03-27-13 04:05 PM

Funny though if I delete those .TDW files and restart a new campaign they show up again sometimes.. weird.


DarkWraith would I be best to just remove all mods, reinstall and start a new career ? Or is there anyway to just reinstall the scripts.

thanks

Pampero 03-30-13 10:58 AM

Hello and thanks Trevally for these automations, I find them very useful.

Hope you don't mind if I ask some questions. I'm making a small automation for the observation scope, the objective is to make a full turn with the scope to check the surface in a continuous and automatic sweep for different angular speeds.

Here is one example:

[AS]
Scope check. 3deg/sec.
[DESCRIPTION]
Make a full turn of observation periscope at 3 degrees per second. One full turn in 2 minutes.
[DESCRIPTION_END]
[CATEGORY]
Search
[SUBCATEGORY]
Scope Search
[COMMANDS]
Rise_whole_obs_periscope,0,0,0,0,0,0,1
Activate_Scope_Station,1,0,0,0,0,0,1
Sweep_Scope,1,0,360,120,0,0,4
Leave_Scope_Station,0,0,0,0,0,0,0.5
Lower_whole_obs_periscope,0,0,0,0,0,0,0
[COMMANDS_END]

My questions are:

Time t before next action starts when the current action is finished or when it starts? If it is the last I guess I have to let more time to periscope to fully raise.

Parameter c in Sweep Scope is determined by 9 digits in binary, I guess bit 0 corresponds to the 2^0 digit and bit 8 2^8 digit. Am I right or its the opposite?

Finally, what program may I use to save the file properly? I'm using notepad for writing it but I guess I won't be able to make it work with it.

Thanks in advance for your time.

TheDarkWraith 03-30-13 11:36 AM

Quote:

Originally Posted by Pampero (Post 2033849)
Hello and thanks Trevally for these automations, I find them very useful.

Hope you don't mind if I ask some questions. I'm making a small automation for the observation scope, the objective is to make a full turn with the scope to check the surface in a continuous and automatic sweep for different angular speeds.

Here is one example:

[AS]
Scope check. 3deg/sec.
[DESCRIPTION]
Make a full turn of observation periscope at 3 degrees per second. One full turn in 2 minutes.
[DESCRIPTION_END]
[CATEGORY]
Search
[SUBCATEGORY]
Scope Search
[COMMANDS]
Rise_whole_obs_periscope,0,0,0,0,0,0,1
Activate_Scope_Station,1,0,0,0,0,0,1
Sweep_Scope,1,0,360,120,0,0,4
Leave_Scope_Station,0,0,0,0,0,0,0.5
Lower_whole_obs_periscope,0,0,0,0,0,0,0
[COMMANDS_END]

My questions are:

Time t before next action starts when the current action is finished or when it starts? If it is the last I guess I have to let more time to periscope to fully raise.

Parameter c in Sweep Scope is determined by 9 digits in binary, I guess bit 0 corresponds to the 2^0 digit and bit 8 2^8 digit. Am I right or its the opposite?

Finally, what program may I use to save the file properly? I'm using notepad for writing it but I guess I won't be able to make it work with it.

Thanks in advance for your time.

In the \Automation folder there is a txt file (TDW_Automation.txt) that details all the commands and how to make Automation files.

To answer your question about parameter C I copied this from that txt file:

; Sweep_Scope,x,y,a,b,c,0,t - sweep the scope from a start of y degrees to an end of a degrees. Time to sweep from y to a determined by b. Next command will be issued after time t (time t doesn't start until sweeping complete). x = the scope station number (0=attack, 1=obs, 2=UZO). c is a decimal number representing the bits set for the following options (use windows calc to input binary number then convert to decimal):
; this function will wait for scope station to be visible (will wait for 15 seconds and if not visible then a skip command will be issued)
; 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 sweep on contact spotted
; bit 5 = pause sweep and follow target on contact spotted
; bit 6 = pause game (and either also pause sweep) on contact spotted
; bit 7 = abort script on contact spotted
; bit 8 = inform user that contact was detected

It's great to see someone else writing automation scripts :salute:

If you have any ideas on how to improve Automation or ideas for new commands please post them in my UIs thread :up:

Pampero 03-30-13 06:21 PM

Thanks TheDarkWraith, I'm reading that document, it is a great help; now I'm getting the automation working, but I have to look on the options provided by parameter c more carefully.

Trevally. 03-31-13 03:31 AM

Hi Pampero

Yes - its good to see others using this great automation tool:yep:
If you have any questions - just ask:up:

Quote:

Time t before next action starts when the current action is finished or when it starts? If it is the last I guess I have to let more time to periscope to fully raise.
Yes - the t time is a wait before reading the next command line. So factor in the scope raise time before starting your search.

Quote:

Finally, what program may I use to save the file properly? I'm using notepad for writing it but I guess I won't be able to make it work with it.
I use notepad and sometimes notepad++
Save your file and then rename to ***.SHA
This SHA file then into the automation folder in your SH5

:salute:

Pampero 03-31-13 09:28 PM

Thanks for the help! I'm testing the scripts right now.

Trevally. 09-22-13 03:58 PM

Quote:

http://www.subsim.com/radioroom/images/icons/icon1.gif Automation scripts
So I downloaded the UI updates and your automation scripts. But I cannot figure out how to USE your scripts. I've seen people use a UI for it to run the scripts but for the life of me I cannot find out how to launch it.

So how do I launch the script execution engine???
Hi Michael

To start the scripts - see these guides:up:
Harbour Pilot http://www.subsim.com/radioroom/show...&postcount=201
TDC Helper http://www.subsim.com/radioroom/show...15&postcount=2
Tutorials http://www.subsim.com/radioroom/show...94&postcount=2
Auto Scripts Guide by Ruby http://forums-de.ubi.com/showthread....l=1#post730108


Code:

MAGNUM OPUS -> AUTOMATION / AUTOPILOT


Automations are steps that can be executed automatically. Whether it is a simple turning maneuvers, navigation routes, chains of command, tutorial or auxiliary port exit, basically irrelevant.

Magnum Opus in various automations are already integrated. Also own automation scripts / autopilot can be created. The automation table, you will access the right toolbar. (Hotkey Ctrl + A)
http://www.osibisi.de/developer/Andy...tafel_Icon.jpg
To obtain a better overview of the automated systems, these were in

• Categories
• Sub-Categories

  divided.

  Under "available scripts" which is currently available automated systems are displayed.
  Activated activated automation scripts under the display.

  By background color is signaled if the script is started or not. An automation can only be started if this previously by LMB (left mouse button) is selected. A selection can be seen with an additional black border. Automation is deactivated by LMT.

  Green background = Automation is started
  Red background = automation is stopped
  Blue background = Automation has been paused / Pause
http://www.osibisi.de/developer/Andy...tionstafel.jpg


http://www.osibisi.de/developer/Andy...stafel_rot.jpg

http://www.osibisi.de/developer/Andy..._rot_aktiv.jpg

http://www.osibisi.de/developer/Andy...afel_gruen.jpg

In "Silent Hunter 5 \ data \ navigation", the scripts for the autopilot to be stored.
  Ex enema or departs from a port!

  Under Silent Hunter 5 \ data \ Automation script files for automated systems are stored.

  Under Silent Hunter 5 \ data \ script files for the tutorials automations are stored.
  The tutorials can be accessed without problems during a mission at any time. Just try it ...
  However, it is recommended that the tutorials on how to MAGNUM OPUS -> How to start a tutorial described to start.

  In the documentation directory of TheDarkWraith are included on how to create automation itself.


  - TDW_Navigation.txt
  - TDW_Automation.txt
  - TDW_Tutorial.txt

IMPORTANT: Port automations for leakage should always be at the starting point (bunker) are started!


  Greeting Ruby


Kroenen 09-27-13 07:23 AM

Quote:

Originally Posted by arleeds (Post 1923642)
Solution: unable all mods.. go to silent hunter 5\data\Automation... erase every thing.. go back to JSGME, enable all trevally's auto script, harbour and kiel, tutorials all (OHII/new UI)...

hehehhe...

Thanks for the info. I am suffering the very same issue, and followed these exact steps to try and fix it, however...now the list of tutorials shows 'missing' or corrupt automation file.

I tried removing all mods, and adding the Trevally ones first, but when I add in the rest of the mods (using volodya61 mega pack), it still tells me they're corrupt.

Any ideas?


All times are GMT -5. The time now is 10:27 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.