image picture_1 = im.Scale("pic_1.png", 1920, 1080)
renpy.displayable("pic_1")
or Image("pic_1")
or whichever one of the six different ways to turn a string into a displayable the image manipulator code will accept.Depending on your version of Ren'py, you might want to try capitalizing the S in scale. Instead of "im.scale", try "im.Scale."I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 8, in script
image pictuer_1 = im.scale("pic_1", 1920,1080)
File "game/script.rpy", line 8, in script
image pictuer_1 = im.scale("pic_1", 1920,1080)
File "game/script.rpy", line 8, in <module>
image pictuer_1 = im.scale("pic_1", 1920,1080)
AttributeError: 'module' object has no attribute 'scale'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "renpy/bootstrap.py", line 331, in bootstrap
renpy.main.main()
File "renpy/main.py", line 560, in main
renpy.game.context().run(node)
File "game/script.rpy", line 8, in script
image pictuer_1 = im.scale("pic_1", 1920,1080)
File "game/script.rpy", line 8, in script
image pictuer_1 = im.scale("pic_1", 1920,1080)
File "renpy/ast.py", line 1027, in execute
img = renpy.python.py_eval_bytecode(self.code.bytecode)
File "renpy/python.py", line 2269, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/script.rpy", line 8, in <module>
image pictuer_1 = im.scale("pic_1", 1920,1080)
AttributeError: 'module' object has no attribute 'scale'
sorry forgot to post this as well
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 8, in script
image pictuer_1 = im.scale("pic_1", 1920,1080)
File "game/script.rpy", line 8, in script
image pictuer_1 = im.scale("pic_1", 1920,1080)
File "game/script.rpy", line 8, in <module>
image pictuer_1 = im.scale("pic_1", 1920,1080)
AttributeError: 'module' object has no attribute 'scale'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "renpy/bootstrap.py", line 331, in bootstrap
renpy.main.main()
File "renpy/main.py", line 560, in main
renpy.game.context().run(node)
File "game/script.rpy", line 8, in script
image pictuer_1 = im.scale("pic_1", 1920,1080)
File "game/script.rpy", line 8, in script
image pictuer_1 = im.scale("pic_1", 1920,1080)
File "renpy/ast.py", line 1027, in execute
img = renpy.python.py_eval_bytecode(self.code.bytecode)
File "renpy/python.py", line 2269, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/script.rpy", line 8, in <module>
image pictuer_1 = im.scale("pic_1", 1920,1080)
AttributeError: 'module' object has no attribute 'scale'
sorry forgot to post this as well
image picture_1:
"pic_1"
zoom 0.5
He have a typo, but not the one you pointed.Spell check. You have a typo.
im.scale
, while it's im.Scale
.It's depreciated, but not removed.im.Scale no longer exists.
I see you're right. I assumed it was removed because it isn't in the list of image manipulators, but I guess it was due to the typo instead.really? I mean, my version is not the same as his but if it was removed I'd expect it to be gone from the latest RenPy too
View attachment 2227804
I agree. But by it being removed at any time, I'd think that would demand an update of Ren'py itself, no? Which would essentially mean updating in the middle of a project, which isn't recommended for this reason.If something is deprecated and undocumented, that means it could be removed at any time or has major flaws, and you absolutely should not use it unless you need to maintain legacy code.
No.If something is deprecated and undocumented, that means it could be removed at any time or has major flaws, and you absolutely should not use it unless you need to maintain legacy code.
im.FactorScale
), and only for that reason. As for the flaws, they are fixed, not hidden under the carpet.The Ren'py front page advertises "We understand that games can take months and years to finish, and try to make sure you can move to newer versions of Ren'Py without major changes."I agree. But by it being removed at any time, I'd think that would demand an update of Ren'py itself, no? Which would essentially mean updating in the middle of a project, which isn't recommended for this reason.
That doesn't really mean anything though. Blender's particle system code is from 2008, and they've kept it even though it sucks because they needed to lay the groundwork for the geometry nodes system to replace it. Once simulation nodes are stable, that shit is getting thrown in the garbage.As for the risk for it to be removed, no fear to have either. Ren'Py have the strongest and longest backward compatibility you can imagine. Everything that existed in the 6.0 version is still available 15 years later. I never tested a version below the 6.0, but even in the 8.0.3, "common/00compat.rpy" cover the 5.1.1 (April 2006), so I guess that the effective backward compatibility goes at least down to this version.
Transform()
?
image picture_1 = Transform("pic_1", fit = "scale-down", xsize = 1920)
zoom
with it if that's your bag...Hmm, let's see...That doesn't really mean anything though.
im.Scale
would sill be here just because...There's surely more than one statement from him saying the contrary, but there's no need for such thing, just looking at Ren'Py's history is enough.Unless you have a statement from him to the contrary, he may decide to overhaul everything and chuck all the legacy code in the garbage while he's at it, especially if the page documenting them opens with a paragraph stating "These are deprecated, don't use them."
clicked
property that nobody used since more than a decade.