How to change the path to the GUI?

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
FFY
Newbie
Posts: 1
Joined: Wed Jul 01, 2020 5:43 pm
Contact:

How to change the path to the GUI?

#1 Post by FFY » Thu Jul 02, 2020 11:33 am

Hi, hackers. I want to change the directory of the GUI folder. Suppose she is now the following:
/somefolder/game/gui
I want to do this:
/somefolder/game/content/visual/gui
But when changing the directory, RenPy starts to throw errors.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
Exception: DynamicImage [u'gui/button/navigation_[prefix_]background.png', u'gui/button/[prefix_]background.png']: could not find image. (u'gui/button/navigation_idle_background.png', u'gui/button/navigation_background.png', and 2 more.)

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  File "F:\FanYan_Entertaiment\GAME\Tech_Part\renpy-7.3.5-sdk\renpy\ast.py", line 914, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\FanYan_Entertaiment\GAME\Tech_Part\renpy-7.3.5-sdk\renpy\python.py", line 2028, in py_exec_bytecode
    exec bytecode in globals, locals
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "F:\FanYan_Entertaiment\GAME\Tech_Part\renpy-7.3.5-sdk\renpy\ui.py", line 297, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "F:\FanYan_Entertaiment\GAME\Tech_Part\renpy-7.3.5-sdk\renpy\display\core.py", line 2702, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
  File "F:\FanYan_Entertaiment\GAME\Tech_Part\renpy-7.3.5-sdk\renpy\display\core.py", line 3194, in interact_core
    self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
  File "F:\FanYan_Entertaiment\GAME\Tech_Part\renpy-7.3.5-sdk\renpy\display\core.py", line 2094, in draw_screen
    renpy.config.screen_height,
  File "renpy/display/render.pyx", line 490, in renpy.display.render.render_screen (gen\renpy.display.render.c:6805)
    rv = render(root, width, height, st, st)
  File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen\renpy.display.render.c:3520)
    rv = d.render(widtho, heighto, st, at)
  File "F:\FanYan_Entertaiment\GAME\Tech_Part\renpy-7.3.5-sdk\renpy\display\layout.py", line 722, in render
    surf = render(child, width, height, cst, cat)
  File "renpy/display/render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:4075)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen\renpy.display.render.c:3520)
    rv = d.render(widtho, heighto, st, at)
  File "F:\FanYan_Entertaiment\GAME\Tech_Part\renpy-7.3.5-sdk\renpy\display\layout.py", line 722, in render
    surf = render(child, width, height, cst, cat)
  File "renpy/display/render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:4075)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen\renpy.display.render.c:3520)
    rv = d.render(widtho, heighto, st, at)
  File "F:\FanYan_Entertaiment\GAME\Tech_Part\renpy-7.3.5-sdk\renpy\display\layout.py", line 722, in render
    surf = render(child, width, height, cst, cat)
  File "renpy/display/render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:4075)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen\renpy.display.render.c:3520)
    rv = d.render(widtho, heighto, st, at)
  File "F:\FanYan_Entertaiment\GAME\Tech_Part\renpy-7.3.5-sdk\renpy\display\screen.py", line 675, in render
    child = renpy.display.render.render(self.child, w, h, st, at)
  File "renpy/display/render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:4075)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen\renpy.display.render.c:3520)
    rv = d.render(widtho, heighto, st, at)
  File "F:\FanYan_Entertaiment\GAME\Tech_Part\renpy-7.3.5-sdk\renpy\display\layout.py", line 722, in render
    surf = render(child, width, height, cst, cat)
  File "renpy/display/render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:4075)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen\renpy.display.render.c:3520)
    rv = d.render(widtho, heighto, st, at)
  File "F:\FanYan_Entertaiment\GAME\Tech_Part\renpy-7.3.5-sdk\renpy\display\layout.py", line 925, in render
    surf = render(d, width - x, rh, cst, cat)
  File "renpy/display/render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:4075)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen\renpy.display.render.c:3520)
    rv = d.render(widtho, heighto, st, at)
  File "F:\FanYan_Entertaiment\GAME\Tech_Part\renpy-7.3.5-sdk\renpy\display\behavior.py", line 774, in render
    rv = super(Button, self).render(width, height, st, at)
  File "F:\FanYan_Entertaiment\GAME\Tech_Part\renpy-7.3.5-sdk\renpy\display\layout.py", line 1097, in render
    xminimum = max(xminimum, size_groups[size_group].width(width, height, st, at))
  File "F:\FanYan_Entertaiment\GAME\Tech_Part\renpy-7.3.5-sdk\renpy\display\layout.py", line 1041, in width
    rend = renpy.display.render.render_for_size(i, width, height, st, at)
  File "renpy/display/render.pyx", line 310, in renpy.display.render.render_for_size (gen\renpy.display.render.c:4391)
    return render(d, width, height, st, at)
  File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen\renpy.display.render.c:3520)
    rv = d.render(widtho, heighto, st, at)
  File "F:\FanYan_Entertaiment\GAME\Tech_Part\renpy-7.3.5-sdk\renpy\display\behavior.py", line 774, in render
    rv = super(Button, self).render(width, height, st, at)
  File "F:\FanYan_Entertaiment\GAME\Tech_Part\renpy-7.3.5-sdk\renpy\display\layout.py", line 1155, in render
    back = render(style.background, bw, bh, st, at)
  File "renpy/display/render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:4075)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen\renpy.display.render.c:3520)
    rv = d.render(widtho, heighto, st, at)
  File "F:\FanYan_Entertaiment\GAME\Tech_Part\renpy-7.3.5-sdk\renpy\display\imagelike.py", line 272, in render
    crend = render(image, width, height, st, at)
  File "renpy/display/render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:4075)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen\renpy.display.render.c:3520)
    rv = d.render(widtho, heighto, st, at)
  File "F:\FanYan_Entertaiment\GAME\Tech_Part\renpy-7.3.5-sdk\renpy\display\image.py", line 729, in render
    self.find_target()
  File "F:\FanYan_Entertaiment\GAME\Tech_Part\renpy-7.3.5-sdk\renpy\display\image.py", line 651, in find_target
    raise Exception(error)
Exception: DynamicImage [u'gui/button/navigation_[prefix_]background.png', u'gui/button/[prefix_]background.png']: could not find image. (u'gui/button/navigation_idle_background.png', u'gui/button/navigation_background.png', and 2 more.)

Windows-8-6.2.9200
Ren'Py 7.3.5.606
Ultima Thule 0.1
Thu Jul 02 20:31:31 2020
I did a little investigation and found out that some paths are set directly in the deep RenPy code. I don’t want to change it, and I think it’s not worth it. What do you recommend, hackers?

User avatar
rayminator
Veteran
Posts: 472
Joined: Fri Feb 09, 2018 12:05 am
Projects: Redoing games to fix spelling mistakes other companys that don't care
Location: Canada
Contact:

Re: How to change the path to the GUI?

#2 Post by rayminator » Thu Jul 02, 2020 5:50 pm

you won't get any help here by calling people here hackers bye bye

there a lot of member that work hard to learn python and that and they try to help others and you called them hackers that's not right
when I try to help someone I point them into 2 direction what's right and wrong so they can learn how to

Post Reply

Who is online

Users browsing this forum: No registered users