SUBSIM Radio Room Forums


SUBSIM: The Web's #1 BBS for all submarine and 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 06-19-2013, 01:55 PM   #1
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,114
Downloads: 144
Uploads: 12
Default [REL] SH3 Log Mod; Beta testers required.

Hi,

I have created a new SH3 Log mod. Here's the link and the readme:

http://www.subsim.com/radioroom/down...o=file&id=4107

Edit: Version 1.0 corrects a bug and allows special letters like ä, ü, ö in names.

SH3 Log Tool Readme

Version 1.0

Written by LGN1, Feb. 2015

Hi,

have you ever wondered how your crew in SH3 can tell you that you have just sunken a ship although the ship is more than 10km away and you are heavily depth-charged? Probably not, because it's obviously completely unrealistic that your crew knows exactly which ships you have sunken, how large these were, of what kind they were,...

The aim of the present mod/app is to change this unrealistic aspect of SH3 by removing/hiding your successes as much as possible during a patrol. Now it's you (instead of the spy-sat log) who has to pay attention which ships sink, how large they are,... Now YOU must properly identify the targets, witness the sinking, keep a log, and...report to BdU after the patrol via the mod/app. BdU will then check your report...and decide what to believe. Here's an example:








How it works:
-------------
The mod removes/hides your results during a patrol as good as possible. In addition, the information is hidden in the menu screens, i.e., you cannot accidently see the results in a menu screen. During a patrol you must keep notes about your sinkings,... After a patrol you start the app and enter your data (see Pic1.jpg and Pic2.jpg). After submitting the data, your claimed results are checked and (internally) compared to the true results. Depending on the difference, BdU will accept or reject the claims.


Installation:
-------------
The app is a perl script converted to an executable. If you want you can open the executable (e.g., with 7zip) and see what the script does. You must copy the executable to the directory where SH3 stores the save-games/careers (usually ...\Documents\SH3\data\cfg). It should be in the same directory as, e.g., GameplaySettings.cfg, main.cfg, and the Careers folder. I recommend to send a link to your desktop to easily start/access the app.

To hide the information from your SH3 installation, you have to do the following (for stock GWX and NYGM the changes are included in a jsgme-ready mod):


1.) Remove command for accessing captain's log. The standard key is 'k' (players with enough self-discipline can skip this):

[Cmd65]
Name=Toggle_captain_log
Ctxt=1
;Key0=0x4B,,"K" <-- put a semicolon in front of this line


2.) Remove icons for sunken/destroyed units. Copy the files AirDestroyed.tga and ShipDestroyed.tga to ...\data\Menu\Gui\Units.


3.) Change the text entries 582,583(Screen when ending patrol); 4140,4141,4142(Crew message for sinking),
4173,4174,4175,4176(Status reports):

de_menu.txt:
582=Einsatz beendet|||||||Anfangsbesatzung:|Endbesatzung:
583=;%d|%d|%d|%d|%d|%d
4140=Folge festgelegtem Kurs! ;Feindliche Einheit zerstört
4141=Folge festgelegtem Kurs! ;Verbündete Einheit zerstört
4142=Folge festgelegtem Kurs! ;Neutrale Einheit zerstört
4173=Tanker versenkt. ;Versenkte Tanker: %d
4174=Frachter versenkt. ;Versenkte Frachter: %d
4175=Kriegsschiff(e) versenkt. ;Versenkte Kriegsschiffe: %d
4176=;Gesamttonnage: %d

en_menu.txt:
582=Mission ended|||||||Starting crew:|Ending crew:
583=;%d|%d|%d|%d|%d|%d
4140=Following plotted course!;She's going down!
4141=Following plotted course!;She's going down!
4142=Following plotted course!;She's going down!
4173=Tanker(s) sunk.;: %d
4174=Cargo ship(s) sunk.;: %d
4175=Warship(s) sunk.;: %d
4176=;Total tonnage: %d


4.) Adjust positions in menu.ini:

[G08 I2]
Name=Hist
Type=1040;Scroll text
ItemID=0x8000002
ParentID=0x8000000
;Pos=623,589,389,468
Pos=623,589,389,180

5.) The following two entries remove the renown value on the main campaign screen.
NYGM players can see on this screen their true tonnage value (probably only critical for first patrol).

