Strange behavior when you 'Check Script (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
alex.theoto
Regular
Posts: 55
Joined: Sun Sep 13, 2015 3:11 pm
Location: Greece
Contact:

Strange behavior when you 'Check Script (Lint)'

#1 Post by alex.theoto » Sat Dec 26, 2015 7:23 pm

Ok, it took me a lot of time until I could understand when and how this bug is active...

On Linux system:
Lets say that standalone renpy is on directory /home/alex/Downloads/renpy-6.xxx/
When you run the standalone renpy.sh from terminal with the command

Code: Select all

./Downloads/renpy-6.xxx/renpy.sh
renpy opens fine but when you try to check your script, you get errors like:

Code: Select all

Ren'Py 6.99.8.959 lint report, generated at: Sun Dec 27 01:07:05 2015

/home/alex/00definitions.rpyc:333 'define fade' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:334 'define dissolve' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:335 'define pixellate' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:338 'define wiperight' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:339 'define wipeleft' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:340 'define wipeup' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:341 'define wipedown' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:343 'define slideright' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:344 'define slideleft' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:345 'define slideup' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:346 'define slidedown' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:348 'define slideawayright' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:349 'define slideawayleft' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:350 'define slideawayup' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:351 'define slideawaydown' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:353 'define irisout' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:354 'define irisin' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:357 'define pushright' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:358 'define pushleft' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:359 'define pushup' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:360 'define pushdown' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:363 'define zoomin' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:364 'define zoomout' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:365 'define zoominout' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:369 'define vpunch' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:370 'define hpunch' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:373 'define blinds' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:374 'define squares' replaces a Ren'Py built-in name, which may cause problems.

/home/alex/00definitions.rpyc:377 'define _narrator' replaces a Ren'Py built-in name, which may cause problems.


Statistics:

The game contains 214 dialogue blocks, containing 1,963 words and 10,256
characters, for an average of 9.2 words and 48 characters per block.

The game contains 0 menus, 26 images, and 30 screens.


Lint is not a substitute for thorough testing. Remember to update Ren'Py
before releasing. New releases fix bugs and improve compatibility.
Now, if I open renpy from terminal by:

Code: Select all

cd Downloads/renpy-6.xxx/
./renpy.sh
The check script works fine.

If I go at the root directory of my disk and give:

Code: Select all

cd /
./home/alex/Downloads/renpy-6.xxx/renpy.sh
then again works fine.

So, there must be something wrong with the path for 00definitions.rpyc
Something like it search from the [startup] directory.

Sorry but I cannot explain more technically...

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Strange behavior when you 'Check Script (Lint)'

#2 Post by PyTom » Mon Dec 28, 2015 2:56 am

Where are your game files, and where is Ren'Py? It seems like you could have somehow placed Ren'Py inside your game.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Zetsubou
Miko-Class Veteran
Posts: 513
Joined: Wed Mar 05, 2014 1:00 am
Completed: See my signature
Github: koroshiya
itch: zetsuboushita
Contact:

Re: Strange behavior when you 'Check Script (Lint)'

#3 Post by Zetsubou » Mon Dec 28, 2015 3:59 am

I'm experiencing the same behavior.
~/Syncthing/Renpy/renpy.sh
~/Syncthing/Renpy/Tutorial/game/
Renpy is definitely not within the game.

This happens with every game, including Tutorial and The Question.
The steps to reproduce or avoid the problem are exactly as alex.theoto said.
Finished games
-My games: Sickness, Wander No More, Max Massacre, Humanity Must Perish, Tomboys Need Love Too, Sable's Grimoire, My Heart Grows Fonder, Man And Elf, A Dragon's Treasure
-Commissions: No One But You, Written In The Sky, Diamond Rose, To Libertad, Catch Canvas, Love Ribbon, Happy Campers, Wolf Tails

Working on:
Sable's Grimoire 2

Image

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Strange behavior when you 'Check Script (Lint)'

#4 Post by nyaatrap » Mon Dec 28, 2015 4:55 am

Similar thing happened to me when I updated windows 7 to 10, and updated ren'py to 6.99.8 prerelease.
It fixed when I moved the whole ren'py folder into a different directory (c:\) then recompiled all.

alex.theoto
Regular
Posts: 55
Joined: Sun Sep 13, 2015 3:11 pm
Location: Greece
Contact:

Re: Strange behavior when you 'Check Script (Lint)'

#5 Post by alex.theoto » Mon Dec 28, 2015 3:48 pm

Games are at /home/alex/RenpyGames/
The same happens if I use the version from my distribution (plus another problem but I'll discuss it on a new post).

I tried to load the games from the root directory at /renpy with users permissions but without success.
The same goes if games are at renpy's sdk folder.

Games are at /home/alex/RenpyGames
Renpy is at /home/alex/Downloads/renpy-6.99.8-sdk

User avatar
Zetsubou
Miko-Class Veteran
Posts: 513
Joined: Wed Mar 05, 2014 1:00 am
Completed: See my signature
Github: koroshiya
itch: zetsuboushita
Contact:

Re: Strange behavior when you 'Check Script (Lint)'

#6 Post by Zetsubou » Sat Jan 02, 2016 7:07 pm

Seems to be a problem with the working directory.
I just tried modifying the lint label in the launcher game to temporarily change working directories, and I didn't get any lint errors.

Code: Select all

label lint:
    python hide:
        wdir = os.getcwd()
        newWdir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
        os.chdir(newWdir)

        interface.processing(_("Checking script for potential problems..."))
        lint_fn = project.current.temp_filename("lint.txt")

        project.current.launch([ 'lint', lint_fn ], wait=True)

        e = renpy.editor.editor
        e.begin(True)
        e.open(lint_fn)
        e.end()
        os.chdir(wdir)

    jump front_page
Finished games
-My games: Sickness, Wander No More, Max Massacre, Humanity Must Perish, Tomboys Need Love Too, Sable's Grimoire, My Heart Grows Fonder, Man And Elf, A Dragon's Treasure
-Commissions: No One But You, Written In The Sky, Diamond Rose, To Libertad, Catch Canvas, Love Ribbon, Happy Campers, Wolf Tails

Working on:
Sable's Grimoire 2

Image

Post Reply

Who is online

Users browsing this forum: Google [Bot], Ocelot