DSCompress

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

  1. FAST6191
    OP

    FAST6191 Techromancer

    pip Reporter
    22,915
    8,592
    Nov 21, 2005







    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

    Costello Headmaster

    Administrator
    12,288
    5,277
    Oct 24, 2002
    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

    quartercast GBAtemp Regular

    Member
    250
    0
    Oct 18, 2006
    Hopefully some cart devs will use this to include auto-decompression in their loaders!
     
  4. OSW

    OSW Wii King

    Former Staff
    4,796
    6
    Oct 30, 2006
    I think it's great, however i wonder which is my personal best use of this...
     
  5. cheesyPOOF5

    cheesyPOOF5 GBAtemp Fan

    Member
    419
    0
    Apr 21, 2006
    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

    shakirmoledina Legend

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

    Kamgusta Advanced Member

    Newcomer
    58
    0
    Aug 11, 2006
    Italy
    Guess it
    So it is useless. Trim anyone?
     
  8. Hitto

    Hitto MKDS Tournament Winner

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

    bouzekry Member

    Newcomer
    37
    0
    Jul 19, 2007
    France
    i totally agree ^^
     
  10. Vince989

    Vince989 Still lurking around, sometimes...

    Former Staff
    1,429
    4
    Oct 24, 2002
    Canada
    Quebec, 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

    joemommasfat Member

    Newcomer
    22
    0
    Oct 17, 2006
    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

    kellyan95 Banned

    Banned
    1,464
    1
    Jul 4, 2007
    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

    Maikel Steneker M3 Fanboy

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

    Hitto MKDS Tournament Winner

    Member
    1,450
    0
    Nov 29, 2005
    France
    Nice, 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

    joemommasfat Member

    Newcomer
    22
    0
    Oct 17, 2006

    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

    IBNobody I try to keep myself amused.

    Member
    1,127
    189
    Nov 16, 2006
    United States
    Texas, Hang 'Em High
    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

    Hitto MKDS Tournament Winner

    Member
    1,450
    0
    Nov 29, 2005
    France
    Nice, 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

    rest0re GBAtemp Advanced Fan

    Member
    755
    0
    Dec 23, 2006
    Finland
    WINLAND
    THIS IS MOST USEFUL PROGRAM EVER! NOW I CAN SAVE LOTS OF SPACE PACKING ROMS!!!!111
     
  19. kellyan95

    kellyan95 Banned

    Banned
    1,464
    1
    Jul 4, 2007
    United States
    This program is useless.
     
  20. kellyan95

    kellyan95 Banned

    Banned
    1,464
    1
    Jul 4, 2007
    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.