AttributeError: StoreModule object has no attribute 'language'

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
tyreen
Newbie
Posts: 1
Joined: Wed Apr 01, 2020 8:34 am
Contact:

AttributeError: StoreModule object has no attribute 'language'

#1 Post by tyreen »

Everything was working as intended, until today when I tried to get this game to launch. I don't know what has changed but I obviously did something. Because it specified screens.rpy, I took out my custom screens and put them in a separate document, then I replaced the whole code with the screen code from a new renpy project, because I hadn't really customised anything, just added some screens here or there on this part of the project. It will launch a different project with this screen code, but not the one I need to work :(

If it's something really simple please don't judge me, I'm an artist pulling assets together for fun, I really don't understand what I'm doing but I would like to and I'm trying :)

I believe these to be the lines that it has a problem with:

Code: Select all

style default:
    properties gui.text_properties()
    language gui.language

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/screens.rpy", line 12, in script
    style default:
  File "game/screens.rpy", line 12, in script
    style default:
  File "game/screens.rpy", line 14, in <module>
    language gui.language
AttributeError: 'StoreModule' object has no attribute 'language'

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

Full traceback:
  File "C:\Users\brevi\Desktop\renpy-7.3.5-sdk\renpy\bootstrap.py", line 316, in bootstrap
    renpy.main.main()
  File "C:\Users\brevi\Desktop\renpy-7.3.5-sdk\renpy\main.py", line 488, in main
    renpy.game.context().run(node)
  File "game/screens.rpy", line 12, in script
    style default:
  File "game/screens.rpy", line 12, in script
    style default:
  File "C:\Users\brevi\Desktop\renpy-7.3.5-sdk\renpy\ast.py", line 2570, in execute
    self.apply()
  File "C:\Users\brevi\Desktop\renpy-7.3.5-sdk\renpy\ast.py", line 2553, in apply
    value = renpy.python.py_eval(expr)
  File "C:\Users\brevi\Desktop\renpy-7.3.5-sdk\renpy\python.py", line 2059, in py_eval
    return py_eval_bytecode(code, globals, locals)
  File "C:\Users\brevi\Desktop\renpy-7.3.5-sdk\renpy\python.py", line 2052, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "game/screens.rpy", line 14, in <module>
    language gui.language
AttributeError: 'StoreModule' object has no attribute 'language'

Windows-8-6.2.9200
Ren'Py 7.3.5.606
NovaQuest 0.0
Wed Apr 01 13:30:39 2020

User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: AttributeError: StoreModule object has no attribute 'language'

#2 Post by gas »

Create a new project from the launcher, last release.
Create a new script with your screens, name it who knows... 'my_screens.rpy' and drop it in the game folder. Just the screens you've created, no extra lines.
Drop your 'script.rpy' file and overwrite the actual default one.

That should have your game work.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

Post Reply

Who is online

Users browsing this forum: Google [Bot]