Instant CG and BG gallery

A place for Ren'Py tutorials and reusable Ren'Py code.
Forum rules
Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Message
Author
User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Instant CG and BG gallery

#151 Post by Imperf3kt »

tohtamish wrote: Wed Mar 07, 2018 11:15 am Is it possible to use this gallery code as the chapter selection at the beginning of the game? (something like "walking dead" game)
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.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Gouka
Regular
Posts: 66
Joined: Thu Feb 01, 2007 1:24 pm
Projects: Demon Wraith
Contact:

Re: Instant CG and BG gallery

#152 Post by Gouka »

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
I keep getting this error over and over again, and I have deleted most of what the error states and only left bg CG000
Check the Chaos Lord development at http://atelieredgeproductions.wordpress.com

Post Reply

Who is online

Users browsing this forum: No registered users