![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
08-31-10, 07:21 PM
|
#16 | |
|
The Old Man
![]() Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,452
Downloads: 46
Uploads: 4
|
Quote:
When the script is running I press Esc, which drops TC to 1 and switches to first person view. According to game's clock script loop should end/start in, say, 30 more minutes, so I have 30 more minutes to run all around my sub before script switches me back to the map. But the script still runs as if TC was still x128, and interrupts my merry running after 15 seconds instead of 30 minutes.
__________________
Long, hard, wet and full of seamen. My precious. SH3+GWX+OLC — sunk x4, retired x2; SH5+TDW — still exploring My SH5 mods: EQuaTool - Elite Quality Map Tools, Patrol Routine Scripts, No Logo Intro Menu_Animation, Less Annoying Stopwatch Links: SH5 mods I use, FileFront, Manual plotting how-to |
|
|
|
08-31-10, 07:25 PM
|
#17 | |
|
Black Magic
![]() |
Quote:
![]() It's also ok to have an ending 0 for the command instead of 1. That's just the delay before executing the next command. If 0 then it's sets the minimum time for you (is like 0.1 seconds) EDIT: valid bug. Bug is not because of me but because game doesn't follow it's own rules.....nice....ok I'll have to figure out why and how to fix it....... EDIT 2: found a solution. Luckily I know this game and it's files pretty well......bug fixed. Fix will appear in v4.2.0 which is ready for release but I'm working on the options migrater now so you don't have to manually redo your options file everytime I release a new version. Last edited by TheDarkWraith; 08-31-10 at 07:47 PM. |
|
|
|
08-31-10, 08:20 PM
|
#18 | |
|
The Old Man
![]() Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,452
Downloads: 46
Uploads: 4
|
Quote:
Would these nested loops work?: [COMMANDS] Set_new_depth,10,0,0,0,0,0,30 Surface,0,0,0,0,0,0,30 Loop,4,0,0,0,0,0,0 Sing_a_dolphin_song Loop,-1,0,0,0,0,0,0 [COMMANDS_END]
__________________
Long, hard, wet and full of seamen. My precious. SH3+GWX+OLC — sunk x4, retired x2; SH5+TDW — still exploring My SH5 mods: EQuaTool - Elite Quality Map Tools, Patrol Routine Scripts, No Logo Intro Menu_Animation, Less Annoying Stopwatch Links: SH5 mods I use, FileFront, Manual plotting how-to |
|
|
|
08-31-10, 08:30 PM
|
#19 | |
|
Black Magic
![]() |
Quote:
It updates the loop's counter once it has done it's required loops. So yes, the above will work fine Excellent bug finding also Please don't ever hesitate to inform me of any bugs you find |
|
|
|
08-31-10, 09:03 PM
|
#20 |
|
The Old Man
![]() Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,452
Downloads: 46
Uploads: 4
|
Glad to be helpful.
An issue: Despite the AutomaticallyOrderRechargeModeUponSurfacing = False it _sometimes_ recharges upon surfacing, which I very much don't want it to. When I manually surface (non-script), it works properly, recharging doesn't kick in. Can't track the cause of it. It may be caused by sub not fully surfaced when the script speed command kicks in. I notice it in bad weather, winds of 15 kts
__________________
Long, hard, wet and full of seamen. My precious. SH3+GWX+OLC — sunk x4, retired x2; SH5+TDW — still exploring My SH5 mods: EQuaTool - Elite Quality Map Tools, Patrol Routine Scripts, No Logo Intro Menu_Animation, Less Annoying Stopwatch Links: SH5 mods I use, FileFront, Manual plotting how-to |
|
|
08-31-10, 09:09 PM
|
#21 | |
|
Black Magic
![]() |
Quote:
|
|
|
|
08-31-10, 09:58 PM
|
#22 | |
|
The Old Man
![]() Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,452
Downloads: 46
Uploads: 4
|
Quote:
Weather rough, winds of 15 (you missed an earlier update in the post above). EDIT: Time to have some sleep. This is the best working version of the script I've found so far (this one doesn't have the recharging issue): [AS] Quick hydrophone check [CATEGORY] Search on patrol [COMMANDS] Activate_NavMap_Station,0,0,0,0,0,1,0 Set_Time_Compression,128,0,0,0,0,1,0 Set_new_depth,20,0,0,0,0,0,60 All_stop,0,0,0,0,0,0,120 Report_nearest_sound_contact,0,0,0,0,0,0,60 Surface,0,0,0,0,0,0,0 Ahead_slow,0,0,0,0,0,0,120 Set_new_speed,7.4,0,0,0,0,0,3240 Loop,-1,0,0,0,0,0,0 [COMMANDS_END]
__________________
Long, hard, wet and full of seamen. My precious. SH3+GWX+OLC — sunk x4, retired x2; SH5+TDW — still exploring My SH5 mods: EQuaTool - Elite Quality Map Tools, Patrol Routine Scripts, No Logo Intro Menu_Animation, Less Annoying Stopwatch Links: SH5 mods I use, FileFront, Manual plotting how-to |
|
|
|
![]() |
|
|
