I have a question.

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.
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: I have a question.

Post 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.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: I have a question.

Post by bartbes »

Adding it to your path won't work in this case, compare it to linux' cat.
User avatar
arquivista
No longer with us
Posts: 266
Joined: Tue Jul 06, 2010 8:39 am
Location: Insert Geolocation tag here
Contact:

Re: I have a question.

Post 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
--------------------------------------------------------
To Do: Insert Signature Here
--------------------------------------------------------
User avatar
com_1
Prole
Posts: 44
Joined: Fri Oct 22, 2010 11:54 pm
Location: No Comment

Re: I have a question.

Post 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 ?
User avatar
arquivista
No longer with us
Posts: 266
Joined: Tue Jul 06, 2010 8:39 am
Location: Insert Geolocation tag here
Contact:

Re: I have a question.

Post 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.
--------------------------------------------------------
To Do: Insert Signature Here
--------------------------------------------------------
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: I have a question.

Post 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 2992 times
Kurosuke needs beta testers
User avatar
arquivista
No longer with us
Posts: 266
Joined: Tue Jul 06, 2010 8:39 am
Location: Insert Geolocation tag here
Contact:

Re: I have a question.

Post 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.
--------------------------------------------------------
To Do: Insert Signature Here
--------------------------------------------------------
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: I have a question.

Post 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. :)
Kurosuke needs beta testers
User avatar
arquivista
No longer with us
Posts: 266
Joined: Tue Jul 06, 2010 8:39 am
Location: Insert Geolocation tag here
Contact:

Re: I have a question.

Post 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". :)
--------------------------------------------------------
To Do: Insert Signature Here
--------------------------------------------------------
User avatar
com_1
Prole
Posts: 44
Joined: Fri Oct 22, 2010 11:54 pm
Location: No Comment

Re: I have a question.

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest