I used the Text History code from the cookbook and tested it with my game, but no dialogue lines are printed. I attached a screenshot of what happens.
In an attempt to debug, I placed a simple text element inside the text history window and it does print fine. I'm guessing it has to do with how the dialogue is hooked, but I can't really say for sure.
Now, I tried the original with a brand new project and it works fine, so it must have to do with my code. However, my problem is that I have a lot of .rpy files and having to go through them all will be time-consuming. I was wondering if anyone knows a possible cause for this, and if there are variables or configuration settings I need to search for to help speed up my debugging. Any help is appreciated!
Text history is empty (solved)
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.
- SinnyROM
- Regular
- Posts: 166
- Joined: Mon Jul 08, 2013 12:25 am
- Projects: Blue Birth
- Organization: Cosmic Static Games
- Contact:
Text history is empty (solved)
Last edited by SinnyROM on Wed Apr 30, 2014 2:23 am, edited 1 time in total.
- Asceai
- Eileen-Class Veteran
- Posts: 1258
- Joined: Fri Sep 21, 2007 7:13 am
- Projects: a battle engine
- Contact:
Re: Text history is empty
It works for me. Without any information there's no way to debug this.
Find out the failure point first- use renpy.notify("testing") in various places to ensure important things (like store_say) are being called, use the debugging menu and debug console to check the status of readback_buffer etc. so you actually know what isn't working before you try to fix it.
Find out the failure point first- use renpy.notify("testing") in various places to ensure important things (like store_say) are being called, use the debugging menu and debug console to check the status of readback_buffer etc. so you actually know what isn't working before you try to fix it.
- SinnyROM
- Regular
- Posts: 166
- Joined: Mon Jul 08, 2013 12:25 am
- Projects: Blue Birth
- Organization: Cosmic Static Games
- Contact:
Re: Text history is empty
Thanks for the suggestions. I've started trying to isolate the problem like you said and it does look like some of the procedures aren't called. I'll update again once I find something tangible.
Edit:
It seemed that no matter where I entered renpy.notify, it never displays (except for the case where readback_buffer is empty, ha).
So I resorted to removing my .rpy files one by one until I found the source of the problem: I declared my Character variables under an init -2 block. The text history code has an init -2 block as well, and the classes consume Characters, so these two blocks must be clashing in some way. I moved my Character declarations to an init -1 block and the text history now works flawlessly.
Edit:
It seemed that no matter where I entered renpy.notify, it never displays (except for the case where readback_buffer is empty, ha).
So I resorted to removing my .rpy files one by one until I found the source of the problem: I declared my Character variables under an init -2 block. The text history code has an init -2 block as well, and the classes consume Characters, so these two blocks must be clashing in some way. I moved my Character declarations to an init -1 block and the text history now works flawlessly.
Who is online
Users browsing this forum: Ocelot

