Shopkeepers

Shopkeepers

2M Downloads

Disappearing shopkeepers: INFO

blablubbabcDEV opened this issue · 13 comments

commented

Migrated from: https://dev.bukkit.org/projects/shopkeepers/issues/245

Originally posted by digitalgadget (Jul 30, 2014):

I am seeing disappearing shopkeepers on 18 and 21 running Cauldron 4 build 107 and 123.  They despawn as soon as the chunk unloads - either by players leaving the area, logging out, or restarting the server.  Spawn-verifier has been a lifesaver.  There are no errors in the log files.I'm not asking you to fix anything as I know this is an ongoing issue.  I am submitting this ticket so you have more information about servers that have this issue.I really like this plugin, as there are no other ones this user-friendly with these features.  I will probably use a chunk loading block to keep the hiccups to a minimum.Forge mods:
Bibliocraft, Biomes O Plenty, Dynmap, Forestry, GeneratorMods, Iron Chests, Obsidian Boat, Railcraft, Thaumcraft, Twilight Forest, Baubles.Bukkit plugins:
AntiXray, DynmapGriefPrevention, DynmapCBBridge, Enjin, Essentials (Chat, GroupManager, Protect, Spawn), GriefPrevention, Shopkeepers, SuperLogger, Vault, WorldEdit.Running on Multicraft through HostHorde.Let me know if there is anything else I can do to help.

commented

Originally commented by digitalgadget (Aug 1, 2014):

  1. When the chunk loads, the shopkeepers are no longer present. Spawn verifier finds and loads them after 10-20 seconds.

  2. Autosave is on.

  3. Here is a debug of loading and unloading a chunk.
    Chunk loaded.
    10 seconds pass.
    [Shopkeepers] Spawn verifier: 3 shopkeepers respawned
    Teleported away from the chunks.
    [Shopkeepers] Unloading 0 shopkeepers in chunk 340,376
    [Shopkeepers] Unloading 1 shopkeepers in chunk 341,376
    [Shopkeepers] Unloading 0 shopkeepers in chunk 340,375
    [Shopkeepers] Unloading 1 shopkeepers in chunk 341,371
    [Shopkeepers] Unloading 1 shopkeepers in chunk 341,370
    Sorry for the delay in getting back to this thread.

         Edited Aug 1, 2014
    
commented

Originally commented by blablubbabc (Aug 1, 2014):

[at]digitalgadget:
When I test this on my test server (without other plugins interfering) I get unloads and loads properly (even no matter what is set up as autosave interval in the bukkit.yml):
They are loaded. I move away. In the console it says 2 shopkeepers unloaded in that chunk. I move back to that chunk. In the console it says 2 shopkeepers loaded in that chunk.
So it seems that unloading properly works for you, as you get those messages. But do you also get the "Loading 1 shopkeepers in chunk x,y" messages when coming back?
If no: very strange.. do you have any plugins or mods with load the chunks them self/differently somehow?
If yes, but the shopkeeper entities are still not visible and only come back after 10-20 seconds by the spawn verifier: do you have any plugins which might remove the shopkeeper entities / kills them? Either perioidcally or on chunk load specifically..
Either way I assume the issue lays somwhere in relation with some of your other plugin(s)..

        Edited Aug 1, 2014
commented

Originally commented by digitalgadget (Aug 2, 2014):

I do not get "Loading Shopkeepers". Only "X Shopkeepers Respawned" once the Verifier notices.
The mods/plugins that are most likely to conflict with their spawning are: Essentials, GriefPrevention, and Biomes O Plenty.
The area I am testing is protected by a GriefPrevention claim, but even if I delete the claim the behavior persists.
Note also that I am running Cauldron. There may be a translation occurring incorrectly.
I can duplicate the server on my own computer and test it without some of the mods/plugins if this would help you.

commented

Originally commented by blablubbabc (Jul 30, 2014):

By 'disappearing on chunk unload' you mean 'not reappearing when the chunk loads again'?
Do you have autosave enabled in the bukkit.yml?
If you turn on debug mode in the config: do you get the 'x shopkeepers unloaded' and 'x shopkeepers loaded' messages for chunk unloads and loads?

commented

Originally commented by blablubbabc (Aug 3, 2014):

[at]digitalgadget:
Oh wait: I didn't know that Cauldron is a complete different server implementation. Never had anything to do with that..

So maybe Cauldron is the issue then.. I am testing with craftbukkit and everything seems to work there.

As I don't want to take a deeper look into how Cauldron internally works and what might be different I can't really help you much with this either..

However as you don't get the 'Shopkeepers loaded in chunk x,y" -messages I assume that it maybe doesn't properly call ChunkLoadEvents for what ever reason..

A simple test plugin which prints some debug message on chunk loads might verify if this is the issue.

I have uploaded such a plugin here: blablubbabc.de/daten/ChunkUtils.jar

