Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

lazybott

4
Posts
1
Topics
1
Followers
4
Following
A member registered Feb 29, 2016 · View creator page →

Creator of

Recent community posts

Thanks for taking the time to adapt the MouseTooltip code! I tried your test screen and it indeed works.

I tried adding the cursor to my hidden object screen, but I ran into the renpy.restart_interaction() error again. The biggest difference with your test screen was that my buttons are 1920x1080 px imagebuttons with focus_mask applied:

screen test_tooltips():
    tag menu

    add mtt
    virtual_cursor:
        id 'vc_test'
        cursor ("test_cursor_image", 12, 30)

        imagebutton:
            idle "/images/apple.png"
            focus_mask True
            hovered mtt.Action(Text(_("Apple"), style="mystyle"))
            action Call("apple_check")
        imagebutton:
            idle "/images/orange.png"
            focus_mask True
            hovered mtt.Action(Text(_("Orange"), style="mystyle"))
            action Call("orange_check")
        imagebutton:
            idle "/images/strawberry.png"
            focus_mask True
            hovered mtt.Action(Text(_("Orange"), style="mystyle"))
            action Call("strawberry_check")

Things I noticed:

  • if I press the Right direction key even very briefly, the cursor moves at ~200px to the right rather than a small movement
  • let's say apple.png contains a 300px wide image of an apple on a 1920x1080 px transparent background. The cursor starts on the left of the apple's pixels. If I hit the Right-direction key to get the cursor inside the apple, the cursor will instead keep moving right until all focus_mask pixels have been crossed and the cursors stops on the right outside the apple's pixels. It's like the cursor avoids the focus_mask.
  • the error typically happens when an item is at the edge of the screen and the cursor then tries moving beyond the 1920x1080 boundaries

I hope it makes sense. I could draw you an image if my explanation is not clear. Unfortunately; I can't go without imagebuttons in the project I'm doing.

First off, I want to say that these plugins are super cool! I just tried it and the controller movements are smooth and really add a nice "polished" feeling to the game I'm doing.

I'm doing a game with a "hidden objects"-type gameplay where the object's name appears on mousehover and follows the mouse's movements, similar to games like AI: The Somnium Files or Paranormasight. To do that, I used jsfehler's renpy-mouse-tooltip (github).

When trying to use both virtual cursor and mouse tooltip, the tooltip stays stuck in the last area used by my PC's mouse (before doing joystick movements) and after a while, I get the error message: "Exception: renpy.restart_interaction() was called 100 times without processing any input.".

Is there a way to make both virtual cursors and mouse tooltip work?

I managed to solve the recursion error. It was a layer that was incorrectly called in code ("august base" instead of the correct "august_base" when the filename was "august_base.png"). The same error also appeared in-game when the sprite was called. Solving this error also made layer groups declared with "auto" appear.

That said, if the error appears once it still bricks your layeredimage tool until the game's persistent data is removed. It would be great if there was some kind of error message but the tool doesn't get bricked, as this kind of slipups is probably a common occurence during the dev process.

(5 edits)

Hi, I keep having a python error that bricks the entire plugin until I delete the game project's cache. It happens if I click the "multiple" button and my filenames have underscore in them (eileen_m_smile.png)

RecursionError: maximum recursion depth exceeded while calling a Python object

It would be good to explain the different folder/file structures you are supporting and the different filenames you expect to work with your scripts. The absolute ideal scenario would be to have an example sprite + layeredimage provided, which I believe would be a fair request for a paid plugin. You could for example use the Agustina sprite.

You could also mention that the sprite's layeredimage and every attribute need to be manually declared in advance ("group outfit auto" doesn't seem to work). I wouldn't have known from the itch description, only by reading this thread and getting errors I learned of this.