-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error push.lua:48 : bad argument # 2 to 'windowUpdateMode'(number expected, got table) #34
Comments
Hi @Empyre17 , thanks for using push. Could you please explain your issue more in detail? How do you use the library (are you calling a function? Show a relevant part of your code e.g. main.lua), what is the error you get? |
Im using the library on main.lua here the code
function love.load()
push:setupScreen(VIRTUAL_WIDTH, VIRTUAL_HEIGHT, WINDOW_HEIGHT, {
fullscreen = false,
resizable = false,
vsync = true
})
end
and i have the other error on this segment of my code, it says that is
waiting for a number and got a table, but i really doesnt know how to fix
it, or Im thinking that on the code of main.lua I´m using it wrong
windowUpdateMode(self._RWIDTH, self._RHEIGHT, {
fullscreen = self._fullscreen,
resizable = self._resizable,
highdpi = self._highdpi}
)
El lun., 20 de jul. de 2020 a la(s) 12:26, Ulydev (notifications@github.com)
escribió:
… Hi @Empyre17 <https://github.com/Empyre17> , thanks for using push. Could
you please explain your issue more in detail? How do you use the library
(are you calling a function? Show a relevant part of your code e.g.
main.lua), what is the error you get?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#34 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/APOPX7FCIMS7WYU7QHA4BTTR4R45BANCNFSM4PCPT2MQ>
.
|
I also send a email, but here is where I called push:setupScreen |
I think you forgot to add the |
Yep it was that, thats the beautiful of programing, lol a simple mistake can give you headaches, and btw thanks you are my hero |
Please help me I'm using push library in my project ..and i copied the code push.lua provided by you in push.lua file and when i run the program this error is expected on this line of code
windowUpdateMode(self._RWIDTH, self._RHEIGHT, {
fullscreen = self._fullscreen,
resizable = self._resizable,
highdpi = self._highdpi
})
`function push:setupScreen(WWIDTH, WHEIGHT, RWIDTH, RHEIGHT, settings)
settings = settings or {}
self._WWIDTH, self._WHEIGHT = WWIDTH, WHEIGHT
self._RWIDTH, self._RHEIGHT = RWIDTH, RHEIGHT
self:applySettings(self.defaults) --set defaults first
self:applySettings(settings) --then fill with custom settings
windowUpdateMode(self._RWIDTH, self._RHEIGHT, {
fullscreen = self._fullscreen,
resizable = self._resizable,
highdpi = self._highdpi
})
self:initValues()
if self._canvas then
self:setupCanvas({ "default" }) --setup canvas
end
self._borderColor = {0, 0, 0}
self._drawFunctions = {
["start"] = self.start,
["end"] = self.finish
}
return self
end`
The text was updated successfully, but these errors were encountered: