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 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 08-21-07, 01:43 PM   #1
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default [wip]New repeat patrol fix

I've been quietly working on a new repeat patrol fix, which i think is a little more robust then my previous. Although im not sure how it will work out. The idea is to present TWO missions for the game to choose from, and have them available on a 3 month window, before shutting those down, and opening two more missions for the next 3 months. This way, the game concievably always as a choice between A, or B, and is forced to choose C, or D, after the next 3 month rotation. I have two worries however.

- i'll bet what happends more often then not is the game always picks one assignment over the other

- 3 month window on missions. Might be too wide of a window. ALthough I found it neccessary because on a 2 month window, quite frankly pickings on missions so they arent consecuitive become a bit slim.

However, there is no forcing of special missions, either the game picks them, or it doesnt. Heres the template ill be using for pearl harbor for this version, tell me what you think.


Quote:
[Flotilla 1.UserPlayerUnitType 1.Objective 1]
ID= PH1Obj1
NameDisplayable= Marshalls patrols
AvailabilityInterval=1941-12-07, 1941-12-31
ObjectiveCode= Marshall Islands

[Flotilla 1.UserPlayerUnitType 1.Objective 2]
ID= PH1Obj2
NameDisplayable= Empire Waters
AvailabilityInterval=1941-12-07, 1941-12-31
ObjectiveCode= Honshu

;-------1942---------

[Flotilla 1.UserPlayerUnitType 1.Objective 3]
ID= PH1Obj3
NameDisplayable= Empire Waters
AvailabilityInterval=1942-01-01, 1942-03-31
ObjectiveCode= Hokkaido

[Flotilla 1.UserPlayerUnitType 1.Objective 4]
ID= PH1Obj4
NameDisplayable= East China Sea
AvailabilityInterval=1942-01-01, 1942-03-31
ObjectiveCode= East China Sea

;-------
[Flotilla 1.UserPlayerUnitType 1.Objective 5]
ID= PH1Obj5
NameDisplayable= Mariana Islands
AvailabilityInterval=1942-04-01, 1942-06-31
ObjectiveCode= Mariana Islands

[Flotilla 1.UserPlayerUnitType 1.Objective 6]
ID= PH1Obj6
NameDisplayable= Caroline Islands
AvailabilityInterval=1942-04-01, 1942-06-31
ObjectiveCode= Caroline Islands

;-------
[Flotilla 1.UserPlayerUnitType 1.Objective 7]
ID= PH1Obj7
NameDisplayable= Luzon Strait
AvailabilityInterval=1942-07-01, 1942-09-31
ObjectiveCode= Luzon Strait

[Flotilla 1.UserPlayerUnitType 1.Objective 8]
ID= PH1Obj8
NameDisplayable= East China Sea
AvailabilityInterval=1942-07-01, 1942-09-31
ObjectiveCode= East China Sea

;-------
[Flotilla 1.UserPlayerUnitType 1.Objective 9]
ID= PH1Obj9
NameDisplayable= Yellow Sea
AvailabilityInterval=1942-10-01, 1942-12-31
ObjectiveCode= Yellow Sea

[Flotilla 1.UserPlayerUnitType 1.Objective 10]
ID= PH1Obj10
NameDisplayable= Empire Waters
AvailabilityInterval=1942-10-01, 1942-12-31
ObjectiveCode= Honshu

;---------1943---------

[Flotilla 1.UserPlayerUnitType 1.Objective 11]
ID= PH1Obj11
NameDisplayable= Palau Island
AvailabilityInterval=1943-01-01, 1943-03-31
ObjectiveCode= Palau Island

[Flotilla 1.UserPlayerUnitType 1.Objective 12]
ID= PH1Obj12
NameDisplayable= Luzon Strait
AvailabilityInterval=1943-01-01, 1943-03-31
ObjectiveCode= Luzon Strait

;-------
[Flotilla 1.UserPlayerUnitType 1.Objective 13]
ID= PH1Obj13
NameDisplayable= Empire Waters
AvailabilityInterval=1943-04-01, 1943-06-31
ObjectiveCode= Hokkaido

[Flotilla 1.UserPlayerUnitType 1.Objective 14]
ID= PH1Obj14
NameDisplayable= East China Sea
AvailabilityInterval=1943-04-01, 1943-06-31
ObjectiveCode= East China Sea

;-------
[Flotilla 1.UserPlayerUnitType 1.Objective 15]
ID= PH1Obj15
NameDisplayable= Formosa
AvailabilityInterval=1943-07-01, 1943-09-31
ObjectiveCode= Formosa Strait

[Flotilla 1.UserPlayerUnitType 1.Objective 16]
ID= PH1Obj16
NameDisplayable= Empire Waters
AvailabilityInterval=1943-07-01, 1943-09-31
ObjectiveCode= Honshu

;-------
[Flotilla 1.UserPlayerUnitType 1.Objective 17]
ID= PH1Obj17
NameDisplayable= Yellow Sea
AvailabilityInterval=1943-10-01, 1943-12-31
ObjectiveCode= Yellow Sea

[Flotilla 1.UserPlayerUnitType 1.Objective 18]
ID= PH1Obj18
NameDisplayable= Empire Waters
AvailabilityInterval=1943-10-01, 1943-12-31
ObjectiveCode= Hokkaido

;--------- 1944-------------

[Flotilla 1.UserPlayerUnitType 1.Objective 19]
ID= PH1Obj19
NameDisplayable= Palau Island
AvailabilityInterval=1944-01-01, 1944-03-31
ObjectiveCode= Palau Island

[Flotilla 1.UserPlayerUnitType 1.Objective 20]
ID= PH1Obj20
NameDisplayable= Mariana Islands
AvailabilityInterval=1944-01-01, 1944-03-31
ObjectiveCode= Mariana Islands

;-------
[Flotilla 1.UserPlayerUnitType 1.Objective 21]
ID= PH1Obj21
NameDisplayable= Formosa Strait
AvailabilityInterval=1944-04-01, 1944-06-31
ObjectiveCode= Formosa Strait

[Flotilla 1.UserPlayerUnitType 1.Objective 22]
ID= PH1Obj22
NameDisplayable= Caroline Islands
AvailabilityInterval=1944-04-01, 1944-06-31
ObjectiveCode= Caroline Islands

;-------
[Flotilla 1.UserPlayerUnitType 1.Objective 23]
ID= PH1Obj23
NameDisplayable= Yellow Sea
AvailabilityInterval=1944-07-01, 1944-09-31
ObjectiveCode= Yellow Sea

[Flotilla 1.UserPlayerUnitType 1.Objective 24]
ID= PH1Obj24
NameDisplayable= Empire Waters
AvailabilityInterval=1944-07-01, 1944-09-31
ObjectiveCode= Hokkaido

;-------
[Flotilla 1.UserPlayerUnitType 1.Objective 25]
ID= PH1Obj25
NameDisplayable= Empire Waters
AvailabilityInterval=1944-10-01, 1944-12-31
ObjectiveCode= Honshu

[Flotilla 1.UserPlayerUnitType 1.Objective 26]
ID= PH1Obj26
NameDisplayable= East China Sea
AvailabilityInterval=1944-10-01, 1944-12-31
ObjectiveCode= East China Sea

;----------1945--------------

[Flotilla 1.UserPlayerUnitType 1.Objective 27]
ID= PH1Obj27
NameDisplayable= Empire Waters
AvailabilityInterval=1945-01-01, 1945-03-31
ObjectiveCode= Hokkaido

[Flotilla 1.UserPlayerUnitType 1.Objective 28]
ID= PH1Obj28
NameDisplayable= Luzon Strait
AvailabilityInterval=1945-01-01, 1945-03-31
ObjectiveCode= Luzon Strait

;-------
[Flotilla 1.UserPlayerUnitType 1.Objective 29]
ID= PH1Obj29
NameDisplayable= Empire Waters
AvailabilityInterval=1945-04-01, NULL
ObjectiveCode= Honshu

[Flotilla 1.UserPlayerUnitType 1.Objective 30]
ID= PH1Obj30
NameDisplayable= Patrols in the Sea Of Japan
AvailabilityInterval=1945-04-01, NULL
ObjectiveCode= Sea of Japan
Ducimus is offline   Reply With Quote
Old 08-21-07, 02:02 PM   #2
tater
Navy Seal
 
Join Date: Mar 2007
Location: New Mexico, USA
Posts: 9,023
Downloads: 8
Uploads: 2
Default

FWIW, over 50% of PH patrols (in RL) were to the Truk blocade in 1942. I think it dropped between 1/3 and 1/2 in 1943.

tater
tater is offline   Reply With Quote
Old 08-21-07, 02:24 PM   #3
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

For what its worth, heres the fremantle template, still have to do brisbane.


Quote:

[Flotilla 2.UserPlayerUnitType 2.Objective 1]
ID= Fre2Obj1
NameDisplayable= Luzon Strait
AvailabilityInterval=1941-12-05, 1941-12-06
ObjectiveCode= Luzon Strait

[Flotilla 2.UserPlayerUnitType 2.Objective 2]
ID= Fre2Obj2
NameDisplayable= Luzon Strait
AvailabilityInterval=1941-12-07, 1941-12-31
ObjectiveCode= Luzon Strait

;-------1942---------

[Flotilla 2.UserPlayerUnitType 2.Objective 3]
ID= Fre2Obj3
NameDisplayable= South China Sea
AvailabilityInterval=1942-01-01, 1942-03-31
ObjectiveCode= South China Sea

[Flotilla 2.UserPlayerUnitType 2.Objective 4]
ID= Fre2Obj4
NameDisplayable= Formosa
AvailabilityInterval=1942-01-01, 1942-03-31
ObjectiveCode= Formosa Strait

;----
[Flotilla 2.UserPlayerUnitType 2.Objective 5]
ID= Fre2Obj5
NameDisplayable= Objectives placed around the Phillipines
AvailabilityInterval=1942-04-01, 1942-06-31
ObjectiveCode= Philippines

[Flotilla 2.UserPlayerUnitType 2.Objective 6]
ID= Fre2Obj6
NameDisplayable= Java Sea
AvailabilityInterval=1942-04-01, 1942-06-31
ObjectiveCode= Java Sea

;----
[Flotilla 2.UserPlayerUnitType 2.Objective 7]
ID= Fre2Obj7
NameDisplayable= Celebes Sea
AvailabilityInterval=1942-07-01, 1942-09-31
ObjectiveCode= Celebes Sea

[Flotilla 2.UserPlayerUnitType 2.Objective 8]
ID= Fre2Obj8
NameDisplayable= Makasar Strait
AvailabilityInterval=1942-07-01, 1942-09-31
ObjectiveCode= Makasar Strait

;----
[Flotilla 2.UserPlayerUnitType 2.Objective 9]
ID= Fre2Obj9
NameDisplayable= Objectives placed around the Phillipines
AvailabilityInterval=1942-10-01, 1942-12-31
ObjectiveCode= Philippines

[Flotilla 2.UserPlayerUnitType 2.Objective 10]
ID= Fre2Obj9
NameDisplayable= Sulu Sea
AvailabilityInterval=1942-10-01, 1942-12-31
ObjectiveCode= Sulu Sea

;---------1943---------

[Flotilla 2.UserPlayerUnitType 2.Objective 11]
ID= Fre2Obj11
NameDisplayable= South China Sea
AvailabilityInterval=1943-01-01, 1943-03-31
ObjectiveCode= South China Sea

[Flotilla 2.UserPlayerUnitType 2.Objective 12]
ID= Fre2Obj12
NameDisplayable= Java Sea
AvailabilityInterval=1943-01-01, 1943-03-31
ObjectiveCode= Java Sea

;----
[Flotilla 2.UserPlayerUnitType 2.Objective 13]
ID= Fre2Obj13
NameDisplayable= Sulu Sea
AvailabilityInterval=1943-04-01, 1943-06-31
ObjectiveCode= Sulu Sea

[Flotilla 2.UserPlayerUnitType 2.Objective 14]
ID= Fre2Obj14
NameDisplayable= Formosa
AvailabilityInterval=1943-04-01, 1943-06-31
ObjectiveCode= Formosa Strait

;----
[Flotilla 2.UserPlayerUnitType 2.Objective 15]
ID= Fre2Obj15
NameDisplayable= Objectives placed around the Phillipines
AvailabilityInterval=1943-07-01, 1943-09-31
ObjectiveCode= Philippines

