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

Move sound triggered for an object that does not move #974

Open
david-pfx opened this issue May 18, 2023 · 4 comments
Open

Move sound triggered for an object that does not move #974

david-pfx opened this issue May 18, 2023 · 4 comments

Comments

@david-pfx
Copy link

Has something to do with properties and layers, I'm still trying to debug it. Repro case attached, courtesy 'cool nico'
repro-nico-unexpected-sound.txt

@david-pfx david-pfx changed the title Canmove sound triggered for an object that does not move Move sound triggered for an object that does not move May 18, 2023
@david-pfx
Copy link
Author

Re source code engine.js the for loop starting at line 1152: I read this as:

For this location (position index), is there a movement sound event matching both an object found at this location and a movement found at this location?

It will cause a false trigger if there are two objects at a location, of which one matches by object and the other matches by movement.

Am I right?

@increpare
Copy link
Owner

increpare commented May 23, 2023 via email

@david-pfx
Copy link
Author

This is code you should know way better than I could but no, I can't see it.

  • The code you're referencing (@1188) plays no role in triggering the seed.
  • The code that does (@1159) does not use the layer at all, except for an early exit (@1149)
    You have a repro case for the bug. I see a possible cause, but this mask code is crazy hard to debug, so I think it's up to you (when you have time) to figure out whether this is it or not.

@david-pfx
Copy link
Author

It seems that Clement Sparrow already found and fixed this bug.
ClementSparrow#22

His patch matches some of but not all current PS code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants