[SOLVED] lint error

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
User avatar
M0ti
Regular
Posts: 66
Joined: Mon Aug 15, 2011 1:06 pm
Contact:

[SOLVED] lint error

#1 Post by M0ti » Sun Apr 27, 2014 5:57 am

Hi, I have a problem with one of my projects. I can launch it normally, I can build distribution normally, but when a use Lint... Error:
"Launching the project failed. Please ensure that your project launches normally before running this command."
It's not the classical error with wrong code line, so that I can start looking for solution. It's inside the Ren'py Launcher and I'm scared of what kind of consequences it may have in the future.
Last edited by M0ti on Sun Jun 01, 2014 7:20 pm, edited 1 time in total.

User avatar
Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: lint error

#2 Post by Asceai » Sun Apr 27, 2014 6:34 am

Try creating a new project and copying your old project's game directory into it, then see if that works.

User avatar
M0ti
Regular
Posts: 66
Joined: Mon Aug 15, 2011 1:06 pm
Contact:

Re: lint error

#3 Post by M0ti » Sun Apr 27, 2014 2:55 pm

It's same. Nothing has changed.

User avatar
Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: lint error

#4 Post by Asceai » Tue Apr 29, 2014 4:51 am

Check the files 'traceback.txt' and 'log.txt' which should appear in the game's base directory after running lint and having lint fail. That should tell you what might be causing problems. There are some situations that can cause stuff that was previously okay (and was compiled to .rpyc while okay) to not work now. Lint needs to recompile everything to work, so it's something broken that's just currently working because you haven't changed the script in a while.

User avatar
M0ti
Regular
Posts: 66
Joined: Mon Aug 15, 2011 1:06 pm
Contact:

Re: lint error

#5 Post by M0ti » Sun Jun 01, 2014 2:57 pm

Hi,

I finally found some time, looked for what you recommended to me and found this in traceback.txt:

Code: Select all

I'm sorry, but an uncaught exception occurred.

After initialization, but before game start.
  File "renpy/common/000statements.rpy", line 111, in lint_play_music
    if not isinstance(file, list):
TypeError: isinstance() arg 2 must be a class, type, or tuple of classes and types

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "C:\Users\Emil\Desktop\PSP\Renpy\renpy-6.15.7-sdk\renpy\bootstrap.py", line 285, in bootstrap
    renpy.main.main()
  File "C:\Users\Emil\Desktop\PSP\Renpy\renpy-6.15.7-sdk\renpy\main.py", line 319, in main
    if not renpy.arguments.post_init():
  File "C:\Users\Emil\Desktop\PSP\Renpy\renpy-6.15.7-sdk\renpy\arguments.py", line 229, in post_init
    return commands[command]()
  File "C:\Users\Emil\Desktop\PSP\Renpy\renpy-6.15.7-sdk\renpy\lint.py", line 590, in lint
    check_user(node)
  File "C:\Users\Emil\Desktop\PSP\Renpy\renpy-6.15.7-sdk\renpy\lint.py", line 274, in check_user
    node.call("lint")
  File "C:\Users\Emil\Desktop\PSP\Renpy\renpy-6.15.7-sdk\renpy\ast.py", line 1611, in call
    renpy.statements.call(method, parsed, *args, **kwargs)
  File "C:\Users\Emil\Desktop\PSP\Renpy\renpy-6.15.7-sdk\renpy\statements.py", line 144, in call
    return method(parsed, *args, **kwargs)
  File "renpy/common/000statements.rpy", line 111, in lint_play_music
    if not isinstance(file, list):
TypeError: isinstance() arg 2 must be a class, type, or tuple of classes and types

Windows-post2008Server-6.2.9200
Ren'Py 6.17.6.512
Bozi skript 0.0
I tried some stuff and found out, that when i hide all play music and play sound statements, it works fine. But I still don't what to do with my discovery. As I said, all other projects are working fine.

User avatar
Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: lint error

#6 Post by Asceai » Sun Jun 01, 2014 6:40 pm

It looks like you're redefining 'list' somewhere. Do you have any variables called 'list' or anything like that?

User avatar
M0ti
Regular
Posts: 66
Joined: Mon Aug 15, 2011 1:06 pm
Contact:

Re: lint error

#7 Post by M0ti » Sun Jun 01, 2014 7:20 pm

yes, this was really the case. Thank you very very much. Without you and other people on this forum I would ended with creating visual novels a long time ago.

Post Reply

Who is online

Users browsing this forum: No registered users