Page 1 of 1
Löve decides to break the game upon compiling?
Posted: Mon Apr 11, 2016 9:54 pm
by TheOdyssey
I've been testing out some tools for love2d and I started using a STI. I got the map working and everything but it only seems to work inside Atom but when I turn it into a .love the game suddenly becomes un playable and just gives a black screen.
This is what it's supposed to do
YOUR MOUSE WILL LOCK. Press Ctrl+W or alt+f4
(slide your mouse to the bottom right to make the map show) Anything I'm doing wrong?
Re: Löve decides to break the game upon compiling?
Posted: Mon Apr 11, 2016 11:27 pm
by Skeiks
I didn't get the chance to look at the code, but you should definitely let people know that this program will lock up your mouse cursor. To exit I had to alt-f4
Re: Löve decides to break the game upon compiling?
Posted: Mon Apr 11, 2016 11:33 pm
by HugoBDesigner
While I can't determine the cause of the problem, I know from experience that, sometimes, variables react differently in IDE and compiled game in regards to case sensitiveness. For example, if I have a variable "Test" and later call it as "test", it may return true or false depending on how you're running the game. So my recommendation, while not necessarily the most helpful, is: make sure that variables are called the same way across all files and such.
EDIT: I just ran the file a second time and it worked perfectly, so this is even more confusing...
Re: Löve decides to break the game upon compiling?
Posted: Tue Apr 12, 2016 12:17 am
by TheOdyssey
HugoBDesigner wrote:
EDIT: I just ran the file a second time and it worked perfectly, so this is even more confusing...
Worked for me too. Guess I fixed it on accident?
EDIT: I made no edits but it only works outside of the project folder. I think this might be just a my system thing
Re: Löve decides to break the game upon compiling?
Posted: Tue Apr 12, 2016 1:32 am
by substitute541
You're using Atom? Close Atom. Then re-package the .love and run it.
Edit: By Atom you mean Github's Atom.io editor right?
Re: Löve decides to break the game upon compiling?
Posted: Tue Apr 12, 2016 5:06 pm
by pgimeno
Works for me, though one weird thing is that the starting position seems to depend on where the mouse pointer is initially. Maybe that has to do with the issue?
Re: Löve decides to break the game upon compiling?
Posted: Wed Apr 13, 2016 9:47 am
by substitute541
Atom editor takes ownership of all files in the project folder while the editor is open (thanks to some weird Node.js permission stuff), so that's probably the issue if you're building the .love file and it happens to be inside the folder you're working on.
Re: Löve decides to break the game upon compiling?
Posted: Wed Apr 13, 2016 10:52 pm
by Robert Freeman
Also please make it so that when you press ESC, it closes it. Helps alot!