![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#16 | ||
Ace of the Deep
![]() Join Date: Mar 2006
Posts: 1,138
Downloads: 147
Uploads: 12
|
![]() Quote:
![]() Quote:
![]() Cheers, LGN1 |
||
![]() |
![]() |
![]() |
#17 |
Sailor man
![]() Join Date: Mar 2006
Posts: 43
Downloads: 154
Uploads: 0
|
![]()
Amazing piece of work! Can't wait to see it implemented
![]() |
![]() |
![]() |
![]() |
#18 |
Engineer
![]() Join Date: Jul 2010
Location: Derby, UK
Posts: 200
Downloads: 86
Uploads: 0
|
![]()
LGN1,
is this still work in progress or wasn't there enough interest or has it just taken a back seat during the festive period? really looking forward to seeing this published if it possible. |
![]() |
![]() |
![]() |
#19 | |
Ace of the Deep
![]() Join Date: Mar 2006
Posts: 1,138
Downloads: 147
Uploads: 12
|
![]() Quote:
Cheers, LGN1 |
|
![]() |
![]() |
![]() |
#20 |
Rear Admiral
![]() |
![]() |
![]() |
![]() |
![]() |
#21 | ||
Navy Seal
![]() Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
|
![]() Quote:
Quote:
Good luck! If there is anything I can do to help (I still have some of my notes, my prototypes and lookup files), just let me know. |
||
![]() |
![]() |
![]() |
#22 |
Ace of the Deep
![]() Join Date: Mar 2006
Posts: 1,138
Downloads: 147
Uploads: 12
|
![]()
Thanks a lot for the input, JScones
![]() I was hoping that you would show up with some comments because I thought that you probably have thought about this before and you have a huge knowledge about it! I completely agree with you that it is a huge amount of work to get a decent automatic log (maybe even impossible with the limited information in the crp file). However, I had the following ideas in my mind when I started it: - A perfect, automatic log is not possible (at least for me). However, even having a few more distinct events in the log file would be a big improvement (e.g., torpedo hits so that it's documented if you hit something that did not sink). - A non-perfect log can be corrected/adjusted later with your excellent patrol editor, i.e., the program creates a first rough draft. It's up to the player to do the fine finishing. For players using your patrol editor it might be a help and reduces the amount of typing. - I limit myself to distinct events that do not happen very often. For others I have an option that there must be some (adjustable) time delay between instances. E.g., 'ship spotting' entries must be x hours apart. This is only a very rough 'logic', but works ok for me. Clearly, this is not a perfect log! However, at least for me it's better than the original log. At first I did not want to present the script here, but just use it for myself. However, when looking at the Tell us what you are upto in your current campaign thread I thought that it might be useful for others, too. I hope, it's clear to everyone here that this will never be a tool for creating a perfect log automatically. Cheers, LGN1 PS: I would really like to test your beta. Is it still available somewhere? Could you please comment on this part of your post a bit more: ...through the use of a simple TSR that regularly polls the .crp file looking for changes. It may require the player to save the patrol first (can't quite remember now if the file is written as an event takes place or when the game is saved), but it was certainly doable... |
![]() |
![]() |
![]() |
#23 | ||||
Navy Seal
![]() Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
|
![]() Quote:
Quote:
Talking about the weather, I am not sure I agree with the 24 hour limitation. Given weather reports are requested manually by the player at any time, it stands to reason that the response would be recorded in their log book. Quote:
Quote:
When it starts, have it find all .crp files in the user's savegame folder and store the last modified date for each (you need to do this because you won't know the career the player wants to use up front, a problem I didn't have with SH3Cmdr). Then have the console app "wait" for SH3.exe to close. Once this occurs, the app can requery the .crp files. Any that have a newer modified date can be assumed to have changed. Run your function against these .crp files. For SH3Cmdr users you'll find only one career and one .crp file tends to change in a session, but this way will capture those who play multiple careers in one session. There's other ways of doing it (if you knew the user was running SH3Cmdr you could easily obtain details of the career the player intended to use, because SH3Cmdr writes the info "into" SH3, but if you want compatibility with non SH3Cmdr users, you won't be able to do this). The entries Beery and I tentatively started with were: 45=The base was changed to: %s 57=Flotilla is disbanded. You are transferred to %s. 520=We have casualties, sir! 590=Medic called to attend to a wounded man.|N|3; Meediiiiiic!!! 591=We have sustained casualties on deck.|N|3; Men down on the deck! 592=We have flooding, sir! 593=We have heavy flooding, sir! 594=We have critical flooding, sir! 597=Torpedo Impact! 598=Enemy is pinging us, sir! 599=Enemy ship engaging us, sir! 600=Enemy aircraft engaging us, sir! 602=We're under attack, sir! 603=Depth charges in the water, sir! 604=We're taking damage, sir! 606=Enemy ship is ramming us, sir! 607=Destroyer in attack run! 633=%s damaged, sir! 634=%s destroyed, sir! 650=Firing tube %d, sir! 662=All torpedoes expended, sir! 810=Ship spotted, sir! Bearing %03d! %s range! 811=Aircraft spotted, sir! Bearing %03d! %s range! 814=Radar contact, sir! Bearing %03d! %s range! 815=Sound contact, sir! %s %s %s Bearing %03d! %s range! 816=Radio Report Received! %s %s, %s, Course %s, Speed %d KTS! 817=Detecting radar signals! 4128=Clouds %s, Precipitations %s, Fog %s|Wind Speed %d meters per second, direction %3d. 4140=She's going down! 4141=She's going down! 4142=She's going down! 4180=Ship sunk!|%s|%s, %d tons 4181=Aircraft destroyed!|%s|%s These are the entries we thought were most relevant to the log book, not the subsequent "log book friendly" text. In some instances all we did was remove the ", sir!" text (dynamically, to cater for mod changes to the entries), in others we completely rewrote the entry to something that would make more contextual sense in a logbook. Some other entries we toyed with: 595=Hull damaged, sir! 601=We have been detected, sir! 707=%s repaired, sir! 708=%s ready, sir! 709=%s intact, sir! 1003=Rig for silent running 1004=Secure from silent running 1035=Crash dive 1042=Deploy decoys 4419=We're out of diesel fuel sir! 4421=Batteries empty, sir! 4423=We're out of oxygen! 4425=We're out of compressed air, sir! Battery recharged 100%, sir! Oxygen reserve 100%, sir! Compressed air reserve 100%, sir! 4520=Engaging target with deck gun! 4521=Engaging target with flak gun! 4811=Report sent! |
||||
![]() |
![]() |
![]() |
|
|