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?
Löve decides to break the game upon compiling?
- TheOdyssey
- Citizen
- Posts: 52
- Joined: Mon Jul 13, 2015 4:29 pm
- Location: Turn Around...
Löve decides to break the game upon compiling?
- Attachments
-
- map.love
- (39.71 KiB) Downloaded 220 times
Last edited by TheOdyssey on Tue Apr 12, 2016 12:16 am, edited 1 time in total.
Re: Löve decides to break the game upon compiling?
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
- 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?
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...
EDIT: I just ran the file a second time and it worked perfectly, so this is even more confusing...
- 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?
Worked for me too. Guess I fixed it on accident?HugoBDesigner wrote: EDIT: I just ran the file a second time and it worked perfectly, so this is even more confusing...
EDIT: I made no edits but it only works outside of the project folder. I think this might be just a my system thing
- 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?
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?
Edit: By Atom you mean Github's Atom.io editor right?
Currently designing themes for WordPress.
Sometimes lurks around the forum.
Sometimes lurks around the forum.
Re: Löve decides to break the game upon compiling?
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?
- 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?
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.
Sometimes lurks around the forum.
-
- Prole
- Posts: 5
- Joined: Mon Apr 11, 2016 11:21 pm
Re: Löve decides to break the game upon compiling?
Also please make it so that when you press ESC, it closes it. Helps alot!
Who is online
Users browsing this forum: Ahrefs [Bot] and 4 guests