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

Reply
 
Thread Tools Display Modes
Old 03-27-07, 11:44 AM   #1
John B. Mayes
Swabbie
 
Join Date: Mar 2005
Location: Virginia, USA
Posts: 5
Downloads: 0
Uploads: 0
Captain's Log - when not in game - how?

Anyone know where the blasted log is?


I have been trying to write my own "patrol logs" when not in game, to let my creativity in writing go. However, I could really use those logs to help me remember just when/where things happened.

I searched a bit in the SH4 directory, but can't find it. I'm sure it has to be there somewhere!
__________________
John B. Mayes
Silent Hunter IV
"There be whales here!"
John B. Mayes is offline   Reply With Quote
Old 03-27-07, 12:00 PM   #2
EdwardTivrusky
Swabbie
 
Join Date: Mar 2007
Location: Dorrrrrrrset.
Posts: 14
Downloads: 0
Uploads: 0
Default

It might keep the log in the current game's save directory?
Does it save to "Documents and Settings" or "My Documents" perhaps?
EdwardTivrusky is offline   Reply With Quote
Old 03-27-07, 12:43 PM   #3
SteamWake
Rear Admiral
 
Join Date: Mar 2005
Posts: 13,224
Downloads: 5
Uploads: 0
Default

Try asking over in the modding forum.
SteamWake is offline   Reply With Quote
Old 03-27-07, 12:50 PM   #4
Skweetis
Watch Officer
 
Join Date: Sep 2001
Location: Cambridge, Canada
Posts: 335
Downloads: 39
Uploads: 0
Default

These are the files you are looking for, they can be opened in Notepad, or any text editor.

My Documents\SH4\data\cfg\SaveGames\0000000#\ <===the save folders are numbered sequentially. USe the modified date of the folder to determine which is the save game you are looking for.

The files are:

