Page 1 of 1

Can't save .love files?

Posted: Thu Sep 04, 2014 1:56 pm
by dhicks96
Hi, so I have been having issues with trying to compress and name my files to a .love file. I have renamed the .zip extension to .love and made sure that main.lua is the top file in the folder. I'm not sure if I had installed the program properly or not, seeing as I am on a school computer and am doing this for a technology internship class. Help would be greatly appreciated, thank you!

Re: Can't save .love files?

Posted: Thu Sep 04, 2014 2:05 pm
by Robin
Could you please upload the .love you've created?

Re: Can't save .love files?

Posted: Thu Sep 04, 2014 2:31 pm
by dhicks96
Sure thing, here it is.

Re: Can't save .love files?

Posted: Thu Sep 04, 2014 2:55 pm
by SuperZazu
You need to rename your file and get rid of the final '.zip' : it must be filename.love (currently, you have player.love.zip)

Secondly, you might want to modify your conf.lua so that the first line is like :

Code: Select all

function love.conf(t)
and not

Code: Select all

funcrtion love.conf(t)
:)

Re: Can't save .love files?

Posted: Fri Sep 05, 2014 1:32 pm
by dhicks96
SuperZazu wrote:You need to rename your file and get rid of the final '.zip' : it must be filename.love (currently, you have player.love.zip)

Secondly, you might want to modify your conf.lua so that the first line is like :

Code: Select all

function love.conf(t)
and not

Code: Select all

funcrtion love.conf(t)
:)
Thank you for catching that config error, my bad! However, when I type in "filename.love", it still remains as a .zip file type. I am not sure if it has to do with our school system or not, but I just tried to re-name it and it is still is not working. Thank you for responding though, it means a lot!

Re: Can't save .love files?

Posted: Fri Sep 05, 2014 1:52 pm
by Plu
On windows under certain settings, the filesystem will automatically keep the file's extension intact even if you try to change it.

The easiest way around it (without having to change settings, which you probably can't) is to open a command console (windows-key + R, type "cmd", hit enter) and then navigate to the directory and then do "rename oldfilename.love.zip oldfilename.love".

In the command prompt, it won't try to save your extensions.

Re: Can't save .love files?

Posted: Fri Sep 05, 2014 1:58 pm
by lumlune
It's because a ".zip" is still there in the filename, it's just omitted by Windows. If they give you any user permissions, try `Tools > Folder options > View > untick "Hide extensions for known filetypes"`.

Otherwise... I don't know. :crazy:

edit
Plu wrote:The easiest way around it (without having to change settings, which you probably can't) is to open a command console (windows-key + R, type "cmd", hit enter) and then navigate to the directory and then do "rename oldfilename.love.zip oldfilename.love".
Super nifty trick: you can hold shift and right click the directory you're in and a command prompt will open right there.

Re: Can't save .love files?

Posted: Fri Sep 05, 2014 2:07 pm
by dhicks96
Plu wrote:On windows under certain settings, the filesystem will automatically keep the file's extension intact even if you try to change it.

The easiest way around it (without having to change settings, which you probably can't) is to open a command console (windows-key + R, type "cmd", hit enter) and then navigate to the directory and then do "rename oldfilename.love.zip oldfilename.love".

In the command prompt, it won't try to save your extensions.
Thanks for the tip! I can't get into the command console do to school restrictions, but I will talk to my teacher and let him know that this needs to be changed. Thanks so much for helping me out! ^^