Thread: Help me!!!
View Single Post
Old 05-20-10, 07:18 PM   #2
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by fred8615 View Post
I'm trying to fix my Pre Pearl Harbor Career Start mod to not load the default missions, and instead load a (as a test) a simple patrol mission. I've save the test mission in it's own folder, with the same filename as the folder, in "PatrolObjectives," edited the DynamicMiss to include it at the end, changed all the necessary lines, and even changed the dates of any pre-Dec. 7th stuff in there hoping that would stop it loading. When it didn't, I tried changing the Objectives in the Flotillas.upc from AvailabilityInterval=NULL, to AvailabilityInterval=1941-12-07,. All that did was try to have a PH based boat go all the way to Luzon Strait to patrol!

I've searched all over here, bookmarked and tried all the tricks I could find, but nothing worked. I had already asked awhile back on the mods forum for help in this, and got absolutely nothing. I thought I'd ask one more time here.


Please?!?
You sound like you kind of know what you are doing but a bit confused on the files. So I am not going to go into step by step folder details, as long as you can find the necessary files to work with.

Well, first of all this it is not a "Dynamic Mission", so it does not go there. Is this "your" Pre Pearl Harbor or from someone elses that you are changing? You say you changed the pre-Dec 7th stuff that was in there. If there is other stuff to deal with then things may not go right.
There are a lot of dates in there that don't mean a thing. Some files have date of 1938 but the file that loads them uses a different date, so you could have one dated 1938 but it never gets loaded until 1944, so like I say "some" dates don't matter.

If you are just adding one more career start then some stuff does not have to be changed.

So try this from stock copies of the Campaign files and as you use this stuff, copy it out to make a MOD.

1. Put your mission into the Data/Campaigns/Campaign/PatrolOjectives folder. (In other words create a PartolObjectives folder in your mod and put your mission into it, Same with the rest).

2. Go to flotillas.upc and add the mission to the base and subs that you want to be able to use it following the format:

[Flotilla 1.UserPlayerUnitType 1.Objective 1]
ID= PH1Obj1
NameDisplayable= East China Sea
AvailabilityInterval=1942-01-01, NULL
ObjectiveCode= East China Sea

Flotilla number I assume will be 1 for Pearl Harbor
UserPlayerUnitType number is the sub.
Name Displayable is whatever you want it to be
Available interval is start and end dates when it is available. In you case you can use Null for the startdate.
Make sure you change the ID and Objective 1 to the proper numbers so they are next in line.

Important: ObjectiveCode will find a mission that matches the objective code, so make it unique so it MUST pick your mission and no other. In the game you could have 5 missions to Partol the East China Sea all with the same Objective code, but the same or different dates. That is how the game randomly picks a mission, by picking one from the available choices.
__________________________________________________ ____________
4. Now in the same folder as the Flotilla.upc you will find "PartolObjectives.cfg" Open this with notepad and add your mission by copying an existing one that matches the type of mission you Created. If you created a mission to Patrol an area then copy one that is a Patrol mission so the "ObjectiveType=4" will match.

THE IMPORTANT PARTS:
[Section 233]
ID=ID233
these must be next in line.
*************************************
FileName=data/Campaigns/Campaign/PatrolObjectives/Patrol Sulu Sea 03/Patrol Sulu Sea 03.mis

This is the actual path and name of your mission. Double check for spelling. The green parts should be the parts you have to change.
*****************************************
StartDate=19420905
EndDate=19441101
Should be obvious.
*******************************
AllMatch=Yellow Sea
This refers back to the ObjectiveCode that you used in the Flotilla.
So if you set your ObjectiveCode=North of Hawaii
then your AllMatch will be
AllMatch=North of Hawaii

This was a quick throw together, I hope I didn't miss anything. Set this as a MOD and enable it.
__________________

System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2.

peabody is offline   Reply With Quote