[G04 I2]; (Not required for players using renown system, i.e., non-NYGM players)
Name=Layer
Type=1030;Static bmp
ItemID=0x4000009
ParentID=0x4000000
;Pos=57,270,233,270
Pos=1157,270,233,270

[G04 I3]; (Not required for players using renown system, i.e., non-NYGM players)
Name=Desc
Type=1029;Static text
ItemID=0x400000A
ParentID=0x4000000
;Pos=85,260,188,250
Pos=85,90,188,100

6.) Players who use the ship-name feature in SH3 Commander should open the file 'Ship names.cfg' (located in the cfg folder in their SH3 Commander installation) and use the following parameters:

[SETTINGS]
...
AddText=1

[TEXT]
AddAsNewLine=1

If only ship names should be added (and no cargo information and losses), set 'AddText=0'. In case of 'AddText=1' always choose 'AddAsNewLine=1'.

For the ship-name feature to work properly it is neccessary to use exactly the same name for the type as in the EnglishNames.cfg/GermanNames.cfg in the Sea folder of the SH3 installation. I recommend to put a copy of the EnglishNames.cfg/GermanNames.cfg into the same folder as the executable. The log executable will read this file and offer all the names in a drop-down menu (the included EnglishNames.cfg/GermanNames.cfg is from GWX).


**************************************
Some important notes:
---------------------

1) This script is probably not 100% foolproof. Unreasonable input parameters may lead to messed-up output.
It is not checked whether the input parameters make sense. I recommend to leave the backup-option always ticked.

2) Feel free to modify/improve the script as you wish. If you do so, please share it with others. The script is probably not very elegant, but straight-forward. If you have any question don't hesitate to ask.

3) Use at own risk! Please post any feedback here at Subsim:


Thanks to sublynx and to BigWalley for testing.


Cheers, LGN1

Not for comercial use!

Last edited by LGN1; 02-26-2015 at 04:40 PM.
LGN1 is offline   Reply With Quote
Old 06-19-2013, 02:30 PM   #2
machiavelli
Medic
 
Join Date: Aug 2011
Posts: 169
Downloads: 46
Uploads: 0
Default

ingenious. Does this effect the .clg files within the careers folder? Does it change how the sinkings are printed out in that file?

Could you please post an example of a .clg file after sinking a ship while using this mod? Thanks.
machiavelli is offline   Reply With Quote
Old 06-19-2013, 02:57 PM   #3
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,114
Downloads: 144
Uploads: 12
Default

Currently the idea is to use the script/app only after a patrol. Thus, the .clg files are not touched, only the Log_X.cfg files.

Without having access to the log during a patrol, it would be rather useless to edit the .clg file. One could think about having access to the log, but in this case one would have to change the script a bit and the log would only be updated after exiting the game, i.e., before exiting the game, the player could see a mixture of his entries (from previous sessions) and the true sinkings of the current session In addition, the player still had to keep a 'true/paper' log outside of SH3 (at least for the current session).

I think the current solution is better. But if players would like to use it during a patrol, I might adapt the script accordingly (two new options: submit to BdU / only update log and save-game path input required).

Just to make it clear: The idea currently is that the player has no in-game log during a patrol. He must make notes outside of SH3. After a patrol he 'submits' his records to the 'BdU' who checks the records and gives renown accordingly. The player can then see his notes in SH3 via: main career menu --> desk --> patrol history. There the full log with his comments can be seen (and a comparison of his claims and the confirmation of 'BdU').

Regards, LGN1
LGN1 is offline   Reply With Quote
Old 06-19-2013, 03:37 PM   #4
fitzcarraldo
Argentinischer Kaleun
 
fitzcarraldo's Avatar
 
Join Date: Jul 2009
Location: Buenos Aires, Argentina. Arrived in U-977 after 60 days below
Posts: 3,525
Downloads: 1630
Uploads: 0


Default

It seems very interesting...

Is it compatible with SH3 Commander?

Many thanks for the work!

Fitzcarraldo
fitzcarraldo is offline   Reply With Quote
Old 06-19-2013, 04:03 PM   #5
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,114
Downloads: 144
Uploads: 12
Default

Quote:
Originally Posted by fitzcarraldo View Post
It seems very interesting...

Is it compatible with SH3 Commander?

Many thanks for the work!

Fitzcarraldo
Yes, it is.

But you should first 'submit' the log and then use SH3 Commander log editor / update personal file,.... In other words, after a patrol, first use the mod and then SH3 Commander to update your career file,...

