Jump to content


Photo

Gmz: Zip Archiver by Adventus


  • Please log in to reply
5 replies to this topic

#1 Master Xilo

Master Xilo

    GMC Member

  • GMC Member
  • 396 posts
  • Version:GM8

Posted 04 July 2011 - 04:06 PM

I did not make this: This is a conversion of the GMZ Zip Archiver dll by Adventus to a Game Maker extension. See here and here for more info.

GMZ is an easy to use and lightweight zip archiving library. For help, simply start typing "gmz_" in a code editor in game maker - all commands start with this prefix. What they do is pretty easy to see. Unpacking always happens in the working_directory.

Download

Download the original dll, extension and demo projects


Usage
To create a zip file:

var zf;
zf = gmz_zip_create("myzip.zip", "");
gmz_folder_add(zf, "folderInZip");
gmz_file_add(zf, "folderInZip\file.txt", "file.txt");
gmz_zip_close(zf);

To unpack a zip file:

var zf;
zf = gmz_zip_open("myzip.zip", "");
gmz_file_extract_all(zf);
gmz_zip_close(zf);

I hope you like it!

- Paul


Edited by Master Xilo, 23 August 2015 - 02:11 PM.

  • 1

#2 HelpMyFellowPeople

HelpMyFellowPeople

    GMC Member

  • GMC Member
  • 281 posts
  • Version:GM8

Posted 12 December 2011 - 09:31 AM

Like! Very nice.
  • 0
-------------------------
Helping People Since Now!

If you need any help with scripts, ask me and ill try to help you!

~HMFP

#3 jtyler

jtyler

    GMC Member

  • New Member
  • 255 posts

Posted 21 January 2012 - 05:23 PM

Thanks. I'm going to use this for something.

How do I find the directory the zip file extracted to and move it somewhere else?
  • 0

#4 Master Xilo

Master Xilo

    GMC Member

  • GMC Member
  • 396 posts
  • Version:GM8

Posted 06 July 2012 - 12:40 PM

Files are always extracted to the working_directory. You might be able to change this with an extension (that uses SetCurrentDirectory)
  • 0

#5 Wiiboy4ever

Wiiboy4ever

    GMC Member

  • GMC Member
  • 127 posts

Posted 18 August 2012 - 12:24 AM

So... sorry for the bump but what happens in the case of same file names? Does it overwrite?
  • 0

#6 Master Xilo

Master Xilo

    GMC Member

  • GMC Member
  • 396 posts
  • Version:GM8

Posted 29 July 2014 - 10:02 PM

Link fixed.


  • 0