Multiple Love App Bug? [Mac]

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.
Post Reply
User avatar
dizzykiwi3
Citizen
Posts: 58
Joined: Tue Jan 14, 2014 2:03 am

Multiple Love App Bug? [Mac]

Post by dizzykiwi3 »

I'm making builds for a friend of mine remotely, and we're both mac users. However, after downloading Love for themself to try and mess around with it, running the builds throws a blue screen immediately for him with an error saying a function that is definitely defined was not defined.

Does anyone know what this bug is? Did I package my game incorrectly?
User avatar
dizzykiwi3
Citizen
Posts: 58
Joined: Tue Jan 14, 2014 2:03 am

Re: Multiple Love App Bug? [Mac]

Post by dizzykiwi3 »

could it be my require ussage? I use
require "folder/file"

and I see one can also do
require("folder.file")
User avatar
yetneverdone
Party member
Posts: 446
Joined: Sat Sep 24, 2016 11:20 am
Contact:

Re: Multiple Love App Bug? [Mac]

Post by yetneverdone »

Could it be some mistyping? Also make sure of the scope of the function.

And, showing us your codes will help us figure it out more
User avatar
slime
Solid Snayke
Posts: 3131
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Multiple Love App Bug? [Mac]

Post by slime »

Are you running an un-fused game folder on your local machine, whereas your friend is running a zipped .love file (either fused or unfused)? The zip file system is case-sensitive whereas the regular macOS filesystem is not by default, so if you have incorrect capitalization in your code for loading or reading a file it will work if the folder is loaded through love but not if a .love file is, in macOS (and Windows).
User avatar
dizzykiwi3
Citizen
Posts: 58
Joined: Tue Jan 14, 2014 2:03 am

Re: Multiple Love App Bug? [Mac]

Post by dizzykiwi3 »

I have encountered that situation before, but I think it is not that as I can run the zipped love file on my computer. As well I just double checked the capitalization.
User avatar
dizzykiwi3
Citizen
Posts: 58
Joined: Tue Jan 14, 2014 2:03 am

Re: Multiple Love App Bug? [Mac]

Post by dizzykiwi3 »

yetneverdone wrote: Wed May 03, 2017 2:45 am Could it be some mistyping? Also make sure of the scope of the function.

And, showing us your codes will help us figure it out more
The blue screen in question
18308756_10158521442835104_1820869496_n.png
18308756_10158521442835104_1820869496_n.png (11.57 KiB) Viewed 6455 times
The function in question in controls.lua
Screen Shot 2017-05-03 at 2.28.02 PM.png
Screen Shot 2017-05-03 at 2.28.02 PM.png (40.17 KiB) Viewed 6455 times
The require calls from player.lua
Screen Shot 2017-05-03 at 2.28.21 PM.png
Screen Shot 2017-05-03 at 2.28.21 PM.png (12.77 KiB) Viewed 6455 times
to main.lua
Image
User avatar
dizzykiwi3
Citizen
Posts: 58
Joined: Tue Jan 14, 2014 2:03 am

Re: Multiple Love App Bug? [Mac]

Post by dizzykiwi3 »

My friend also downloaded another love game of mine from online, which may another cause? Could this have changed some directory if I had not packaged the games properly?
User avatar
zorg
Party member
Posts: 3436
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Multiple Love App Bug? [Mac]

Post by zorg »

Okay, so please show
- line 32 of your main.lua with the update function,
- line 244 of your menus.lua with the updateMenus function,
- line 113 of your controls.lua with the updateKeyboard function.
and the surrounding code as well, as per the traceback that the error screen shows.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
dizzykiwi3
Citizen
Posts: 58
Joined: Tue Jan 14, 2014 2:03 am

Re: Multiple Love App Bug? [Mac]

Post by dizzykiwi3 »

Wait I am so so so silly, I was totally misreading the error, this is entirely an error in my logic... I was misdrawing conclusions from coincidences like superstition.

Sincerest apologies for my inability to read all, but thanks so sincerely for being such a great community to help me out with my silly bug witch hunt. Many thanks Zorg for reminding me I need to actually read the traceback and error, duh.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 41 guests