Originally Posted by Ducimus
Now that ive had a power nap.......
The career ending early bug:
After testing i isolated it to the flotilla.cfg. Each flotilla has boats assigned to it. Each boat has an entry date, and exit date. Its this exit date that appears to be the culprit. How i figured this out , was i took The porpoise class, stripped everything out of the roster folder except one boat (so it only had one to choose from). I then set its DoD date to be 9dec41.
I then started game with said boat at that date. Ran out of base, came back in a couple times. no early ending. So it wasnt the roster file. I then went back, and editid the boat exit date for that floatilla, ran out of base, came back, ended, and BAAM, the navy has retired you along with your boat. I mean, if you read the text, it practially tells you why your career is over. They retired your boat, and you along with it. :rotfl:
Setting the end date to NULL, and i didnt have the same problem. - hence.. problem solved!
What took alot more work then that, was attempting to get rid of the "repeating patrol" bug. Well, at least i have good reason to beleive i got rid of it anyway. Heres why.
Also in the flotilla .cfg is patrol assigments for every boat type. Each assigment has an entry date, and an exit date, just like subs. Well, by default theres only 7 or 8 total assigments. But not all assigments are available right away. Some enter the "you might get this assigmetn" pool later in the war, most assigments however, are avialable concurrently. Two of which (at least in pearl harbors case) had null entry and exit dates. Honshu and Hokkaido. I found it rather curious how in pearl harbor your always going to those two places.
So what i did was basically, script out a buttload more assigments, and then force the game to use them one at a time. Essentually those 7 or 8 assigments, became 20 assigments. Each assigment WILL be different from the last one, and will only be assigned for a 2 month period ( about the time to complete one patrol i figure), and then the game will pick the next one. I basically scripted out a 2 month patrol sequence from 12/41 all the way to 1/45, hence how 8 entries became 20. For each boat type, for each flotilla. (lot of copying in pasting really)
The stock flotilla.cfg is about 33.9 KB, mine after reworking it is now 72.2 KB. And ill say upfront i left all the sub entry dates at stock (historical?) value incase anyone else wanted to use this file in any of their modwork. Nobody should have had to rewrite that F"ing file in the first place.
|