Error with 00start.rpy Maybe from version upgrade?

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:

Error with 00start.rpy Maybe from version upgrade?

#1 Post by M0ti » Wed Mar 05, 2014 7:16 pm

Hi! I let one of my projects untouched for a while. Now I feel like making some progress, but when I tried to run it, it didn't even get to main menu. Instead error came.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 96, in script
  File "renpy/common/00start.rpy", line 96, in python
  File "renpy/common/00start.rpy", line 36, in python
AttributeError: 'ADVCharacter' object has no attribute 'environ'

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

Full traceback:
  File "C:\Users\Emil\Desktop\PSP\Renpy\renpy-6.15.7-sdk\renpy\execution.py", line 288, in run
    node.execute()
  File "C:\Users\Emil\Desktop\PSP\Renpy\renpy-6.15.7-sdk\renpy\ast.py", line 718, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\Emil\Desktop\PSP\Renpy\renpy-6.15.7-sdk\renpy\python.py", line 1297, in py_exec_bytecode
    exec bytecode in globals, locals
  File "renpy/common/00start.rpy", line 96, in <module>
    $ _init_language()
  File "renpy/common/00start.rpy", line 36, in _init_language
    if "RENPY_LANGUAGE" in os.environ:
AttributeError: 'ADVCharacter' object has no attribute 'environ'
Until this day I didn't even know, that there are files like this, so I'm pretty sure I didn't touch them. I think I was maybe upgrading ren'py from some older version during these months. Some thing's have changed like taking fonts right from games folders instead of taking them from Ren'py folder. After this adjustment is workign almost everyone of my projects, except for this one.

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: Error with 00start.rpy Maybe from version upgrade?

#2 Post by PyTom » Wed Mar 05, 2014 8:02 pm

What version are you at? This is a problem caused by having a character named "os" - but I freed up that name in a recent version. If you upgrade to the 6.17.3, this should be fixed.
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
M0ti
Regular
Posts: 66
Joined: Mon Aug 15, 2011 1:06 pm
Contact:

Re: Error with 00start.rpy Maybe from version upgrade?

#3 Post by M0ti » Thu Mar 06, 2014 6:41 am

And now it works. Thank you. I'm not sure, what version i had before, but it seems it was the problem.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]