And also....

6.) Players who use the ship-name feature in SH3 Commander should open the file 'Ship names.cfg' (located in the cfg folder in their SH3 Commander installation) and use the following parameters:

[SETTINGS]
...
AddText=1

[TEXT]
AddAsNewLine=1

If only ship names should be added (and no cargo information and losses), set 'AddText=0'. In case of 'AddText=1' always choose 'AddAsNewLine=1'.
LGN1 is offline   Reply With Quote
Old 06-19-2013, 05:46 PM   #6
desertstriker
Eternal Patrol
 
Join Date: May 2012
Location: mod soup bar and grill
Posts: 1,779
Downloads: 998
Uploads: 0
Default

hmm interesting will give it a try.
desertstriker is offline   Reply With Quote
Old 06-19-2013, 06:53 PM   #7
machiavelli
Medic
 
Join Date: Aug 2011
Posts: 169
Downloads: 46
Uploads: 0
Default

Quote:
Originally Posted by LGN1 View Post
Currently the idea is to use the script/app only after a patrol. Thus, the .clg files are not touched, only the Log_X.cfg files.

Without having access to the log during a patrol, it would be rather useless to edit the .clg file. One could think about having access to the log, but in this case one would have to change the script a bit and the log would only be updated after exiting the game, i.e., before exiting the game, the player could see a mixture of his entries (from previous sessions) and the true sinkings of the current session In addition, the player still had to keep a 'true/paper' log outside of SH3 (at least for the current session).

I think the current solution is better. But if players would like to use it during a patrol, I might adapt the script accordingly (two new options: submit to BdU / only update log and save-game path input required).

Just to make it clear: The idea currently is that the player has no in-game log during a patrol. He must make notes outside of SH3. After a patrol he 'submits' his records to the 'BdU' who checks the records and gives renown accordingly. The player can then see his notes in SH3 via: main career menu --> desk --> patrol history. There the full log with his comments can be seen (and a comparison of his claims and the confirmation of 'BdU').

Regards, LGN1
Sounds good. So its only editing the .log files that are created after a ptrol ends and are what SH3 Commander reads from.
machiavelli is offline   Reply With Quote
Old 06-20-2013, 12:10 AM   #8
machiavelli
Medic
 
Join Date: Aug 2011
Posts: 169
Downloads: 46
Uploads: 0
Default

I have a question, what formula are you using to determine if BdU believes you or not?

If BdU doesn't believe you, and thinks your full of ****, then do you not get renown for your sinking?
machiavelli is offline   Reply With Quote
Old 06-20-2013, 10:01 AM   #9
VONHARRIS
Konteradmiral
 
Join Date: Apr 2010
Location: Greece
Posts: 2,084
Downloads: 276
Uploads: 0
Default

1. Nice thought LGN1
2. Test results.
A. In my installation -GWX+SH3 Commander - after using your app I got no names in my Commander report
B. There is no line on crew losses

__________________
Eichenlaub mit Schwertern und Brillanten zum Ritterkreuz des Eisernen Kreuz

Last edited by VONHARRIS; 06-20-2013 at 10:21 AM.
VONHARRIS is offline   Reply With Quote
Old 06-20-2013, 12:46 PM   #10
fitzcarraldo
Argentinischer Kaleun
 
fitzcarraldo's Avatar
 
Join Date: Jul 2009
Location: Buenos Aires, Argentina. Arrived in U-977 after 60 days below
Posts: 3,525
Downloads: 1630
Uploads: 0


Default

Quote:
1. Nice thought LGN1
2. Test results.
A. In my installation -GWX+SH3 Commander - after using your app I got no names in my Commander report
B. There is no line on crew losses
+1: same for me. Without names in SH3COMM. I use the names actualization by SailorSteve.

Regards.

Fitzcarraldo
fitzcarraldo is offline   Reply With Quote
Old 06-20-2013, 02:09 PM   #11
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,114
Downloads: 144
Uploads: 12
Default

Quote:
Originally Posted by VONHARRIS View Post
A. In my installation -GWX+SH3 Commander - after using your app I got no names in my Commander report
Quote:
Originally Posted by fitzcarraldo View Post
+1: same for me. Without names in SH3COMM. I use the names actualization by SailorSteve.

Regards.

Fitzcarraldo
Thanks for the feedback

I assume you have the option 'Use real ship names in patrol logs' ticked in SH Commander and have the following lines in your 'Ship names.cfg':

[SETTINGS]
RepeatWhenAllUsed=0
AddText=1

[TEXT]
AddAsNewLine=1
CargoTxt_en=Cargo:
.
.
.

In addition, I assume you have FIRST used the app and then used SH3 Commander to update your personal file,...

What might be the problem is that you did not use a type (first entry in the app) that is recognized by SH3 Commander. You should use exactly the same name as in your 'EnglishNames.cfg' in the sea folder of SH3 (or whatever language you are using). I think that SH3 Commander chooses the ship name based on this entry (in the standard SH3 log there is only this name as information, no class information). In your screenshot I can read 'Medium merchant 07'. In my 'EnglishNames.cfg' the entry is 'Medium Merchant 07' (capital M in merchant). I guess SH3 Commander makes a case-sensitive comparison and thus, does not recognize the name.

To test this you can restore the old original files (if you have the backup option ticked), remove the SH3 Commander personal file, and create the log again with the 'Medium Merchant 07' name.

It is a bit annoying that you have to use exactly the same name, but there is not much that I can do because it's how SH3 Commander works (Maybe I could make a dropdown menu with the entries from the 'EnglishNames.cfg', but then the app would need to know your SH3 directory path ).

Regards, LGN1
LGN1 is offline   Reply With Quote
Old 06-20-2013, 02:22 PM   #12
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,114
Downloads: 144
Uploads: 12
Default

Quote:
Originally Posted by machiavelli View Post
I have a question, what formula are you using to determine if BdU believes you or not?

If BdU doesn't believe you, and thinks your full of ****, then do you not get renown for your sinking?
You can find this out from the script

At the moment the equation is quite simple. If you claim less than what you actually sunk, BdU believes you (--> you get what you reported, i.e., less than what you really achieved). If you over-claim to a certain amount (I don't want to give the true number. You can find it out yourself), BdU also accepts your results (--> you get more than what you really achieved). If you over-claim even more you get less than what you actually achieved and if you completely exaggerate BdU does not believe you and you get 0 (see the screenshot above. I did not sink anything, but claimed to have sunk HMS Nelson Actually, I never left the port ).

This could be improved a lot, but I think it does the main job: it forces you to pay attention to what you sink and it creates some uncertainty and excitement at the end of a patrol.

Regards, LGN1
LGN1 is offline   Reply With Quote
Old 06-20-2013, 02:37 PM   #13
VONHARRIS
Konteradmiral
 
Join Date: Apr 2010
Location: Greece
Posts: 2,084
Downloads: 276
Uploads: 0
Default

Thank you LGN1.
It must have been the case sensitive issue as everything else was done by the book.
I will try again in my next patrol and I will post the results.
__________________
Eichenlaub mit Schwertern und Brillanten zum Ritterkreuz des Eisernen Kreuz
VONHARRIS is offline   Reply With Quote
Old 06-20-2013, 03:16 PM   #14
machiavelli
Medic
 
Join Date: Aug 2011
Posts: 169
Downloads: 46
Uploads: 0
Default

Quote:
Originally Posted by LGN1 View Post
You can find this out from the script

At the moment the equation is quite simple. If you claim less than what you actually sunk, BdU believes you (--> you get what you reported, i.e., less than what you really achieved). If you over-claim to a certain amount (I don't want to give the true number. You can find it out yourself), BdU also accepts your results (--> you get more than what you really achieved). If you over-claim even more you get less than what you actually achieved and if you completely exaggerate BdU does not believe you and you get 0 (see the screenshot above. I did not sink anything, but claimed to have sunk HMS Nelson Actually, I never left the port ).

This could be improved a lot, but I think it does the main job: it forces you to pay attention to what you sink and it creates some uncertainty and excitement at the end of a patrol.

Regards, LGN1
Fantastic. Now I understand how this works. Thanks for not sharing the exact equation either, as that would ruin the fun for everyone.
machiavelli is offline   Reply With Quote
Old 06-20-2013, 07:43 PM   #15
Tupolev
Hauptman
 
Tupolev's Avatar
 
Join Date: Mar 2013
Location: FL410
Posts: 175
Downloads: 75
Uploads: 0
Default

Fantastic! A new reason for me to restart a career!

Quite serious, by the way. I'm loving this idea.

T
Tupolev 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 11:35 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright © 1995- 2019 Subsim