True Crime: New York City .TAG Texture Files
-
- Posts: 13
- Joined: Mon Mar 14, 2022 7:12 pm
True Crime: New York City .TAG Texture Files
Hi, I was trying to edit True Crime: New York City textures and found that they can be partially opened in TextureFinder, so I suppose the file structure is not that complicated. Could someone take a look and help me if possible? Thanks in advance.
Here are some screenshots of the textures opened in TextureFinder:
https://imgur.com/a/OhGm26t
Sample file below.
Here are some screenshots of the textures opened in TextureFinder:
https://imgur.com/a/OhGm26t
Sample file below.
-
- Posts: 179
- Joined: Tue Jan 18, 2022 12:21 am
Re: True Crime: New York City .TAG Texture Files
have images dxt5 and raw mixed.
the ideal thing is separate them from file.
the ideal thing is separate them from file.
-
- Posts: 13
- Joined: Mon Mar 14, 2022 7:12 pm
Re: True Crime: New York City .TAG Texture Files
rabatini wrote:have images dxt5 and raw mixed.
the ideal thing is separate them from file.
Globals@0.png
Got it. How did you extract an image separately? Did you use TextureFinder too?
-
- Posts: 13
- Joined: Mon Mar 14, 2022 7:12 pm
Re: True Crime: New York City .TAG Texture Files
Bump.
@Allen can you take a look, please? thanks in advance
@Allen can you take a look, please? thanks in advance
-
- Posts: 719
- Joined: Sat Sep 28, 2019 7:00 pm
Re: True Crime: New York City .TAG Texture Files
Here is script for extracting separate files from .tag (which are texture collections). In subfolders there will be raw DXT1/5 textures, the rest are bitmap fonts/texts in most cases (in other formats like bgra5551).
-
- Posts: 156
- Joined: Tue Sep 01, 2015 9:44 am
Re: True Crime: New York City .TAG Texture Files
Noticed this thread.
Thanks rabatini and spiritovod for sharing the information.
Here is some of my analysis:
This is a Noesisy python script, just for viewing.
If you want to edit font textures, you will need to write custom tools, just for reference.
format:
4 = font 16bpp rgba4444
12 = dxt1
15 = dxt5
Some coordinate data is included in front of the font texture data. For example, X,Y coordinates, char width, char height.
TAG File Format 010 Editor Binary Template:
https://gist.github.com/leeao/dcde28347 ... 60f792744f
Thanks rabatini and spiritovod for sharing the information.
Here is some of my analysis:
This is a Noesisy python script, just for viewing.
If you want to edit font textures, you will need to write custom tools, just for reference.
format:
4 = font 16bpp rgba4444
12 = dxt1
15 = dxt5
Some coordinate data is included in front of the font texture data. For example, X,Y coordinates, char width, char height.
TAG File Format 010 Editor Binary Template:
https://gist.github.com/leeao/dcde28347 ... 60f792744f
-
- Posts: 179
- Joined: Tue Jan 18, 2022 12:21 am
Re: True Crime: New York City .TAG Texture Files
Allen wrote:Noticed this thread.
Thanks rabatini and spiritovod for sharing the information.
Here is some of my analysis:
This is a Noesisy python script, just for viewing.
If you want to edit font textures, you will need to write custom tools, just for reference.
format:
4 = font 16bpp rgba4444
12 = dxt1
15 = dxt5
Some coordinate data is included in front of the font texture data. For example, X,Y coordinates, char width, char height.
TAG File Format 010 Editor Binary Template:
https://gist.github.com/leeao/dcde28347 ... 60f792744f
Nice Allen.
He can use MummGGtool to edit and insert some textures, but it will have to put coord manually Width and height, bpp etc..
Better than nothing
download/file.php?id=12101
-
- Posts: 13
- Joined: Mon Mar 14, 2022 7:12 pm
Re: True Crime: New York City .TAG Texture Files
Thanks to all of you for your help! I was able to extract and edit the font texture, but I couldn't reimport it using MummGGtool. Can any of you guys explain to me how I can see the coordinate data, width, height, etc?
-
- Posts: 156
- Joined: Tue Sep 01, 2015 9:44 am
Re: True Crime: New York City .TAG Texture Files
WillWNTD wrote:Thanks to all of you for your help! I was able to extract and edit the font texture, but I couldn't reimport it using MummGGtool. Can any of you guys explain to me how I can see the coordinate data, width, height, etc?
I wrote a Noesis tool plugin specifically for fonts.
It allows you to edit font coordinates and replace textures.
The default texture is DDS 32-bit RGBA format.
To get the coordinates you can use the PhotoShop ruler tool.
The default X, Y is the upper left coordinate, and the height is stored at half the normal height.
Select the tag file and right-click, select the corresponding operation to extract or import.
The default is to add a new file with the extension _repack.tag.
Character encoding are arranged in order of size.
If a new code is added, if the code is not continuous, that is, the code difference is greater than 1, the corresponding intermediate code data needs to be filled.
The encoding is limited to a maximum of 255.
*EDIT*:
Important
Don't forget to check Noesis menu bar->Tools->Display Plugin Tools.
make sure both tex and tool .py script in plugins/python folder.
Last edited by Allen on Sun Jun 12, 2022 1:52 am, edited 3 times in total.
-
- Posts: 13
- Joined: Mon Mar 14, 2022 7:12 pm
Re: True Crime: New York City .TAG Texture Files
Allen wrote:WillWNTD wrote:Thanks to all of you for your help! I was able to extract and edit the font texture, but I couldn't reimport it using MummGGtool. Can any of you guys explain to me how I can see the coordinate data, width, height, etc?
I wrote a Noesis tool plugin specifically for fonts.
It allows you to edit font coordinates and replace textures.
The default texture is DDS 32-bit RGBA format.
To get the coordinates you can use the PhotoShop ruler tool.
The default X, Y is the upper left coordinate, and the height is stored at half the normal height.
put .py to plugins floder.
Select the tag file and right-click, select the corresponding operation to extract or import.
The default is to add a new file with the extension _repack.tag.
Character encoding are arranged in order of size.
If a new code is added, if the code is not continuous, that is, the code difference is greater than 1, the corresponding intermediate code data needs to be filled.
The encoding is limited to a maximum of 255.
Thanks Allen, but unfortunately it didn't work for me. I put the plugin in the noesisv4464\plugins\python folder and also reloaded the plugins through Noesis but it seems that it is not recognized. I tested it on two different computers and it didn't work, did I do something wrong? Your other plugin for viewing textures worked perfectly.
-
- Posts: 156
- Joined: Tue Sep 01, 2015 9:44 am
Re: True Crime: New York City .TAG Texture Files
WillWNTD wrote:
Thanks Allen, but unfortunately it didn't work for me. I put the plugin in the noesisv4464\plugins\python folder and also reloaded the plugins through Noesis but it seems that it is not recognized. I tested it on two different computers and it didn't work, did I do something wrong? Your other plugin for viewing textures worked perfectly.
Sorry, forgot to tell you:
you need to check Noesis menu bar->Tools->Display Plugin Tools.
make sure both tex and tool .py script in plugins/python folder.