It prints a message when chunk loads and unloads (pretty spammy). And it has commands to manually load and unload chunks (which you don't need; they are only included because I used those during my testings in the past). Source code is included.
You could run this on your test server just to see if it even prints "Chunk loaded" messages at all.

        Edited Aug 3, 2014
commented

Originally commented by digitalgadget (Aug 3, 2014):

"You don't have the permission to access the requested resource. It is either read-protected or not readable by the server."
Can you give me an alternate source?

commented

Originally commented by blablubbabc (Aug 3, 2014):

[at]digitalgadget:
Eh, it seems to have messed up the link: the full link is blablubbabc.de/daten/ChunkUtils.jar

        Edited Aug 3, 2014
commented

Originally commented by blablubbabc (Aug 2, 2014):

[at]digitalgadget:
I assume that the Biomes O Plenty Mod is the issue: it seems to overwrite chunk loading related stuff of the server as far as I can tell.. If this is the case there is nothing I can do..
Best is you try without this mod to make sure that this is the issue.

commented

Originally commented by digitalgadget (Aug 2, 2014):

OK I will try it with and without BOP and get back to you :)

commented

Originally commented by digitalgadget (Aug 2, 2014):

OK results are in.
I copied my server to my local machine and created a new world without BOP. The same behavior was observed. The same console messages were observed.
At the suggestion of my husband, I created a new server running ONLY Cauldron 1.7.2-1.1147.04.107 and Shopkeepers. The same behavior was observed. The same console messages were observed.
This confirms that none of my mods or plugins were to blame for the behavior.

commented

Originally closed by blablubbabc (Sep 6, 2014)

commented

Originally commented by digitalgadget (Aug 4, 2014):

Here are the relevant log lines.  I started the server, ran debug, joined.  Waited for Spawn verifier to find shopkeeper in my chunk.  Teleported to another area.  Teleported back, waited for Spawn verifier to find shopkeeper.  Disconnected, stopped server.

[11:41:28] [Server thread/INFO]: Starting minecraft server version 1.7.2

[11:41:29] [Server thread/INFO]: This server is running Cauldron-MCPC-Plus version git-Cauldron-MCPC-Plus-1.7.2-1.1147.04.107 (MC: 1.7.2) (Implementing API version 1.7.2-R0.4-SNAPSHOT)

[11:41:30] [Server thread/INFO]: [Shopkeepers] Loading Shopkeepers v1.21

[11:41:30] [Server thread/INFO]: [ChunkUnloader] Loading ChunkUnloader v1.0

[11:41:31] [Server thread/INFO]: Preparing start region for level 0

[11:41:31] [Server thread/INFO]: [Shopkeepers] Enabling Shopkeepers v1.21

[11:41:32] [Server thread/INFO]: [ChunkUnloader] Enabling ChunkUnloader v1.0

[11:41:41] [Server thread/INFO]: Debug mode enabled

[11:41:47] [Server thread/INFO]: digitalgadget[/127.0.0.1:55046] logged in with entity id 5 at ([Aloria] 1000.5, 77.0, 988.5)

[11:42:01] [Server thread/INFO]: [Shopkeepers] Saved shopkeeper data

[11:42:09] [Server thread/INFO]: digitalgadget: Teleported digitalgadget to 1000.50, 78.50, -987.50

[11:42:09] [Server thread/INFO]: Chunk unloaded: 54, 62

(huge pile of Chunk Unloaded messages)

[11:42:09] [Server thread/INFO]: [Shopkeepers] Unloading 1 shopkeepers in chunk 62,61

(huge pile of Chunk Unloaded messages)

[11:42:30] [Server thread/INFO]: digitalgadget: Teleported digitalgadget to 1000.50, 78.50, 988.50

(huge pile of Chunk Unloaded messages)

[11:43:01] [Server thread/INFO]: [Shopkeepers] Spawn verifier: 1 shopkeepers respawned

[11:43:05] [Server thread/INFO]: digitalgadget left the game.

(huge pile of Chunk Unloaded messages)

[11:43:05] [Server thread/INFO]: [Shopkeepers] Unloading 1 shopkeepers in chunk 62,61

(huge pile of Chunk Unloaded messages)

[11:43:08] [Server thread/INFO]: Stopping server

[11:43:08] [Server thread/INFO]: [ChunkUnloader] Disabling ChunkUnloader v1.0

[11:43:08] [Server thread/INFO]: [Shopkeepers] Disabling Shopkeepers v1.21

commented

Originally commented by blablubbabc (Aug 4, 2014):

[at]digitalgadget:
Ok, as there are no "Chunk loaded" messages this seems to verify that the issue is Cauldron.. maybe you can report this to them: tell them that ChunkLoadEvents might not be properly called in your case/setup. Maybe they can look into it to check what is going on.