HELP me code my cg gallery T^T

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
User avatar
Snowflower
Bishie Fangirl
Posts: 814
Joined: Sat Jan 01, 2011 11:24 pm
Completed: Idol Crush
Projects: Shugojin!, RockRobin (openmodewriter), your highness
Soundcloud: jenna-yeon
Location: Orange County, CA
Contact:

HELP me code my cg gallery T^T

#1 Post by Snowflower »

I'm just not meant to be a coder....... No matter what I do, I cannot understand the language of the cg gallery cookbook entry....

The one I used in the past is no longer in the cookbook so this new one.......... i just don't get it T^T

If anyone can possibly send me in the right direction, explain it in the simplest way possible.... T^T

ADDED:

I tried toggling with the cookbook code, but kept getting this error as well.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/screens.rpy", line 448, in <module>
    add g.make_button("bonus1", "bonusicon.png", xalign=0.5, yalign=0.5)
AttributeError: 'ADVCharacter' object has no attribute 'make_button'
Attachments
gallery.png
Image
Completed: Idol Crush | WIP: your highness | Hiatus: Shugojin!| Follow Me on Twitter | Subscribe to YouTube
your highness @ 102k as of 2/13

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: HELP me code my cg gallery T^T

#2 Post by Alex »

Do you have character named "g"?

Code: Select all

define g = Character(...)
If so, try to rename it or rename the instance of your gallery

Code: Select all

init python:

    # Step 1. Create the gallery object.
    g = Gallery()   # <==== give it a name that don't used for any of your characters and variables, like z = Gallery() or so
(also, don't forget to change all the code lines for your gallery)

Code: Select all

g.button("dawn")   #<==== would be z.button("dawn") etc.

User avatar
Snowflower
Bishie Fangirl
Posts: 814
Joined: Sat Jan 01, 2011 11:24 pm
Completed: Idol Crush
Projects: Shugojin!, RockRobin (openmodewriter), your highness
Soundcloud: jenna-yeon
Location: Orange County, CA
Contact:

Re: HELP me code my cg gallery T^T

#3 Post by Snowflower »

Okay... I changed it. Now it's saying

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/screens.rpy", line 448, in <module>
    add x.make_button("bg street", "bg/street.png", xalign=0.5, yalign=0.5)
TypeError: 'str' object is not callable
Image
Completed: Idol Crush | WIP: your highness | Hiatus: Shugojin!| Follow Me on Twitter | Subscribe to YouTube
your highness @ 102k as of 2/13

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: HELP me code my cg gallery T^T

#4 Post by Alex »

Have no clue... you'd better show the whole script to let people find an error.

User avatar
Llunet1
Regular
Posts: 55
Joined: Mon Oct 21, 2013 8:56 pm
Projects: Reminiscence, Blood
Deviantart: llunet1
Location: USA
Contact:

Re: HELP me code my cg gallery T^T

#5 Post by Llunet1 »

Hello!
I've honestly just started learning the code for GUIs, but I used this tutorial to create my own gallery:
http://lemmasoft.renai.us/forums/viewto ... say+screen
You can probably put your image as the background, and then mess around with the code to get the tiles to fit ^^;

Hopefully that will help?

User avatar
Snowflower
Bishie Fangirl
Posts: 814
Joined: Sat Jan 01, 2011 11:24 pm
Completed: Idol Crush
Projects: Shugojin!, RockRobin (openmodewriter), your highness
Soundcloud: jenna-yeon
Location: Orange County, CA
Contact:

Re: HELP me code my cg gallery T^T

#6 Post by Snowflower »

well i'm pretty new at this new version of the cg gallery T^T
i'm still having difficulties with that forum's code as well. how can i add different pages? I want to make different page of cgs per character
Image
Completed: Idol Crush | WIP: your highness | Hiatus: Shugojin!| Follow Me on Twitter | Subscribe to YouTube
your highness @ 102k as of 2/13

Rietr
Newbie
Posts: 8
Joined: Sat Jun 28, 2014 1:15 pm
Contact:

Re: HELP me code my cg gallery T^T

#7 Post by Rietr »

aaaaaaaa
aaaaaaaa

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot]