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 06-19-13, 12:55 PM   #1
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,138
Downloads: 147
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-15 at 04:40 PM.
LGN1 is offline   Reply With Quote
Old 06-19-13, 01:30 PM   #2
machiavelli
Stowaway
 
Posts: n/a
Downloads:
Uploads:
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.
  Reply With Quote
Old 06-19-13, 01:57 PM   #3
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,138
Downloads: 147
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-13, 02:37 PM   #4
fitzcarraldo
Argentinian Skipper
 
fitzcarraldo's Avatar
 
Join Date: Jul 2009
Location: Somewhere between Buenos Aires and the Bungo Suido
Posts: 5,100
Downloads: 3208
Uploads: 0


Default

It seems very interesting...

Is it compatible with SH3 Commander?

Many thanks for the work!

Fitzcarraldo
__________________



My subject is War, and the pity of War. The Poetry is in the pity - Wilfred Owen.
fitzcarraldo is offline   Reply With Quote
Old 06-19-13, 03:03 PM   #5
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,138
Downloads: 147
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-13, 04:46 PM   #6
desertstriker
Eternal Patrol
 
Join Date: May 2012
Location: mod soup bar and grill
Posts: 1,756
Downloads: 998
Uploads: 0
Default

hmm interesting will give it a try.
desertstriker is offline   Reply With Quote
Old 06-19-13, 05:53 PM   #7
machiavelli
Stowaway
 
Posts: n/a
Downloads:
Uploads:
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.
  Reply With Quote
Old 06-19-13, 11:10 PM   #8
machiavelli
Stowaway
 
Posts: n/a
Downloads:
Uploads:
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?
  Reply With Quote
Old 06-20-13, 09:01 AM   #9
VONHARRIS
Konteradmiral
 
Join Date: Apr 2010
Location: Greece
Posts: 1,992
Downloads: 300
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


Last edited by VONHARRIS; 06-20-13 at 09:21 AM.
VONHARRIS is offline   Reply With Quote
Old 06-20-13, 01:22 PM   #10
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,138
Downloads: 147
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
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 06:52 AM.


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