SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH4 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=219)
-   -   In what file this text is located? (https://www.subsim.com/radioroom/showthread.php?t=250310)

Niume 08-18-21 02:41 AM

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

https://www.part.lt/img/b27d304e7023...da601cb848.png

propbeanie 08-18-21 07:09 AM

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

Niume 08-18-21 08:09 AM

It's somewhere else.

propbeanie 08-18-21 10:52 AM

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.

fitzcarraldo 08-18-21 10:57 AM

Quote:

Originally Posted by Niume (Post 2763564)
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 :Kaleun_Salute:

Mork_417 08-18-21 09:08 PM

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.
https://i.imgur.com/jn01SPn.jpg

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


Hope that helps.

Mork_417 08-18-21 09:36 PM

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


https://i.imgur.com/FGcHXqW.jpg

Niume 08-19-21 11:25 AM

Quote:

Originally Posted by Mork_417 (Post 2763705)
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.
https://i.imgur.com/jn01SPn.jpg

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

Mad Mardigan 08-19-21 03:10 PM

Quote:

Originally Posted by Niume (Post 2763754)
Thank you! Now I need to somehow translate 380 pictures :Kaleun_Sick:

Would not the ones for the recog manual used in FotRS-U not work...? :hmmm:

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

M. M.

:Kaleun_Salute:

propbeanie 08-19-21 05:14 PM

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.

Mork_417 08-19-21 11:55 PM

Quote:

Originally Posted by Niume (Post 2763754)
Now I need to somehow translate 380 pictures

Maybe, but there might be an easier way? :hmmm:

Quote:

Originally Posted by propbeanie (Post 2763830)
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...

https://i.imgur.com/uGJGOfc.jpg

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

Jeff-Groves 08-21-21 12:56 PM

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

propbeanie 08-21-21 01:13 PM

"Doh!!!" :damn: 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.

Jeff-Groves 08-21-21 01:40 PM

https://hdsmileys.com/wp-content/upl...1/facepalm.gif

Mork_417 08-21-21 03:45 PM

Quote:

Originally Posted by Jeff-Groves (Post 2764112)
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.


All times are GMT -5. The time now is 05:42 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright Đ 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.