Posts: 2
Threads: 0
Joined: Mar 2023
(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?
Posts: 17
Threads: 4
Joined: Feb 2019
03-11-2023, 02:49 AM
(This post was last modified: 03-11-2023, 02:53 AM by bymutou.)
(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
Posts: 13
Threads: 0
Joined: Nov 2021
(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?
Posts: 17
Threads: 4
Joined: Feb 2019
(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
AstcToPng.zip (Size: 257 bytes / Downloads: 106)
Posts: 2
Threads: 0
Joined: Mar 2023
(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!
Posts: 13
Threads: 0
Joined: Nov 2021
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.
Posts: 17
Threads: 4
Joined: Feb 2019
03-13-2023, 08:02 AM
(This post was last modified: 03-13-2023, 08:17 AM by bymutou.)
(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
AtlasRenamePng.zip (Size: 962 bytes / Downloads: 122)
|