PDA

View Full Version : Captain's Log - when not in game - how?


John B. Mayes
03-27-07, 11:44 AM
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!

EdwardTivrusky
03-27-07, 12:00 PM
It might keep the log in the current game's save directory?
Does it save to "Documents and Settings" or "My Documents" perhaps?

SteamWake
03-27-07, 12:43 PM
Try asking over in the modding forum.

Skweetis
03-27-07, 12:50 PM
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\

daft
03-27-07, 01:39 PM
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?

Skweetis
03-27-07, 02:28 PM
VB6 :(

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


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. :)

daft
03-27-07, 02:44 PM
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. :)

Skweetis
03-27-07, 03:02 PM
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!:D

John B. Mayes
03-27-07, 03:04 PM
Thank you for this information!


Yahoo!

Ducimus
03-27-07, 03:52 PM
What language?

daft
03-27-07, 05:02 PM
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!:D

Thanks, I think I'll give this a go just to see how it pans out. :)

daft
03-27-07, 05:03 PM
What language?

If you're asking skweetis it's Visual Basic, if you're asking me I'll use C#. :)

Skweetis
03-27-07, 06:36 PM
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.