Loveify

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Loveify

Post by Robin »

Let's face it: .love files can be a royal pain in the ass. This is because the major difference most zipping tools think they should zip a folder, and how LÖVE handles them: When most zipping tools (all that I know of, at least) make a .zip file from a folder, they place everything in that folder in the .zip file. And, as we all know, LÖVE doesn't like that. GitHub, for example, is getting quite popular here, and provides a simple Download .Zip-file function, but it uses the no-love method. So you have to unzip it first. It's not that much of a problem, but it is a bit of a mess.

To ease the pain a bit, I wrote Loveify, a Python* script that converts classic .zip or .tar/.tar.gz/.tar.bz archives to working .love files -- without cluttering your harddisk.

*requires Python 2.6 or higher
Help us help you: attach a .love.
User avatar
osgeld
Party member
Posts: 303
Joined: Sun Nov 23, 2008 10:13 pm

Re: Loveify

Post by osgeld »

Ive not had much issues with *.love files

i just open the folder ctrl-a, compress and change the extension

but whatever works best for you
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Loveify

Post by Robin »

osgeld wrote:Ive not had much issues with *.love files

i just open the folder ctrl-a, compress and change the extension

but whatever works best for you
That's what I do when I do it manually. I just prefer not to do things manually :P.
Help us help you: attach a .love.
User avatar
subrime
Citizen
Posts: 76
Joined: Thu Nov 13, 2008 6:18 pm
Location: Australia

cold blooded snake doesn't love lua

Post by subrime »

robin - You wrote the script in python? That's just perverse...
User avatar
sauer2
Citizen
Posts: 61
Joined: Tue Sep 02, 2008 4:15 pm

Re: Loveify

Post by sauer2 »

Lol, he better had written it in Lua as a .love package. :ultrahappy: :P
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: cold blooded snake doesn't love lua

Post by Robin »

subrime wrote:robin - You wrote the script in python? That's just perverse...
:P would've done it in Lua, if not for the fact that Lua has no standard lib for opening archives. BTW, Python is cool 8-) (just like Lua)
Help us help you: attach a .love.
User avatar
osgeld
Party member
Posts: 303
Joined: Sun Nov 23, 2008 10:13 pm

Re: Loveify

Post by osgeld »

theres a few floating around to open an archive, but ive not seen one for creating an archive (yet, eventho i have not been looking ALL that hard)
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Loveify

Post by Robin »

And those libs are floating around for Lua, but for Python they are right in the standard library. Well, each language has their purpose. Python is better suit for small scripts which do relatively complicated things with a minimum of fuss. And I the longer I use both LÖVE and PyGame, the more I get the feeling Lua is better for game programming.
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: No registered users and 85 guests