BG-Software-LLC / WildStacker

Stacked drops, stacked entities, stacked blocks and stacked spawners in one plugin!
https://bg-software.com/wildstacker/
GNU General Public License v3.0
89 stars 37 forks source link

Stacked spawner timer slowing down #696

Closed alek4032 closed 1 year ago

alek4032 commented 1 year ago

Minecraft's Version

Pufferfish version git-Pufferfish-24 (MC: 1.19) (Implementing API version 1.19-R0.1-SNAPSHOT) (Git: 37f936f on HEAD)

Plugin's Version

WildStacker-2022.6-b395.jar

Describe the bug

The stacked spawner timer will at random times slow down by a lot so each second takes 3-5 seconds. Server TPS is at 20 with over 12GB ram free.

Our player has x3 stacks of 32 spawners inside each chunk. There's a total of 12 stacks with a mix of cave spiders, zombies, skeleton and creepers. ALL of them experience the same issue where they randomly slow down and stays slowed down for quite a long time. I've made a video of it happening, pasted the config and a picture of the layout of spawners

A couple people on our server have explained that going out of the range of the spawners and back into the 16 block range will sometimes fix the issue, if that helps. I haven't been able to test it or confirm it myself yet.

To Reproduce

Place x3 stacks of 32 spawners in each chunk in a circle like showed in the picture and the spawners will slow down their timer at random times.

Additional Information

Youtube video showing the bug (sorry the video was too big to drag in here) https://youtu.be/lBuZJAcRVkk

Config: https://pastebin.com/aPEQV8je d64c99606bff0f0d2e4d7213eae96bfd

OmerBenGera commented 1 year ago

Do you have tickDelay configured maybe?

alek4032 commented 1 year ago

Do you have tickDelay configured maybe?

Shouldn't be one no. We've been using Wildstacker for many months on 2 of our servers and only recently people have started reporting these issues with spawners slowing down. We haven't added any new plugins that should conflict like this as far as I am aware

illudota commented 1 year ago

It is because on 395 mob spawning is bugged it's like only x1 per mob spawner, We also noticed out spawners were slowed down, so I decided to find out how, found the reason in my test server, it only spawns x1 mob per mob spawner instead of default count 4 https://github.com/BG-Software-LLC/WildStacker/issues/701

OmerBenGera commented 1 year ago

It is because on 395 mob spawning is bugged it's like only x1 per mob spawner, We also noticed out spawners were slowed down, so I decided to find out how, found the reason in my test server, it only spawns x1 mob per mob spawner instead of default count 4 #701

This is not related to this issue at all. This issue shows how the timer goes down much slower than real time clock.

OmerBenGera commented 1 year ago

Do you have tickDelay configured maybe?

Shouldn't be one no. We've been using Wildstacker for many months on 2 of our servers and only recently people have started reporting these issues with spawners slowing down. We haven't added any new plugins that should conflict like this as far as I am aware

The ticks are affected directly by your server TPS Is it stable at 20?

alek4032 commented 1 year ago

Do you have tickDelay configured maybe?

Shouldn't be one no. We've been using Wildstacker for many months on 2 of our servers and only recently people have started reporting these issues with spawners slowing down. We haven't added any new plugins that should conflict like this as far as I am aware

The ticks are affected directly by your server TPS Is it stable at 20?

It's stable at 20TPS most of the day, and the issue happens at 20TPS and also when lower. It's strange

OmerBenGera commented 1 year ago

Do you have tickDelay configured maybe?

Shouldn't be one no. We've been using Wildstacker for many months on 2 of our servers and only recently people have started reporting these issues with spawners slowing down. We haven't added any new plugins that should conflict like this as far as I am aware

The ticks are affected directly by your server TPS Is it stable at 20?

It's stable at 20TPS most of the day, and the issue happens at 20TPS and also when lower. It's strange

Are you sure its WildStacker? Try replicating it on a server with only WildStacker installed.

alek4032 commented 1 year ago

Hey, so it seems like the new github post about spawners freezing has an issue simular to ours. I just used the /ws debug command, and get this in the console

[20:15:28 INFO]: [WildStacker] NMSSpawners::updateStackedSpawner Trying to update spawner [20:15:28 INFO]: [WildStacker] NMSSpawners::updateStackedSpawner baseSpawner=com.bgsoftware.wildstacker.nms.v119.spawner.StackedBaseSpawner@56991264 [20:15:28 INFO]: [WildStacker] NMSSpawners::updateStackedSpawner Trying to update spawner [20:15:28 INFO]: [WildStacker] NMSSpawners::updateStackedSpawner baseSpawner=com.bgsoftware.wildstacker.nms.v119.spawner.StackedBaseSpawner@56991264 [20:15:28 INFO]: [WildStacker] NMSSpawners::updateStackedSpawner Trying to update spawner [20:15:28 INFO]: [WildStacker] NMSSpawners::updateStackedSpawner baseSpawner=com.bgsoftware.wildstacker.nms.v119.spawner.StackedBaseSpawner@56991264 [20:15:28 INFO]: [WildStacker] NMSSpawners::updateStackedSpawner Trying to update spawner [20:15:28 INFO]: [WildStacker] NMSSpawners::updateStackedSpawner baseSpawner=com.bgsoftware.wildstacker.nms.v119.spawner.StackedBaseSpawner@56991264

Does that help?

OmerBenGera commented 1 year ago

Hey, so it seems like the new github post about spawners freezing has an issue simular to ours. I just used the /ws debug command, and get this in the console

[20:15:28 INFO]: [WildStacker] NMSSpawners::updateStackedSpawner Trying to update spawner [20:15:28 INFO]: [WildStacker] NMSSpawners::updateStackedSpawner baseSpawner=com.bgsoftware.wildstacker.nms.v119.spawner.StackedBaseSpawner@56991264 [20:15:28 INFO]: [WildStacker] NMSSpawners::updateStackedSpawner Trying to update spawner [20:15:28 INFO]: [WildStacker] NMSSpawners::updateStackedSpawner baseSpawner=com.bgsoftware.wildstacker.nms.v119.spawner.StackedBaseSpawner@56991264 [20:15:28 INFO]: [WildStacker] NMSSpawners::updateStackedSpawner Trying to update spawner [20:15:28 INFO]: [WildStacker] NMSSpawners::updateStackedSpawner baseSpawner=com.bgsoftware.wildstacker.nms.v119.spawner.StackedBaseSpawner@56991264 [20:15:28 INFO]: [WildStacker] NMSSpawners::updateStackedSpawner Trying to update spawner [20:15:28 INFO]: [WildStacker] NMSSpawners::updateStackedSpawner baseSpawner=com.bgsoftware.wildstacker.nms.v119.spawner.StackedBaseSpawner@56991264

Does that help?

These are two different issues - yours is about ticks taking more time than they should, in their post spawners are not ticked at all. About the debug, it looks fine for me. Find how to replicate it on a server with only WS installed.

OmerBenGera commented 1 year ago

Any news regarding this?

OmerBenGera commented 1 year ago

I am closing this due to lack of response If the issue still occurs let me know by replying here