![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
08-05-10, 01:17 AM
|
#1 |
|
Black Magic
![]() |
Automation works
![]() This is going to open up a whole slew of possibilities.....I've made it so that you can define multiple scripts. All these scripts reside in a single file and are read in at game start. You will be able to select the script you want to use during the game. You'll have options to start, stop, and pause the script. You can even change scripts on the fly (say you have one running and you want to start another one now - done!).I see the following possibilities for this: - custom evasive maneuver scripts - custom navigation scripts - scripts to automate 'daily' tasks during long distance travels (run on surface 1 hr, dive, all stop, listen for sound contacts, ahead standard, surface, repeat) There's really endless possibilities for this ![]() I'm going to add the teleport commands as commands available to the scripts. This will allow you to dive when surfaced (teleport to radio or hydrophone). The script currently running is stopped when you press any key. Once a script is stopped and you want to start it again it will start from the beginning. Pause can be used to stop a script midstream and then restart where it was. This is awesome
|
|
|
08-05-10, 05:14 AM
|
#2 |
|
Watch Officer
![]() Join Date: Jul 2004
Location: Pittsburgh, PA
Posts: 342
Downloads: 54
Uploads: 0
|
I like the idea of creating a daily schedule as in dive in the morning for a trim dive, surface, crash dive auto on plane sighting ect...
__________________
|
|
|
08-05-10, 07:48 AM
|
#3 |
|
Ace of the deep .
|
check depth before diving .
|
|
|
08-05-10, 08:04 AM
|
#4 |
|
Swabbie
![]() Join Date: Jun 2009
Posts: 8
Downloads: 246
Uploads: 0
|
Hi TDW!
I really like the new UI! However, there is a problem.RAOBF calculate range not accurate! For example, RAOBF calculated range 850 meters ,nav map measured range 600 meters, RAOBF calculated range 2600 meters ,nav map measured range 1450 meters. I used RAOBF in SH3,i know use. Installed mods: Multiple UI,RAOBF patch,scope rework What's wrong? |
|
|
08-05-10, 08:32 AM
|
#5 | |
|
Black Magic
![]() |
Quote:
- not using the correct add-on mod for RAOBF to account for different scope powers - using a scope mod that doesn't have a RAOBF graticule calibrated for it yet - not using the correct numbers off of the RAOBF graticule based on zoom level Are you using a scope mod? What are the mag powers of the scopes? |
|
|
|
08-05-10, 09:21 AM
|
#6 | |
|
Swabbie
![]() Join Date: Jun 2009
Posts: 8
Downloads: 246
Uploads: 0
|
Quote:
I do not use other scope mod. May be that other mod contain some scripts for scopes?Historical specifications,etc? I Inactivated all other mod,and try again! |
|
|
|
08-05-10, 11:40 AM
|
#7 | |
|
Watch
![]() Join Date: Mar 2006
Posts: 24
Downloads: 37
Uploads: 0
|
Quote:
|
|
|
|
08-05-10, 11:56 AM
|
#8 |
|
Black Magic
![]() |
Automation just made a turn to being even more powerful. Anything you can do in a script, and I mean anything, you can do in a custom command. You define a custom command like so:
# a TC command class AutomationTCCommand( TDWAutomation.AutomationScriptInFile.BaseAutomatio nCommandUndefined ): def Initialize( self ): self.complete = True def Execute( self ): Menu.TimeCompression = self.param1 return self.complete then your custom command has to be added to the undefined commands so Automation will recognize it: # these are commands either made by user or not defined in commands.cfg # these commands will use the BaseAutomationCommandUndefined class # undefinedcommands = [ [ "Set_Time_Compression", AutomationTCCommand ] #,[ "Loop", AutomationLoopCommand ] ] Once defined and 'registered' with undefinedcommands you are free to use those commands in your automation script! Now those that are unfamiliar with programming and classes will not see the great power I have given here. What I've done is allowed you all to extend the commands Automation 'knows' and the commands in the game by defining custom commands. These custom commands can only be used currently in Automation but there's no reason they couldn't be used outside of it also (with some supporting code). Last edited by TheDarkWraith; 08-05-10 at 12:18 PM. |
|
|
![]() |
| Tags |
| dbrn, favorite, new ui |
| Thread Tools | |
| Display Modes | |
|
|
