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 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 08-18-21, 02:41 AM   #1
Niume
Sea Lord
 
Join Date: Sep 2015
Location: Lithuania
Posts: 1,633
Downloads: 499
Uploads: 2


Default [Modding] In what file this text is located?

I am trying to find in what files this text is located. I want to translate it to english.

__________________


GLORY TO UKRAINE!


[ENG] SH 4 KSD II Ace Edition

Last edited by Niume; 08-18-21 at 04:39 AM.
Niume is offline   Reply With Quote
Old 08-18-21, 07:09 AM   #2
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 9,810
Downloads: 444
Uploads: 2


Default

If I'm not mistaken, it's the menu.txt file:
2016=Length:
2017=Beam:
2018=Tonnage:
2019=Speed:
2020=RANGE
2021=Draft:
2022=Mast:
2024=Degree:
2026=Range:
2027=m;meters
2028=t;tones
2029=knots
You want to change line 2017 it looks like.
__________________

"...and bollocks to the naysayer/s" - Jimbuna
propbeanie is offline   Reply With Quote
Old 08-18-21, 08:09 AM   #3
Niume
Sea Lord
 
Join Date: Sep 2015
Location: Lithuania
Posts: 1,633
Downloads: 499
Uploads: 2


Default

It's somewhere else.
__________________


GLORY TO UKRAINE!


[ENG] SH 4 KSD II Ace Edition
Niume is offline   Reply With Quote
Old 08-18-21, 10:52 AM   #4
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 9,810
Downloads: 444
Uploads: 2


Default

They're probably different lines for the German side, but those are the ones for the US side... The menu_1024_768.ini calls them in section G25, such as "Text=2022" and other lines like that.
__________________

"...and bollocks to the naysayer/s" - Jimbuna
propbeanie is offline   Reply With Quote
Old 08-18-21, 10:57 AM   #5
fitzcarraldo
Argentinian Skipper
 
fitzcarraldo's Avatar
 
Join Date: Jul 2009
Location: Somewhere between Buenos Aires and the Bungo Suido
Posts: 5,169
Downloads: 3232
Uploads: 0


Default

Quote:
Originally Posted by Niume View Post
It's somewhere else.
Here?:

Data/Sea

I select the Bismarck in FOTRSU:

the NBB_Bismarck.cfg:

[Unit]
ClassName=BBBismarck
3DModelFileName=Data/Sea/NBB_Bismarck/NBB_Bismarck
UnitType=11
MaxSpeed=30.1
Length=275
Width=36.0
Mast=55.3
Draft=10.2

Displacement=45950
RenownAwarded=700
CrewComplement=300
SurvivalRate=90
SurvivalPercentage=20

[AirGroup 1]
StartDate=19380101
EndDate=19451231
Squadron1Class=FSAR196
Squadron1No=1


(I don´t try it).

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 08-18-21, 09:08 PM   #6
Mork_417
Lieutenant Commander
 
Mork_417's Avatar
 
Join Date: Nov 2002
Location: DB-15
Posts: 850
Downloads: 263
Uploads: 0


Default

My understanding is that the silhouette image has the length (Длина) included. Thus, that portion of the recognition manual page is an image, not a text field.

Example image file for that carrier.


You would need to alter every image file for the recognition manual to change it.


Hope that helps.
__________________
Heading to AM49.(U-553)
Mork_417 is offline   Reply With Quote
Old 08-18-21, 09:36 PM   #7
Mork_417
Lieutenant Commander
 
Mork_417's Avatar
 
Join Date: Nov 2002
Location: DB-15
Posts: 850
Downloads: 263
Uploads: 0


Default

What the manual page looks like with a different (test) silhouette image file.
Notice the absence of the "Length" text field.


__________________
Heading to AM49.(U-553)
Mork_417 is offline   Reply With Quote
Old 08-19-21, 11:25 AM   #8
Niume
Sea Lord
 
Join Date: Sep 2015
Location: Lithuania
Posts: 1,633
Downloads: 499
Uploads: 2


Default

Quote:
Originally Posted by Mork_417 View Post
My understanding is that the silhouette image has the length (Длина) included. Thus, that portion of the recognition manual page is an image, not a text field.

Example image file for that carrier.


You would need to alter every image file for the recognition manual to change it.


Hope that helps.
Thank you! Now I need to somehow translate 380 pictures
__________________


GLORY TO UKRAINE!


[ENG] SH 4 KSD II Ace Edition
Niume is offline   Reply With Quote
Old 08-19-21, 03:10 PM   #9
Mad Mardigan
Admiral
 
Mad Mardigan's Avatar
 
Join Date: Sep 2016
Location: Grand Rapids, Mi.
Posts: 2,327
Downloads: 491
Uploads: 0


radar

Quote:
Originally Posted by Niume View Post
Thank you! Now I need to somehow translate 380 pictures
Would not the ones for the recog manual used in FotRS-U not work...?

That is, am sure they would not object if you were to. If you asked them.

M. M.

__________________
Mad Mardigan is offline   Reply With Quote
Old 08-19-21, 05:14 PM   #10
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 9,810
Downloads: 444
Uploads: 2


Default

The recman cover comes from dds files in the menu folder. The page "background" comes from the same area. The ship "picture" is the sil file in the Sea folder. The statistics come from the Ships' cfg file. But the text for the "labels" come from the menu.txt file, and are pointed to by menu_1024_768.ini file.
__________________

"...and bollocks to the naysayer/s" - Jimbuna
propbeanie is offline   Reply With Quote
Old 08-19-21, 11:55 PM   #11
Mork_417
Lieutenant Commander
 
Mork_417's Avatar
 
Join Date: Nov 2002
Location: DB-15
Posts: 850
Downloads: 263
Uploads: 0


Default

Quote:
Originally Posted by Niume View Post
Now I need to somehow translate 380 pictures
Maybe, but there might be an easier way?

Quote:
Originally Posted by propbeanie View Post
The recman cover comes from dds files in the menu folder. The page "background" comes from the same area. The ship "picture" is the sil file in the Sea folder. The statistics come from the Ships' cfg file. But the text for the "labels" come from the menu.txt file, and are pointed to by menu_1024_768.ini file.
Right, that part I understand, and I have set most of that up this evening messing around...



However, the "Zero" in that screenshot says I'm still missing some configuration bit somewhere.

Also, I'm still ashamed that I have to use the offsets in the Zone statements to position things while counting pixels.
One day I'll figure out (and remember) how to properly use those statements.
__________________
Heading to AM49.(U-553)

Last edited by Mork_417; 08-20-21 at 12:03 AM.
Mork_417 is offline   Reply With Quote
Old 08-21-21, 12:56 PM   #12
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,399
Downloads: 131
Uploads: 0


Default

SH4 is missing this whole section in the menu_1024_768.ini
Below is from SH3

[G25 I36]
Name=Length val
Type=1029;Static text
ItemID=0x25030001
ParentID=0x25030000
Pos=57,2,85,16
Color=0xFE
Font=5
Text=955
TextFlags=0x6

[G25 I37]
Name=Length
Type=1029;Static text
ItemID=0x25030011
ParentID=0x25030000
Pos=16,2,85,16
Color=0xFE
Font=5
Text=2016
TextFlags=0x4
Jeff-Groves is offline   Reply With Quote
Old 08-21-21, 01:13 PM   #13
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 9,810
Downloads: 444
Uploads: 2


Default

"Doh!!!" Where is a face-plant smilie when you need one? I forgot about that Jeff, and that CapnScurvy was the one that put those sections back in the SH4 game with his Optical Targeting Correction mod... I am relatively certain the fields are in the KSDII mod also, though I am not on a computer with the mod on it to look for it... I would imagine that Niume can't find it due to the language.
__________________

"...and bollocks to the naysayer/s" - Jimbuna
propbeanie is offline   Reply With Quote
Old 08-21-21, 01:40 PM   #14
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,399
Downloads: 131
Uploads: 0


Default

Jeff-Groves is offline   Reply With Quote
Old 08-21-21, 03:45 PM   #15
Mork_417
Lieutenant Commander
 
Mork_417's Avatar
 
Join Date: Nov 2002
Location: DB-15
Posts: 850
Downloads: 263
Uploads: 0


Default

Quote:
Originally Posted by Jeff-Groves View Post
SH4 is missing this whole section in the menu_1024_768.ini
Below is from SH3

[G25 I36]
Name=Length val
Type=1029;Static text
ItemID=0x25030001
ParentID=0x25030000
Pos=57,2,85,16
Color=0xFE
Font=5
Text=955
TextFlags=0x6

[G25 I37]
Name=Length
Type=1029;Static text
ItemID=0x25030011
ParentID=0x25030000
Pos=16,2,85,16
Color=0xFE
Font=5
Text=2016
TextFlags=0x4

That's what I discovered, and so I tried to add it in with this below using Mast, Draft, and Speed sections as reference.

[G25 I53]
Name=Length val
Type=1029;Static text
ItemID=0x25070009
ParentID=0x25070000
Pos=55,-22,40,22
Zone= 98 142 43 22 0 1 0x25070019 1 -0.5 0x25070009 0 0.5 20 0
Color=0xFE
Font=19
Text=955
TextFlags=0x8

[G25 I54]
Name=Length
Type=1029;Static text
ItemID=0x25070019
ParentID=0x25070000
Pos=0,-22,50,22
Zone= 43 142 50 22 0 1 0x25070000 0 -1 0x25070019 0 1 -11 22
Color=0xFE
Font=19
Text=2016
TextFlags=0xA

Don't bash me too hard for all the mistakes I'm sure i made with this. It's a learning adventure.
__________________
Heading to AM49.(U-553)
Mork_417 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 07:00 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.