• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Programmers Only!! Need help in editing a Program

Joined
Jun 25, 2012
Messages
1,027 (0.24/day)
Location
Patna, Bihar, India, Asia, Earth, Terron System, M
System Name Oldtimer(Always Crunching)
Processor Intel P4 631 @ 3.2 GHz [Stock 3.0 GHz]
Motherboard Intel D945GCPE
Memory 512 MB x2 DDR2 (533MHZ and 366 MHZ)
Storage 160GB Sata1 7200rpm
Display(s) ViewSonic VA703m
Power Supply Normal 450W PSU
Software Windows 7 Ultimate 32bit
There is a Program Called Sprite Extractor which extracts MUGEN Char's Sprites Sheet but it is useless to char makers because it saves images to RGB/8bit color but we need images in 256 color so i am giving you guys a task can you make it to save Sprites in 256 colors.

Sprite Extractor:View attachment ASU.zip

This is a example of Sprite Sheet: gokupo.jpg

If need any more info then post below i will give more info.
 
Last edited:

FordGT90Concept

"I go fast!1!11!1!"
Joined
Oct 13, 2008
Messages
26,259 (4.65/day)
Location
IA, USA
System Name BY-2021
Processor AMD Ryzen 7 5800X (65w eco profile)
Motherboard MSI B550 Gaming Plus
Cooling Scythe Mugen (rev 5)
Memory 2 x Kingston HyperX DDR4-3200 32 GiB
Video Card(s) AMD Radeon RX 7900 XT
Storage Samsung 980 Pro, Seagate Exos X20 TB 7200 RPM
Display(s) Nixeus NX-EDG274K (3840x2160@144 DP) + Samsung SyncMaster 906BW (1440x900@60 HDMI-DVI)
Case Coolermaster HAF 932 w/ USB 3.0 5.25" bay + USB 3.2 (A+C) 3.5" bay
Audio Device(s) Realtek ALC1150, Micca OriGen+
Power Supply Enermax Platimax 850w
Mouse Nixeus REVEL-X
Keyboard Tesoro Excalibur
Software Windows 10 Home 64-bit
Benchmark Scores Faster than the tortoise; slower than the hare.
Attachments are invalid.
 
Joined
Jun 25, 2012
Messages
1,027 (0.24/day)
Location
Patna, Bihar, India, Asia, Earth, Terron System, M
System Name Oldtimer(Always Crunching)
Processor Intel P4 631 @ 3.2 GHz [Stock 3.0 GHz]
Motherboard Intel D945GCPE
Memory 512 MB x2 DDR2 (533MHZ and 366 MHZ)
Storage 160GB Sata1 7200rpm
Display(s) ViewSonic VA703m
Power Supply Normal 450W PSU
Software Windows 7 Ultimate 32bit
They are working fine for me
Any way i will upload them again
 

FordGT90Concept

"I go fast!1!11!1!"
Joined
Oct 13, 2008
Messages
26,259 (4.65/day)
Location
IA, USA
System Name BY-2021
Processor AMD Ryzen 7 5800X (65w eco profile)
Motherboard MSI B550 Gaming Plus
Cooling Scythe Mugen (rev 5)
Memory 2 x Kingston HyperX DDR4-3200 32 GiB
Video Card(s) AMD Radeon RX 7900 XT
Storage Samsung 980 Pro, Seagate Exos X20 TB 7200 RPM
Display(s) Nixeus NX-EDG274K (3840x2160@144 DP) + Samsung SyncMaster 906BW (1440x900@60 HDMI-DVI)
Case Coolermaster HAF 932 w/ USB 3.0 5.25" bay + USB 3.2 (A+C) 3.5" bay
Audio Device(s) Realtek ALC1150, Micca OriGen+
Power Supply Enermax Platimax 850w
Mouse Nixeus REVEL-X
Keyboard Tesoro Excalibur
Software Windows 10 Home 64-bit
Benchmark Scores Faster than the tortoise; slower than the hare.
:confused: Both your attachments are rather useless.


"RGB/8bit" = 24-bit?

Are the files JPEG and you want them converted to 8-bit (256 color) bitmap?
 

temp02

New Member
Joined
Mar 18, 2009
Messages
493 (0.09/day)
But you can only have 256 colors in 8-bit mode (eg: R:3 G:3 B:2).
Maybe the problem is in the image editor and not the extractor.
 
Joined
Aug 10, 2007
Messages
4,267 (0.70/day)
Location
Sanford, FL, USA
Processor Intel i5-6600
Motherboard ASRock H170M-ITX
Cooling Cooler Master Geminii S524
Memory G.Skill DDR4-2133 16GB (8GB x 2)
Video Card(s) Gigabyte R9-380X 4GB
Storage Samsung 950 EVO 250GB (mSATA)
Display(s) LG 29UM69G-B 2560x1080 IPS
Case Lian Li PC-Q25
Audio Device(s) Realtek ALC892
Power Supply Seasonic SS-460FL2
Mouse Logitech G700s
Keyboard Logitech G110
Software Windows 10 Pro
Unless Alfred Spritesheet Unpacker is open source, or there is some command line switch to change output, there's not much we could do.

However, http://www.imagemagick.org/ makes batch conversion quite easy.
 

FordGT90Concept

"I go fast!1!11!1!"
Joined
Oct 13, 2008
Messages
26,259 (4.65/day)
Location
IA, USA
System Name BY-2021
Processor AMD Ryzen 7 5800X (65w eco profile)
Motherboard MSI B550 Gaming Plus
Cooling Scythe Mugen (rev 5)
Memory 2 x Kingston HyperX DDR4-3200 32 GiB
Video Card(s) AMD Radeon RX 7900 XT
Storage Samsung 980 Pro, Seagate Exos X20 TB 7200 RPM
Display(s) Nixeus NX-EDG274K (3840x2160@144 DP) + Samsung SyncMaster 906BW (1440x900@60 HDMI-DVI)
Case Coolermaster HAF 932 w/ USB 3.0 5.25" bay + USB 3.2 (A+C) 3.5" bay
Audio Device(s) Realtek ALC1150, Micca OriGen+
Power Supply Enermax Platimax 850w
Mouse Nixeus REVEL-X
Keyboard Tesoro Excalibur
Software Windows 10 Home 64-bit
Benchmark Scores Faster than the tortoise; slower than the hare.
If I had the original sprite file I could maybe reverse engineer it (wouldn't be the first).
 

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
26,957 (3.71/day)
Processor Ryzen 7 5700X
Memory 48 GB
Video Card(s) RTX 4080
Storage 2x HDD RAID 1, 3x M.2 NVMe
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 10 64-bit
Better to just convert 24-bit to 8-bit files using some kind of batch program

+1 for imagemagick, we use it extensively at tpu
 

temp02

New Member
Joined
Mar 18, 2009
Messages
493 (0.09/day)
24 to 8-bit conversions would probably require some kind of "manual edit" afterwards to adjust the color palette or some sprites will look "weird", unless ImageWiz... I mean ImageMagick can automatically adjust the color palette for the closest/best result.
 
Joined
Jun 25, 2012
Messages
1,027 (0.24/day)
Location
Patna, Bihar, India, Asia, Earth, Terron System, M
System Name Oldtimer(Always Crunching)
Processor Intel P4 631 @ 3.2 GHz [Stock 3.0 GHz]
Motherboard Intel D945GCPE
Memory 512 MB x2 DDR2 (533MHZ and 366 MHZ)
Storage 160GB Sata1 7200rpm
Display(s) ViewSonic VA703m
Power Supply Normal 450W PSU
Software Windows 7 Ultimate 32bit
Guys you are not understanding what i mean, I have to extract the who sheet each animation seperate file there are 200+ of them so that is why i wanted that program to be edited it could turn our work of hrs into mins.

Well nevermind We will use the same old manual way.

Anyway if you want to see what we do with that program see this vid(skip the vid to 6:30).

 
Last edited by a moderator:

FordGT90Concept

"I go fast!1!11!1!"
Joined
Oct 13, 2008
Messages
26,259 (4.65/day)
Location
IA, USA
System Name BY-2021
Processor AMD Ryzen 7 5800X (65w eco profile)
Motherboard MSI B550 Gaming Plus
Cooling Scythe Mugen (rev 5)
Memory 2 x Kingston HyperX DDR4-3200 32 GiB
Video Card(s) AMD Radeon RX 7900 XT
Storage Samsung 980 Pro, Seagate Exos X20 TB 7200 RPM
Display(s) Nixeus NX-EDG274K (3840x2160@144 DP) + Samsung SyncMaster 906BW (1440x900@60 HDMI-DVI)
Case Coolermaster HAF 932 w/ USB 3.0 5.25" bay + USB 3.2 (A+C) 3.5" bay
Audio Device(s) Realtek ALC1150, Micca OriGen+
Power Supply Enermax Platimax 850w
Mouse Nixeus REVEL-X
Keyboard Tesoro Excalibur
Software Windows 10 Home 64-bit
Benchmark Scores Faster than the tortoise; slower than the hare.
a) Does Alfred not work? Once you got separate images, you can use programs to batch convert from RGBA 32-bit to 256 color.

