DSCompress

Discussion in 'GBAtemp & Scene News' started by FAST6191, Aug 10, 2007.

Aug 10, 2007

DSCompress by FAST6191 at 10:08 AM (6,009 Views / 0 Likes) 35 replies

  1. FAST6191
    OP

    Reporter FAST6191 Techromancer

    pip
    Joined:
    Nov 21, 2005
    Messages:
    21,737
    Country:
    United Kingdom







    DSCompress

    A gzip compression app for the DS








    carpman has started work on a compression application for the DS.

    Presently only GZ (gzip) format files can be (de)compressed and as of version 1.2 7zip's GZip compression should work.



    [title:Instructions]

    ============

    Select a file in the browser, and press A to compress.

    Select a file ending in .gz in the browser, and press A to decompress.

    Select a directory in the browser, and press A to enter it.

    Select '..' in the browser, or press B, to go up a directory.




    [​IMG] Release/development thread

    [​IMG] Mirror (Source code included)



    [​IMG] source


     


  2. Costello

    Administrator Costello Headmaster

    Joined:
    Oct 24, 2002
    Messages:
    12,031
    can be useful if you want to have all your roms gzipped on your cart...
    then you can decompress the roms you want to play (and delete others to save space)
     
  3. quartercast

    Member quartercast GBAtemp Regular

    Joined:
    Oct 18, 2006
    Messages:
    250
    Country:
    Australia
    Hopefully some cart devs will use this to include auto-decompression in their loaders!
     
  4. OSW

    Former Staff OSW Wii King

    Joined:
    Oct 30, 2006
    Messages:
    4,796
    Country:
    Australia
    I think it's great, however i wonder which is my personal best use of this...
     
  5. cheesyPOOF5

    Member cheesyPOOF5 GBAtemp Fan

    Joined:
    Apr 21, 2006
    Messages:
    419
    Country:
    United States
    Truly, the only sort of good use for this would be Costello's suggestion, other than that it's pretty pointless unless we can recompress the files.
     
  6. shakirmoledina

    Member shakirmoledina Legend

    Joined:
    Oct 23, 2004
    Messages:
    6,611
    Location:
    Dar es Salaam
    Country:
    Tanzania
    it would be better if the roms could be automatically unzipped when wanting to play and ziped again when stop playing
     
  7. Kamgusta

    Newcomer Kamgusta Advanced Member

    Joined:
    Aug 11, 2006
    Messages:
    58
    Location:
    Guess it
    Country:
    Italy
    So it is useless. Trim anyone?
     
  8. Hitto

    Member Hitto MKDS Tournament Winner

    Joined:
    Nov 29, 2005
    Messages:
    1,450
    Location:
    Nice, France
    Country:
    France
    Yeah, because waiting for a full minute before you can play a portable game makes so much sense! [​IMG]
     
  9. bouzekry

    Newcomer bouzekry Member

    Joined:
    Jul 19, 2007
    Messages:
    37
    Country:
    France
    i totally agree ^^
     
  10. Vince989

    Former Staff Vince989 Still lurking around, sometimes...

    Joined:
    Oct 24, 2002
    Messages:
    1,429
    Location:
    Quebec, Canada
    Country:
    Canada
    If you think it is useless since trimming exists, sorry but you just don't know what both do... [​IMG]

    Let's take a simple example here, with a fictive rom that simply contains 56 characters (hope big-N won't sue me for posting its "code" ! [​IMG] ).

    64 bytes rom (512 bits [​IMG] ) :
    ABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCD00000000

    The zeroes are there because of the storage format; as the size of the cartridge will be the nearest higher power of 2, the remaining space is occupied by zeroes, which don't do anything in that case.

    Now let's trim it :
    ABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCD
    A 56 bytes rom.

    We have saved some room! [​IMG] But now, let's try compressing it instead...

    (ABCD)*14(0)*8
    A 14 bytes rom!

    Weee, it is now even smaller! Trimming just trims what isn't need (oddly reminds another topic from here!) , whereas compressing makes what exists take much less space, without losing anything in this case.

    I hope you understand the difference better now, and realize the use this could have!

    - Vince989
     
  11. joemommasfat

    Newcomer joemommasfat Member

    Joined:
    Oct 17, 2006
    Messages:
    22
    Country:
    I don't.


    I used to have an ez flash 3, which unzipped using the gba processor, and it never took a "full minute". I used it all the time without complaints.

    I think it would be a useful feature.
     
  12. kellyan95

    Banned kellyan95 Banned

    Joined:
    Jul 4, 2007
    Messages:
    1,464
    Country:
    United States
    It depends on how much you can compress with this. You need extra space equal the the uncompressed size of the ROM for it to work. If it compresses only say, 3%, you could just put another ROM on your cart rather than compressing all of the other ones and leaving open space equal to the biggest
     
  13. Maikel Steneker

    Member Maikel Steneker M3 Fanboy

    Joined:
    May 16, 2007
    Messages:
    3,396
    Country:
    Netherlands
    I'll keep watching this... This may become very useful in the future!
     
  14. Hitto

    Member Hitto MKDS Tournament Winner

    Joined:
    Nov 29, 2005
    Messages:
    1,450
    Location:
    Nice, France
    Country:
    France
    Okay, then it's only 59 seconds. GBA flashcarts' loading times sucked, compressed or not compressed anyway. Believe me, I've had my fair share of commute to hate losing so much time, waiting for the fucking ROM to load. Now, with kingdom hearts taking A FULL MINUTE, scout's honor, (I'm not a scout but I'm not arsed to youtube a fucking loading screen) to load on a GBA, imagine what a 128 meg rom is gonna do to load times?
     
  15. joemommasfat

    Newcomer joemommasfat Member

    Joined:
    Oct 17, 2006
    Messages:
    22
    Country:

    I'm not going to get into an internet fight, and there's no need to start cursing. The point is that we disagree, and probably a couple other people have a different opinion than you as well.

    It would be a feature that I would appreciate. You would not be forced to use it.
     
  16. IBNobody

    Member IBNobody I try to keep myself amused.

    Joined:
    Nov 16, 2006
    Messages:
    1,127
    Location:
    Texas, Hang 'Em High
    Country:
    United States
    Actually, the best use would be to compress save games. Small files compress fast, and most R4 saves can be shrunk down tremendously.

    The DS-X uses a similar library to compress its saves.
     
  17. Hitto

    Member Hitto MKDS Tournament Winner

    Joined:
    Nov 29, 2005
    Messages:
    1,450
    Location:
    Nice, France
    Country:
    France
    Ah, I got carried away for a bit. Of course, if people are willing to code this feature and others are willing to enjoy it, I'm not going to stop you from doing it [​IMG]
     
  18. rest0re

    Member rest0re GBAtemp Advanced Fan

    Joined:
    Dec 23, 2006
    Messages:
    755
    Location:
    WINLAND
    Country:
    Finland
    THIS IS MOST USEFUL PROGRAM EVER! NOW I CAN SAVE LOTS OF SPACE PACKING ROMS!!!!111
     
  19. kellyan95

    Banned kellyan95 Banned

    Joined:
    Jul 4, 2007
    Messages:
    1,464
    Country:
    United States
    This program is useless.
     
  20. kellyan95

    Banned kellyan95 Banned

    Joined:
    Jul 4, 2007
    Messages:
    1,464
    Country:
    United States
    Ok, apparently I'm not allowed to have an opinion anymore. Let me explain WHY THIS HAS NO USEFUL PURPOSE AS A STAND-ALONE APP. Let's say you have a 1GB MicroSD card and a 32MB ROM. You use this to compress the rom to 28MB. You need 32MB of extra space to extract it into. So, when trying to play any game, the size it takes is Orignal Size + Compressed Size. In this case, it takes 60MB for a 32MB rom. And to make it worse, what if you have a lot of small, 8 or 16MB roms and one 128MB rom. You need empty space equal the uncompressed size of the largest rom.

    HOWEVER, this would be useful for small files like saves IF it were built into the flash cart. It could uncompress them only when it needed to, like when saving.
     

Share This Page