LÖVE 0.5.0

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
SamPerson12345
Prole
Posts: 41
Joined: Sat Aug 30, 2008 5:35 pm

Re: LÖVE 0.5.0

Post by SamPerson12345 »

I can't figure out how to make it into one .exe. Can you please give more explicit instructions?
User avatar
nightvenom
Prole
Posts: 36
Joined: Sat Aug 16, 2008 3:07 pm

Re: LÖVE 0.5.0

Post 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.
aqeeliz
Prole
Posts: 5
Joined: Tue Sep 23, 2008 8:05 pm

Re: LÖVE 0.5.0

Post 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.
User avatar
Kaze
Party member
Posts: 189
Joined: Sat Jul 19, 2008 4:39 pm
Location: Dublin, Ireland

Re: LÖVE 0.5.0

Post 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.
User avatar
SamPerson12345
Prole
Posts: 41
Joined: Sat Aug 30, 2008 5:35 pm

Re: LÖVE 0.5.0

Post by SamPerson12345 »

Thanks, but the .exe returns an error once i'm finished running the .bat. Also, what terminal do you mean aqeeliz?
User avatar
Kaze
Party member
Posts: 189
Joined: Sat Jul 19, 2008 4:39 pm
Location: Dublin, Ireland

Re: LÖVE 0.5.0

Post 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
User avatar
nightvenom
Prole
Posts: 36
Joined: Sat Aug 16, 2008 3:07 pm

Re: LÖVE 0.5.0

Post 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
Mr. Strange
Party member
Posts: 101
Joined: Mon Aug 11, 2008 5:19 am

Re: LÖVE 0.5.0

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

Re: LÖVE 0.5.0

Post 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)
Mr. Strange
Party member
Posts: 101
Joined: Mon Aug 11, 2008 5:19 am

Re: LÖVE 0.5.0

Post by Mr. Strange »

Awesome! thanks for pointing that out.

--Mr. Strange
Post Reply

Who is online

Users browsing this forum: No registered users and 49 guests