Error push.lua:101

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
abdullahchalak
Prole
Posts: 1
Joined: Tue May 05, 2020 12:05 am

Error push.lua:101

Post by abdullahchalak »

so i am having courses, they come with folders that include the packages, main lua files and even fonts and libraries. i tried to run my project , but I get this error:Error

error push.lua:101: attempt to call field 'getPixelScale' (a nil value)


Traceback

push.lua:101: in function 'initValues'
push.lua:48: in function 'setupScreen'
main.lua:49: in function 'load'
[C]: in function 'xpcall'
[C]: in function 'xpcall'
how do I fix this?????
User avatar
zorg
Party member
Posts: 3468
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Error push.lua:101

Post by zorg »

Hi and welcome to the forums!

Harvard CS50? They should really tell people their projects are not using the latest Löve version...

up to version 0.10.x: love.window.getPixelScale
from 11.x: love.window.getDPIScale
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
Ulydev
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

Re: Error push.lua:101

Post by Ulydev »

Hello abdullahchalak,

Zorg is right. The CS50 projects are using an older version of LÖVE.
Either use LÖVE 0.10.x, or download the latest version of push - https://github.com/cs50/mario-demo/issues/2
Post Reply

Who is online

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