Lacrima Castle
HelpSearchMembersCalendar

Welcome Guest ( Log In | Register )

> RAI PAY ATTENTION TO THIS TOPIC, YU Sprites
Dr Strum
post Jul 18 2008, 09:39 PM
Post #1


Can Lead the Nation with a Microphone
***************

Group: Angels
Posts: 5425
Joined: 23-December 05
From: Seattle
Member No.: 1



Okay Rai, with no internet, I've been working on the sprites from YUPSP, or, in other words, the PTA files found on the YUPSP UMD. I have made some great progress, however, I cannot quite figure out how the sprites are assembled based on the PTAs. I have some sort of ordering data, but I think it might be more along the lines of animation, rather than actual frames. So, I shall give you what I have at the moment. If I don't continue on this later I'll probably be working on the compressed files until I get a response from you.

Research (read the top few paragraphs on PTA files, as well as the brief spec about halfway into the text)
Icon PTA
Icon TGA
Fry TGA
Fry PTA


Anyone else that wants to take a crack at it is welcome.


~~~
Писатель всегда будет в оппозиции к политике, пока сама политика будет в оппозиции к культуре.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
Dr Strum
post Jul 1 2011, 05:05 PM
Post #2


Can Lead the Nation with a Microphone
***************

Group: Angels
Posts: 5425
Joined: 23-December 05
From: Seattle
Member No.: 1



ALRIGHT I HAVE FIGURED IT OUT
I FIGURED OUT THE SPRITE TPL FILES IN GUNGNIR MORE OR LESS
In each TPL file there will be a special image which is not an image at all, but is actually the instructions on how to assemble the randomly assorted image data that the previous image contains. This is how it works. For this example I'm using wine.tpl, which produces three sprites of a wine glass. The assembly data is as follows:
CODE
08 00 00 00 03 00 00 00 20 00 00 00 F4 4F 01 02
2C 00 00 00 F0 1F 01 02 38 00 00 00 EB DF 00 01
00 00 00 00 06 20 00 04 06 00 06 20 01 00 0C 00
09 20 00 04 15 00 07 14 00 00 1C 00 10 18 65 00


Looks like a bunch of crap.
First we have a header of sorts:
CODE
Int:         Header Length
Int:         Images

Followed by that is Images * 8 bytes of data.
CODE
Int:         Offset (relative to header) of image construction code
Byte:        Dunno. Usually a negative value.
Short:       Dunno. Usually a negative value.
Byte:        Construction Commands

The construction commands are actually fairly simple. The offset mentioned above will point to Construction Commands * 6 bytes of data to read in.
CODE
Byte:        Horizontal Shift
Byte:        Vertical Shift (>>1)
Short:       Data start
Byte:        Data to read in
Byte:        Dunno. Usually 0x20


So yah. Let's parse wine.tpl based on this info:
CODE

Header Length: 0x8
Image Count: 0x3


I1 Offset: 0x20
I1 ?1: 0xF4
I1 ?2: 0x14F
I1 Commands: 0x2

I2 Offset: 0x2C
I2 ?1: 0xF0
I2 ?2: 0x11F
I2 Commands: 0x2

I3 Offset: 0x38
I3 ?1: 0xEB
I3 ?2: 0xDF
I3 Commands: 0x1


I1 Commands:
        I1C1 Horizontal Shift: 0x0
        I1C1 Vertical Shift: 0x0
        I1C1 Data Start: 0x0
        I1C1 Run length: 0x6
        I1C1 ???: 0x20
        I1C2 Horizontal Shift: 0x0
        I1C2 Vertical Shift: 0x4 (=0x8)
        I1C2 Data Start: 0x6
        I1C2 Run length: 0x6
        I1C2 ???: 0x20
        
I2 Commands:
        I1C1 Horizontal Shift: 0x1
        I1C1 Vertical Shift: 0x0
        I1C1 Data Start: 0xC
        I1C1 Run length: 0x9
        I1C1 ???: 0x20
        I1C2 Horizontal Shift: 0x0
        I1C2 Vertical Shift: 0x4 (=0x8)
        I1C2 Data Start: 0x15
        I1C2 Run length: 0x7
        I1C2 ???: 0x14  
        
I3 Command:
        I1C1 Horizontal Shift: 0x0
        I1C1 Vertical Shift: 0x0
        I1C1 Data Start: 0x1C
        I1C1 Run length: 0x10
        I1C1 ???: 0x18
    
Junk(?): 0x65, 0x00

When dumped as a straight image (scaled to 1000%), we get:
IPB Image
If you try assembling it per the information above, you'll end up with three wine bottle sprites, one standing vertically, one at about a thirty degree angle, and one lying horizontally.

Hopefully a little more exploration will reveal what the unknown fields do, but I have a feeling at least two of them are pointless counters. But first, time to try to generate an algorithm for this shiznass.


~~~
Писатель всегда будет в оппозиции к политике, пока сама политика будет в оппозиции к культуре.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic
Dr Sturm   RAI PAY ATTENTION TO THIS TOPIC   Jul 18 2008, 09:39 PM
Archeia   I looked at it over the net and what I got is that...   Jul 18 2008, 11:35 PM
Dr Sturm   I doubt it's a movie file format. Also, FUCK Y...   Jul 20 2008, 05:51 PM
Archeia   I found an AVI to PTA so it's possible :P Als...   Jul 21 2008, 03:25 AM
Dr Sturm   Sigh. No. It's not. Different types of PTA fi...   Jul 22 2008, 06:09 PM
sandpenguin   Sorry Sturm....wish could help it but it hell...   Jul 23 2008, 12:07 PM
Dr Sturm   Almost none of the files on the ROM have extension...   Jul 23 2008, 05:10 PM
Raijinili   1) HEY STURM I DIDN'T KNOW ABOUT THIS TOPIC NO...   Jul 24 2008, 05:49 AM
sandpenguin   Then, if some can't be read by normal one, sal...   Jul 24 2008, 12:43 PM
sandpenguin   I manage to read the tga. file but alas, there...   Aug 2 2008, 06:49 AM
Archeia   TGA files can be opened with Irfanview but oh well   Aug 4 2008, 08:03 AM
Dr Sturm   TGA files can be opened without third party softwa...   Aug 4 2008, 10:38 PM
Dr Sturm   OKAY RAI I WILL WALK YOU THROUGH THE FRY PTA FILE ...   Aug 7 2008, 05:42 PM
Dr Sturm   OKAY RAI, I FIGURED OUT PART OF THE FRAME ASSEMBLY...   Aug 12 2008, 05:05 PM
Dr Sturm   Alright RAI. Sort of related to this, so I'm g...   Dec 29 2010, 01:32 AM
Dr Sturm   So, essentially the file structure (sans whatever ...   Dec 30 2010, 04:06 AM
Dr Sturm   Progress was been being made. Kitten: -1967 sound...   Dec 31 2010, 01:08 AM
Raijinili   I don't even remember what PTX is.   Dec 31 2010, 08:33 AM
Dr Sturm   Image Data. They can be stand alone images, but mo...   Dec 31 2010, 03:57 PM
Raijinili   I should graduate first.   Dec 31 2010, 08:52 PM
Dr Sturm   Pssh fuck that. Graduation is for newbs.   Jan 1 2011, 12:49 AM
Dr Sturm   So, I have two mysteries regarding the PTG files b...   Jan 7 2011, 08:32 PM
Dr Sturm   RAI, WE HAVE BEEN FANTASTIC IDIOTS The files are c...   May 23 2011, 03:03 AM
Raijinili   But I thought you decompressed with this! RAI...   Aug 21 2011, 07:14 PM
Raijinili   k Kitten too?   May 25 2011, 01:38 AM
Dr Sturm   Yeah.   May 25 2011, 01:49 AM
Raijinili   dang. well, get on that and share me.   May 26 2011, 04:39 AM
Dr Sturm   Get on what? I already unzipped everything in GG, ...   May 27 2011, 12:25 PM
Raijinili   Give me a specific task and talk to me about trans...   May 27 2011, 05:42 PM
Dr Sturm   Let me take care of the TPL files and then I'l...   May 30 2011, 02:06 AM
Raijinili   WHY ARE WE TALKING ABOUT THIS IN PUBLIC   Jul 2 2011, 04:53 AM
Dr Sturm   Why not? Do we want to hide this?   Jul 2 2011, 06:26 PM
Raijinili   1. There's no reason to show it. It's not ...   Jul 3 2011, 05:41 AM
Dr Sturm   1. There's no reason to show it. The more plac...   Jul 3 2011, 05:52 PM
Raijinili   Well, that's cause your brain is in a million ...   Jul 4 2011, 05:13 AM
Archeia   I was reading it and I found it interesting. I ch...   Jul 3 2011, 07:29 AM
Raijinili   HEY STURM I LOOKED AT GLORIA AND I NEED A WAY TO S...   Aug 21 2011, 05:56 AM
Dr Sturm   What do you mean "unfiltered"?   Aug 21 2011, 01:38 PM
Raijinili   Either the steps to unencrypt with Python or the u...   Aug 21 2011, 05:55 PM
Dr Sturm   Well, the encryption method needs to be determined...   Aug 21 2011, 06:58 PM
Dr Sturm   Well, yeah, but not all of the files are compresse...   Aug 22 2011, 01:14 PM
Raijinili   Well, yeah, but not all of the files are compress...   Apr 14 2019, 07:42 PM
Dr Sturm   Someone just emailed me and I'm incapable of ...   Jun 23 2015, 12:07 AM
Deathless   Just in case, that "someone" was me. I...   Jun 24 2015, 04:31 AM
Dr Strum   External libraries is cheats   Apr 22 2019, 05:36 PM
Raijinili   It's an included library. Anyway... https://i...   Apr 24 2019, 04:00 AM
Raijinili   I consider this work pretty much complete. https:/...   Apr 25 2019, 03:24 AM
Dr Strum   Cool shit, thanks Rai I haven't looked at thes...   Apr 29 2019, 08:31 PM
Raijinili   https://i.imgur.com/aNPMtlk.gif I doubled the siz...   Apr 30 2019, 03:35 AM


Reply to this topicStart new topic
4 User(s) are reading this topic (4 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 9th May 2024 - 03:37 PM