SaveData.rmr <==radio messages recieved
SaveData.rms <==Radio messages sent
SaveData.clg <==Captains Log (stuff you've sunk or shot down.)
SaveData.crp <==crew reporting (feedback from crew "Ship Spotted, Bearing...")

Hope that helps. I have a program in the works that will take all this data, filter it and spit out a readable journal. I started it with SH3, but am reviving it with the release of SH4. Will take a while though, its a complex piece to write.


Cheers.

EDIT: Side note... any pictures you take for a recon mission are also stored here as well. In the My Documents\SH4\
__________________
"Is the glass half-empty? Or half-full? Either way, when you're thirsty, there's water to be had in that glass." - Neal Stevens

Last edited by Skweetis; 03-27-07 at 01:03 PM.
Skweetis is offline   Reply With Quote
Old 03-27-07, 01:39 PM   #5
daft
Captain
 
Join Date: Jan 2002
Location: Sweden
Posts: 493
Downloads: 15
Uploads: 0
Default

Quote:
Originally Posted by Skweetis
These are the files you are looking for, they can be opened in Notepad, or any text editor.

My Documents\SH4\data\cfg\SaveGames\0000000#\ <===the save folders are numbered sequentially. USe the modified date of the folder to determine which is the save game you are looking for.

The files are:

SaveData.rmr <==radio messages recieved
SaveData.rms <==Radio messages sent
SaveData.clg <==Captains Log (stuff you've sunk or shot down.)
SaveData.crp <==crew reporting (feedback from crew "Ship Spotted, Bearing...")

Hope that helps. I have a program in the works that will take all this data, filter it and spit out a readable journal. I started it with SH3, but am reviving it with the release of SH4. Will take a while though, its a complex piece to write.


Cheers.

EDIT: Side note... any pictures you take for a recon mission are also stored here as well. In the My Documents\SH4\
Interesting, I scanned through the SH4-folder yesterday and started thinking about doing something like that. What language are you writing your program in?
__________________
And God said: \"Let there be Narrowband!\"
daft is offline   Reply With Quote
Old 03-27-07, 02:28 PM   #6
Skweetis
Watch Officer
 
Join Date: Sep 2001
Location: Cambridge, Canada
Posts: 335
Downloads: 39
Uploads: 0
Default

VB6

heres a sample output from when it was a KTB generator. Lots of kinks though, but it works. Kinda.

Code:
19390901  1332  WEATHER: Clouds Clear, Precipitations None, Fog None|Wind Speed 4 meters per second, direction 188.
          1338  Dive for trim test.
          1345  Sound contact, sir! Warship Moving Fast Closing! Bearing 332! Long range!
          1405  Surfaced
          1406  Ship spotted, sir! Bearing 162! Long range!
          1436  Ship spotted, sir! Bearing 003! Long range!
          1816  Ship spotted, sir! Bearing 296! Long range!
19390902  0923  Ship spotted, sir! Bearing 293! Long range!
19390903  0311  Crash dive
          0315  Surfaced
          1257  Radio Message Received: Appendix 0
          1400  Radio Message Received: Appendix 1
          1403  Radio Message Received: Appendix 2
          1551  Radio Message Received: Appendix 3
          1753  Radio Message Received: Appendix 4
19390904  1201  Radio Message Received: Appendix 5
          1346  Radio Message Received: Appendix 6
19390906  1142  Radio Message Received: Appendix 7
          1508  Report sent!: 06/09/1939 15:08|U-3. POSITION GRID AN 81|TORPEDOES LEFT: 5
          1543  Radio Message Received: Appendix 8
19390907  1201  Radio Message Received: Appendix 9
          1308  Radio Message Received: Appendix 10
19390908  0811  WEATHER: Clouds Overcast, Precipitations None, Fog Medium|Wind Speed 15 meters per second, direction  52.
          1139  Radio Message Received: Appendix 11
19390909  1503  Radio Report Received! Enemy Task Force, Grid AM 36, Course ESE, Speed 21 KTS!
19390910  0337  Ship spotted, sir! Bearing 124! Long range!
          0342  Nearest visual contact at bearing 346, range 2700 meters!
          0347  Firing tube 1, sir!
                Firing tube 2, sir!
          0348  Torpedo Impact!
          0349  Firing tube 3, sir!
          0401  Firing tube 1, sir!
                Ship Sunk.
          0402  Report sent!: 10/09/1939 04:02|U-3. POSITION GRID AN 81|TORPEDOES LEFT: 1|CARGO SHIPS SUNK: 1|TOTAL TONNAGE: 6274
          0416  Radio Message Received: Appendix 12
          1316  Radio Message Received: Appendix 13
19390912  0945  Radio Report Received! Enemy Warship, Grid AN 22, Course NNE, Speed 21 KTS!
19390914  1216  Ship spotted, sir! Bearing 046! Long range!
19390916  0131  Radio Message Received: Appendix 14
19390917  1831  Ship spotted, sir! Bearing 339! Long range!
          2056  Ship spotted, sir! Bearing 037! Long range!
          2104  Ship spotted, sir! Bearing 001! Long range!
Thats the output to the text file. Come to think of it... I don't know why I stopped working on it. I'll kill two birds with one stone, and get both released at the same time (SH3 KTB BUILDER and SH4 WAR JOURNAL)

We'll see. I'll probably discover what made me stopped as I go through the code.
__________________
"Is the glass half-empty? Or half-full? Either way, when you're thirsty, there's water to be had in that glass." - Neal Stevens
Skweetis is offline   Reply With Quote
Old 03-27-07, 02:44 PM   #7
daft
Captain
 
Join Date: Jan 2002
Location: Sweden
Posts: 493
Downloads: 15
Uploads: 0
Default

Quote:
Originally Posted by Skweetis
VB6

heres a sample output from when it was a KTB generator. Lots of kinks though, but it works. Kinda.

[SNIP...]

Thats the output to the text file. Come to think of it... I don't know why I stopped working on it. I'll kill two birds with one stone, and get both released at the same time (SH3 KTB BUILDER and SH4 WAR JOURNAL)

We'll see. I'll probably discover what made me stopped as I go through the code.
Very cool! I don't know VB, but I was thinking of doing something like this in C# and perhaps tie it to a database to be able extract some cool statistics on various aspects of a skippers career. It would involve a whole lot of string searching/formatting if I try to automate the whole process. I really haven't given this all that much thought, but it's worth looking into I think. I need a good programming project to sharpen my skills.
__________________
And God said: \"Let there be Narrowband!\"
daft is offline   Reply With Quote
Old 03-27-07, 03:02 PM   #8
Skweetis
Watch Officer
 
Join Date: Sep 2001
Location: Cambridge, Canada
Posts: 335
Downloads: 39
Uploads: 0
Default

Basically my code is a giant bunch of case statements to get and format the output, followed by writes to file.

Painstaking.

Have at it though! The more options users have to use, the better. And the best way to learn is to do!

Good luck!
__________________
"Is the glass half-empty? Or half-full? Either way, when you're thirsty, there's water to be had in that glass." - Neal Stevens
Skweetis is offline   Reply With Quote
Old 03-27-07, 03:04 PM   #9
John B. Mayes
Swabbie
 
Join Date: Mar 2005
Location: Virginia, USA
Posts: 5
Downloads: 0
Uploads: 0
Default

Thank you for this information!


Yahoo!
__________________
John B. Mayes
Silent Hunter IV
"There be whales here!"
John B. Mayes is offline   Reply With Quote
Old 03-27-07, 03:52 PM   #10
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

What language?
Ducimus is offline   Reply With Quote
Old 03-27-07, 05:02 PM   #11
daft
Captain
 
Join Date: Jan 2002
Location: Sweden
Posts: 493
Downloads: 15
Uploads: 0
Default

Quote:
Originally Posted by Skweetis
Basically my code is a giant bunch of case statements to get and format the output, followed by writes to file.

Painstaking.

Have at it though! The more options users have to use, the better. And the best way to learn is to do!

Good luck!
Thanks, I think I'll give this a go just to see how it pans out.
__________________
And God said: \"Let there be Narrowband!\"
daft is offline   Reply With Quote
Old 03-27-07, 05:03 PM   #12
daft
Captain
 
Join Date: Jan 2002
Location: Sweden
Posts: 493
Downloads: 15
Uploads: 0
Default

Quote:
Originally Posted by Ducimus
What language?
If you're asking skweetis it's Visual Basic, if you're asking me I'll use C#.
__________________
And God said: \"Let there be Narrowband!\"
daft is offline   Reply With Quote
Old 03-27-07, 06:36 PM   #13
Skweetis
Watch Officer
 
Join Date: Sep 2001
Location: Cambridge, Canada
Posts: 335
Downloads: 39
Uploads: 0
Default

Quote:
Originally Posted by Ducimus
What language?
I assume you mean the code section I posted above? Thats just the output to a text file from the raw SH3 files, i just used the CODE tags to keep the formatting. The program is written in Visual Basic 6.

In its current state its not user friendly (the program that makes the text file) so you have to do a lot of file moving and stuff.

I just updated it to work with SH4. Once I work out the kinks, I'll design and implement a user interface to make it accessable to more users.

The end result I am going for is to have a story-like War Journal that you can read through like a real one (with commentary colour and stuff.) The original reason I did this was to break down my patrols in SH3 into a reference format so I could write stories based on my patrols, like so many others have done oh so well.

Cheers.
__________________
"Is the glass half-empty? Or half-full? Either way, when you're thirsty, there's water to be had in that glass." - Neal Stevens
Skweetis is offline   Reply With Quote
Reply

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 04:20 PM.


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.