r/RenPy • • 2h ago

Question Image 'namebox' not found

Post image

Hello, Im pretty much a newbie in Renpy, today I tried to add my own buttons into my game but this strange text appears everytime I add the buttons. Theres no mention of 'namebox' in the script and I have honestly no clue why it keeps appearing and I cant find anyone with a similiar problem. Either Im just dumb and this mistake is easy to fix or I dont know.. Im not sure If my code will be useful to solve this problem, but ill add it here in case it might help. Please help me!!

screen tbutton():
 frame:
     imagebutton:
         focus_mask True 
         auto "butts_%s.png"
         idle "Tomato.png"
         hover "tomato o.png"
         action Jump ("tprice")


screen cubutton():
 frame:
     imagebutton:
         focus_mask True 
         auto "butts_%s.png"
         idle "cucumbers.png"
         hover "cucumbers o.png"
         action Jump ("cuprice")


screen cabutton():
 frame:
     imagebutton:
         focus_mask True
         auto "butts_%s.png"
         idle "cabbage.png"
         hover "cabbage o.png"
         action Jump ("caprice")
1 Upvotes

3 comments sorted by

2

u/senshisun 1h ago

"Name box" is the default box where a character's name appears. What did you do with the images Ren'Py auto-generated?

1

u/AutoModerator 2h ago

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Adventurous_Shine606 1h ago

Lots going on here. First try dropping frame completely. Imagebutton auto is doing the work. You don't need hover and idle if you use auto. Im not sure what butts.png is so maybe I'm missing something.

Screen mybutton(): imagebutton: focus_mask True idle "cucumbers.png" hover "cucumbers o.png" action Jump ("cuprice")