[Flotilla 2.UserPlayerUnitType 2.Objective 16]
ID= Fre2Obj16
NameDisplayable= Makassar Strait
AvailabilityInterval=1943-07-01, 1943-09-31
ObjectiveCode= Makassar Strait

;----
[Flotilla 2.UserPlayerUnitType 2.Objective 17]
ID= Fre2Obj17
NameDisplayable= Luzon Strait
AvailabilityInterval=1943-10-01, 1943-12-31
ObjectiveCode= Luzon Strait

[Flotilla 2.UserPlayerUnitType 2.Objective 18]
ID= Fre2Obj18
NameDisplayable= Celebes Sea
AvailabilityInterval=1943-10-01, 1943-12-31
ObjectiveCode= Celebes Sea

;--------- 1944-------------

[Flotilla 2.UserPlayerUnitType 2.Objective 19]
ID= Fre2Obj19
NameDisplayable= Java Sea
AvailabilityInterval=1944-01-01, 1944-03-31
ObjectiveCode= Java Sea

[Flotilla 2.UserPlayerUnitType 2.Objective 20]
ID= Fre2Obj20
NameDisplayable= South China Sea
AvailabilityInterval=1944-01-01, 1944-03-31
ObjectiveCode= South China Sea

;----
[Flotilla 2.UserPlayerUnitType 2.Objective 21]
ID= Fre2Obj21
NameDisplayable= Celebes Sea
AvailabilityInterval=1944-04-01, 1944-06-31
ObjectiveCode= Celebes Sea

[Flotilla 2.UserPlayerUnitType 2.Objective 22]
ID= Fre2Obj22
NameDisplayable= East China Sea
AvailabilityInterval=1944-04-01, 1944-06-31
ObjectiveCode= East China Sea

;----
[Flotilla 2.UserPlayerUnitType 2.Objective 23]
ID= Fre2Obj23
NameDisplayable= Formosa
AvailabilityInterval=1944-07-01, 1944-09-31
ObjectiveCode= Formosa Strait

[Flotilla 2.UserPlayerUnitType 2.Objective 24]
ID= Fre2Obj24
NameDisplayable= South China Sea
AvailabilityInterval=1944-07-01, 1944-09-31
ObjectiveCode= South China Sea

;----
[Flotilla 2.UserPlayerUnitType 2.Objective 25]
ID= Fre2Obj25
NameDisplayable= Luzon Strait
AvailabilityInterval=1944-10-01, 1944-12-31
ObjectiveCode= Luzon Strait

[Flotilla 2.UserPlayerUnitType 2.Objective 26]
ID= Fre2Obj26
NameDisplayable= East China Sea
AvailabilityInterval=1944-10-01, 1944-12-31
ObjectiveCode= East China Sea

;----------1945--------------

[Flotilla 2.UserPlayerUnitType 2.Objective 27]
ID= Fre2Obj27
NameDisplayable= Luzon Strait
AvailabilityInterval=1945-01-01, 1945-03-31
ObjectiveCode= Luzon Strait

[Flotilla 2.UserPlayerUnitType 2.Objective 28]
ID= Fre2Obj28
NameDisplayable= South China Sea
AvailabilityInterval=1945-01-01, 1945-03-31
ObjectiveCode= South China Sea

;----
[Flotilla 2.UserPlayerUnitType 2.Objective 29]
ID= Fre2Obj29
NameDisplayable= South China Sea
AvailabilityInterval=1945-04-01, NULL
ObjectiveCode= South China Sea

[Flotilla 2.UserPlayerUnitType 2.Objective 30]
ID= Fre2Obj30
NameDisplayable= East China Sea
AvailabilityInterval=1945-04-01, NULL
ObjectiveCode= East China Sea
Ducimus is offline   Reply With Quote
Old 08-21-07, 03:17 PM   #4
tater
Navy Seal
 
Join Date: Mar 2007
Location: New Mexico, USA
Posts: 9,023
Downloads: 8
Uploads: 2
Default

Feel free to nuke me again

I'll be by Bikini or Eniwetok, heheh.

Looks good though.

tater
tater is offline   Reply With Quote
Old 08-21-07, 03:31 PM   #5
ReDRuM71
Mate
 
Join Date: Oct 2005
Posts: 51
Downloads: 18
Uploads: 0
Default

