Hi guys;
I'm trying to customise the text box (and a few other things) for my game but Ren'Py isn't acknowledging the changes. So far I've watched a bunch of videos which have just substituted one file for the new customised one, and tried that, read through the customisation guide in case it was a coding issue... but still... no change. I just get the faded in black one that comes with the game, which I'd like to change to a PNG graphic I made which is a different colour and where the text would look nicer over. Graphic is the same dimensions, same file format, same name as the original one, and in the GUI folder.
Has anyone else had this problem or had to fix something similar? Do I need to define the graphic to refer to in the code (in GUI? In screens?) or does it need to be a specific file format (ie. not PNG) or something?
Thank you so much.
Customised text box not showing up
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.
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.
-
- Newbie
- Posts: 2
- Joined: Wed Mar 04, 2020 6:59 am
- Tumblr: Akzeriyyuth
- Contact:
- isobellesophia
- Miko-Class Veteran
- Posts: 979
- Joined: Mon Jan 07, 2019 2:55 am
- Completed: None
- Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
- Organization: Friendly Teachers series
- Deviantart: SophBelle
- itch: Child Creation
- Location: Philippines, Mindanao
- Contact:
Re: Customised text box not showing up
You can just easily change a pic of your txtbox, and make sure it has the same size as the game has. You can change the size in the gui.rpy
-
- Veteran
- Posts: 339
- Joined: Wed Sep 24, 2014 5:03 pm
- Organization: Wild Rose Interactive
- Contact:
Re: Customised text box not showing up
By default, the game is looking for a text box file named "textbox.png" in the gui folder. The code is on line 139 of gui.rpy.Akzeriyyuth wrote: ↑Wed Mar 04, 2020 8:10 am Graphic is the same dimensions, same file format, same name as the original one, and in the GUI folder.
Where is the original file?
-
- Newbie
- Posts: 2
- Joined: Wed Mar 04, 2020 6:59 am
- Tumblr: Akzeriyyuth
- Contact:
Re: Customised text box not showing up
Thank you so much... that turned out to be the problem: it was in a subfolder of /gui, not /game/gui.
I have learned a very important lesson about folders, LOL: appreciate you getting back to me though.
- Potato0095
- Regular
- Posts: 84
- Joined: Sun May 08, 2016 8:40 pm
- Projects: LoveCraft
- itch: potato95
- Location: Brazil
- Contact:
Re: Customised text box not showing up
The /game is where the code runs, so it checks as default /. Folders INSIDE game are the folders you want to use in your script, like /gui, /images, /scripts, /sounds, and such.Akzeriyyuth wrote: ↑Wed Mar 04, 2020 6:30 pmThank you so much... that turned out to be the problem: it was in a subfolder of /gui, not /game/gui.
I have learned a very important lesson about folders, LOL: appreciate you getting back to me though.
"There are two types of lies: Lies that hurt, and lies that don't."
-
- Miko-Class Veteran
- Posts: 793
- Joined: Fri Feb 09, 2018 12:05 am
- Location: Canada
- Contact:
Re: Customised text box not showing up
I think he was doing this and he figure it out that he was doing it wrongPotato0095 wrote: ↑Thu Mar 05, 2020 2:44 amThe /game is where the code runs, so it checks as default /. Folders INSIDE game are the folders you want to use in your script, like /gui, /images, /scripts, /sounds, and such.Akzeriyyuth wrote: ↑Wed Mar 04, 2020 6:30 pmThank you so much... that turned out to be the problem: it was in a subfolder of /gui, not /game/gui.
I have learned a very important lesson about folders, LOL: appreciate you getting back to me though.
Code: Select all
imagemap:
ground 'game/gui/save2.png'
hover 'game/gui/save_hover.png'
Who is online
Users browsing this forum: Ahrefs [Bot]