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:
'sysUtil.appConf()' is not assigned to the 'app.utils' variable
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
'sysUtil.appConf()' is not assigned to the 'app.utils' variable
- Attachments
-
- project.love
- Love file
- (82.77 KiB) Downloaded 72 times
I'm me, and you are you
Re: 'sysUtil.appConf()' is not assigned to the 'app.utils' variable
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().
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
Re: 'sysUtil.appConf()' is not assigned to the 'app.utils' variable
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
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
Who is online
Users browsing this forum: Majestic-12 [Bot] and 5 guests