'sysUtil.appConf()' is not assigned to the 'app.utils' variable

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
Cauan
Prole
Posts: 22
Joined: Thu Mar 09, 2023 5:58 pm

'sysUtil.appConf()' is not assigned to the 'app.utils' variable

Post by Cauan »

Hi, and sorry by the English, I'm using Google translator

I'm having an error, when I try to call the app.utils function, assigned to the lua file by 'aap.lua', it doesn't work.

I don't know what it could be, because I didn't understand the error the error may be in front of me, but I won't be able to solve it

The love file:
Attachments
project.love
Love file
(82.77 KiB) Downloaded 33 times
I'm me, and you are you
User avatar
Bobble68
Party member
Posts: 160
Joined: Wed Nov 30, 2022 9:16 pm
Contact:

Re: 'sysUtil.appConf()' is not assigned to the 'app.utils' variable

Post by Bobble68 »

I don't get the error you get when I run it, so it would help if you said what it is.

I'll have to guess what your problem is, but app.utils is not a function - it is a table that contains the functions getHour() and setBackgroundColor(). To call these functions, you'll have to do something like app.utils.getHour() or app.utils.setBackgroundColor().
Dragon
User avatar
Cauan
Prole
Posts: 22
Joined: Thu Mar 09, 2023 5:58 pm

Re: 'sysUtil.appConf()' is not assigned to the 'app.utils' variable

Post by Cauan »

in clock.lua for example, I tried to use getHour, from the utils table assigned by appConf(aap.lua)
Then it gave an error that there was no getHour in the utils table
So I removed getHour and did it using os.date anyway
I'm me, and you are you
Post Reply

Who is online

Users browsing this forum: No registered users and 52 guests