Unpacking a .love file

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
hartste90
Prole
Posts: 3
Joined: Wed Jan 25, 2012 12:03 am
Location: Baltimore, MD

Unpacking a .love file

Post 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!
----
LoL name: ADarkWind
Starcraft2: Axel
----
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Unpacking a .love file

Post 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
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Unpacking a .love file

Post 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!
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Unpacking a .love file

Post 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.
Help us help you: attach a .love.
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Unpacking a .love file

Post 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.
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
Codex
Party member
Posts: 106
Joined: Tue Mar 06, 2012 6:49 am

Re: Unpacking a .love file

Post 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:
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], RetroKevin and 6 guests