MineColonies

MineColonies

59M Downloads

[BUG]One guard appears in multiple locations simultaneously and keep stationary even he dead

xfgj opened this issue ยท 3 comments

commented

Is there an existing issue for this?

  • I have searched the existing issues

Are you using the latest MineColonies Version?

  • I am running the latest alpha version of MineColonies for my Minecraft version.

Did you check on the Wiki? or ask on Discord?

  • I checked the MineColonies Wiki and made sure my issue is not covered there. Or I was sent from discord to open an issue here.

What were you playing at the time? Were you able to reproduce it in both settings?

  • Single Player
  • Multi Player

Minecraft Version

1.19.2

MineColonies Version

1.19.2-1.1.332-BETA

Structurize Version

1.19.2-1.0.661-RELEASE

Related Mods and their Versions

  1. Forge version:1.19.2-43.3.5
  2. Block UI version:1.19.2-1.0.127-BETA

Current Behavior

image
image
image
image
The guard appears in multiple locations simultaneously and keeps stationary, and I can't hurt it. It won't disappear Even when I use /kill command.

Expected Behavior

I hope it can disappear and this bug won't happen again.

Reproduction Steps

I have no idea about how this happens.

Logs

https://gist.github.com/xfgj/6588d82904a0162310faa20f8b2c7d65

Anything else?

  • Add a thumbs-up to the bug report if you are also affected. This helps the bug report become more visible to the team and doesn't clutter the comments.
  • Add a comment if you have any insights or background information that isn't already part of the conversation.
commented

This can actually happen because of minecraft entity management. Restarting or reloading the affected chunks fixes it.

commented

Had this issue myself, it was caused by a corrupt colony file and only deleting and rebuilding the colony fixed it (For myself).

In my case what happened is that Citizen ID: 6 was corrupted and whatever citizen was in this entry would start spawning a "clone" each time the server restarted. It would generate duplicate entity ID's on in the server log for each duplicate.

Unfortunately killing the citizen didn't work as whatever citizen next got the ID of 6 would start exhibiting the same behaviour.

I had had chalked it up to a file corruption or when the server shutdown without saving properly as it never reoccurred.

commented

@Raycoms In my case it was not solved by restarting the server, reloading the chucks or even installing a mod that would remove the duplicate entities.

I went so far as to kill off all citizens, reload the server until all entities were reported as removed and there were no entities visible and then start repopulating the village, as soon as ID 6 was a assigned duplicates started appearing again.

As I said I can't reproduce as after deleting the village and rebuilding it it never occurred again but just wanted to comment that a restart/reload did not correct, even deleting the colony itself didn't correct it unless I deleted the corresponding colony file from the server. Even if I deleted the colony and reloaded it with the backup command it would reoccur as soon as Citizen 6 was populated