![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
Fuel Supplier
|
![]()
I have made this post only for general interest.
As players will have discovered, if you return to a base which was not the home-base (HB), you cannot alter equipment and when you return to sea you have a patrol grid of NULL. The NULL grid has always been an irritation, because I like to start a patrol in Kiel in 1939, move to Wilhelmshaven until 1940, then return to Kiel. Other players like to patrol from Penang, or switch bases in the Mediterranean. And docking with a U-tanker at sea always resulted in a NULL grid being assigned when you started a new patrol, until H.sie and I created the pseudo-docking concept in code. Therefore I have been trying to discover a method to assign a random patrol grid, when the original grid was NULL, based on location, U-boat type and year. I discovered that the devs intended that a stop in a port-not-home-base (PNHB) should be temporary. Perhaps for fuel and repairs before a return to home-base. The NULL grid was *not* a bug - it was an intention. For example, file patrols_0.cfg is read in order to start a new patrol from a home-base, but the older patrols.cfg (last patrol) is used when starting from a PNHB. This original intention explains a lot, and in particular why the pointers that function for a patrol from a home base do not function for a patrol from a PNHB! In the end, I have managed to write a code patch that provides new, random, patrol grids for a start from a PNHB. Unfortunately, the patch suffers from one serious defect: if you save the game in mid-patrol, and reload it, you start all over again with another NULL grid - or rather, with my new patch, with a *different* random assigned new grid. Unfortunately, there is no way of saving grid data from one game-save to another, unless it is saved in 'mysavegame.psc' in folder 'My Documents\sh3\data\cfg\etc'. And to provide the new grid area here requires knowledge of the scrambled pointers in order to set the information for saving! It is unlikely that I shall release my new code. My old mod 'SH3Patrol' (provided with the NYGM supermod) provides a much more secure way of assigning new patrol grids. You sail out from the PNHB with a NULL grid, save the game, alter the saved game with SH3Patrol, and reload it. Problem solved, and from a much larger range of random grids. Stiebler.
__________________
NYGM Tonnage War Mod - More than a mod: it's an experience! Last edited by Stiebler; 05-18-12 at 01:27 AM. |
![]() |
![]() |
![]() |
#2 |
Pacific Aces Dev Team
|
![]()
Interesting. Since now you can anyway received a new grid via radio with H.Sie's patch, I guess replacing NULL in the text file with "Request new orders once refueled" and then requesting new grid via radio, suffices also.
BTW readed the message several times and while I now know what a "PNHB" is, I have no clue what a "NPHG" is ![]()
__________________
One day I will return to sea ... |
![]() |
![]() |
![]() |
#3 | |
Ocean Warrior
![]() Join Date: Apr 2005
Location: Carmel, Indiana
Posts: 3,250
Downloads: 320
Uploads: 11
|
Been there, done that!
Quote:
![]() ![]() ![]()
__________________
Irish1958 ![]() |
|
![]() |
![]() |
![]() |
#4 | |
Lieutenant
![]() Join Date: Jan 2012
Posts: 252
Downloads: 66
Uploads: 0
|
![]() Quote:
Frankly I do not know what those phrases mean: Who or what is "SH3Patrol" ? Edit: ok, found the info => ... http://www.subsim.com/radioroom/show...47&postcount=1 |
|
![]() |
![]() |
![]() |
#5 |
Fuel Supplier
|
![]()
Ooops! NPHG??
Shows the problems of using acronyms too often - you forget what they substitute. Of course, I intended PNHB (Port-not-home-base). Thanks for flagging the error, Hitman. I have corrected my earlier post. Stiebler.
__________________
NYGM Tonnage War Mod - More than a mod: it's an experience! |
![]() |
![]() |
![]() |
#6 |
The Old Man
![]() Join Date: Apr 2005
Location: Oldham, Lancs,England
Posts: 1,312
Downloads: 82
Uploads: 0
|
![]()
Appoligies if this been said b4 but when I use to play SH3 GWX and got a message patrol "NULL" I considered it as afree reign o wherever you want to go expend all your torps and return to base you will still get reown 4 it.but unless the game has changed I don't know (I play sh4 now FOTRS)
__________________
![]() |
![]() |
![]() |
![]() |
|
|