Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugs out when also using Thandul's Togglable Effects #10

Closed
GambetTV opened this issue Feb 2, 2021 · 7 comments
Closed

Bugs out when also using Thandul's Togglable Effects #10

GambetTV opened this issue Feb 2, 2021 · 7 comments
Assignees
Labels
compatibility issue Something isn't working with another module or a particular version of FoundryVTT

Comments

@GambetTV
Copy link

GambetTV commented Feb 2, 2021

Love the module, but it bugs out when also using Thandul's Togglable Effects module. Basically creates 2 versions of Thandul's icons, one at the normal size, and one at the scaled size from Illandril's module. Not sure which module is causing the error so I'm posting this to both modules, but I suspect the problem originates with your module, as even when using the standard icons you can see the normal sized one popping in, then getting deleted before the resized version pops in.

@illandril illandril self-assigned this Feb 2, 2021
@illandril illandril added the compatibility issue Something isn't working with another module or a particular version of FoundryVTT label Feb 2, 2021
@kszczepanskidev
Copy link

For the Thandul's Togglable Effect module it's just creating new temporary effect on an actor, so my guess is that there's some issue here with when the status icon resize on the token is being called.

@illandril
Copy link
Owner

I cannot reproduce this issue (the flicker of a normal size icon before it is quickly replaced by the resized version I do see - this was previously necessary to correct an issue in earlier versions of Foundry but it looks like I might be able to remove it now - this will be resolved as issue #11 once I have time to test a fix).

Can you please provide me with...

  1. A list of all modules (including the versions) you have active (including both Illandril's Token HUD Scaler and Thandul's Togglable Effects)
  2. The version of Foundry you are using
  3. The name and version of the system you are using
  4. The name and version of the browser you are using
  5. A screenshot of the issue
  6. The output of the following commands, executed in your browser's javascript console (or the Foundry App's console - press F12 to open the dev tools) after selecting the token shown in the screenshot:
JSON.stringify(_token.data.effects,null,2);
JSON.stringify((_token.actor && _token.actor.temporaryEffects) || [], null, 2)

@kszczepanskidev
Copy link

As I'm able to replicate this issue here's few data from my case:

  1. Active modules
about-time--v0.1.62;
dae--v0.2.42;
illandril-token-hud-scale--v1.1.0;
lib-wrapper--v1.3.5.0;
ThandulsTogglableEffects--v1.2.5;
tidy5e-sheet--v0.4.13;
tidy-ui_game-settings--v0.1.21;
times-up--v0.1.2;
  1. Foundry 0.7.9
  2. DnD 5e 1.2.4
  3. Foundry launcher
2021-02-03.00-19-03.mp4
  1. First commands returns empty array, second this:
    JSON.stringify.txt

@illandril
Copy link
Owner

That shows the flicker issue (which I split off into issue #11), not the duplicate icon issue (unless I'm misunderstanding @GambetTV and there isn't a duplicate icon issue, only the flickering issue).

@GambetTV
Copy link
Author

GambetTV commented Feb 3, 2021

Apologies, I've been downloading so many modules and I don't seem to be able to duplicate the issue anymore. I can tell you that I had the scaler set to 3, which made them bigger. I think it defaults to 4 though, right? What it looked like to me at the time was that when the first status marker you used was one from Thandul's, it would create two versions of it, a larger one at size 3, and a smaller one at the default size 4. IIRC untoggling it and retoggling it fixed it, but I'd experience it with every new token.

If I used one of the default status icons, and then used one from Thandul's, it would put one below the original icon, and one next to it. I did have it set up to go to the right rather than downward.

I don't have version numbers anymore, but everything was up to date, and I used "Find the culprit!" to reduce my mod list to just those two and I was still getting the issue. I've since downloaded a few other modules that deal with the status effects and while I still see the flickering, I can't seem to duplicate it, so I apologize that I can't be more help.

I'm completely up to date on Foundry, D&D5e, and all my mods. I even manually went through and deleted/redownloaded everything prior to experiencing this issue so I'm certain I was up to date. Hope that helps somewhat!

@illandril
Copy link
Owner

Not having the problem is the ultimate goal, so it being fixed without explanation is better than it being broken without being able to figure out why (though not as good as know what broke it and having a proper, permanent fix in place so it never happens again). I'll do some more testing to see if I can find a way to trigger the issue while I test the fix for the flickering. If you happen to see it again, try to capture that information I asked for (and anything else you think might be helpful in reproducing the issue).

@illandril
Copy link
Owner

I'm closing this under the assumption that the other changes I've made to this module have stopped this issue from appearing anymore. If you can reproduce it again, provide the information in my first comment up top and I'll look into this again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility issue Something isn't working with another module or a particular version of FoundryVTT
Projects
None yet
Development

No branches or pull requests

3 participants