Page 3 of 5

Re: Love Builder - Automatic .love and Executable Creation

Posted: Mon Feb 07, 2011 6:25 pm
by Jasoco
What's with newbies getting all defensive lately?

Re: Love Builder - Automatic .love and Executable Creation

Posted: Mon Feb 07, 2011 6:38 pm
by leiradel
Jasoco wrote:What's with newbies getting all defensive lately?
Hehehe, I was writing a post like yours but you beat me.

I've tested with LÖVE 0.7.0 on Windows XP Professional 32-bits SP3, and the resulting executable really doesn't work. It just runs the "nogame" code. If I, however, run

Code: Select all

game game.exe
it works. I took a look at boot.lua but I don't have what it takes to rebuild love.exe with prints to debug it and see why it's failing to recognize that the executable in argv[0] already has a game in it. It does check for that though.

Anyone wants to patronize me? :3

Re: Love Builder - Automatic .love and Executable Creation

Posted: Mon Feb 07, 2011 7:31 pm
by Robin
So the problem seems to exist
  • Only on Windows
  • Only with LÖVE 0.7.0
  • Only for some people

Re: Love Builder - Automatic .love and Executable Creation

Posted: Mon Feb 07, 2011 7:56 pm
by BlackBulletIV
EMB wrote:I get no error, just love starting up as though it is just on it's own. It isn't that the file won't copy, just that love starts up as though it has no parameters.
Hmmmmm, I've had problems like this on a Mac. I don't think you're doing this, but make sure you're not merging into an executable with the same name as the love executable you're merging with. Here's an example of what I mean:

Code: Select all

copy /b game.exe+game.love game.exe
Notice how in that command I'm taking from game.exe and putting back into game.exe. I found, on my Mac at least, this causes problems and usually results in the default screen.
EMB wrote:!?*@#!
No comment on my enraged feelings or wether or not you are being extremely patronising.
:ehem: Just be thankful he's trying to help at all. You didn't say you weren't doing that so it's only fair to cross that off the list.
Jasoco wrote:What's with newbies getting all defensive lately?
He he he he, I know eh...

Re: Love Builder - Automatic .love and Executable Creation

Posted: Mon Feb 07, 2011 9:08 pm
by EMB
Robin wrote:So the problem seems to exist
  • Only on Windows
  • Only with LÖVE 0.7.0
  • Only for some people
Exactly.

Re: Love Builder - Automatic .love and Executable Creation

Posted: Mon Feb 07, 2011 9:15 pm
by Robin
Only now it seems to be something like:
  • Only on Windows (or possibly Macs sometimes)
  • Only with LÖVE 0.7.0
  • Only for some people

Re: Love Builder - Automatic .love and Executable Creation

Posted: Mon Feb 07, 2011 9:41 pm
by EMB
Hmmmm....

Re: Love Builder - Automatic .love and Executable Creation

Posted: Mon Feb 07, 2011 10:43 pm
by BlackBulletIV
However it's only on Mac (in my experience, and as far as I can remember) if you execute a command like I showed before.

Re: Love Builder - Automatic .love and Executable Creation

Posted: Tue Feb 08, 2011 12:07 am
by leiradel
I've just tested on another machine: Windows 7 Professional 64-bits. The problem is the same, running the resulting executable shows the "nogame" animation, and running "love game.exe" works.

Are there other people with the same problem on Windows and LÖVE 0.7.0?

Re: Love Builder - Automatic .love and Executable Creation

Posted: Wed Feb 09, 2011 2:32 am
by leiradel
Ok, I've got LÖVE dependencies for Windows from here and setup a solution in VS2008. I had to
  • Add additional include folders
  • Add additional library folders
  • Rename two files as stupid VS outputs all object files to the same intermediate directory
  • Grab two missing files from luasocket source files
But at the end VS refuses to link, saying that there are unresolved externals that are however defined in the LÖVE sources (such as luaopen_love_image defined in wrap_Image.cpp.)

I wanted to try to debug the problem where making an executable with "copy/b love.exe+game.love game.exe" doesn't work, but I give up.

If someone has a solution file for VS2008 that I can try please post it here. I could try MinGW but I'd have to get/build the dependencies for it, not gonna happen...

Cheers,

Andre