Löve decides to break the game upon compiling?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
TheOdyssey
Citizen
Posts: 52
Joined: Mon Jul 13, 2015 4:29 pm
Location: Turn Around...

Löve decides to break the game upon compiling?

Post 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?
Attachments
map.love
(39.71 KiB) Downloaded 191 times
Last edited by TheOdyssey on Tue Apr 12, 2016 12:16 am, edited 1 time in total.
User avatar
Skeiks
Citizen
Posts: 51
Joined: Wed Jan 28, 2015 1:51 pm

Re: Löve decides to break the game upon compiling?

Post 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
User avatar
HugoBDesigner
Party member
Posts: 403
Joined: Mon Feb 24, 2014 6:54 pm
Location: Above the Pocket Dimension
Contact:

Re: Löve decides to break the game upon compiling?

Post 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...
@HugoBDesigner - Twitter
HugoBDesigner - Blog
User avatar
TheOdyssey
Citizen
Posts: 52
Joined: Mon Jul 13, 2015 4:29 pm
Location: Turn Around...

Re: Löve decides to break the game upon compiling?

Post 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
User avatar
substitute541
Party member
Posts: 484
Joined: Fri Aug 24, 2012 9:04 am
Location: Southern Leyte, Visayas, Philippines
Contact:

Re: Löve decides to break the game upon compiling?

Post 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?
Currently designing themes for WordPress.

Sometimes lurks around the forum.
User avatar
pgimeno
Party member
Posts: 3544
Joined: Sun Oct 18, 2015 2:58 pm

Re: Löve decides to break the game upon compiling?

Post 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?
User avatar
substitute541
Party member
Posts: 484
Joined: Fri Aug 24, 2012 9:04 am
Location: Southern Leyte, Visayas, Philippines
Contact:

Re: Löve decides to break the game upon compiling?

Post 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.
Currently designing themes for WordPress.

Sometimes lurks around the forum.
Robert Freeman
Prole
Posts: 5
Joined: Mon Apr 11, 2016 11:21 pm

Re: Löve decides to break the game upon compiling?

Post by Robert Freeman »

Also please make it so that when you press ESC, it closes it. Helps alot!
Post Reply

Who is online

Users browsing this forum: TurboYeti and 57 guests