Lego Star Wars Skywalker Saga PC .TEXTURE and TSH files

Textures, recreate headers, conversions, algorithms and parsing of image files
Tythesly
Posts: 5
Joined: Sat Apr 09, 2022 6:10 am

Re: Lego Star Wars Skywalker Saga PC .TEXTURE and TSH files

Post by Tythesly »

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
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Lego Star Wars Skywalker Saga PC .TEXTURE and TSH files

Post by spiritovod »

@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.
Tythesly
Posts: 5
Joined: Sat Apr 09, 2022 6:10 am

Re: Lego Star Wars Skywalker Saga PC .TEXTURE and TSH files

Post by Tythesly »

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 :/
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Lego Star Wars Skywalker Saga PC .TEXTURE and TSH files

Post by spiritovod »

@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.
violaguy32
Posts: 3
Joined: Fri May 13, 2022 11:04 am

Re: Lego Star Wars Skywalker Saga PC .TEXTURE and TSH files

Post by violaguy32 »

I keep getting this error. Normally I would just move whatever file is causing it, but I cannot find it.:

offset filesize filename
--------------------------------------
000000000000042e 733 Project_Paddington\Project_Paddington_Images_Nut\engine\forcedDummyLightmapTex.dds
000000000000070b 824 project_paddington\project_paddington_images_nut\engine\forcedsmoothdummylightmaptex.dds
0000000000000a43 18446744073709548989 project_paddington\project_paddington_images_nut\engine\forcedaodummylightmaptex.dds

Error: impossible to write 0xfffffffffffff5bd bytes (total 0xfffffffffffff5bd)
Check your disk space or the script is wrong

Last script line before the error or that produced the error:
37 log NAME OFFSET SIZE

- OFFSET 0x0000000000000a43
- SIZE 0xfffffffffffff5bd
coverage file 0 100%! 10057 3451 . offset 0000000000000a43
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Lego Star Wars Skywalker Saga PC .TEXTURE and TSH files

Post by spiritovod »

@violaguy32: Provide that nxg_textures file you have problems with.
violaguy32
Posts: 3
Joined: Fri May 13, 2022 11:04 am

Re: Lego Star Wars Skywalker Saga PC .TEXTURE and TSH files

Post by violaguy32 »

spiritovod wrote:@violaguy32: Provide that nxg_textures file you have problems with.


I do not know which file is causing the error.
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Lego Star Wars Skywalker Saga PC .TEXTURE and TSH files

Post by spiritovod »

@violaguy32: It's written in the log right above the part you've provided (for some reason you stripped it).
violaguy32
Posts: 3
Joined: Fri May 13, 2022 11:04 am

Re: Lego Star Wars Skywalker Saga PC .TEXTURE and TSH files

Post by violaguy32 »

spiritovod wrote:@violaguy32: It's written in the log right above the part you've provided (for some reason you stripped it).


CONSTRUCTION\CAPITALSHIPS\DREADNOUGHT\DREADANTIAIR_TURRET\DREADANTIAIR_TURRET_DX11.NXG_TEXTURES

Sorry for the late response.
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Lego Star Wars Skywalker Saga PC .TEXTURE and TSH files

Post by spiritovod »

@violaguy32: But you still didn't provide the file which causing that error.
KL3W
Posts: 41
Joined: Sun Jan 02, 2022 1:19 pm

Re: Lego Star Wars Skywalker Saga PC .TEXTURE and TSH files

Post by KL3W »

Hey!

The script for .TEXTURE files works perfectly on TSS files. But, after looking in the files from TSS, I noticed some .NXG_TEXTURE files are also texture files, but this script(v4) doesn't work on these files. Could an updated version handle these files as well?

Thanks!
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Lego Star Wars Skywalker Saga PC .TEXTURE and TSH files

Post by spiritovod »

@KL3W: I've updated the script, it should now handle most NXG_TEXTURE files properly.
Many of them contain the same dummy textures though, so you need to either run quickbms with "-o" option or confirm overwriting for all existing files.
KL3W
Posts: 41
Joined: Sun Jan 02, 2022 1:19 pm

Re: Lego Star Wars Skywalker Saga PC .TEXTURE and TSH files

Post by KL3W »

spiritovod wrote:@KL3W: I've updated the script, it should now handle most NXG_TEXTURE files properly.
Many of them contain the same dummy textures though, so you need to either run quickbms with "-o" option or confirm overwriting for all existing files.


Thanks for this quick fix! Working fine for most of the files I've tested, except 4 (which contain textures since I can have these textures with x-ripper). Could you please add an update to the script so it's working for all .NXG_TEXTURE files? Thanks for the great work.
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Lego Star Wars Skywalker Saga PC .TEXTURE and TSH files

Post by spiritovod »

I've updated the script with better handing for NXG files. Though it's the last update, if something else doesn't work, it will not be fixed.
KL3W
Posts: 41
Joined: Sun Jan 02, 2022 1:19 pm

Re: Lego Star Wars Skywalker Saga PC .TEXTURE and TSH files

Post by KL3W »

spiritovod wrote:I've updated the script with better handing for NXG files. Though it's the last update, if something else doesn't work, it will not be fixed.


Thanks again for this quick fix!! I don't understand why this would be the last update since you are doing a great job, but I have to respect that. Thanks for the great work!