I have code that unzips a file and stores png files in a folder. I also have 2 files to be extracted. 1 file works fine. The second will not extract. Both only contain .png files.
I tried using tiny png to make the files smaller because i remember reading that game maker poops itself if your png files are some how wrong. this did not help.
The attached files are from the two zipped files. the fire ball icon unzips. the other does not.
I tried using tiny png to make the files smaller because i remember reading that game maker poops itself if your png files are some how wrong. this did not help.
The attached files are from the two zipped files. the fire ball icon unzips. the other does not.
GML:
function unzip_parts() {
var p_file_name
p_file_name = file_find_first( "assets/*.prt", 0)
if ( p_file_name != "" ){ //make sure p_file_name is not empty
var num = zip_unzip("assets/" + p_file_name, "images/");
if num <= 0{
show_debug_message("Extraction Failed!");
}
}
p_file_name = file_find_next()
if ( p_file_name != "" )
{var num = zip_unzip("assets/" + p_file_name,"images/*");
if num <= 0
{
show_debug_message("Extraction Failed!");
}
}
}
Attachments
-
3.4 KB Views: 1
-
1 KB Views: 1