'ImageRefence' has no attribute 'Partition' (solved)

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
SushiNoMushi
Newbie
Posts: 2
Joined: Wed Jul 27, 2016 4:03 pm
Contact:

'ImageRefence' has no attribute 'Partition' (solved)

#1 Post by SushiNoMushi »

Hi!
I'm completely new to RenPy and I wanted to create a Visual Novel, but this happened and I can't solve it.


I'm sorry, but an uncaught exception occurred.

While running game code:
File "renpy/common/00start.rpy", line 181, in script call
call expression "splashscreen" from _call_splashscreen_1
File "game/script.rpy", line 875, in script
show noble at center with dissolve
AttributeError: 'ImageReference' object has no attribute 'partition'

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

Full traceback:
File "renpy/common/00start.rpy", line 181, in script call
call expression "splashscreen" from _call_splashscreen_1
File "game/script.rpy", line 875, in script
show noble at center with dissolve
File "C:\Users\nadio\OneDrive\Documenti\Nadia\renpy-6.99.10-sdk\renpy\ast.py", line 1266, in execute
renpy.exports.with_statement(trans, paired)
File "C:\Users\nadio\OneDrive\Documenti\Nadia\renpy-6.99.10-sdk\renpy\exports.py", line 1357, in with_statement
return renpy.game.interface.do_with(trans, paired, clear=clear)
File "C:\Users\nadio\OneDrive\Documenti\Nadia\renpy-6.99.10-sdk\renpy\display\core.py", line 1987, in do_with
clear=clear)
File "C:\Users\nadio\OneDrive\Documenti\Nadia\renpy-6.99.10-sdk\renpy\display\core.py", line 2425, in interact
repeat, rv = self.interact_core(preloads=preloads, **kwargs)
File "C:\Users\nadio\OneDrive\Documenti\Nadia\renpy-6.99.10-sdk\renpy\display\core.py", line 2779, in interact_core
self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
File "C:\Users\nadio\OneDrive\Documenti\Nadia\renpy-6.99.10-sdk\renpy\display\core.py", line 1848, in draw_screen
renpy.config.screen_height,
File "renpy/display/render.pyx", line 416, in renpy.display.render.render_screen (gen\renpy.display.render.c:6685)
rv = render(root, width, height, 0, 0)
File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2857)
rv = d.render(widtho, heighto, st, at)
File "C:\Users\nadio\OneDrive\Documenti\Nadia\renpy-6.99.10-sdk\renpy\display\layout.py", line 649, in render
surf = render(child, width, height, cst, cat)
File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen\renpy.display.render.c:3319)
cpdef render(d, object widtho, object heighto, double st, double at):
File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2857)
rv = d.render(widtho, heighto, st, at)
File "C:\Users\nadio\OneDrive\Documenti\Nadia\renpy-6.99.10-sdk\renpy\display\transition.py", line 363, in render
top = render(self.new_widget, width, height, st, at)
File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen\renpy.display.render.c:3319)
cpdef render(d, object widtho, object heighto, double st, double at):
File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2857)
rv = d.render(widtho, heighto, st, at)
File "C:\Users\nadio\OneDrive\Documenti\Nadia\renpy-6.99.10-sdk\renpy\display\layout.py", line 649, in render
surf = render(child, width, height, cst, cat)
File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen\renpy.display.render.c:3319)
cpdef render(d, object widtho, object heighto, double st, double at):
File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2857)
rv = d.render(widtho, heighto, st, at)
File "C:\Users\nadio\OneDrive\Documenti\Nadia\renpy-6.99.10-sdk\renpy\display\layout.py", line 649, in render
surf = render(child, width, height, cst, cat)
File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen\renpy.display.render.c:3319)
cpdef render(d, object widtho, object heighto, double st, double at):
File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2857)
rv = d.render(widtho, heighto, st, at)
File "renpy/display/accelerator.pyx", line 104, in renpy.display.accelerator.transform_render (gen\renpy.display.accelerator.c:1965)
cr = render(child, widtho, heighto, st - self.child_st_base, at)
File "renpy/display/render.pyx", line 147, in renpy.display.render.render (gen\renpy.display.render.c:2354)
xmaximum = style.xmaximum
File "module/gen/styleclass.pxi", line 389, in renpy.styledata.styleclass.Style.xmaximum.__get__ (gen\renpy.styledata.styleclass.c:10740)
File "renpy/style.pyx", line 470, in renpy.style.StyleCore._get (gen\renpy.style.c:7339)
build_style(self)
File "renpy/style.pyx", line 655, in renpy.style.build_style (gen\renpy.style.c:10130)
s.down_parent = get_full_style(s.parent)
File "renpy/style.pyx", line 132, in renpy.style.get_full_style (gen\renpy.style.c:2399)
rv = get_style(name[0])
File "renpy/style.pyx", line 78, in renpy.style.get_style (gen\renpy.style.c:1555)
start, _mid, end = name.partition("_")
AttributeError: 'ImageReference' object has no attribute 'partition'


I don't know if you need it, this is my script

jo "So? Did it go well?"
n "Let's not speak about that..."
s "Hahahah! She dumped you before the start! Hahah!"
jo "Shine, shut up!"
jo "Don't worry, Noble-chan, I'm here for you."
n "I'll pass, thank you..."
"Joey was offended by my lack of love, so he sent me.."

What do I do?
Thank you!
Last edited by SushiNoMushi on Wed Jul 27, 2016 4:29 pm, edited 2 times in total.

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: 'ImageRefence' has no attribute 'Partition'

#2 Post by PyTom »

Did you redefine center to something other than a Transform? This doesn't make a lot of sense, but it would make sense if center was redefined.

If that isn't it, send me the code and I'll try to look into it.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

SushiNoMushi
Newbie
Posts: 2
Joined: Wed Jul 27, 2016 4:03 pm
Contact:

Re: 'ImageRefence' has no attribute 'Partition'

#3 Post by SushiNoMushi »

PyTom wrote:Did you redefine center to something other than a Transform? This doesn't make a lot of sense, but it would make sense if center was redefined.

If that isn't it, send me the code and I'll try to look into it.
No, I didn't redefine anything.

Post Reply

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot], Sugar_and_rice