[PSP] Star Wars: The Clone Wars – Republic Heroes .tex
-
- Posts: 1193
- Joined: Sun Aug 17, 2014 7:27 pm
[PSP] Star Wars: The Clone Wars – Republic Heroes .tex
Can somebody make a script or tool expory/import for these files?
-
- Posts: 706
- Joined: Fri Aug 08, 2014 1:06 am
Re: [PS3] Star Wars: The Clone Wars – Republic Heroes (*.tex)
for the PS3 sample i just modified my PC version Noesis python script.
*see this post for the all-in-one script*
viewtopic.php?p=56498#p56498
i may eventually combine the two scripts for convenience.
*see this post for the all-in-one script*
viewtopic.php?p=56498#p56498
i may eventually combine the two scripts for convenience.
Last edited by Acewell on Thu May 07, 2020 3:00 am, edited 1 time in total.
-
- Posts: 1193
- Joined: Sun Aug 17, 2014 7:27 pm
Re: [PSP] Star Wars: The Clone Wars – Republic Heroes .tex
Thanks! PSP hard format? Here XBOX .tex
How about three?Acewell wrote:i may eventually combine the two scripts for convenience.
-
- Posts: 706
- Joined: Fri Aug 08, 2014 1:06 am
Re: [PSP] Star Wars: The Clone Wars – Republic Heroes .tex
combined PC, PS3, X360 and PSP into same script for convenience.
*script updated May 6, 2020*
*script updated May 6, 2020*
Last edited by Acewell on Thu May 07, 2020 2:57 am, edited 3 times in total.
-
- Posts: 123
- Joined: Fri Oct 27, 2017 7:36 pm
Re: [PSP] Star Wars: The Clone Wars – Republic Heroes .tex
well. format x36 seems to be dxt5. i found this green stuff with lightmaps in the alpha. dunno about the psp stuff. i'm unfamiliar with this platform.
edit:
may the 4th be with you.
respond the 666th you shall not until revenge of the 5th.
edit:
Code: Select all
bs = NoeBitStream(data)
bs.seek(0x04)
imgWidth = bs.readUShort()
imgHeight = bs.readUShort()
bs.seek(0x10)
imgFmt = bs.readByte()
bs.seek(0x20)
if imgFmt == 0x00:
data = bs.readBytes(imgWidth*imgHeight*4)
data = rapi.imageUntwiddlePSP(data, imgWidth, imgHeight, 32)
texFmt = noesis.NOESISTEX_RGBA32
texList.append(NoeTexture(rapi.getInputName(), imgWidth, imgHeight, data, texFmt))
return 1
respond the 666th you shall not until revenge of the 5th.
-
- Posts: 706
- Joined: Fri Aug 08, 2014 1:06 am
Re: [PSP] Star Wars: The Clone Wars – Republic Heroes .tex
awesome thanks, now i can complete the scripts.
i was set with ATI2 because i thought 0x36 was meant
to be blue normal maps but i was wrong.
i will update the all-in-one script above.
the key for getting type 0x0 to untwiddle correctly was the 32 you used
there, i never seen that done before so now i know for future samples.
here is the Noesis python script for the PSP samples.
*see this post for the all-in-one script*
viewtopic.php?p=56498#p56498
i was set with ATI2 because i thought 0x36 was meant
to be blue normal maps but i was wrong.
i will update the all-in-one script above.
the key for getting type 0x0 to untwiddle correctly was the 32 you used
there, i never seen that done before so now i know for future samples.
here is the Noesis python script for the PSP samples.
*see this post for the all-in-one script*
viewtopic.php?p=56498#p56498
Last edited by Acewell on Thu May 07, 2020 2:59 am, edited 1 time in total.
-
- Posts: 123
- Joined: Fri Oct 27, 2017 7:36 pm
Re: [PSP] Star Wars: The Clone Wars – Republic Heroes .tex
you coulda just tried dxt5. it's the same block size as ati2. and i didn't how the untwiddle works. i just looked up the readme and figured the bits should be 32 since it was obviously rgba. all good.
-
- Posts: 706
- Joined: Fri Aug 08, 2014 1:06 am
Re: [PSP] Star Wars: The Clone Wars – Republic Heroes .tex
i combined the PSP platform into the all-in-one script here:
viewtopic.php?p=56498#p56498
now PC, PSP, X360 and PS3 are supported in there.
i would like to see more PS3 samples some time though just to
make sure there are no format changes since i only saw the one.
oh also the PSP magic is a common one among texture files and
may create conflict with other scripts looking for the same magic,
so you may have to move this script out of plugins folder if that happens.
viewtopic.php?p=56498#p56498
now PC, PSP, X360 and PS3 are supported in there.
i would like to see more PS3 samples some time though just to
make sure there are no format changes since i only saw the one.
oh also the PSP magic is a common one among texture files and
may create conflict with other scripts looking for the same magic,
so you may have to move this script out of plugins folder if that happens.
-
- Posts: 1193
- Joined: Sun Aug 17, 2014 7:27 pm
Re: [PSP] Star Wars: The Clone Wars – Republic Heroes .tex
Wow! Thanks a lot!