1. 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

Discussion in 'Programming & Webmastering' started by gopal, Aug 20, 2012.

  1. gopal

    gopal

    Joined:
    Jun 25, 2012
    Messages:
    1,027 (1.16/day)
    Thanks Received:
    121
    Location:
    Patna, Bihar, India, Asia, Earth, Terron System, M
    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: Aug 20, 2012
    sami26 says thanks.
  2. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    13,965 (6.24/day)
    Thanks Received:
    3,803
    Location:
    IA, USA
    Attachments are invalid.
     
    Crunching for Team TPU
  3. gopal

    gopal

    Joined:
    Jun 25, 2012
    Messages:
    1,027 (1.16/day)
    Thanks Received:
    121
    Location:
    Patna, Bihar, India, Asia, Earth, Terron System, M
    They are working fine for me
    Any way i will upload them again
     
  4. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    13,965 (6.24/day)
    Thanks Received:
    3,803
    Location:
    IA, USA
    :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?
     
    Crunching for Team TPU
  5. temp02 New Member

    Joined:
    Mar 18, 2009
    Messages:
    493 (0.24/day)
    Thanks Received:
    166
    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.
     
    FordGT90Concept says thanks.
  6. Jizzler

    Jizzler

    Joined:
    Aug 10, 2007
    Messages:
    3,454 (1.30/day)
    Thanks Received:
    645
    Location:
    Geneva, FL, USA
    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.
     
    hellrazor says thanks.
  7. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    13,965 (6.24/day)
    Thanks Received:
    3,803
    Location:
    IA, USA
    If I had the original sprite file I could maybe reverse engineer it (wouldn't be the first).
     
    Crunching for Team TPU
  8. W1zzard

    W1zzard Administrator Staff Member

    Joined:
    May 14, 2004
    Messages:
    15,012 (3.90/day)
    Thanks Received:
    11,879
    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
     
  9. temp02 New Member

    Joined:
    Mar 18, 2009
    Messages:
    493 (0.24/day)
    Thanks Received:
    166
    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.
     
  10. gopal

    gopal

    Joined:
    Jun 25, 2012
    Messages:
    1,027 (1.16/day)
    Thanks Received:
    121
    Location:
    Patna, Bihar, India, Asia, Earth, Terron System, M
    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: Nov 20, 2013
  11. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    13,965 (6.24/day)
    Thanks Received:
    3,803
    Location:
    IA, USA
    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?
     
    Crunching for Team TPU
  12. Jizzler

    Jizzler

    Joined:
    Aug 10, 2007
    Messages:
    3,454 (1.30/day)
    Thanks Received:
    645
    Location:
    Geneva, FL, USA
    Latest version: www.alferdspritesheetunpacker.forkandbeard.co.uk/

    Can specify Nconvert command-line options for the output:

    [​IMG]

    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.
     
    digibucc says thanks.
  13. gopal

    gopal

    Joined:
    Jun 25, 2012
    Messages:
    1,027 (1.16/day)
    Thanks Received:
    121
    Location:
    Patna, Bihar, India, Asia, Earth, Terron System, M
    All you need to do is make it to save every extraction in 256 color .png format.

    thats all
     
  14. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    13,965 (6.24/day)
    Thanks Received:
    3,803
    Location:
    IA, USA
    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
     
    gopal says thanks.
    Crunching for Team TPU
  15. Jizzler

    Jizzler

    Joined:
    Aug 10, 2007
    Messages:
    3,454 (1.30/day)
    Thanks Received:
    645
    Location:
    Geneva, FL, USA
    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.
     
  16. gopal

    gopal

    Joined:
    Jun 25, 2012
    Messages:
    1,027 (1.16/day)
    Thanks Received:
    121
    Location:
    Patna, Bihar, India, Asia, Earth, Terron System, M
    Yes that is what i need.
     
  17. Aleksander

    Joined:
    Dec 2, 2009
    Messages:
    3,254 (1.79/day)
    Thanks Received:
    304
    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.
     
  18. gopal

    gopal

    Joined:
    Jun 25, 2012
    Messages:
    1,027 (1.16/day)
    Thanks Received:
    121
    Location:
    Patna, Bihar, India, Asia, Earth, Terron System, M
    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]
     
  19. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    13,965 (6.24/day)
    Thanks Received:
    3,803
    Location:
    IA, USA
    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: Aug 23, 2012
    Crunching for Team TPU
  20. gopal

    gopal

    Joined:
    Jun 25, 2012
    Messages:
    1,027 (1.16/day)
    Thanks Received:
    121
    Location:
    Patna, Bihar, India, Asia, Earth, Terron System, M
    okay this is what i got.
    [​IMG]
    btw, it will be nice if you add the support of BMP too
     
  21. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    13,965 (6.24/day)
    Thanks Received:
    3,803
    Location:
    IA, USA
    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!
     

    Attached Files:

    Last edited: Aug 23, 2012
    gopal says thanks.
    Crunching for Team TPU
  22. gopal

    gopal

    Joined:
    Jun 25, 2012
    Messages:
    1,027 (1.16/day)
    Thanks Received:
    121
    Location:
    Patna, Bihar, India, Asia, Earth, Terron System, M
    okay it is working now thanks
     
  23. Aleksander

    Joined:
    Dec 2, 2009
    Messages:
    3,254 (1.79/day)
    Thanks Received:
    304
    @gopal
    You mean, you know how to draw the characters and animate them?
     
  24. gopal

    gopal

    Joined:
    Jun 25, 2012
    Messages:
    1,027 (1.16/day)
    Thanks Received:
    121
    Location:
    Patna, Bihar, India, Asia, Earth, Terron System, M
    No, i don't draw them i download the Sprite Sheets and animate them it is very easy but it takes month to complete on char

    it is mine: http://www.mediafire.com/?pkv1152x4vd5dqb
    well not fully completed yet still in the basic moves
     

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page