Subject: On screen Menu button with Text History error
Since I was using the search function of the forum, I came to this solution (screen's inventory and label's callInventory) and withElmiwisa wrote::| :| :|
Seems like you did not understand what I said at all. :cry:
I am talking about how changing the screen's name to "_game_menu_text_history" won't help you fix the issue since that need to be a label name.
...
Here is a way to fix it. Change the screen's name back to "text_history" just like how the original did it. Then add this somewhere:Then it should work. Not exactly the most elegant solution, but it involve least amount of work you need to do to fix it.Code: Select all
label _game_menu_text_history: call screen text_history return
Code: Select all
$ renpy.call(callInventory)Code: Select all
$ renpy.call_screen(inventory)However, the error still exists and I really, really can't think of why. So maybe PyTom or someone else would like to have a look at it (attachment). I tried to remove as much from the project as I could without breaking the interesting part.
So here's what you do:
1. Start the game
2. Let the character sleep, then leave your apartment and go into Misty's
3. select "take her stuff", then select "back"
4. You'll get another menu WHICH IS NOT SUPPOSED TO HAPPEN!
Codewise: Through there are some files (take them as CC-BY-NC-SA licenced), because I had to bring the core data with it, the interesting ones cut down to 3: navigation.rpy, where we can move inside the hotel (you're not supposed to leave the hotel), screens.rpy where the go-around and inventory are implemented and girlRoom.rpy, where stuff happens. The critical lines in the latter are 91 and 102.
I triple checked inventory and girlRoom, I see NO WAY how the program could jump to roomGirlInsideOkay instead of ...Empty. No. Way. What is this?
Oh wait, attachment is not possible. Here you go: https://www.dropbox.com/s/1tnlikcfeocy0 ... %20copy.7z
EDIT: By the way, if you get the error message "THIS IS NOT SUPPOSED TO HAPPEN" (or something like that), I would be very glad if you find out what triggers it (apart from where I coded this message in item.rpy). I can't understand why the defaultCharacter would change
EDIT: just discovered a typo. it should be "sleep in her bed", not "sleep in her bad" xD

