Undead Nights - Zombie Horde Nights

Undead Nights - Zombie Horde Nights

53.4k Downloads

Undead night stuck loop

p0nx77 opened this issue ยท 12 comments

commented

Hi,

So im using the version 0.8.2 (Fabric 1.20/1.20.1) on a server, at first it was working great, horde nights every 3 nights. But now, for some reason, none of my players are able to sleep, even when there are NOT any hordes spawning, they keep getting the message saying they are unable to sleep cause its the undead night, even thou is NOT. so yeah no body is able to sleep at night on the server anymore.

I removed the mod, and everyone is able to sleep normal now. I put it back, and again, no one is able to sleep and every night the get the same message. but like I said, they are getting that warning even thou is not a horde night.

I got NO errors on the console, no warnings, nothing.

Could you please check? Thanks.

running on fabric 1.20.1, fabric-loader-version=0.16.9

commented

thanks for the bug report, I will have a look

commented

could you please try the 0.8.4 release
https://modrinth.com/mod/undead-nights/version/0.8.4-Fabric-mc1.20.1

I did 2 things:

  • added a small hotfix, to help with your issue
  • added a config option to enable / disable sleeping through horde nights
commented

Hi Pete,

Thanks for looking into it.

I have tried the new version, unfortunately, it still has the same issue. When the option "hordeNightsDisableSleeping" is set to false, everything is working normal and my players are able to sleep. But when I disable it, so they can't sleep during Horde nights, again they are not able to sleep EVER again, even when its NOT horde night. The main problem right now is that players SHOULD be able to sleep normal nights. but they are not able to.

any suggestions?

Thanks,

commented

Thanks for testing and I'm sorry to hear you still have the issue.
I will provide you with a version where you can enable debug messages.

commented

Can you please share how you configured the Undead Nights mod on your server?
By any chance, did you change the tickRate or the duration of a Minecraft day on your server?
Are hordes still happening, even with the bed feature not working?
What other mods are you running?

Thanks :)

commented

Hello Pete,

My configuration is the following:

{
// If true, Nights of the Undead (horde nights) are enabled | default: true
"undeadNightsEnabled": true,
// Days between horde nights (1 = every night is a horde night) | default: 5
"daysBetweenHordeNights": 2,
// Chance in % for a horde night | default: 100
"chanceForHordeNight": 100,
// Minimum distance a horde will spawn away from the player | default: 70
"distanceMin": 40,
// Maximum distance a horde will spawn away from the player | default: 75
"distanceMax": 75,
// Size of a wave of zombies | default: 15
"zombieHordeWaveSize": 30,
// Maximum amount of zombies that can be loaded in the world at the same time | default: 80
"hordeZombiesSpawnCap": 90,
// Time in seconds between possible additional waves in a horde night | default: 70
"cooldownBetweenWaves": 180,
// Chance in % for another zombie wave | default: 5
"chanceForAdditionalWaves": 1,
// Time in seconds between checks for a new wave (see value above) | default: 30
"timeBetweenChecksForNewWaves": 300,
// If true, Players can't sleep through horde nights | default: true
"hordeNightsDisableSleeping": true,
// If true, the horde zombies will be persistent and not despawn | default: true
"persistentZombies": false,
// If true, the horde zombies will burn in daylight | default: false
"zombiesBurnInDaylight": true,
// If true, demolition zombies with TNT will spawn | default: true
"spawnDemolitionZombies": false,
// Chance in % for a demolition zombie to spawn | default: 6
"chanceForDemolitionZombieToSpawn": 6,
// TNT Stack size a demolition zombie will spawn with (0 = unlimited) | default: 3
"demolitionZombieTntStackSize": 3
}

I also want to clarify that I do not have any mod that modifies the servers tick for day or night, ticks are running vanilla/normal. When I get the message cant sleep because is undead night, there are NO hordes happening. even if I set it to 3 or 2 nights between.

commented

Hi Pete,

Thank you so much! now working correctly!

However I just noticed something, the horde spawned for me without issues. however, we were 2 players on the server, but the hordes only spawned for me, not for my friend. we are living very veeery far away from each other, and he did not get any hordes around him.

He saw the message about the undead night incoming, but he never received the "a horde has spawned" message, only I did. and also he was not able to sleep, as intended of course.

any suggestions regarding that? or do you think the mod is limited to only spawn hordes for one player only? it would be great to have the hordes spawning randomly at any player online. or lets say ... the horde will spawn when there are major numbers of players close to each other.

let me know what u think.

thanks,

commented

I was able to reproduce the problem (it's not related to your config)
Can you please try v0.8.5
https://modrinth.com/mod/undead-nights/version/0.8.5-Fabric-mc1.20.1
I'm hopeful that it will fix the problem :)
Please note: your minecraft world might need to go through 1 or 2 night/day and day/night changes for everything to be set correctly again.

This version also has a new config option to enable logging out debug messages.

commented

I'm glad it works now :)
Thanks a lot for your help!

For your other question: I like the idea, I opened a new issue (issue #2) for that :)

commented

Sounds great, I hope that can be implemented.

Thanks Pete!

commented

One thing I noticed about your config, did you intentionally try to turn off additional waves in a horde night?
// Time in seconds between possible additional waves in a horde night | default: 70
"cooldownBetweenWaves": 180,
// Chance in % for another zombie wave | default: 5
"chanceForAdditionalWaves": 1,
// Time in seconds between checks for a new wave (see value above) | default: 30
"timeBetweenChecksForNewWaves": 300,

Those values do the following:
After the fist wave for each player, for 180 seconds no new wave can occur. After those 180 seconds, there is only a very low chance of 1% for a new wave. This 1% chance check has a cooldown of 300 seconds. Because a night is 10 minutes, for each horde night you have the first wave and only a 1% chance for a second set waves.

commented

I think I will rework that logic to:

  • have a flag for additional waves in the same horde night yes/no
  • (only one) cooldown between waves
  • chance for additional waves