Page 3 of 4

Re: LÖVE 0.5.0

Posted: Tue Sep 23, 2008 8:41 pm
by SamPerson12345
I can't figure out how to make it into one .exe. Can you please give more explicit instructions?

Re: LÖVE 0.5.0

Posted: Tue Sep 23, 2008 10:56 pm
by nightvenom
This is great news.
So what im getting for this is that we can now save our games as say:
lol.exe ? Sort of ?
Pretty much what im asking is that will we be able to now distribute the games without love as the reader/compiler ?
(standalone :D)
and great work on this new update to, already we have access to mp features now ?
That's some great stuff.

Re: LÖVE 0.5.0

Posted: Tue Sep 23, 2008 11:21 pm
by aqeeliz
nightvenom wrote:...
Pretty much what im asking is that will we be able to now distribute the games without love as the reader/compiler ?
(standalone :D)
Yes, games would still run in love, but users won't have to download it separately.

SamPerson12345, I haven't tried it on windows, but assuming your game is called myGame.love, the process should be as follows

1. Download Zipped binaries of LÖVE, and extract them somewhere
2. Place your myGame.love file in the directory where you have extracted LÖVE
3. Open terminal, cd into the directory where you extracted LÖVE (and also copied your myGame.love) then run the following command
4. copy /b love.exe+myGame.love myGame.exe
5. Delete love.exe
6. Delete myGame.love
7. Distribute whole folder

P.S: It can also be done with installer version.

Re: LÖVE 0.5.0

Posted: Wed Sep 24, 2008 8:39 am
by Kaze
I made a batch file to automate the above.
Save this as a .bat file then drag whatever .love file you want to use onto it.

Code: Select all

@ECHO OFF
SETLOCAL


SET LoveFolder=C:\Program Files\LOVE


SET file=%1
IF NOT (%file:~-6,-1%) == (.love) (
	ECHO Not a .love
	GOTO END
	)


SET dir=%USERPROFILE%\Desktop\%~n1_executable


MKDIR "%dir%"
COPY /B "%LoveFolder%\love.exe"+%1 "%dir%\%~n1.exe"

COPY /B "%LoveFolder%\love.ico" "%dir%\love.ico"

COPY /B "%LoveFolder%\DevIL.dll" "%dir%\DevIL.dll"
COPY /B "%LoveFolder%\ILU.dll" "%dir%\ILU.dll"
COPY /B "%LoveFolder%\msvcp80.dll" "%dir%\msvcp80.dll"
COPY /B "%LoveFolder%\msvcr80.dll" "%dir%\msvcr80.dll"
COPY /B "%LoveFolder%\SDL.dll" "%dir%\SDL.dll"
COPY /B "%LoveFolder%\SDL_mixer.dll" "%dir%\SDL_mixer.dll"

COPY /A "%LoveFolder%\Microsoft.VC80.CRT.manifest" "%dir%\Microsoft.VC80.CRT.manifest"

COPY /A "%LoveFolder%\license.txt" "%dir%\license.txt"


:END
Edit: Makes a folder on your desktop.

Re: LÖVE 0.5.0

Posted: Wed Sep 24, 2008 8:53 pm
by SamPerson12345
Thanks, but the .exe returns an error once i'm finished running the .bat. Also, what terminal do you mean aqeeliz?

Re: LÖVE 0.5.0

Posted: Thu Sep 25, 2008 7:35 am
by Kaze
SamPerson12345 wrote:Thanks, but the .exe returns an error once i'm finished running the .bat. Also, what terminal do you mean aqeeliz?
What error? It works fine for me :(
Command prompt. Run->cmd

Re: LÖVE 0.5.0

Posted: Thu Oct 09, 2008 5:16 pm
by nightvenom
Kaze wrote:I made a batch file to automate the above.
Save this as a .bat file then drag whatever .love file you want to use onto it.

Code: Select all

@ECHO OFF
SETLOCAL


SET LoveFolder=C:\Program Files\LOVE


SET file=%1
IF NOT (%file:~-6,-1%) == (.love) (
	ECHO Not a .love
	GOTO END
	)


SET dir=%USERPROFILE%\Desktop\%~n1_executable


MKDIR "%dir%"
COPY /B "%LoveFolder%\love.exe"+%1 "%dir%\%~n1.exe"

COPY /B "%LoveFolder%\love.ico" "%dir%\love.ico"

COPY /B "%LoveFolder%\DevIL.dll" "%dir%\DevIL.dll"
COPY /B "%LoveFolder%\ILU.dll" "%dir%\ILU.dll"
COPY /B "%LoveFolder%\msvcp80.dll" "%dir%\msvcp80.dll"
COPY /B "%LoveFolder%\msvcr80.dll" "%dir%\msvcr80.dll"
COPY /B "%LoveFolder%\SDL.dll" "%dir%\SDL.dll"
COPY /B "%LoveFolder%\SDL_mixer.dll" "%dir%\SDL_mixer.dll"

COPY /A "%LoveFolder%\Microsoft.VC80.CRT.manifest" "%dir%\Microsoft.VC80.CRT.manifest"

COPY /A "%LoveFolder%\license.txt" "%dir%\license.txt"


:END
Edit: Makes a folder on your desktop.
Nice, ty :D

Re: LÖVE 0.5.0

Posted: Wed Nov 12, 2008 7:47 am
by Mr. Strange
I want to add a network layer to my current project - it's nothing I've ever done personally before, but I'm not afraid of it.

However, I'm really not sure what it means that love "supports" lua socket. What do I need to grab, and where do I need to put it? I can follow the documentation for actually using lua socket in my app I believe, but I don't know how to get started.

--Mr. Strange

Re: LÖVE 0.5.0

Posted: Wed Nov 12, 2008 8:32 am
by bartbes
Just use

Code: Select all

require "socket"
And I'll also like to use this opportunity to direct you to my networking lib (located under projects & development)

Re: LÖVE 0.5.0

Posted: Wed Nov 19, 2008 9:14 pm
by Mr. Strange
Awesome! thanks for pointing that out.

--Mr. Strange