Jump to content

Recommended Posts

Success! :D

PTD9LfB.png

What I did was use akerou's fvp toolset, compiled with qt, and decoded the original graph.bin. Then, I converted those .bmps I made to png (Photoshop's automation saves the day!) and set fvp to convert them back.

Curiously, when these new files were copied to the replacement graph folder as per Method #3, they defaulted to x0 y0. However, when adding them to another copy of the graph folder (converted using bin_archiver.py),

and after appending their correct numbers (ex. 0882_eyecatch_0705), I repacked this folder, again using bin_archiver. I copied this new bin over to my game directory, and lo and behold, the replacement files had their original placement!

Now, if there's a way to decode/encode the pos.dat file itself to allow editing the image coords to fix their alignment...

Link to post
Share on other sites

Success! :D

What I did was use akerou's fvp toolset, compiled with qt, and decoded the original graph.bin. Then, I converted those .bmps I made to png (Photoshop's automation saves the day!) and set fvp to convert them back.

Curiously, when these new files were copied to the replacement graph folder as per Method #3, they defaulted to x0 y0. However, when adding them to another copy of the graph folder (converted using bin_archiver.py),

and after appending their correct numbers (ex. 0882_eyecatch_0705), I repacked this folder, again using bin_archiver. I copied this new bin over to my game directory, and lo and behold, the replacement files had their original placement!

Now, if there's a way to decode/encode the pos.dat file itself to allow editing the image coords to fix their alignment...

Akerou's tool compresses the data in pos.dat using zlib -- a very odd choice.
But you can decompress it, edit the data with a hex editor, and recompress pos.dat again.

If you haven't tried it yet, see if nvsg_converter (from the same toolset as bin_archiver) does what you need.
That tool requires you to specify the X/Y positions on the command line, rather than stashing it in a file.

Running the images with method #3 shouldn't act any differently from repacking the bin file.

Here's a random image I made. It's using method #3 and nvsg_converter. Coordinates are set to the lower-left corner.

 

wFpXDmd.jpg

Link to post
Share on other sites

 

If you haven't tried it yet, see if nvsg_converter (from the same toolset as bin_archiver) does what you need.
That tool requires you to specify the X/Y positions on the command line, rather than stashing it in a file.

I tried using that before, but couldn't figure out some of the variables and what they did.

However, after a bit more digging, this is what I've inferred so far:

nvsg_converter.convert_from_png("inputpng","outputimage",imagecount,x-coord,y-coord)

Where only the first two arg inputs are strings, imagecount determines the nvsg format, and the x-and y-coords reference the location of the bottom-left pixel of the image in relation to the game window.

I don't know what values imagecount can take on, or what those values mean in relation to FVP, so a hint would be helpful here.

Right now I'm stuck on this error. Using Pillow 2.6.0 x64 (before toString() was deprecated).

Ed8qK5b.png

 

Link to post
Share on other sites

Well, looks like your suggestion worked brilliantly :)

nKbCBmm.gif?1

As for calling within python, I never did figure out how to call the specific function I wanted, but at least your hint will help me should I ever decide to return to that method.

But, all in all, thanks immensely for the help! :)

 

Link to post
Share on other sites

Does anyone have tools to extract/convert CPS files? CPS files are the ones used in KID games (Ever17, Never7, Remember11 for PS2 for example) and ports on PS2 like Cartagra. Seems PC version in Ever17 have a bit different CPS format, and I am too lazy to dig into PS2 debugging just to see a couple of images :) So if anyone know/have extractor - would be nice.

For example CPS file from Cartagra: http://www.mediafire.com/download/7l8xh6mub7ljc68/bg2_000.cps

 

//Never mind, but Cartagra contents were censored a lot... http://imgur.com/a/ldv5L

Edited by Scorp
Link to post
Share on other sites

1. You didn't include the decryption key within your links.

2. You can use AnimED to extract the files you want.

Which file would have a decryption key? Don't really know what I'm looking for there.

Thanks for the suggestion on AnimED, it worked fine for the scripts, however the .bmp files it pulled from the CGs look corrupted http://i.imgur.com/nItr1YE.png

Link to post
Share on other sites

1. You didn't include the decryption key within your links.

2. You can use AnimED to extract the files you want.

Which file would have a decryption key? Don't really know what I'm looking for there.

Thanks for the suggestion on AnimED, it worked fine for the scripts, however the .bmp files it pulled from the CGs look corrupted http://i.imgur.com/nItr1YE.png

When you're in Mega, click on "Get Link", change it from link to decryption key or link + decryption key.

Try giving Crass a go then.

Link to post
Share on other sites

1. You didn't include the decryption key within your links.

2. You can use AnimED to extract the files you want.

Which file would have a decryption key? Don't really know what I'm looking for there.

Thanks for the suggestion on AnimED, it worked fine for the scripts, however the .bmp files it pulled from the CGs look corrupted http://i.imgur.com/nItr1YE.png

When you're in Mega, click on "Get Link", change it from link to decryption key or link + decryption key.

Try giving Crass a go then.

Thanks so much for all your help Western!

Link to post
Share on other sites

@CryingWestern maybe you remember a tool which produce file list for XP3 containers along with FileHash values per file?

FileHash is this:

    // find 'aldr' sub-chunk
    tjs_uint ch_adlr_start = ch_file_start;
    tjs_uint ch_adlr_size = ch_file_size;
    if(!FindChunk(indexdata, cn_adlr, ch_adlr_start, ch_adlr_size))
            TVPThrowExceptionMessage(TVPReadError);

    // read 'aldr' sub-chunk
    item.FileHash = ReadI32FromMem(indexdata + ch_adlr_start);

Too lazy to write myself :) 

Link to post
Share on other sites

Hmm, what about .ypf files? Is there a way to extract them? Say cg.ypf.

Use This

Sorry I can't find information about converting TLG to PNG files...

You can use Extractdata

Anyone knows how can I extract files from .PAZ? http://i.imgur.com/OlN2LUJ.jpg

I don't know if this is the forum for this topic, btw. I'm noob here lol

You can use this

Edited by CryingWestern
Was in the middle of writing this and didn't see the post above.
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...