Page 19 of 28

Re: Distributing your games (making a .love file)

Posted: Sun Mar 02, 2014 7:34 pm
by davisdude
Here's a guess: you have to enable viewing extensions, then change the file extension. Another one is that you have simply not removed the .zip part from the end.

Re: Distributing your games (making a .love file)

Posted: Sun Mar 02, 2014 11:16 pm
by Oprogrammer
How do you enable viewing extensions ??? i think that might be the problem as i confident i have removed the .zip at the end.

edit: i have managed to create a .love file , but it shows a black screen when trying to open it, instead of showing the program .... any idea's why ?

Re: Distributing your games (making a .love file)

Posted: Mon Mar 03, 2014 1:21 am
by davisdude
Main.lua should be main.lua

Re: Distributing your games (making a .love file)

Posted: Fri Apr 04, 2014 9:10 am
by omnione
Hello everyone!

I've recently began trying to package my game into an executable to let my friends try it out. I followed all the instructions in the game_distribution page and the executable created just fine for the first time. Every time after that, the executable wouldnt work! it kept saying "no game is found". when I extract the bad executable, it looks different from what the good executable copy looks like when I extract the good copy. I continue to use "copy /b love.exe+SuperGame.love SuperGame.exe" in my command prompt (i'm using windows 64bit) to keep trying to create the executable. It continues to fail but for some reason, after like 20-30 tries, I get a good working copy! Any insight on how to fix this problem and have a good working copy every time would be much appreciated. Thank you

Re: Distributing your games (making a .love file)

Posted: Fri Apr 04, 2014 3:35 pm
by Ragzouken
omnione wrote:Hello everyone!

I've recently began trying to package my game into an executable to let my friends try it out. I followed all the instructions in the game_distribution page and the executable created just fine for the first time. Every time after that, the executable wouldnt work! it kept saying "no game is found". when I extract the bad executable, it looks different from what the good executable copy looks like when I extract the good copy. I continue to use "copy /b love.exe+SuperGame.love SuperGame.exe" in my command prompt (i'm using windows 64bit) to keep trying to create the executable. It continues to fail but for some reason, after like 20-30 tries, I get a good working copy! Any insight on how to fix this problem and have a good working copy every time would be much appreciated. Thank you
it'd be great if you could confirm this, so i can update it on the wiki, but i think you actually need to attach SuperGame.zip rather than SuperGame.love? i was rewriting my build script yesterday and noticed i couldn't get it work with attaching the love file to the exe. could that be your problem?

Re: Distributing your games (making a .love file)

Posted: Fri Apr 04, 2014 5:38 pm
by slime
That shouldn't matter as long as the .love is really a renamed .zip. If it's another format (e.g. a renamed rar file), then it won't work.

Re: Distributing your games (making a .love file)

Posted: Fri Apr 04, 2014 5:55 pm
by Ragzouken
i'm using "cat" in git bash (windows) so i can't be sure it's not just weird behaviour, but i couldn't get it to work unless i used the .zip extension

Re: Distributing your games (making a .love file)

Posted: Sat Apr 05, 2014 5:58 am
by omnione
hey Ragzouken and slime,

Yes, I tried appending the love.exe with my game using both a .love and .zip extension but neither of the extensions produce a working executable of my game. I have not tried using the git bash extension. I currently used a command prompt window and copy /b love.exe+Game.love Game.exe. If you could, I would definitely appreciate your solution using "cat" with git bash. Thanks!

Re: Distributing your games (making a .love file)

Posted: Sat Apr 05, 2014 12:42 pm
by Ragzouken
i only use gitbash because it's convenient for me, copy /b should work just as well! (it's just "cat love.exe game.zip > game.exe" btw)

btw just realised what my problem was - when i create a .love using my script it doesn't know what archive type to use from the extension and picks 7z

Re: Distributing your games (making a .love file)

Posted: Sun Apr 06, 2014 2:44 am
by omnione
I tried using the "cat love.exe supergame.love > supergame.exe" and "cat love.exe supergame.zip > supergame.exe" but they both don't work for me. =/ Git bash says it cannot find supergame.love or supergame.zip. For some reason, copy /b love.exe + supergame.love supergame.exe still doesn't work. Thanks though!