SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SHIII Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=195)
-   -   [REL] SH3 Log Mod; Beta testers required. (https://www.subsim.com/radioroom/showthread.php?t=205223)

LGN1 06-19-13 12:55 PM

[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:

http://www.subsim.com/radioroom/downloads/pic2_XE2.jpg

http://www.subsim.com/radioroom/down...doubts_206.jpg

http://www.subsim.com/radioroom/down...doubts_Uqk.jpg


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!

machiavelli 06-19-13 01:30 PM

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.

LGN1 06-19-13 01:57 PM

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 :down: 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

fitzcarraldo 06-19-13 02:37 PM

It seems very interesting...

Is it compatible with SH3 Commander?

Many thanks for the work!

Fitzcarraldo

LGN1 06-19-13 03:03 PM

Quote:

Originally Posted by fitzcarraldo (Post 2073017)
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'.

desertstriker 06-19-13 04:46 PM

hmm interesting will give it a try.

machiavelli 06-19-13 05:53 PM

Quote:

Originally Posted by LGN1 (Post 2072977)
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 :down: 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 06-19-13 11:10 PM

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?

VONHARRIS 06-20-13 09:01 AM

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

http://i44.tinypic.com/2r7sg8z.jpg

fitzcarraldo 06-20-13 11:46 AM

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 :salute:

LGN1 06-20-13 01:09 PM

Quote:

Originally Posted by VONHARRIS (Post 2073296)
A. In my installation -GWX+SH3 Commander - after using your app I got no names in my Commander report

Quote:

Originally Posted by fitzcarraldo (Post 2073356)
+1: same for me. Without names in SH3COMM. I use the names actualization by SailorSteve.

Regards.

Fitzcarraldo :salute:

Thanks for the feedback :up:

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

Regards, LGN1

LGN1 06-20-13 01:22 PM

Quote:

Originally Posted by machiavelli (Post 2073208)
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 :D

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 :oops: Actually, I never left the port :rotfl2:).

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

VONHARRIS 06-20-13 01:37 PM

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.

machiavelli 06-20-13 02:16 PM

Quote:

Originally Posted by LGN1 (Post 2073397)
You can find this out from the script :D

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 :oops: Actually, I never left the port :rotfl2:).

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

Tupolev 06-20-13 06:43 PM

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

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

T

iambecomelife 06-21-13 04:54 PM

This is a very good idea. One of my complaints about most simulators is perfect intelligence - how you are always guaranteed 100% credit for every kill, even when there are no friendly witnesses.

It's a lot like the kill confirmation feature for "Over Flanders Fields", which is one of my favorite flight sims. :up:

Crazy idea - is there a way to make BDU more likely to accept claims early in the war? As late as 1940 American newspapers would publish lists of vessel sinkings, based on distress calls picked up by neutral radio operators. Presumably, German intelligence would have access to them, and could confirm that U-47 did, indeed, sink the tanker "Suzie Snowflake" on the date a claim was made for her. As the war went on, censorship became more strict and it became harder to confirm kills.

Karl Heinrich 06-22-13 11:09 AM

Hey LGN this looks absolutely outstanding, will definitely be giving a try ASAP. Have already been doing this unofficially but this is so much better.

LGN1 06-25-13 02:22 PM

Hi,

thanks for the feed-back. I'm glad that you like the mod and it seems to work. Has anyone already made some experience with over-claiming? Is BdU too strict?

I have just uploaded a new version. The main changes are:

1.) I have fixed a tiny bug concerning renown calculation if 0 BRT are claimed (only important for non-renown player)

2.) Following iambecomelife's suggestion I have implemented a new feature: Before the entry into the war of the US there is a chance that BdU knows your true tonnage from 'other sources'. In this case you get your true tonnage value (but the number of ships in your report is not changed).

As I have mentioned before, the 'BdU AI' can be easily changed. So if anyone has a suggestion, don't hesitate to ask.

3.) I have created a drop-down menu for the ship-type box (you can still also write what you like in this box). The entries in the box are taken from the EnglishNames.cfg/GermanNames.cfg file IN THE FOLDER WITH THE EXECUTABLE, i.e., you should copy your own EnglishNames.cfg/GermanNames.cfg from the SH3 ship folder to the folder with the executable (the two files contained in the download are from GWX). This guarantees that the ship type is compatible with SH3 Commander and the ship-name feature works properly.

http://www.subsim.com/radioroom/downloads/pic3_1f1.jpg

Regards, LGN1

fitzcarraldo 06-25-13 07:29 PM

Downloading and testing new version...

Many thanks for the great work and support. It seems this tool will be a must have...

Regards.

Fitzcarraldo :salute:

LGN1 07-01-13 01:47 PM

Any updates? Has anyone tested the mod? Is it working properly now with the ship-name feature?

Regards, LGN1


All times are GMT -5. The time now is 11:25 PM.

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.