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

Reply
 
Thread Tools Display Modes
Old 07-17-10, 06:15 PM   #1
JScones
Navy Seal
 
Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
Default

Extract from post 73:

There's really nothing SH3Cmdr can do about this; sure, I could trap the error, then look at the Log_0.cfg file and get the correct career start date from it, but that doesn't fix up the missing renown or ship sunk data that are also symptoms of this bug. And TBH I have no intention of writing another 100 lines of code to correct another stock SH3 bug (there's enough lines like that in there already, LOL!), especially when there is a well known and advertised way to avoid the problem in the first place.

And that is?

Don't upgrade your boat before you start your first patrol in a new career. Alternatively, if you feel you must do so, then save just before docking at the end of the patrol. If you do then get the bug, it seems that re-loading the save game and re-docking fixes it.

In summary, if you receive an "Invalid argument to date encode" error when attempting to create a Personnel File in SH3Cmdr it will be because of this bug. You can confirm for yourself by opening Patrols.cfg and checking the StartYear, StartMonth and StartDay values under [PATROLS 000]. If they are all 0, then you have caught the bug. You'll also notice 0 ships sunk, 0 tonnage sunk and 0 renown received, and a few others that I've forgotten now.

Unfortunately this is just one of those stock bugs that is not practical to work around in SH3Cmdr.
JScones is offline   Reply With Quote
Old 07-17-10, 07:01 PM   #2
Melonfish
XO
 
Join Date: Nov 2006
Location: Warrington, UK
Posts: 416
Downloads: 106
Uploads: 0
Default

Quote:
Originally Posted by JScones View Post
Extract from post 73:

There's really nothing SH3Cmdr can do about this; sure, I could trap the error, then look at the Log_0.cfg file and get the correct career start date from it, but that doesn't fix up the missing renown or ship sunk data that are also symptoms of this bug. And TBH I have no intention of writing another 100 lines of code to correct another stock SH3 bug (there's enough lines like that in there already, LOL!), especially when there is a well known and advertised way to avoid the problem in the first place.

And that is?

Don't upgrade your boat before you start your first patrol in a new career. Alternatively, if you feel you must do so, then save just before docking at the end of the patrol. If you do then get the bug, it seems that re-loading the save game and re-docking fixes it.

In summary, if you receive an "Invalid argument to date encode" error when attempting to create a Personnel File in SH3Cmdr it will be because of this bug. You can confirm for yourself by opening Patrols.cfg and checking the StartYear, StartMonth and StartDay values under [PATROLS 000]. If they are all 0, then you have caught the bug. You'll also notice 0 ships sunk, 0 tonnage sunk and 0 renown received, and a few others that I've forgotten now.

Unfortunately this is just one of those stock bugs that is not practical to work around in SH3Cmdr.
Aye thats the one
cheers scones m8 i'll do a shake down first run without mods/
Melonfish is offline   Reply With Quote
Old 07-18-10, 12:07 AM   #3
Seminole
Ace of the Deep
 
Join Date: Sep 2002
Location: Oregon
Posts: 1,012
Downloads: 102
Uploads: 0
Default

edit: never mind I reread the manual..page 5 Sorry...
__________________

Last edited by Seminole; 07-18-10 at 12:28 AM.
Seminole is offline   Reply With Quote
Old 07-18-10, 12:32 AM   #4
frau kaleun
Rear Admiral
 
Join Date: Nov 2009
Location: Skyri--oh who are we kidding, I'm probably at Lowe's. Again.
Posts: 11,274
Downloads: 168
Uploads: 0


Default

Quote:
Originally Posted by Seminole View Post
edit: never mind I reread the manual..page 5 Sorry...
But I hadn't finished typing out my reply yet! It was going to be very eloquent and informative!

You couldn't have waited another five minutes to figure it out yourself?
frau kaleun is offline   Reply With Quote
Old 07-19-10, 02:10 AM   #5
JScones
Navy Seal
 
Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
Default

Quote:
Originally Posted by Seminole View Post
edit: never mind I reread the manual..page 5 Sorry...
JScones is offline   Reply With Quote
Old 07-19-10, 08:50 AM   #6
frau kaleun
Rear Admiral
 
Join Date: Nov 2009
Location: Skyri--oh who are we kidding, I'm probably at Lowe's. Again.
Posts: 11,274
Downloads: 168
Uploads: 0


Default

Quote:
Originally Posted by JScones View Post
Oh sure, encourage people to RTFM. WHAT ABOUT MY POST COUNT?!?

frau kaleun is offline   Reply With Quote
Reply

Tags
sh3 commander

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 02:17 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.