Closed kolinkrewinkel closed 11 years ago
Err... I know why. (duplication of "e" between EntityItemFrame and EntityHanging, its parent). The real question is: how do we fix it?
Well either don't serialize it when you don't really need it or serialize it manually in the ObjectParser.
You can, in fact, create your own object parser and let remote entities use that one. Do do that just do EntityData.objectParser = new _yourparser(); and you're done :)
How would I get around parsing this in a situation where it's the human entity which is failing to be serialized? I don't understand the relationship between movement desires and the item frame.
Hm.... if it's a human entity that fails, then it's interesting as it should get parsed fine using the unique id. Is it one of the preset desires or is it one of your own?
Both will do it.
Sent from my iPhone
On Apr 21, 2013, at 12:24, kumpelblase2 notifications@github.com wrote:
Hm.... if it's a human entity that fails, then it's interesting as it should get parsed fine using the unique id. Is it one of the preset desires or is it one of your own?
— Reply to this email directly or view it on GitHub.
I will continue working on it in the next days, there's no quick solution for it.
Cool, thank you. I honestly have no idea. :)
On Apr 21, 2013, at 1:32 PM, kumpelblase2 notifications@github.com wrote:
I will continue working on it in the next days, there's no quick solution for it.
— Reply to this email directly or view it on GitHub.
Well the issue is that I didn't treated json as I treated yml. In this case I told yml to not save the whole entity but just its unique id (using the serialize() method). I didn't do such thing for json and thus it tries to save the COMPLETE entity object with all its values and it then fails.
Does this mean the YML serializer will succeed? If so, I'd have no objections to switching (in fact, it'd be more conformist to the way most of the other plugins in use on the target server persist data).
On Apr 21, 2013, at 1:42 PM, kumpelblase2 notifications@github.com wrote:
Well the issue is that I didn't treated json as I treated yml. In this case I told yml to not save the whole entity but just its unique id (using the serialize() method). I didn't do such thing for json and thus it tries to save the COMPLETE entity object with all its values and it then fails.
— Reply to this email directly or view it on GitHub.
I had no issues yet with yml at all. In fact, I only tested most of the stuff with yml only and expected json to work just the same which was a completely wrong assumption from me as you can see.
This should now be fixed. Can you you confirm that? https://github.com/kumpelblase2/Remote-Entities/commit/ed56ae8b0be9619ad488c845d4807bb865acece4 (note: you'll need to compile it yourself as it's on a separate branch.)
Worked in my usage. Thanks. :)
On May 6, 2013, at 1:01 AM, kumpelblase2 notifications@github.com wrote:
This should now be fixed. Can you you confirm that? ed56ae8
— Reply to this email directly or view it on GitHub.
Adding any movement desire (including the default: swim, or look at nearest or look randomly) generate this:
Any ideas?