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

Hangglider protection message spamming #377

Closed
SwissalpS opened this issue Dec 16, 2019 · 11 comments
Closed

Hangglider protection message spamming #377

SwissalpS opened this issue Dec 16, 2019 · 11 comments
Labels
bug 🐛 Something isn't working

Comments

@SwissalpS
Copy link
Contributor

When flying through an area, without flak, owned by another player, the chat is spammed with messages.
I have failed to reproduce on my test-server. Only see this on pandorabox.io

@thomasrudin thomasrudin added the bug 🐛 Something isn't working label Dec 16, 2019
@thomasrudin
Copy link

Only see this on pandorabox.io

interesting 😕

@OgelGames
Copy link
Contributor

I was able to replicate it on my test server; it only happens when in an area protected by a protection block, not for those protected by areas.

The spam is caused by this call to minetest.is_protected(): https://notabug.org/Piezo_/minetest-hangglider/src/master/init.lua#L155, and the messages come from here: https://notabug.org/TenPlus1/protector/src/master/init.lua#L239

Not quite sure how to fix it though, other than adding a timer so that the message is sent less often, just to get rid of the spamming.

@OgelGames OgelGames changed the title Hangglider protection messages Hangglider protection message spamming Dec 17, 2019
@thomasrudin
Copy link

thomasrudin commented Dec 17, 2019

I'm not sure about a solution either but IMO the chat message is a very weird side-effect for a function that should just check the protection... :/

Maybe a third parameter in minetest.is_protected() that specifies the log level or something but that feels hacky and involves changing engine code if done properly.

EDIT: now that i think of it: the digtron has the same issues if you drive into protected areas if i remember correctly. This looks like a global issue...

@thomasrudin
Copy link

Upstream issue: https://notabug.org/TenPlus1/protector/issues/17

@int-ua
Copy link

int-ua commented Dec 24, 2019

Using public workshop machines is also affected.

@BobFred7
Copy link

I don't think flak is actually used much on this server, so maybe we could cut out hangglider init.lua lines 155 to 163 as a temporary solution while we wait for TenPlus1 to deal with the flaws in protector?

@thomasrudin
Copy link

thomasrudin commented Dec 28, 2019

I don't think flak is actually used much on this server, so maybe we could cut out hangglider init.lua lines 155 to 163 as a temporary solution while we wait for TenPlus1 to deal with the flaws in protector?

I'd rather like to fix the protector mod instead with the above solution, lets see if Tenplus1 sees the issue...

@BobFred7
Copy link

temporary solution

while we wait for TenPlus1

But okay

@OgelGames OgelGames added the Waiting ⏳ Waiting for a fix, upstream issue, or a PR to be merged label Jan 2, 2020
@S-S-X S-S-X removed the Waiting ⏳ Waiting for a fix, upstream issue, or a PR to be merged label Feb 5, 2020
@S-S-X
Copy link
Member

S-S-X commented Feb 5, 2020

Removed "waiting" label as this can be now fixed at https://github.com/S-S-X/protector repo and can try to merge stuff to upstream later.

@thomasrudin
Copy link

Removed "waiting" label as this can be now fixed at https://github.com/S-S-X/protector repo and can try to merge stuff to upstream later.

@tenplus1 is aware of the issue by the way: https://notabug.org/TenPlus1/protector/issues/19

I hope we can merge that upstream again some day...

@thomasrudin
Copy link

@S-S-X i created a PR with your commits for the protector-tool registration: https://notabug.org/TenPlus1/protector/pulls/20

Let's see if/how 10+1 responds...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants