Important information: this site is currently scheduled to go offline indefinitely by end of the year.

[Req] .pac format for PSP (Magical Girl Lyrical Nanoha A's)

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
User avatar
szfzafa
advanced
Posts: 56
Joined: Sun Feb 27, 2011 11:46 am
Been thanked: 3 times

[Req] .pac format for PSP (Magical Girl Lyrical Nanoha A's)

Post by szfzafa »

The game is called Magical Girl Lyrical Nanoha A's Portable: The Battle of Aces.
Image

Here are some samples of .pac package, from ?:\PSP_GAME\USRDIR\
http://www.gamefront.com/files/20246953/pac_samples.rar

They contain .gim images/textures and .gmo 3d models. You can see filenames inside them.

Also, I found some bytes with certain meanings:
Image(click to enlarge)
But still cannot get the correct file context. Maybe it's using a LZS algorithm.

Anyone take a look into this format would be a great help.. thx~
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 664 times
Contact:

Re: [Req] .pac format for PSP (Magical Girl Lyrical Nanoha

Post by aluigi »

I don't know what compression it is or if it could be an lzss with different parameters (those I tested gave no good results) so the following is the script without decompression:

Code: Select all

# NO DECOMPRESSION
idstring "add"
goto 0x10
get FILES long
goto 0x20
for i = 0 < FILES
    get OFFSET long
    get SIZE long
    get DUMMY long
    get DUMMY long
    get NAME_OFF long
    get DUMMY long
    get DUMMY long
    get DUMMY long
    savepos TMP
    goto NAME_OFF
    get NAME string
    goto OFFSET
    getdstring SIGN 3
    if SIGN == "LZS"
        get DUMMY byte
        get DUMMY long
        get HEAD_SIZE long
        get DUMMY long
        get SIZE long
        get ZSIZE long
        math ZSIZE  -= HEAD_SIZE
        math OFFSET += HEAD_SIZE
        #clog NAME OFFSET ZSIZE SIZE
        log NAME OFFSET ZSIZE
    else
        log NAME OFFSET SIZE
    endif
    goto TMP
next i
so it's mainly for developers who want to find what is the algorithm
User avatar
szfzafa
advanced
Posts: 56
Joined: Sun Feb 27, 2011 11:46 am
Been thanked: 3 times

Re: [Req] .pac format for PSP (Magical Girl Lyrical Nanoha

Post by szfzafa »

aluigi wrote:I don't know what compression it is or if it could be an lzss with different parameters (those I tested gave no good results) so the following is the script without decompression:
......
so it's mainly for developers who want to find what is the algorithm
Seems hopeless.. :(
This game cannot be emulated yet; it's almost impossible to get assembly instructions. Then how can we know the algorithm? That's really hard.. :cry:

Correctly I even dunno if this compression is in byte-level or bit-level.. :scaredy:

Anyway, thx 4 your scripts! :keke:
User avatar
szfzafa
advanced
Posts: 56
Joined: Sun Feb 27, 2011 11:46 am
Been thanked: 3 times

Re: [Req] .pac format for PSP (Magical Girl Lyrical Nanoha

Post by szfzafa »

aluigi wrote:...
problem solved.
take a look at this: viewtopic.php?p=53922#p53922 :wink:

if u really care about the details, i'll translate the Chinese comments in the src into English. :oops: but i still misunderstand how unpac works..
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1422 times

Re: [Req] .pac format for PSP (Magical Girl Lyrical Nanoha

Post by chrrox »

post the tool?
User avatar
szfzafa
advanced
Posts: 56
Joined: Sun Feb 27, 2011 11:46 am
Been thanked: 3 times

Re: [Req] .pac format for PSP (Magical Girl Lyrical Nanoha

Post by szfzafa »

chrrox wrote:post the tool?
As i said in viewtopic.php?p=53907#p53907, leoheart, the translator, posted the tool in his fc2 blog (http://leoheart.blog43.fc2.com/?mode=edit&rno=2150) in a MF link.
don't forget to add "-z" parameter. usage: viewtopic.php?p=53926#p53926

btw, i saw u in gameresearch.5d6d, chrrox~ :P
kinlyki
advanced
Posts: 40
Joined: Sat Jun 20, 2015 5:36 pm

Re: [Req] .pac format for PSP (Magical Girl Lyrical Nanoha

Post by kinlyki »

Can someone reupload the unpac tool? The mediafire link is dead
Post Reply