Errors in console when trying to respawn a missing horse
SofieHL opened this issue ยท 11 comments
On 1.11.2 version 1.66
Trying to do /zh info, /zh tp. /zh here or any other command has no effect on the target horse if it has the [restricted] tag. Also causes random horses to appear and disappear. The pastbin shows the errors that appear in the console.
Are you using MySQL ?
It could be that your MySQL server is outdated and needs an upgrade, as I am using MySQL57's features in ZHorse 1.6.6.
No I am using SQLite.
It appears that horses that are spawned pretamed are not registering properly in the database when claimed. They receive the [restricted] tag and trying to execute commands on them spawns a random horse at their location.
If I tame a wild horse, the [protected] and [locked] tags are properly applied and commands function normally on them.
Do you have any error on server startup or /zh reload ?
Btw the Restricted flag simply means that a horse is neither locked nor protected, so it's the same as no flag in 1.6.5
No errors on startup or /zh reload
Further testing has show no issues with new horse spawns on 1.11.2. It only seems to happen to horses that were previously spawned with version 1.6.1 on 1.10.2 with "/zh spawn horse tamed" I cant even remove them from the database with /zh admin.
Does it say that you must claim the horse first when you do /zh info on such horses ?
They disappeared from the world when i upgraded to 1.11.2 and 1.66 but still show up in /zh list. When I do /zh info on them, nothing happens in chat but a random wild un-named horse spawns in their last location and the errors from the pastbin file appear on the console.
Here is a new pastebin, I think a console filter was blocking part of it in the other one,
I found why the errors were showing up in the console : it's a bug introduced in 1.6.6 (the horse's owner assignation) that occurs when ZHorse spawns a horse and assign its stats from the records in the database. This is however not your main issue, as horses should not have been missing in the first place.
As we are facing two different issues here (missing horses and impossibility to respawn them), I will rename this ticket and close it with the next commit.
Could you then try to reproduce your issue (disappearing horses) by using the snapshot 1 of ZHorse 1.6.7 that I will submit here and open a new ticket describing how to reproduce this issue ?
Please note that as 1.6.7 snapshot 1 fixes the bug preventing horses to be respawned, /zh here -i 1 on a missing horse will not yields errors. The issue that you should track is how to make horse disappear by simply updating the plugin.
ZHorse 1.6.7 snapshot 1 : http://www.mediafire.com/file/g4ozjg4wee675k8/ZHorse+1.6.7+snapshot+1.jar