You could modify it to, but as it stands: no
But modifying it is pointless, just make a simple screen with imagebuttons in a grid.
You could modify it to, but as it stands: no
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/gallery_setup.rpy", line 26, in script
init +1 python:
File "game/gallery_setup.rpy", line 29, in <module>
renpy.image (gal_item + " butt", im.Scale("bg CG000", " bg CG001", "bg CG003", "bg CG006"(gal_item), thumbnail_x, thumbnail_y))
TypeError: 'unicode' object is not callable
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/gallery_setup.rpy", line 26, in script
init +1 python:
File "C:\Users\ateli\Documents\Messiah No.1\renpy-7.2.1-sdk\renpy\ast.py", line 896, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Users\ateli\Documents\Messiah No.1\renpy-7.2.1-sdk\renpy\python.py", line 1929, in py_exec_bytecode
exec bytecode in globals, locals
File "game/gallery_setup.rpy", line 29, in <module>
renpy.image (gal_item + " butt", im.Scale("bg CG000", " bg CG001", "bg CG003", "bg CG006"(gal_item), thumbnail_x, thumbnail_y))
TypeError: 'unicode' object is not callable
Windows-8-6.2.9200
Ren'Py 7.2.1.457
DWraith_final 1.0
Sun Mar 17 17:22:35 2019
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/screens.rpy", line 1081, in script
init +1 python:
File "game/screens.rpy", line 1084, in <module>
renpy.image (gal_item + " butt", im.Scale(ImageReference(gal_item), thumbnail_x, thumbnail_y))
Exception: Expected an image, but got a general displayable.
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/screens.rpy", line 1081, in script
init +1 python:
File "C:\Users\PC\Documents\Softwares\renpy-8.1.1-sdk\renpy\ast.py", line 823, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Users\PC\Documents\Softwares\renpy-8.1.1-sdk\renpy\python.py", line 1178, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/screens.rpy", line 1084, in <module>
renpy.image (gal_item + " butt", im.Scale(ImageReference(gal_item), thumbnail_x, thumbnail_y))
File "C:\Users\PC\Documents\Softwares\renpy-8.1.1-sdk\renpy\display\im.py", line 922, in __init__
im = image(im)
File "C:\Users\PC\Documents\Softwares\renpy-8.1.1-sdk\renpy\display\im.py", line 1978, in image
return image(arg.target, loose=loose, **properties)
File "C:\Users\PC\Documents\Softwares\renpy-8.1.1-sdk\renpy\display\im.py", line 1993, in image
raise Exception("Expected an image, but got a general displayable.")
Exception: Expected an image, but got a general displayable.
Code: Select all
renpy.image (gal_item + " butt", im.Scale(ImageReference(gal_item), thumbnail_x, thumbnail_y))
Code: Select all
renpy.image (gal_item + " butt", Transform(gal_item, size=(426, 240)))
Thank you very much, I knew it would be something as simple as that but didn't know quite where to look. This is lifesaving thanks!!! (Aegis Alver supremacy)henne wrote: ↑Tue Apr 09, 2024 5:29 am Replace
withCode: Select all
renpy.image (gal_item + " butt", im.Scale(ImageReference(gal_item), thumbnail_x, thumbnail_y))
It's mostly about replaceing "im.Scale" with "Transform".Code: Select all
renpy.image (gal_item + " butt", Transform(gal_item, size=(426, 240)))
https://www.renpy.org/doc/html/trans_tr ... #Transform
Users browsing this forum: No registered users