.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
Crossing
Prole
Posts: 42
Joined: Sat Mar 21, 2015 3:37 pm

.love file

Post by Crossing »

Hello im having trouble with making the .love file. Ive read and tried many diffrent things but none of them work exactly. I have a simple hello world program, however the problem isnt making the .love file its after making it the program just shows a blank black window. It acts as if there is no code. I even made it into a exe and still its a program that does nothing or shows nothing when its supposed to show hello world.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: .love file

Post by Robin »

Could you upload your .love? That might shed some light on the situation.
Help us help you: attach a .love.
Goober
Prole
Posts: 6
Joined: Wed Mar 11, 2015 9:28 pm

Re: .love file

Post by Goober »

Make sure your main.lua file is in the lowest level of the ZIP (renamed .love instead of .zip, of course). So if you normally have MyProject/main.lua, don't bring in the MyProject folder. Just it's contents.

Does it work if you drag your project folder onto love.exe?
User avatar
Crossing
Prole
Posts: 42
Joined: Sat Mar 21, 2015 3:37 pm

Re: .love file

Post by Crossing »

Yes it works if I drag the project folder. It prints "Hello World", bit if I make it a love file and open it then it does not print it anymore. Also I have to use winrar to even make the love file, I select the files not the project folder then "add to archive" then save it as file type zip and name HelloWorld.Love instead of zip and it creates the love file. On windows 8 I could never find a way to just rename a zip folder to .love and it switch to a love file. Heres the .love file
Attachments
HelloWorld.love
Love file
(559 Bytes) Downloaded 102 times
User avatar
Evine
Citizen
Posts: 72
Joined: Wed May 28, 2014 11:46 pm

Re: .love file

Post by Evine »

"main.lua" not "Main.lua"

An annoying little Windows "feature/bug". Windows doesn't care about the capitation of files. But the "zipped" file do care...
Artal, A .PSD loader: https://github.com/EvineDev/Artal
User avatar
Crossing
Prole
Posts: 42
Joined: Sat Mar 21, 2015 3:37 pm

Re: .love file

Post by Crossing »

Haha, thats stupid. Thank you so much :) its working now.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests