Users browsing this thread: 1 Guest(s)
Street Fighter: Duel images
#31
(03-09-2023, 03:46 AM)bymutou Wrote: Friend, I modified the BMS, and now I do n’t need to replace the first 16 bytes, and then use the ASTCTOPNG.BAT in the bag to convert the decoded ASTC file. Remember to put the three exe of ASTC in the BAT in the same directory in the same directory.

Thanks for the script edit however I think the bms is bugged, it does convert the png file, but when I run the bat file with 3 astc exes, it says ERROR: Unknown compressed input file type. I tried it with manual hex edit, the bat works, so might be the bms itself? Or is it just me having this issue?
Reply
Thanked by:
#32
(03-11-2023, 12:45 AM)Devola Wrote:
(03-09-2023, 03:46 AM)bymutou Wrote: Friend, I modified the BMS, and now I do n’t need to replace the first 16 bytes, and then use the ASTCTOPNG.BAT in the bag to convert the decoded ASTC file. Remember to put the three exe of ASTC in the BAT in the same directory in the same directory.

Thanks for the script edit however I think the bms is bugged, it does convert the png file, but when I run the bat file with 3 astc exes, it says ERROR: Unknown compressed input file type. I tried it with manual hex edit, the bat works, so might be the bms itself? Or is it just me having this issue?

Exe to identify the wrong problem. You can modify the ASTC in bms to lowercase, and then try to convert
   
Reply
Thanked by: Devola
#33
(03-10-2023, 11:09 PM)bymutou Wrote:
(03-10-2023, 09:04 PM)Hollow Wrote:
(03-10-2023, 08:40 PM)bymutou Wrote: https://en.esotericsoftware.com/spine-download You can use this software to split sprites,Although the trial version cannot export things, it can be split,Bms scripts also support jpg
Sorry, I should have specified.  The astc encoder tool doesn't support .jpg, the bat file you shared also doesn't support it.
For jpg files, just modify them according to the picture below
I'm afraid I don't understand how that works, sorry.  Could you try breaking it down step by step if you can?  Or, is it possible to modify the .bat file to make this easier?
Reply
Thanked by:
#34
(03-12-2023, 04:35 PM)Hollow Wrote:
(03-10-2023, 11:09 PM)bymutou Wrote:
(03-10-2023, 09:04 PM)Hollow Wrote: Sorry, I should have specified.  The astc encoder tool doesn't support .jpg, the bat file you shared also doesn't support it.
For jpg files, just modify them according to the picture below
I'm afraid I don't understand how that works, sorry.  Could you try breaking it down step by step if you can?  Or, is it possible to modify the .bat file to make this easier?

This is the modified bat file

.zip   AstcToPng.zip (Size: 257 bytes / Downloads: 72)
Reply
Thanked by: Hollow
#35
(03-11-2023, 02:49 AM)bymutou Wrote:
(03-11-2023, 12:45 AM)Devola Wrote:
(03-09-2023, 03:46 AM)bymutou Wrote: Friend, I modified the BMS, and now I do n’t need to replace the first 16 bytes, and then use the ASTCTOPNG.BAT in the bag to convert the decoded ASTC file. Remember to put the three exe of ASTC in the BAT in the same directory in the same directory.

Thanks for the script edit however I think the bms is bugged, it does convert the png file, but when I run the bat file with 3 astc exes, it says ERROR: Unknown compressed input file type. I tried it with manual hex edit, the bat works, so might be the bms itself? Or is it just me having this issue?

Exe to identify the wrong problem. You can modify the ASTC in bms to lowercase, and then try to convert

Thanks! That fixed the issue I had and works excellently!
Reply
Thanked by:
#36
Ok so, I figured out how to rip individual sprites.  Apparently the sheets used to store multiple sprites/images/textures in games like this are known as a "texture atlas".  If you have looked within the folders, you may have noticed some ATLAS files; they are used to configure the appearance of UI elements or widgets in a game, such as fonts, buttons, labels, and images.  They can be opened with Notepad. 

ATLAS files contain the position and size of images for the UI elements, which are packed in a .PNG file to decrease game loading time.  The ATLAS file is one of 3 files that make up a texture atlas.

   
   

Thanks to bymutou, I was introduced to a program called Spine, which has a feature called "texture unpacker".  It allows you to extract the individual images from a texture atlas, provided you have the corresponding atlas file.  The image file must also contain the same name as shown in the atlas file.  This will prove to be a bit of a chore, as the atlas files and the images connected to them in SF: Duel's directories are disorganized.  I was only able to find them by matching the file name with the character's likeness as well as the image dimensions.

It's still progress at the very least.
Reply
Thanked by:
#37
(03-13-2023, 12:49 AM)Hollow Wrote: Ok so, I figured out how to rip individual sprites.  Apparently the sheets used to store multiple sprites/images/textures in games like this are known as a "texture atlas".  If you have looked within the folders, you may have noticed some ATLAS files; they are used to configure the appearance of UI elements or widgets in a game, such as fonts, buttons, labels, and images.  They can be opened with Notepad. 

ATLAS files contain the position and size of images for the UI elements, which are packed in a .PNG file to decrease game loading time.  The ATLAS file is one of 3 files that make up a texture atlas.




Thanks to bymutou, I was introduced to a program called Spine, which has a feature called "texture unpacker".  It allows you to extract the individual images from a texture atlas, provided you have the corresponding atlas file.  The image file must also contain the same name as shown in the atlas file.  This will prove to be a bit of a chore, as the atlas files and the images connected to them in SF: Duel's directories are disorganized.  I was only able to find them by matching the file name with the character's likeness as well as the image dimensions.

It's still progress at the very least.
friend, I wrote a script that can help you reduce your workload slightly. Put atlas and png files and ps1 script together to run. After running, a name.bat file will be generated. After running, the image of atlas corresponding size will be renamed. It should be noted that the image of the same size needs to be distinguished by yourself. ps1 is a script of powershell. Right click to run it
   

.zip   AtlasRenamePng.zip (Size: 962 bytes / Downloads: 90)
Reply
Thanked by: Hollow


Forum Jump: