Page 1 of 1

Unpacking a .love file

Posted: Tue Aug 07, 2012 1:56 pm
by hartste90
Hi guys,
I'm nearly done with my first game (with lots of help from trolling the help forums i might add). But I have tried using some other peoples' premade addons (including Navi by litearc) and some others, but can never get them to work because I cannot access the assets wrapped up in the .love file (fonts, images, etc).
I've tried my darndest to find a thread about this but QUESTION: HOW CAN YOU 'UNPACKAGE' A .LOVE FILE SO YOU CAN ACCESS THE CONTENTS INSIDE?
Is this possible? Or do I have to request such assets from the poster directly?

Thanks so much for you help in advance guys - this site really sparked my interest in development and I can't wait to post my game here once i polish it up!

Re: Unpacking a .love file

Posted: Tue Aug 07, 2012 2:00 pm
by Nixola
You should ask their author, but you can unpack a .love file exactly like a .zip file - they are, in fact, the same thing

Re: Unpacking a .love file

Posted: Wed Aug 08, 2012 2:58 am
by josefnpat
Nixola wrote:You should ask their author, but you can unpack a .love file exactly like a .zip file - they are, in fact, the same thing
As long as you don't redistribute it, I would encourage the user to unpack the .love file.

The .love is just an extension. The file is actually a zip. Just rename it from *.love to *.zip, and extract it!

Re: Unpacking a .love file

Posted: Wed Aug 08, 2012 9:43 am
by Robin
josefnpat wrote:As long as you don't redistribute it, I would encourage the user to unpack the .love file.
Yes! It is your Stallman-given right as a user to see what you're running, no matter what the author wants.

Re: Unpacking a .love file

Posted: Wed Aug 08, 2012 4:53 pm
by josefnpat
Robin wrote:
josefnpat wrote:As long as you don't redistribute it, I would encourage the user to unpack the .love file.
Yes! It is your Stallman-given right as a user to see what you're running, no matter what the author wants.
Someday, I will be cool enough to sing this song.

Re: Unpacking a .love file

Posted: Thu Aug 09, 2012 5:20 am
by Codex
josefnpat wrote:
Nixola wrote:You should ask their author, but you can unpack a .love file exactly like a .zip file - they are, in fact, the same thing
As long as you don't redistribute it, I would encourage the user to unpack the .love file.

The .love is just an extension. The file is actually a zip. Just rename it from *.love to *.zip, and extract it!
I had the same problem when I first started using love. Also if you have windows 7 (like me) you need to do this before you can change file extensions,
Go to Tools>>Folder options>>View>>Uncheck "Hide extention for known file type". Then right click on the .love click rename.

Ex.

.love is named batdemo.love rename it to batdemo.zip then you unzip it, and then open the main.lua with something like notepad++ to see the code.

Hopefully that helps! :ultrahappy: