Skip to content
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

[Bug (Minor)] False warning flag with persistent variables defaulted in other source files #189

Open
pjpollina opened this issue Aug 28, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@pjpollina
Copy link
Contributor

Say I do default persistent.game_clear = False in script.rpy

image

Now say I try referencing it in main_menu.rpy

image

Despite the warning, it still works fine. You can get around the warning by repeating default persistent.game_clear = False in main_menu.rpy, but then this flags a duplicate declaration in Lint. Really minor issue, and honestly I dunno if it's even worth spending that much time on to fix, but felt I might as well bring it to your attention.

@Gouvernathor
Copy link
Member

I got the same warning, but with the variable being in the same file, only further down.
image

@Gouvernathor
Copy link
Member

Also, I would advise the error message to only say "not been defaulted", because using define with persistent is now a lint warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants