06-03-2021, 05:45 PM
(This post was last modified: 08-11-2021, 06:13 PM by rufaswan.
Edit Reason: renamed
)
An update: found the way to decode MULTI-PAL textures:
Also some other missing textures are found. Thanks @HellZero for reporting such errors.
So "quad_pc_gunvolt_IOBJ.php" from step 4 is now updated. You'll need to repeat the step and onwards for all the new files.
I heard you! I know windows cmd.exe has 8191 character limits, so you can't use wildcard *.rgba to loop everything. So I write a "tsr_cmdloop.php" to help you.
Here is the usage
NOTE : double-quote the command!
So to convert all RGBA to PNG, instead of
Now you can use that script to loop through them
This will recursively scan the current folder and every folder under it for RGBA file, and run clut2png.php to convert them.
Similarly you can use it to convert all .17 .7 files.
Hope it helps!
- Rufas
P.S. quad player is also on the github repo , under docs
https://github.com/rufaswan/Web2D_Games/...uad_player
Also some other missing textures are found. Thanks @HellZero for reporting such errors.
So "quad_pc_gunvolt_IOBJ.php" from step 4 is now updated. You'll need to repeat the step and onwards for all the new files.
Deep Weeb Wrote:(P.S.: For the love of God, tell me how to speed up the process of converting .17 files into .rgba and .rgba into .png) Cry
I heard you! I know windows cmd.exe has 8191 character limits, so you can't use wildcard *.rgba to loop everything. So I write a "tsr_cmdloop.php" to help you.
Here is the usage
Code:
php.exe psxtools/tsr_cmdloop.php EXTENSION "COMMAND"
So to convert all RGBA to PNG, instead of
Code:
php.exe psxtools/img_clut2png.php *.rgba
Now you can use that script to loop through them
Code:
php.exe psxtools/tsr_cmdloop.php rgba "php.exe psxtools/img_clut2png.php"
This will recursively scan the current folder and every folder under it for RGBA file, and run clut2png.php to convert them.
Similarly you can use it to convert all .17 .7 files.
Hope it helps!
- Rufas
P.S. quad player is also on the github repo , under docs
https://github.com/rufaswan/Web2D_Games/...uad_player