Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Lego Star Wars Skywalker Saga PC .TEXTURE and TSH files

Featured Replies

  • Author
  • Localization

Puterboy1, posted Wed Apr 06, 2022 2:27 am (70896)


I would like to convert these to PNGs.
  • Author
  • Localization

spiritovod, posted Wed Apr 06, 2022 1:59 pm (70905)


Here is script for converting TEXTURE and NXG_TEXTURES files into respective dds. Currently only DXT1/5 and BC6/7 textures can be converted.

Update: Script is updated to support BC6 textures. Also some fixes are applied for better handling of already supported formats.
Update 2: Script is updated to support extraction of separate textures from NXG_TEXTURES files. You can modify the script according to included comments to strip full internal paths and leave filenames only or use original extension for textures (they are referenced as "nut", even though they're plain dds).
Update 3: Small fixes for particular texture types added.
Update 4: Script is updated to support ATI1 textures. Also script should now produce proper error for unsupported texture types.
Update 5: Script is updated for proper handling of some NXG_TEXTURES files (now with additional fix).

skywalker_saga_textures_v5.zip

  • Author
  • Localization

Puterboy1, posted Thu Apr 07, 2022 5:43 pm (70938)


More samples to study:
  • Author
  • Localization

spiritovod, posted Thu Apr 07, 2022 9:41 pm (70944)


Script is now updated. It should handle existing formats much better.

================================

Script is updated to support extraction from NXG_TEXTURES files.
  • Author
  • Localization

KL3W, posted Sun Apr 10, 2022 11:51 am (71006)


spiritovod wrote:
Script is now updated. It should handle existing formats much better.

================================

Script is updated to support extraction from NXG_TEXTURES files.


Hey!

So I tested your script, and it works for some textures, but some give weird results. I added a sample of files with what I got from the script. Maybe it can help.

Thank you for the work.
  • Author
  • Localization

spiritovod, posted Sun Apr 10, 2022 12:52 pm (71008)


@KL3W: I've updated the script, it now handle this type of textures as well.
  • Author
  • Localization

KL3W, posted Sun Apr 10, 2022 1:22 pm (71014)


spiritovod wrote:
@KL3W: I've updated the script, it now handle this type of textures as well.


Thanks it works for more files, but still some aren't working it seems. Is there a fix for these files too?
  • Author
  • Localization

spiritovod, posted Sun Apr 10, 2022 1:43 pm (71015)


@KL3W: One more update is rolled out. Also script should now produce proper error for unsupported types.
  • Author
  • Localization

KL3W, posted Sun Apr 10, 2022 1:51 pm (71018)


spiritovod wrote:
@KL3W: One more update is rolled out. Also script should now produce proper error for unsupported types.


Very nice work. I guess the goal would be to have a script working for all .TEXTURE and .TSH files, so I have found some files that don't work with the script for now. Can you do magic again?
  • Author
  • Localization

spiritovod, posted Sun Apr 10, 2022 2:22 pm (71019)


@KL3W: Script is updated with ATI1 textures support. DXT3 and ATI2 are still missing, but I'm not sure the game is using them at all, as well as any kind of uncompressed textures.
  • Author
  • Localization

KL3W, posted Sun Apr 10, 2022 2:27 pm (71020)


spiritovod wrote:
@KL3W: Script is updated with ATI1 textures support. DXT3 and ATI2 are still missing, but I'm not sure the game is using them at all, as well as any kind of uncompressed textures.


Thank you very much. So no support for the .TSH files I sent? I was looking into it with HxD and it looks like there are a lot of .png files in it. Is it really .png files that could be extracted or am I wrong?
  • Author
  • Localization

spiritovod, posted Sun Apr 10, 2022 2:44 pm (71021)


@KL3W: TSH are materials, there is no textures data in them. And textures are addressed in materials by their original names (either png or tga). Each TEXTURE file can be either standalone texture, in this case original name will be addressed in the texture itself, or part of material, in this case the material will be addressed instead of original name and respective material contains original names. I suppose the difference is that texture can be addressed directly by an object (like mesh) or only as part of respective material.
  • Author
  • Localization

KL3W, posted Sun Apr 10, 2022 4:51 pm (71028)


Alright thx for the explanation! Still, I have found some .TEXTURE files that can't be opened with the script...
Can you do something @spiritovod?
  • Author
  • Localization

spiritovod, posted Sun Apr 10, 2022 4:59 pm (71029)


@KL3W: Script is updated, it should now work with that texture type as well.
  • Author
  • Localization

KL3W, posted Sun Apr 10, 2022 5:13 pm (71031)


spiritovod wrote:
@KL3W: Script is updated, it should now work with that texture type as well.


Thx again! I have found others... Sorry if it feels like a never-ending process for you...
  • Author
  • Localization

spiritovod, posted Sun Apr 10, 2022 5:27 pm (71033)


@KL3W: Those textures are totally fine. I suppose your software doesn't support dds with BC6/7 data properly.
  • Author
  • Localization

KL3W, posted Sun Apr 10, 2022 5:32 pm (71034)


@spiritovod I have GIMP 2.10.30, isn't it supposed to open dds files?
  • Author
  • Localization

spiritovod, posted Sun Apr 10, 2022 6:33 pm (71036)


@KL3W: Apparently it doesn't support BC7 out of the box. I can only suggest to google for solutions or use other tools, like XnView MP or Paint.NET.
  • Author
  • Localization

Tythesly, posted Mon Apr 11, 2022 11:33 pm (71068)


Hey Spirit,

Any chance you can get that script to unpack all files in the dat files? Like how the usual TTgames.bms script does for all the other lego games?
  • Author
  • Localization

spiritovod, posted Tue Apr 12, 2022 12:15 am (71069)


@Tythesly: There is already fixed version of original aluigi's script in this topic.
  • Author
  • Localization

Tythesly, posted Tue Apr 12, 2022 12:30 am (71070)


spiritovod wrote:
@Tythesly: There is already fixed version of original aluigi's script in this topic.


I figured it was still broken because I cannot find any scripts or txt files.

viewtopic.php?f=9&t=16728#p70895

Others noticed the issue too
  • Author
  • Localization

spiritovod, posted Tue Apr 12, 2022 12:57 am (71073)


@Tythesly: It seems you misunderstood something, as original ttgames script can only process dat files (main archives) with supplementary hdr files for some games (which contains index). All extracted files should be processed by other scripts/tools/etc, if they exist.
  • Author
  • Localization

Tythesly, posted Tue Apr 12, 2022 1:15 am (71074)


spiritovod wrote:
@Tythesly: It seems you misunderstood something, as original ttgames script can only process dat files (main archives) with supplementary hdr files for some games (which contains index). All extracted files should be processed by other scripts/tools/etc, if they exist.


Well just as an example - Lego DC Super-Villains
https://prnt.sc/EdqWNBZOV7Lu

vs Lego Star Wars Skywalker Saga

https://prnt.sc/55rPPRanvReR

Almost every folder is empty but it has all the texture files. But no txt or scripts :/
  • Author
  • Localization

spiritovod, posted Tue Apr 12, 2022 1:28 am (71075)


@Tythesly: Those are different games, so files layout obviously may be different. I have no idea where texts are stored, but judging by this topic, they can be extracted with the mentioned script. You can actually ask where they stored in that topic and discuss the rest of localization related questions there.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.