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 > Silent Hunter 4: Wolves of the Pacific
Forget password? Reset here

View Poll Results: How should The repeat patrol fix be handled in TM
Leave it as an optional mod, its not really neccessary if you do your patrols correctly. 56 57.73%
Make it the default installation, it's neccessary. 34 35.05%
I don't use TM, and could care less. 7 7.22%
Voters: 97. You may not vote on this poll

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 08-18-07, 01:45 AM   #4
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

Quote:
Originally Posted by maerean_m
Do you mean there is a fix for the bug that keeps giving the same objective in career mode? If it is the case, do you know how is the fix implemented?
Yeah i do, i made it. its sort of a fix, but its more like fancy scripting. As im sure you know, the game normally assigns around 5 (give or take) geographical regions. Each geographical region is supposed to be picked at random, and each region has a random set of missions assigned to it.

Honshu for instance has:
- 5 insert spy missions
- 8 patrol missions
- 5 photo missions
- 8 sink missions.

So again, out of 5 or so regions, the game is supposed to pick one, and once a region is chosen, its supposed to pick a mission of the subset of missions that exist for that region. So ideally, you have alot of replaybilty there. The trouble is, it doesnt always work that way. Instead you get honshu patrol, again and again, and again.

So what i did was, take all the missions assigned to geographical regions, and split them apart into two groups. I put all patrol and sink missions in one group, and all photo, spy, commando, etc into antoher group.

So where as before all missions were under the ID handle of "Honshu", i now have two groups, "Honshu" and "HonshuOPS".


I then went back into the flotilla files and did something like this:

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

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

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

[Flotilla 1.UserPlayerUnitType 1.Objective 5]
ID= PH1Obj5
NameDisplayable= Formosa
AvailabilityInterval=1942-05-01, 1942-06-31
ObjectiveCode= Formosa StraitOPS

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

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

[Flotilla 1.UserPlayerUnitType 1.Objective 8]
ID= PH1Obj8
NameDisplayable= Palau Island
AvailabilityInterval=1942-11-01, 1942-12-31 
ObjectiveCode= Palau IslandOPS

[Flotilla 1.UserPlayerUnitType 1.Objective 9]
ID= PH1Obj9
NameDisplayable= Empire Waters
AvailabilityInterval=1943-01-01, 1943-02-31
ObjectiveCode= Honshu

[Flotilla 1.UserPlayerUnitType 1.Objective 10]
ID= PH1Obj10
NameDisplayable= Yellow Sea
AvailabilityInterval=1943-03-01, 1943-04-31
ObjectiveCode= Yellow SeaOPS

[Flotilla 1.UserPlayerUnitType 1.Objective 11]
ID= PH1Obj11
NameDisplayable= Empire Waters
AvailabilityInterval=1943-05-01, 1943-06-31 
ObjectiveCode= Hokkaido
What i did was force the game to pick a specific mission be making it the only available mission at the time. Where as stock, the orginal 5 geographical areas were always open, and the game tended to default to just one or two of them, and not use all of them enough. I made each mission have a 2 month time window, before i closed it, and opened the next one. As for mission types, i was careful to stagger them. Patrol, and then some sort of special operations to gain more variety. The above scripting exists for all flotillas and all boats except the S class and the alutians, for all years of the war. The normal flotilla file is about 37KB, my scripted one is about 85KB.

Thats the gist of how it works, group like missions together, stagger them to break up monotony, and the force the game to pick a mission, by making it the only one available. Most patrols plus time in port usualy run in the neighborhood of 2 months, so thats what i set the open and closure times for missions to.
Ducimus is offline   Reply With Quote
 


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 08:47 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.