Thread: [REL] Poor Man Enigma Mod
View Single Post
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