r/RenPy • • 4d ago

Question Image 'namebox' not found

[deleted] — view deleted post

1 Upvotes

5 comments sorted by

2

u/senshisun 4d 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 4d 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 4d 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")

1

u/Visible-Key-1320 4d ago

Search 'style frame' and 'gui.frame' in screens.rpy and gui.rpy and tell me what you find.

1

u/shyLachi 4d ago

You might not need a separate screen for each button
also you don't need those frames
but none of that code could cause that strange stuff on your image.

Here a simplified version to find the cause of the problem:

screen test():
    vbox:
        imagebutton:
            focus_mask True 
            idle "Tomato.png"
            hover "tomato o.png"
            action Jump ("tprice")
        imagebutton:
            focus_mask True 
            idle "cucumbers.png"
            hover "cucumbers o.png"
            action Jump ("cuprice")
        imagebutton:
            focus_mask True
            idle "cabbage.png"
            hover "cabbage o.png"
            action Jump ("caprice")
label start:
    call screen test

What do you see