b) What is the source for these sprite sheets? If it was a game, there is likely SPZ or some companion file that details where every sprite is and what it does.

c) What is the end goal here? 256 color, yes, but what file format? GIF, bitmap, PNG?
 
Joined
Aug 10, 2007
Messages
4,267 (0.70/day)
Location
Sanford, FL, USA
Processor Intel i5-6600
Motherboard ASRock H170M-ITX
Cooling Cooler Master Geminii S524
Memory G.Skill DDR4-2133 16GB (8GB x 2)
Video Card(s) Gigabyte R9-380X 4GB
Storage Samsung 950 EVO 250GB (mSATA)
Display(s) LG 29UM69G-B 2560x1080 IPS
Case Lian Li PC-Q25
Audio Device(s) Realtek ALC892
Power Supply Seasonic SS-460FL2
Mouse Logitech G700s
Keyboard Logitech G110
Software Windows 10 Pro
Latest version: www.alferdspritesheetunpacker.forkandbeard.co.uk/

Added integration with NConvert command line image file conversion utility to allow ASU to support 400+ file formats, both imported sprite sheets and exported frames.

Can specify Nconvert command-line options for the output:

View attachment 48194

If this is not what you're after, you'll have to explain it in more detail. Otherwise, you can go back to the "manual" life. If each sheet takes you hours, then spending an hour to learn how to automated and simplify the process will save you greatly in the long run.
 
Joined
Jun 25, 2012
Messages
1,027 (0.24/day)
Location
Patna, Bihar, India, Asia, Earth, Terron System, M
System Name Oldtimer(Always Crunching)
Processor Intel P4 631 @ 3.2 GHz [Stock 3.0 GHz]
Motherboard Intel D945GCPE
Memory 512 MB x2 DDR2 (533MHZ and 366 MHZ)
Storage 160GB Sata1 7200rpm
Display(s) ViewSonic VA703m
Power Supply Normal 450W PSU
Software Windows 7 Ultimate 32bit
All you need to do is make it to save every extraction in 256 color .png format.

thats all
 

FordGT90Concept

"I go fast!1!11!1!"
Joined
Oct 13, 2008
Messages
26,259 (4.65/day)
Location
IA, USA
System Name BY-2021
Processor AMD Ryzen 7 5800X (65w eco profile)
Motherboard MSI B550 Gaming Plus
Cooling Scythe Mugen (rev 5)
Memory 2 x Kingston HyperX DDR4-3200 32 GiB
Video Card(s) AMD Radeon RX 7900 XT
Storage Samsung 980 Pro, Seagate Exos X20 TB 7200 RPM
Display(s) Nixeus NX-EDG274K (3840x2160@144 DP) + Samsung SyncMaster 906BW (1440x900@60 HDMI-DVI)
Case Coolermaster HAF 932 w/ USB 3.0 5.25" bay + USB 3.2 (A+C) 3.5" bay
Audio Device(s) Realtek ALC1150, Micca OriGen+
Power Supply Enermax Platimax 850w
Mouse Nixeus REVEL-X
Keyboard Tesoro Excalibur
Software Windows 10 Home 64-bit
Benchmark Scores Faster than the tortoise; slower than the hare.
I can write a command line application that can convert PNG to 8 bits per pixel index PNG. Is that all you need?

You only answered c of my questions. :p
 
Joined
Aug 10, 2007
Messages
4,267 (0.70/day)
Location
Sanford, FL, USA
Processor Intel i5-6600
Motherboard ASRock H170M-ITX
Cooling Cooler Master Geminii S524
Memory G.Skill DDR4-2133 16GB (8GB x 2)
Video Card(s) Gigabyte R9-380X 4GB
Storage Samsung 950 EVO 250GB (mSATA)
Display(s) LG 29UM69G-B 2560x1080 IPS
Case Lian Li PC-Q25
Audio Device(s) Realtek ALC892
Power Supply Seasonic SS-460FL2
Mouse Logitech G700s
Keyboard Logitech G110
Software Windows 10 Pro
All you need to do is make it to save every extraction in 256 color .png format.

thats all

Excellent. You'll just need to use the latest version of ASU I linked to earlier, and the command line options in my screenshot. If there are any palette issues, let us know.
 
Joined
Jun 25, 2012
Messages
1,027 (0.24/day)
Location
Patna, Bihar, India, Asia, Earth, Terron System, M
System Name Oldtimer(Always Crunching)
Processor Intel P4 631 @ 3.2 GHz [Stock 3.0 GHz]
Motherboard Intel D945GCPE
Memory 512 MB x2 DDR2 (533MHZ and 366 MHZ)
Storage 160GB Sata1 7200rpm
Display(s) ViewSonic VA703m
Power Supply Normal 450W PSU
Software Windows 7 Ultimate 32bit
Joined
Dec 2, 2009
Messages
3,351 (0.64/day)
System Name Dark Stealth
Processor Ryzen 5 5600x
Motherboard Gigabyte B450M Gaming rev 1.0
Cooling Snowman, arctic p12 x2 fans
Memory 16x2 DDR4 Corsair Dominator Pro
Video Card(s) 3080 10gb
Storage 2TB NVME PCIE 4.0 Crucial P3 Plus, 1TB Crucial MX500 SSD, 4TB WD RED HDD
Display(s) HP Omen 34c (34" monitor 3440x1440 165Hz VA panel)
Case Zalman S2
Power Supply Corsair 750TX
Mouse Logitech pro superlight, mx mouse s3, Razer Basiliskx with battery
Keyboard Custom mechanical keyboard tm680
Software Windows 11
Benchmark Scores 70-80 fps 3440x1440 on cyberpunk 2077 max settings
First of all, why would you want to extract MUGEN Char's Sprites Sheet?
Also, that has nothing to do with programmer's. It is more for animators and character designers task.
 
Joined
Jun 25, 2012
Messages
1,027 (0.24/day)
Location
Patna, Bihar, India, Asia, Earth, Terron System, M
System Name Oldtimer(Always Crunching)
Processor Intel P4 631 @ 3.2 GHz [Stock 3.0 GHz]
Motherboard Intel D945GCPE
Memory 512 MB x2 DDR2 (533MHZ and 366 MHZ)
Storage 160GB Sata1 7200rpm
Display(s) ViewSonic VA703m
Power Supply Normal 450W PSU
Software Windows 7 Ultimate 32bit
First of all, why would you want to extract MUGEN Char's Sprites Sheet?
Also, that has nothing to do with programmer's. It is more for animators and character designers task.

I am a MUGEN Character and stages maker lol, so that is why i wanted that.

I wrote Programmers only because changing something in a program only a program can do, not the CHAR makers.

[offtopic]btw, i have created a new char if any MUGEN lover is here on TPU can check that(PM me i will send you the link).[/offtopic]
 

FordGT90Concept

"I go fast!1!11!1!"
Joined
Oct 13, 2008
Messages
26,259 (4.65/day)
Location
IA, USA
System Name BY-2021
Processor AMD Ryzen 7 5800X (65w eco profile)
Motherboard MSI B550 Gaming Plus
Cooling Scythe Mugen (rev 5)
Memory 2 x Kingston HyperX DDR4-3200 32 GiB
Video Card(s) AMD Radeon RX 7900 XT
Storage Samsung 980 Pro, Seagate Exos X20 TB 7200 RPM
Display(s) Nixeus NX-EDG274K (3840x2160@144 DP) + Samsung SyncMaster 906BW (1440x900@60 HDMI-DVI)
Case Coolermaster HAF 932 w/ USB 3.0 5.25" bay + USB 3.2 (A+C) 3.5" bay
Audio Device(s) Realtek ALC1150, Micca OriGen+
Power Supply Enermax Platimax 850w
Mouse Nixeus REVEL-X
Keyboard Tesoro Excalibur
Software Windows 10 Home 64-bit
Benchmark Scores Faster than the tortoise; slower than the hare.
Yes that is what i need.
Drag and drop the PNG files you want converted on to it and it will REPLACE the file with 8bpp version.

I highly recommend backing up the images before trying this.
 
Last edited:
Joined
Jun 25, 2012
Messages
1,027 (0.24/day)
Location
Patna, Bihar, India, Asia, Earth, Terron System, M
System Name Oldtimer(Always Crunching)
Processor Intel P4 631 @ 3.2 GHz [Stock 3.0 GHz]
Motherboard Intel D945GCPE
Memory 512 MB x2 DDR2 (533MHZ and 366 MHZ)
Storage 160GB Sata1 7200rpm
Display(s) ViewSonic VA703m
Power Supply Normal 450W PSU
Software Windows 7 Ultimate 32bit
Drag and drop the PNG files you want converted on to it and it will REPLACE the file with 8bpp version.

I highly recommend backing up the images before trying this.

okay this is what i got.

btw, it will be nice if you add the support of BMP too
 

FordGT90Concept

"I go fast!1!11!1!"
Joined
Oct 13, 2008
Messages
26,259 (4.65/day)
Location
IA, USA
System Name BY-2021
Processor AMD Ryzen 7 5800X (65w eco profile)
Motherboard MSI B550 Gaming Plus
Cooling Scythe Mugen (rev 5)
Memory 2 x Kingston HyperX DDR4-3200 32 GiB
Video Card(s) AMD Radeon RX 7900 XT
Storage Samsung 980 Pro, Seagate Exos X20 TB 7200 RPM
Display(s) Nixeus NX-EDG274K (3840x2160@144 DP) + Samsung SyncMaster 906BW (1440x900@60 HDMI-DVI)
Case Coolermaster HAF 932 w/ USB 3.0 5.25" bay + USB 3.2 (A+C) 3.5" bay
Audio Device(s) Realtek ALC1150, Micca OriGen+
Power Supply Enermax Platimax 850w
Mouse Nixeus REVEL-X
Keyboard Tesoro Excalibur
Software Windows 10 Home 64-bit
Benchmark Scores Faster than the tortoise; slower than the hare.
It supports BMP (BMP has no transparency mind you). Make sure you have .NET Framework 3.5 or newer installed.


If all else fails, attach the image that failed so I can try it in the debugger.


Edit: I added console text to tell you what it is doing in the attached version.


Edit: Again, this program overwrites the images so backup first!
 

Attachments

  • convert.exe
    7.5 KB · Views: 477
Last edited:
Joined
Jun 25, 2012
Messages
1,027 (0.24/day)
Location
Patna, Bihar, India, Asia, Earth, Terron System, M
System Name Oldtimer(Always Crunching)
Processor Intel P4 631 @ 3.2 GHz [Stock 3.0 GHz]
Motherboard Intel D945GCPE
Memory 512 MB x2 DDR2 (533MHZ and 366 MHZ)
Storage 160GB Sata1 7200rpm
Display(s) ViewSonic VA703m
Power Supply Normal 450W PSU
Software Windows 7 Ultimate 32bit
okay it is working now thanks
 
Joined
Dec 2, 2009
Messages
3,351 (0.64/day)
System Name Dark Stealth
Processor Ryzen 5 5600x
Motherboard Gigabyte B450M Gaming rev 1.0
Cooling Snowman, arctic p12 x2 fans
Memory 16x2 DDR4 Corsair Dominator Pro
Video Card(s) 3080 10gb
Storage 2TB NVME PCIE 4.0 Crucial P3 Plus, 1TB Crucial MX500 SSD, 4TB WD RED HDD
Display(s) HP Omen 34c (34" monitor 3440x1440 165Hz VA panel)
Case Zalman S2
Power Supply Corsair 750TX
Mouse Logitech pro superlight, mx mouse s3, Razer Basiliskx with battery
Keyboard Custom mechanical keyboard tm680
Software Windows 11
Benchmark Scores 70-80 fps 3440x1440 on cyberpunk 2077 max settings
@gopal
You mean, you know how to draw the characters and animate them?
 
Joined
Jun 25, 2012
Messages
1,027 (0.24/day)
Location
Patna, Bihar, India, Asia, Earth, Terron System, M
System Name Oldtimer(Always Crunching)
Processor Intel P4 631 @ 3.2 GHz [Stock 3.0 GHz]
Motherboard Intel D945GCPE
Memory 512 MB x2 DDR2 (533MHZ and 366 MHZ)
Storage 160GB Sata1 7200rpm
Display(s) ViewSonic VA703m
Power Supply Normal 450W PSU
Software Windows 7 Ultimate 32bit
Top