Log in

View Full Version : [WIP] SH3 Ship Recognition Manual Generator (pdf) v0.1


promitheas
09-24-24, 08:17 AM
Hello everyone, how are you all doing?

A couple days ago I was searching for a printable pdf version of the ship recognition manual and pretty much all threads on here that mentioned them lead to dead links, so I decided to make one myself.

I spent the night cobbling together a series of scripts that will allow anyone to generate their own manual, all they would need to do is update a couple directory paths in the script to point to their game directory.

Its very rough still, it includes both merchant and warships in a single file (I intend to separate them and essentially generate two pdf files at some point). Keep in mind I only spent a single night hacking it together.

I'll upload the resultant pdf here as well so you can take a look at it, but I'd also really really appreciate if those who have the technical know-how could look at the code, because I have some questions given I am not too familiar with the game files and the internals of SH3.

For example I would like to know how I can tell if a ship is a warship or merchant from its ClassName/Name, so that I can programmatically separate them into two different pdf files. I also intend to eventually have it sorted in some way, either by tonnage or type or whatever people find most useful.

Also, I of course appreciate all feedback you have if you decide to take a look at it. Just keep in mind, its still extremely basic - just the in-game manual page, with a line or two of text below it which includes the information, like mast height, tonnage, name, etc.

Here is the link to the pdf file: https://drive.google.com/file/d/1WxzA3grBIRlawJTXuS-X6CxQ6sM_nGWX/view?usp=sharing

And here is the link to the github repository: https://github.com/promitheas17j/Silent-Hunter-3-Ship-Recognition-Manual-Generator

Thanks in advance! :Kaleun_Cheers:

rik007
09-24-24, 10:25 AM
Nice!

I hope the Unittype helps with finding the class of a ship. See: https://www.subsim.com/radioroom/showpost.php?p=882686&postcount=2

Hope it helps.

promitheas
09-24-24, 06:16 PM
Nice!

I hope the Unittype helps with finding the class of a ship. See: https://www.subsim.com/radioroom/showpost.php?p=882686&postcount=2

Hope it helps.

That's certainly what I am looking for, it would be trivial to determine which file the ship needs to go to with this. However it seems some of my unit types are different. For example, my Icebergs have a unittype of 16 while in the post you linked they have a unittype of 105.

Looking at that did lead me to a file called EnglishNames.cfg though, and in there it has the folder name containing each units related files, mapped to its name. I think I could also do something with that. In any case I would need that anyway to write the type of the ship on the manual :)

JohnCarterOfMars
09-24-24, 07:22 PM
If you want the Unit Type that appears in the notepad from the UZO or Attack Periscope, you can find those values in data->roster->English.cfg.

The mod No_NotePad_ID blanks out these values to give a more realistic experience for the player.

Mejs
11-26-24, 03:17 PM
Hello, have anybody tried exporting the manual from SH4? Looked all over the place, couldnt find nothing. Hate clicking through the ships, I would like to print it and use manually.

Aktungbby
11-27-24, 05:31 PM
Mejs!:Kaleun_Salute: https://www.scribd.com/document/313630584/SilentHunter4-Manual