I extracted CG files from "Eyuu Senki" PS Vita version, but they are in ".gxt" format.
Need help to convert them in png ( tried GXT Converter and Neptunia/Senran kagura gxt sripts for Noesis, no use).
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
PS Vita GXT to PNG conversion
-
- ultra-n00b
- Posts: 4
- Joined: Fri Aug 05, 2016 10:01 pm
- Has thanked: 2 times
PS Vita GXT to PNG conversion
You do not have the required permissions to view the files attached to this post.
-
- Moderator
- Posts: 2602
- Joined: Sun May 18, 2008 3:01 pm
- Has thanked: 57 times
- Been thanked: 1422 times
Re: PS Vita GXT to PNG conversion
elif texInfo[8] == 0x85:
#texFmt = noesis.NOESISTEX_DXT1
texFmt = noesis.NOESISTEX_RGBA32
texData = rapi.imageFromMortonOrder(texData, texInfo[9]>>1, texInfo[10]>>2, 4)
texData = rapi.imageDecodeDXT(texData, texInfo[9], texInfo[10], noesis.FOURCC_DXT1)
texData = rapi.imageDecodeRaw(texData, texInfo[9], texInfo[10], "r8g8b8a8")
-
- VIP member
- Posts: 1330
- Joined: Wed Nov 05, 2008 12:16 pm
- Has thanked: 2710 times
- Been thanked: 884 times
Re: PS Vita GXT to PNG conversion
where is the elusive Noesis script that this goes into?chrrox wrote:Code: Select all
elif texInfo[8] == 0x85: #texFmt = noesis.NOESISTEX_DXT1 texFmt = noesis.NOESISTEX_RGBA32 texData = rapi.imageFromMortonOrder(texData, texInfo[9]>>1, texInfo[10]>>2, 4) texData = rapi.imageDecodeDXT(texData, texInfo[9], texInfo[10], noesis.FOURCC_DXT1) texData = rapi.imageDecodeRaw(texData, texInfo[9], texInfo[10], "r8g8b8a8")
it doesn't look like it belongs in this one
viewtopic.php?p=119216#p119216
edit
okay since no one is linking their sources i made a new Noesis script with chrrox's info to open these samples
*updated Nov 18, 2016* don't think those dimensions are correct for that image in chrrox's post,
1024x1024 seems to support the image data better
You do not have the required permissions to view the files attached to this post.
Last edited by Acewell on Fri Nov 18, 2016 6:15 am, edited 4 times in total.
-
- ultra-n00b
- Posts: 4
- Joined: Fri Aug 05, 2016 10:01 pm
- Has thanked: 2 times
-
- Moderator
- Posts: 2602
- Joined: Sun May 18, 2008 3:01 pm
- Has thanked: 57 times
- Been thanked: 1422 times
Re: PS Vita GXT to PNG conversion
okay since no one is linking their sources i made a new Noesis script with chrrox's info to open these samples
viewtopic.php?f=16&t=14626
viewtopic.php?f=16&t=14626
-
- ultra-n00b
- Posts: 4
- Joined: Fri Aug 05, 2016 10:01 pm
- Has thanked: 2 times
-
- n00b
- Posts: 12
- Joined: Fri Sep 05, 2014 7:45 pm
- Location: Russia
- Been thanked: 6 times
Re: PS Vita GXT to PNG conversion
How did you extract resource from PS Vita? I know about henkaku, but I can't decrypt resources on game which I wanted.
-
- ultra-n00b
- Posts: 4
- Joined: Fri Aug 05, 2016 10:01 pm
- Has thanked: 2 times
Re: PS Vita GXT to PNG conversion
I don't own Vita personally so have little knowledge about actual process. Got ready to extraction game files by my source.pashok6798 wrote:How did you extract resource from PS Vita? I know about henkaku, but I can't decrypt resources on game which I wanted.
-
- Moderator
- Posts: 1007
- Joined: Mon Mar 23, 2009 2:57 am
- Has thanked: 44 times
- Been thanked: 505 times
Re: PS Vita GXT to PNG conversion
I wrote a GXT importer for Noesis about 2 years ago, for my own personal use, because Vita content wasn't really public at that point. Since people are leaking things all over the place, I figured I might as well enable it in the latest release, so it's in Noesis 4.2. It will handle these GXT's, as well as probably any other GXT on the planet, including correct PVRTC 1 & 2 decoding. Its PVRTC2 decoder is actually the only hardware-accurate one in existence that I'm aware of - the PvrTexTool and SCE libs both handle the palettized block mode incorrectly, which produces some subtle flaws that you won't see on hardware. So that's something to keep in mind if you've been using a makeshift solution by changing the block ordering in order to shovel these things into PvrTexTool or something.
So, enjoy. By the way, the issue with your script here was that tiled data on this hardware will always be padded to a power of 2, so it's correct to pad to the next power of 2 when not dealing with LINEAR/LINEAR_STRIDED data.
So, enjoy. By the way, the issue with your script here was that tiled data on this hardware will always be padded to a power of 2, so it's correct to pad to the next power of 2 when not dealing with LINEAR/LINEAR_STRIDED data.
-
- VIP member
- Posts: 1330
- Joined: Wed Nov 05, 2008 12:16 pm
- Has thanked: 2710 times
- Been thanked: 884 times
Re: PS Vita GXT to PNG conversion
okay i know Noesis has native support for gxt now but i wanted to fix the python script forMrAdults wrote:... tiled data on this hardware will always be padded to a power of 2, so it's correct to pad to the next power of 2 when not dealing with LINEAR/LINEAR_STRIDED data.
completion's sake. i updated my previous post with the updated script so it read the width and height
and will round them up to the next power of 2 so they look correct.
-
- mega-veteran
- Posts: 213
- Joined: Mon Oct 06, 2008 2:52 am
- Has thanked: 21 times
- Been thanked: 3 times
Re: PS Vita GXT to PNG conversion
Hey uhm, I'm having some trouble with a specific gxt file, and it seems to be recurring in a few. It throws the error 'an integer is required'?
https://www.dropbox.com/s/chvcm8200nzp0dm/GEAR.gxt?dl=0
https://www.dropbox.com/s/chvcm8200nzp0dm/GEAR.gxt?dl=0
-
- VIP member
- Posts: 1330
- Joined: Wed Nov 05, 2008 12:16 pm
- Has thanked: 2710 times
- Been thanked: 884 times
Re: PS Vita GXT to PNG conversion
it works fine with Noesis native plugin, don't use my script because it
was made to work only on the samples in the first post (type 0x85)
was made to work only on the samples in the first post (type 0x85)