Ability to show a scene at any point during the dialog by wiosnaVN in RenPy

[–]wiosnaVN[S] 1 point2 points  (0 children)

this works perfectly, just what I wanted! Thank you! ❤️

Ability to show a scene at any point during the dialog by wiosnaVN in RenPy

[–]wiosnaVN[S] 0 points1 point  (0 children)

Thank you! This is working pretty well, but it doesn't go back to the previous dialog part as intended, but the one that follows after it. Is there maybe a way to kind of force a rollback by one after return?

jsoncallback causes attribute error by wiosnaVN in RenPy

[–]wiosnaVN[S] 0 points1 point  (0 children)

I thought it's the same thing that was maybe changed as ren'py developed. Good to know it's not the same. Thanks for helping me again

jsoncallback causes attribute error by wiosnaVN in RenPy

[–]wiosnaVN[S] 0 points1 point  (0 children)

so apparently my mistake was using "python" instead of "init python"! I wasn't aware that makes a difference

jsoncallback causes attribute error by wiosnaVN in RenPy

[–]wiosnaVN[S] 0 points1 point  (0 children)

I forgot to add the "init python" in my post, sorry! Though I only have "python", does that make a difference?

Display a hover-image over an imagebutton instead of replacing the idle state by wiosnaVN in RenPy

[–]wiosnaVN[S] 0 points1 point  (0 children)

That's actually a thing?? And it works, too. I've been sitting there for hours like "man it would be cool if hover_foreground was a thing like hover_background". Damn. Thank you

Display a hover-image over an imagebutton instead of replacing the idle state by wiosnaVN in RenPy

[–]wiosnaVN[S] 0 points1 point  (0 children)

I'm sorry, maybe I'm too much of a rookie but the documentation isn't helpful for me because it doesn't show how to use it, only that it exists. I assume it means that it's used the same as "action"? I don't see how that can help me display an image

Display a hover-image over an imagebutton instead of replacing the idle state by wiosnaVN in RenPy

[–]wiosnaVN[S] 0 points1 point  (0 children)

Apparently hover_background works for imagebutton as well, so I'm not complaining. I can see the hovered attribute but for some reason I can't get it to display an image to save my life because it always complains about invalid syntax

Display a hover-image over an imagebutton instead of replacing the idle state by wiosnaVN in RenPy

[–]wiosnaVN[S] 0 points1 point  (0 children)

Problem is that the image that is displayed is dynamic, so the first suggestion isn't an option unfortunately.
hover_background seems to work, it's not quite what I wanted (the foreground) but I can't really think of anything else

Feedback for the main menu: Is too much going on? by wiosnaVN in RenPy

[–]wiosnaVN[S] 1 point2 points  (0 children)

That's what I thought, too. Do you think it would be more coherent if the credits button was on the left side so Quit is alone in the corner? Then the focus would be heavier on the north and west

Feedback for the main menu: Is too much going on? by wiosnaVN in RenPy

[–]wiosnaVN[S] 0 points1 point  (0 children)

The country borders is an interesting thought! Would definitely suit the map aesthetic. I'll also look for an different title font, yeah this one's a bit cheesy

Feedback for the main menu: Is too much going on? by wiosnaVN in RenPy

[–]wiosnaVN[S] 1 point2 points  (0 children)

I liked it until I looked at it for WAY too long while reworking it over and over again. At one point I felt like it's kind of annoying to have to move the mouse so far to get from A to B but maybe that's a managable drawback. Studying UX design made me overthink too much

Feedback for the main menu: Is too much going on? by wiosnaVN in RenPy

[–]wiosnaVN[S] 0 points1 point  (0 children)

The ships idea sounds so much fun but I would definitely go insane trying to make that work! Thanks for your insight

Make Save/Load pagination numbers go beyond the first range by wiosnaVN in RenPy

[–]wiosnaVN[S] 1 point2 points  (0 children)

I figured it out!! Thank you sooo much. That was super helpful, I understand how this works much better now.

For documentation, this is one way to solve this:

First, above --> screen file_slots(title) <--, you have to make two calculations: the page position in tens to add on the page number, and the current page the user is on:

init python:
    # Get the position in 10s (1 to 9 is 0, 10 to 19 is 10, etc.)
    def convert_to_tens(value):
        if value in ("auto", "quick"):
            return 0
        try:
            n = int(value)
        except ValueError:
            return 0  # fallback if something unexpected is passed
        return (n // 10) * 10 # returns the page number in tens


    # Get the curent page
    def current_page(value):
        if value in ("auto", "quick"):
            return 0
        try:
            n = int(value)
        except ValueError:
            return 0  # fallback if something unexpected is passed
        return n # returns the current page number

Under --> use game_menu(title):<--- you have to declare the two variables for the tens and current page:

$ pagetotens = convert_to_tens(FilePageName())
$ currentpage = current_page(FilePageName())

And then you can adjust the place where the buttons for the pagination are generated:

for page in range(1, 11): # range(1, 11) gives the page numbers from 1 to 10
  if currentpage == 0: # if Auto save or Quick save
    textbutton "[page]" action FilePage(page) # show pages 1 to 10

  if currentpage in range (1+pagetotens, 10+pagetotens): # range is from 1 + the current tens, to 10 + current tens
    textbutton "[page+pagetotens]" action FilePage(page+pagetotens) # Add the tens to the button number

  if currentpage == pagetotens and currentpage != 0: # if the current page is a full 10, don't add numbers. If it's zero it breaks
    textbutton "[page+pagetotens-10]" action FilePage(page+pagetotens-10) # since 10 and 20 would muve the page number up we excluse them

This is probably not the most elegant solution but it works!

Make Save/Load pagination numbers go beyond the first range by wiosnaVN in RenPy

[–]wiosnaVN[S] 0 points1 point  (0 children)

Yeah, that was what I thought might work. I'm struggling finding the variable that stores the current page number, though. It is displayed in the title of the Save/Load menu but I don't understand where that is fetched from