Im not a modder or anything, so please dont flame me if this is stupid , but would it be possible to have an option to pick from the two missions when given next patrol orders? That way the game wont "force" a repeated mission on us.
__________________
ReDRuM71 is offline   Reply With Quote
Old 08-21-07, 03:33 PM   #6
tater
Navy Seal
 
Join Date: Mar 2007
Location: New Mexico, USA
Posts: 9,023
Downloads: 8
Uploads: 2
Default

The game doesn't have an option like that that I know of.

Note that the "ObjectiveCode=" links to a general area. If there are 5 Java Sea missions, for example, and you pull that again, then you still only have a 20% chance of a repeat.

tater
tater is offline   Reply With Quote
Old 08-21-07, 03:45 PM   #7
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

Quote:
Originally Posted by ReDRuM71
would it be possible to have an option to pick from the two missions when given next patrol orders?
Unfortuntely thats how the game works.

Heres a quick explanation on how it does: (using hypothical names)

In stock, In each sub base (flotilla), each sub type has around 5 areas that it will randomly get. These are mission groups, based on geogrpahical area.

Area 1
Area 2
Area 3
Area 4

Each of these mission groups has a subset of mini missions that are also randomly assigned.

Area 1 through 7
- X number ofPhoto
- X number of insert spy
- X number of sink
- X number of patrol

The game is first supposed to randomly pick an area, and then once it has, supposed to randomly pick a mission from that area.

Obviously, it doesnt alway vary the area assigments as much as one would like. If it did, none of this work would be neccessary.
Ducimus is offline   Reply With Quote
Old 08-21-07, 03:49 PM   #8
tater
Navy Seal
 
Join Date: Mar 2007
Location: New Mexico, USA
Posts: 9,023
Downloads: 8
Uploads: 2
Default

Maybe it's fixed in the 1.4 hinted at in th other thread.

(the reworking of stuff again boggles the mind)

tater
tater is offline   Reply With Quote
Old 08-21-07, 03:59 PM   #9
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

Quote:
Originally Posted by tater
Maybe it's fixed in the 1.4 hinted at in th other thread.

(the reworking of stuff again boggles the mind)

tater
Im wondering if it really is.

This post
http://www.subsim.com/radioroom/show...15&postcount=4

and this post:
http://www.subsim.com/radioroom/show...28&postcount=3

Make me think otherwise, given the source of those two posts.
Ducimus is offline   Reply With Quote
Old 08-21-07, 04:03 PM   #10
tater
Navy Seal
 
Join Date: Mar 2007
Location: New Mexico, USA
Posts: 9,023
Downloads: 8
Uploads: 2
Default

Given the can of worms inside the whole flotillas/patrol objectives/PatrolObjectives (missions themselves)/DynamicCampaign stuff, I'd be surprised if the cause wasn't as simple as some typoed values copied and pasted someplace.

Maybe they simply can't figure out what is causing the problem...

Last edited by tater; 08-21-07 at 04:36 PM.
tater is offline   Reply With Quote
Old 08-21-07, 04:10 PM   #11
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

Oh beleive me i know all about this can of worms. I still have to go through the objectives.upc file and make sure im not assigning some before their entry date. A couple in fremantle i KNOW i am, so that file will be part of this mod too.
Ducimus is offline   Reply With Quote
Old 08-23-07, 01:24 PM   #12
rhohltjr
Mate
 
Join Date: Mar 2007
Location: Fort Worth, Texas
Posts: 56
Downloads: 117
Uploads: 0
Default Repeat missions

Quote:
Originally Posted by tater
Given the can of worms inside the whole flotillas/patrol objectives/PatrolObjectives (missions themselves)/DynamicCampaign stuff, I'd be surprised if the cause wasn't as simple as some typoed values copied and pasted someplace.

Maybe they simply can't figure out what is causing the problem...
FWIW for anyone interested. Latest career has me in PH and I've had 4 straight
SpecOps insertion missions to Okinawa. 4 straight:hmm: . Can't wait to supply the Division with tanks and artillery.

RHJ
__________________
First PC game was Microprose Silent Service. And I still have it. Does anyone else WitpAE?
rhohltjr is offline   Reply With Quote
Reply

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 03:51 PM.


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.