Page 7 of 10

Re: I have a question.

Posted: Mon Nov 22, 2010 3:13 pm
by nevon
com_1 wrote:I did as written here - http://love2d.org/wiki/Game_Distribution
Here's how to do it on Windows. In a console, type this:
copy /b love.exe+game.love game.exe
but nothing happens.
Like arquivista said, that would require love.exe to be in the same directory. There are two simple ways to fix this. One way is to replace love.exe with the path to the Löve executable. For example, copy /b c:\\Program\ Files\\love\\love.exe+game.love game.exe (excuse my weird escaping. I'm not sure how it's done in Windows).

The other way is to add Löve to your path. That means you set a environmental variable to point to your love executable, and then you use that variable in your command. I'm not entirely sure how to do this in Windows, but here are guides for Windows XP and Windows Vista/7.

Re: I have a question.

Posted: Mon Nov 22, 2010 3:16 pm
by bartbes
Adding it to your path won't work in this case, compare it to linux' cat.

Re: I have a question.

Posted: Mon Nov 22, 2010 3:39 pm
by arquivista
bartbes wrote:Adding it to your path won't work in this case, compare it to linux' cat.
Hmm, you right, nevon methods shoudn't work. Copy command limitations.
http://www.computerhope.com/copyhlp.htm
If I read right it seems we can have another path for destination but not for the sources

Re: I have a question.

Posted: Mon Nov 22, 2010 6:02 pm
by com_1
1. "E:\Love2D\my demo\" - here is "main.lua"
2. and this is console "C:\Documents\no comment>"
3. "C:\Documents\no comment>copy /b E:\Love2D\my demo\love.exe+game.love game.exe"

Not Working.
Where is the problem ?

Re: I have a question.

Posted: Mon Nov 22, 2010 6:34 pm
by arquivista
com_1 wrote:1. "E:\Love2D\my demo\" - here is "main.lua"
2. and this is console "C:\Documents\no comment>"
3. "C:\Documents\no comment>copy /b E:\Love2D\my demo\love.exe+game.love game.exe"

Not Working.
Where is the problem ?
Hmmm, I think I'm seeing several problems here

love.exe and game.love must be ON SAME DIRECTORY and you don't have yet a game.love assembled and are trying to use main.lua instead.

Ok, let's try put an end to this:

1 - first get all your LOVE files of your project (main.lua, images, sounds ,other lua files etc) and copy them to inside some "new folder".
2 - zip all that project files, not the directory "new folder" but the files inside "new folder" (or just your main.lua if you don't have more other files). make sure that inside your created zip file is not a directory but in the root of zip file you have main.lua. Then rename that zip to game.love
3 - delete in "new folder" just for not confuse anymore all files except the new game.love
4 - put love.exe inside the "new folder" that will now have game.love and love.exe
5 - open command prompt and navigate to inside the "new folder" where game.love and love.exe are.
6 - write and execute then "copy /b love.exe+game.love game.exe"
7 - inside the "new folder" you shoud have now the wanted game.exe besides game.love and love.exe

I don't use windows any more but I hope I did a correct tutorial. Someone correct me please if something is not right.

Re: I have a question.

Posted: Mon Nov 22, 2010 8:59 pm
by tentus
This is how I do it. Windows XP, using Dropbox as well, but that should not affect the process. About five steps, depending on your cmd experience (which, again, shouldn't affect you much). Notice which files I have in this folder: everything I need to run the game, plus the file I will ultimately end up with (because I have compiled like this before). Seriously, it's not gonna kill your hdd to have an extra copy of those four files.
compiling.gif
compiling.gif (66.42 KiB) Viewed 3147 times

Re: I have a question.

Posted: Mon Nov 22, 2010 9:40 pm
by arquivista
"compiling.gif"? "kurosuke_compiled"? Well not really :D

And thanks for this new effort to solve his problem. I believe that he was trying to "compile" cof cof without have a *.love file already assembled.

Re: I have a question.

Posted: Mon Nov 22, 2010 10:31 pm
by tentus
arquivista wrote:"compiling.gif"? "kurosuke_compiled"? Well not really :D

And thanks for this new effort to solve his problem. I believe that he was trying to "compile" cof cof without have a *.love file already assembled.
Eh, the terminology applies: Collect information together in order to produce something. I take a .exe and a .love to produce a single .exe... sounds like compiling to me. :)

Re: I have a question.

Posted: Mon Nov 22, 2010 10:39 pm
by arquivista
tentus wrote:
arquivista wrote:"compiling.gif"? "kurosuke_compiled"? Well not really :D

And thanks for this new effort to solve his problem. I believe that he was trying to "compile" cof cof without have a *.love file already assembled.
Eh, the terminology applies: Collect information together in order to produce something. I take a .exe and a .love to produce a single .exe... sounds like compiling to me. :)
That is gambling with words and you are avoiding the right code programming "interpretation" . Come on, we know that Love/Lua is scripted and interpreted in a VM not really "compiled". :)

Re: I have a question.

Posted: Tue Nov 23, 2010 1:40 pm
by com_1
Thanks people.

And can explain, how to rename ".zip" a(to) ".love", again in Pictures ?
Without English is very difficult and "google or youtube - translator" takes not very.