Question about in-game text: lb and lb-ft

  • Thread starter Thread starter SirChampsPro
  • 10 comments
  • 295 views
Messages
6
Brazil
Brazil
Hi everyone, I recently started working on a way to permanently switch the units of measurement from imperial to metric. I know there is already a cheat that performs this conversion, but I want to do it natively, without relying on cheats. I managed to convert speed, weight, and torque, and the text changes worked for speed as well; however, I simply cannot find the "lb" and "lb-ft" text strings to change them to "kg" and "kgm." Does anyone have any idea how I might locate them?

I’ve attached some images showing what has been done so far. As you can see, cheats are disabled and the numbers have been converted; only the "lb" and "lb-ft" strings remain.
Screenshot_30.webp
Screenshot_31.webp
Screenshot_32.webp
 
They're in gzipped .txd files embedded in the overlay that uses them.
First of all, thanks for the reply. But I only found data-race.txd—where can I find these files? Do you happen to know which ones they are?
 
The data-race file is the one in the race overlay, the GT mode equivalent will be in the GT mode overlay.
 
The data-race file is the one in the race overlay, the GT mode equivalent will be in the GT mode overlay.
I tried using a Python script to extract the GT2.OVL file, but the .txd files it returned don't contain the strings "lb" and "lb-ft". Can you help me? I know there's a cheat that makes this switch, but I can't identify which file that information comes from.
 
The data-race file is the one in the race overlay, the GT mode equivalent will be in the GT mode overlay.

Now I understand what you meant, I managed to find them. Inside GT2.OVL, there are 6 compressed files, and the .txd files are specifically located within files 1, 2, and 4. Thanks a lot for the help.
 
I’ve attached some images showing what has been done so far. As you can see, cheats are disabled and the numbers have been converted; only the "lb" and "lb-ft" strings remain.
Screenshot_30.webp

Think Matthew Mcconaughey GIF by First We Feast


1789436420677.webp
 
Your help would be appreciated, man.
I have no particular knowledge of the things you're doing, but hp is an imperial unit. 1hp = 550lbft/s

If you're really converting to SI units, your kgm torque should be Nm (as kilogram-equivalent force is Newtons), and your hp should be kW.

"kgm" is only used to pair with that power unit that is expressed in metric measurements (of kgm/s) but which is an abomination; I will not speak its name :lol:
 
I have no particular knowledge of the things you're doing, but hp is an imperial unit. 1hp = 550lbft/s

If you're really converting to SI units, your kgm torque should be Nm (as kilogram-equivalent force is Newtons), and your hp should be kW.

"kgm" is only used to pair with that power unit that is expressed in metric measurements (of kgm/s) but which is an abomination; I will not speak its name :lol:
I didn't have any prior knowledge either when I started four days ago, and as I said, I don't see the need for changes—since the European version works that way and the cheat that applies this modification does it the same way. My goal was simply to eliminate the need for cheats, given that I’m going to burn the image to a disc to play on the console, and the way it is now works fine for me. If you're interested, all it took to get to this point was a bit of research on forums and using a decent AI to make the file edits for me.
 
If you're really converting to SI units, your kgm torque should be Nm (as kilogram-equivalent force is Newtons), and your hp should be kW.

They're just removing the US-localised unit conversions to fall back to the original Japanese-region units. The game natively uses ps and kgm for power and torque, so the existing cheats just skip the bits of code in the US version that convert the units for display. They're still metric units, just not SI units.
 
Back