PDA

View Full Version : In what file this text is located?


Niume
08-18-21, 02:41 AM
I am trying to find in what files this text is located. I want to translate it to english.

https://www.part.lt/img/b27d304e7023e283b56e15558da601cb848.png (https://www.part.lt/perziura/b27d304e7023e283b56e15558da601cb848.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
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
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
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
Now I need to somehow translate 380 pictures

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

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/uploads/2017/11/facepalm.gif

Mork_417
08-21-21, 03:45 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


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.

propbeanie
08-22-21, 09:41 AM
https://hdsmileys.com/wp-content/uploads/2017/11/facepalm.gif

much better, Jeff... lol - and like a bunch of stuff in FotRSU and other mods, blatantly copied off of you without proper credit. Thank you!... :har: :salute:

Jeff-Groves
08-22-21, 10:25 AM
Why
TextFlags=0x8
TextFlags=0xA

Try
TextFlags=0x4
TextFlags=0x6


I found 1475 occurrences of TextFlag= in the Stock menu_1024_768.ini
(010 is your Friend for stuff like that!)

Not a single one uses a Letter such as 0xA 0xB and so forth.
Could be an invalid statement.
:hmmm:

Mork_417
08-22-21, 03:18 PM
Valid point, and corrected. Thx!

I'm still unable to get the value of the length to pull from the ship.cfg and displayed. Only getting the zero value. I'm able to get the OTC mod to work in a stock version of SH4.

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

Using that Menu.ini file as a reference for the length sections, I still get no value from the KSDII version.

Could it be because I'm using a text editor, and re-launching the game to see test results instead of maybe using a menu editor of some type? :06:

Mork_417
08-22-21, 03:25 PM
Hey Niume, my attempts have not been successful on adding the length value to the recognition manual, but I have added the text field, made an adjustment to the speed value positioning, and edited some of the ship image files to get these... Could this be useful to your cause?

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

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

https://i.imgur.com/4p65Jen.jpg

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

Jeff-Groves
08-22-21, 03:35 PM
Maybe if I could see your menu_1024_768 I could try it.
Send me a DL link by PM.