"Screen has not been given a parameter list" Lint

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
lsf22
Regular
Posts: 98
Joined: Wed Feb 23, 2022 9:43 pm
Contact:

"Screen has not been given a parameter list" Lint

#1 Post by lsf22 » Wed Mar 30, 2022 5:28 pm

Renpy 7.4.11

I ran the Check Script (Lint) and it comes up with results of my screens not having a parameter list.
They seem to work fine. Is there a reason I should use the () for them? I ask because that was a suggestion for one of them from the check script.

game/CustomGameScreen.rpy:## The screen Stats1 has not been given a parameter list.
This can be fixed by writing 'screen Stats1I():' instead.

Also what is "i" defined for by default? I also saw this as the check script result

game/script.rpy:# 'define i' replaces a Ren'Py built-in name, which may cause problems.

User avatar
Ocelot
Eileen-Class Veteran
Posts: 1883
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: "Screen has not been given a parameter list" Lint

#2 Post by Ocelot » Thu Mar 31, 2022 4:09 am

< < insert Rick Cook quote here > >

Post Reply

Who is online

Users browsing this forum: No registered users