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 02-19-15, 03:03 PM   #1
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,138
Downloads: 147
Uploads: 12
Default Poor Man Enigma Mod

Hi,

this is a small mod I did for myself some time ago:

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

Please note that this mod requires some work from the user to be useful (he/she has to create his/her own encrypted radio messages with the provided tool).

Here's the readme:


Poor Man Enigma Mod Readme

by Tycho & LGN1


Nov. 2015

This mod provides a 'poor man' Enigma in SH3. 'Poor man' because the encryption is very weak/poor. However, I consider this not to be very serious because the quality of the encryption hardly matters for a SH3 player.

How it works
------------

The mod consists of two parts: an in-game 'Enigma' (which is draggable) and an external tool to create encrypted radio messages for SH3.

The external tool:
The external tool is a packed perl script which takes all messages in a file named 'messages.txt' and creates a new file 'enc_messages.txt'. This file contains the encrypted messages. Empty spaces in a message are replaced by 'X' and the output is grouped in blocks of four letters. In order to get these messages into SH3, you have to copy the messages to your messages_de.txt or messages_en.txt depending on your language. In addition, the 'enc_messages.txt' also contains a list of numbers and letters. This list is required to decrypt the messages. You have to copy it to your de_menu.txt or en_menu.txt (again depending on your language) at the correct number position.
The script uses the replacement rule as given in the file "code.txt". You can change this if you want. If the script does not find the file "code.txt", it will generate a random code and give the replacement rule at the bottom of the file "enc_messages.txt".


The in-game 'Enigma':
The mod adds an 'Enigma' board to the radio message screen. If the mouse cursor is moved over a letter on the board, a different letter appears (see screenshots). To decrypt a message you just move the mouse cursor for every letter in the message over the corresponding letter on the board and write down the decrypted letter on a paper. A decrypted letter 'X' indicates either the letter 'X' or a space between words.
In addition to the Enigma machine, there is also a notepad which shows the decrypted letter when the encrypted letter is pressed (see screenshot). This notepad allows a quick decryption, however, it has also several drawbacks, see this thread: http://www.subsim.com/radioroom/showthread.php?t=221973 (Second post).

To illustrate the mod and the external tool, I have included a NYGM and GWX version with a single encrypted message. To test it, start the 'Navigation' mission in the academy. At 18:00 you should receive an encrypted message.


Installation for a generic mod setup
------------------------------------
Just activate the mod 'Enigma' and copy the [G37 ...] entries from "Menu_enigma.ini" over your [G37 ...] entries in "menu_1024_768.ini". In addition, you have to add the two fonts to the beginning of the file "menu_1024_768.ini" (with the correct numbering. You might have to adapt the font numbering to your installation and change the numbers in the G37 block). Finally, you have to add the following entries to your de_menu.txt or en_menu.txt file:

2260=K; =Q
2261=Q; =W
2262=F; =E
2263=O; =R
2264=D; =T
2265=E; =Z
2266=P; =U
2267=Y; =I
2268=X; =O
2269=V; =A
2270=T; =S
2271=S; =D
2272=N; =F
2273=M; =G
2274=U; =H
2275=I; =J
2276=B; =K
2277=W; =P
2278=Z; =Y
2279=H; =X
2280=L; =C
2281=R; =V
2282=C; =B
2283=J; =N
2284=G; =M
2285=A; =L



Some tips
---------
- Before you encrypt messages, remove special characters like ä, ö, ü,... and also replace numbers by their written version, e.g., 7--->seven,...

- If you want to use different decryption keys for different periods, you can use SH3 Commander to adapt the '*_menu.txt' according to the date.

- The mod is set up according to the encryption given in "External Enc Script/code.txt". You can change the encryption if you want, however, in this case you have to change several parts of the mod, see the files in "Tycho Readmes".

- Since decrypting messages can become quite tedious, I recommend to encrypt only important messages for the player. For my personal use I have extracted about 50-100 important messages (e.g., orders concerning historical events,...) which I have encrypted. Now whenever I receive an encrypted message, I'm excited because I know it's important for my SH3 world/campaign. In this case the decryption is really thrilling.


A big thank you to Johnfb who was so kind to give me permission to use the Enigma graphics from his mod (http://www.subsim.com/radioroom/down...o=file&id=4300).


Regards, LGN1

Use at own risk! Please post any feedback at Subsim.

Not for comercial use.

Last edited by LGN1; 11-02-15 at 04:58 PM.
LGN1 is offline   Reply With Quote
Old 02-19-15, 05:30 PM   #2
Tycho
Sonar Guy
 
Join Date: Oct 2009
Location: Sofia, Bg
Posts: 384
Downloads: 264
Uploads: 1


Default

Wow, I like it! Will look at it, this weekend.
But right now, I thought of this radio message screen from Johnfb: http://www.subsim.com/radioroom/down...o=file&id=4300
May be, is useful for your mod.
__________________
If you ride like lightning, you're gonna crash like thunder.
Tycho is offline   Reply With Quote
Old 02-20-15, 04:27 PM   #3
BigWalleye
Sea Lord
 
Join Date: Jul 2012
Location: On the Eye-lond, mon!
Posts: 1,987
Downloads: 465
Uploads: 0


Default

Thanks, LGN1! Eager to give this a try. You have added a number of mods that add a lot of immersion. (And that's important in a submarine game!) Seriously, nice work!
BigWalleye is offline   Reply With Quote
Old 02-21-15, 12:44 AM   #4
sublynx
Sea Lord
 
Join Date: Mar 2011
Location: In the conning tower of my VIIC scanning the sea through the periscope
Posts: 1,698
Downloads: 173
Uploads: 7
Default

Quote:
Originally Posted by BigWalleye View Post
Thanks, LGN1! Eager to give this a try. You have added a number of mods that add a lot of immersion. (And that's important in a submarine game!) Seriously, nice work!
Very true BigWalleye, and the same is true about Tycho with his analog clock, grid xxxx, and now up and coming DR 3 sliderule. I raise a glass to you, Sirs!

__________________
[SIGPIC][/SIGPIC]
NYGM+H.sie v16+Stiebler 4C+MaGui WS
sublynx is offline   Reply With Quote
Old 02-21-15, 04:13 AM   #5
areo16
Sonar Guy
 
Join Date: Oct 2013
Posts: 377
Downloads: 64
Uploads: 0
Default

Another great mod. Well done. Way to think of a creative way to use what we know about menu_1024_768.ini file!
areo16 is offline   Reply With Quote
Old 02-21-15, 05:13 AM   #6
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,138
Downloads: 147
Uploads: 12
Default

Thanks for the positive comments!

I'm glad you like it.

Cheers, LGN1
LGN1 is offline   Reply With Quote
Reply


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