Users browsing this thread: 1 Guest(s)
Ripping 2D-Adventure Game - 150$ Reward
#9
(05-31-2023, 04:23 AM)Hansel Wrote: How exactly you extracted the sprites? What was the process? Thank You!

I already uploaded the source code to my github repo. You can get it here:
https://github.com/rufaswan/Web2D_Games/

You'll only need "psxtools" folder under "tools/psxtools"

After that, get a PHP 7.0+ from its official site. You'll only need 3 files from the archive, "php.exe", "php7ts.dll", and "php.ini" (renamed from "php.ini-development"). My scripts doesn't need any PHP extensions.

https://windows.php.net/download/

NOTE: also opening the php.ini, looking up the word "memory_limit" than deleting 128Mb and writing something like 2048mb

Put all the files to a folder, like this (the .IRLST and .LRARC are from gunvolt, so put .TGR there instead):

[Image: setup.png]

After that, from command line, run

Code:
php.exe  psxtools/pc_tinytoon_tgr.php  HAG.TGR

This will properly extract the files with the correct file type. You will get 4 extensions
- .PAL are the 256 color palette
- .IMG are the compressed background or sprites
- .SND are the sound files
- .HOT are Hotspots (according to game engine)

You only need .PAL and .IMG files. Run this on the content of each folder to get all background and sprites:

Code:
php.exe  psxtools/pc_tinytoon_img2clut.php  *

The result .CLUT and .RGBA are raw image used for debugging. You can convert them into PNG by running:

Code:
php.exe  psxtools/img_clut2png.php  *.clut
php.exe  psxtools/img_clut2png.php  *.rgba

Lastly, you can examine the source code for errors, and use/adapt them if you need them in any other projects.

Good luck with your HD remaster project!
- Rufas
Reply
Thanked by:


Messages In This Thread
RE: Ripping 2D-Adventure Game - 150$ Reward - by rufaswan - 06-02-2023, 12:09 AM

Forum Jump: