a .lua file to 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
ZUELK
Prole
Posts: 1
Joined: Tue Sep 01, 2015 11:16 pm

a .lua file to a .love file

Post by ZUELK »

So I'm new to love2d so I made a game saved it as main.lua. I went to watch a video that said to compress the file and then change the extension of the end to a .love file and it would convert it to a openable love game... well when I went to change the extension to .love and it didn't change to file type. Then I went to change the actual file from .lua to .love and it wouldn't work. Help.
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: a .lua file to a .love file

Post by s-ol »


s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
User avatar
Jeeper
Party member
Posts: 611
Joined: Tue Mar 12, 2013 7:11 pm
Contact:

Re: a .lua file to a .love file

Post by Jeeper »

You need to make a .zip file and rename that file to .love.

IMPORTANT: .rar does NOT work.
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: a .lua file to a .love file

Post by T-Bone »

Sounds like you did something wrong, but it's really hard to know what from what you write. Maybe you're running Windows, and have settings in Explorer that hides file endings? That can really mess things up.

What you're supposed to do:

1. Compress the main.lua so that you have a zip-file called "game.zip". Make sure you don't compress the folder (common mistake) but the actual file. When you decompress, all that should pop out should be the main.lua file.
2. Rename "game.zip" to "game.love"
3. If Löve is correctly installed on your system, double-clicking game.love should run the game.
103percent
Prole
Posts: 1
Joined: Mon Oct 24, 2022 1:16 pm

Re: a .lua file to a .love file

Post by 103percent »

I've attached an image which shows you what to do here. I ran into the same problem
Attachments
help.png
help.png (96.89 KiB) Viewed 3341 times
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 11 guests