(help) how do you compile your game to be a double click exe

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
Xcmd
Party member
Posts: 211
Joined: Fri Feb 13, 2009 10:45 pm

Re: (help) how do you compile your game to be a double click exe

Post by Xcmd »

mike wrote:
bartbes wrote:
Xcmd wrote:I would recommend, however, that you keep the .love'd version handy for those of us that don't use Windows and don't want to use Wine or can't use Wine.
linux:

Code: Select all

love game.exe
just works...
So does double-clicking if you've associated all .exe files with Wine. Not everybody is willing to install Wine, however. I'm just sayin' is all.
We don't borrow, we don't read, we don't rent, we don't lease, we take the minds!
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: (help) how do you compile your game to be a double click exe

Post by bartbes »

You don't need wine when you feed the .exe to love, it just treats it like a normal .love/.zip.
User avatar
Xcmd
Party member
Posts: 211
Joined: Fri Feb 13, 2009 10:45 pm

Re: (help) how do you compile your game to be a double click exe

Post by Xcmd »

Ah, interesting.
We don't borrow, we don't read, we don't rent, we don't lease, we take the minds!
User avatar
KrakensDen
Prole
Posts: 3
Joined: Sun Mar 22, 2009 9:38 pm

Re: (help) how do you compile your game to be a double click exe

Post by KrakensDen »

I'd like to point out that you didn't really answer his question.

Code: Select all

copy /b love.exe+game.love game.exe
does produce an executable, but simply double clicking it in a directory with the requisite dlls doesn't seem to work, because Windows doesn't change the working directory.

Yes, you can go there and type

Code: Select all

game.exe
on the command line, but that's still kind of a bad distribution method, especially to Windows users...

(I've only tested this on Windows XP, perhaps this works on Vista?)
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: (help) how do you compile your game to be a double click exe

Post by bartbes »

I always had that working? Clicking on a .exe directly gives the directory where it's located as working dir?
User avatar
KrakensDen
Prole
Posts: 3
Joined: Sun Mar 22, 2009 9:38 pm

Re: (help) how do you compile your game to be a double click exe

Post by KrakensDen »

Well, I'm sure it could be some sort of obscure configuration issue...

Does anyone know anything about windows?
User avatar
osgeld
Party member
Posts: 303
Joined: Sun Nov 23, 2008 10:13 pm

Re: (help) how do you compile your game to be a double click exe

Post by osgeld »

i know i have it installed and have booted it up maybe 10 times, if you want me to check it out
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: (help) how do you compile your game to be a double click exe

Post by Robin »

mike wrote:
bartbes wrote:
Xcmd wrote:I would recommend, however, that you keep the .love'd version handy for those of us that don't use Windows and don't want to use Wine or can't use Wine.
linux:

Code: Select all

love game.exe
just works...
Xcmd wrote:So does double-clicking if you've associated all .exe files with Wine. Not everybody is willing to install Wine, however. I'm just sayin' is all.
Still, especially for small games is still useful for anyone who has LÖVE installed. For larger ones it doesn't matter, but for a small game 4.27 MB for game.exe+dll's or 1.46 MB for just game.exe is quite a lot.

EDIT: Silly quote-nesting limit.
Help us help you: attach a .love.
hellfiresage
Prole
Posts: 49
Joined: Tue Feb 10, 2009 6:07 pm

Re: (help) how do you compile your game to be a double click exe

Post by hellfiresage »

ok so i take my game file and put the love.exe in it? or am i wrong?





i dont have time to go on the mibbet chat and ask i no it's a simple question. also is there a turtrial for rotating an image depending on the location of the mouse? thanks.
User avatar
KrakensDen
Prole
Posts: 3
Joined: Sun Mar 22, 2009 9:38 pm

Re: (help) how do you compile your game to be a double click exe

Post by KrakensDen »

ok so i take my game file and put the love.exe in it? or am i wrong?
You are wrong- you need to concatenate them together. Read the tutorial, and use the copy command on Windows or cat on Linux/OS X. You need to use the command line.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 47 guests