Miranda NG Official Community Forum

Forum for English speaking Miranda NG users => Feature requests => Topic started by: AnrDaemon on 23 05 2015, 23:18:14

Title: Protocol idea: Minecraft Dynmap chat poller
Post by: AnrDaemon on 23 05 2015, 23:18:14
The structure of the chat is fairly simple.
You poll "<baseurl>/up/world/world/<timestamp>" for updates and obtain a JSON encoded result.
The interesting parts of it is "timestamp", which you should use to get the next update, and array "updates", the events that have "type" = "chat".
The protocol supports sending messages as well as optional authentification.

https://github.com/webbukkit/dynmap/wiki (there's no updates protocol description, though)
Title: Re: Protocol idea: Minecraft Dynmap chat poller
Post by: Robyer on 24 05 2015, 21:27:31
Here you go: [dropbox link removed, plugin is officially available] 8)
Title: Re: Protocol idea: Minecraft Dynmap chat poller
Post by: AnrDaemon on 24 05 2015, 21:37:23
 :o Now, I though I was just throwing ideas to the wind. Totally did not expect an answer, thank you! I'll check it in a day or two, when I get to my -NG install.
Is there a source available somewhere, too?
Title: Re: Protocol idea: Minecraft Dynmap chat poller
Post by: Robyer on 24 05 2015, 22:09:48
AnrDaemon, I wasn't expecting implementing it either, but luckily I've got in mood :D

Sources are now in svn repository (http://trac.miranda-ng.org/changeset/13819/), and it was added to solutions and nighly builds too.

----

EDIT: Plugin is available officially for download from here: 32-bit (http://miranda-ng.org/distr/x32/Plugins/minecraftdynmap.zip) / 64-bit (http://miranda-ng.org/distr/x64/Plugins/minecraftdynmap.zip) or via Plugin Updater.
Title: Re: Protocol idea: Minecraft Dynmap chat poller
Post by: AnrDaemon on 25 05 2015, 20:47:13
Works on a basic level :) Thank you.
However, sending messages is a bit iffy. The sender name appears as a question mark in chat.
Title: Re: Protocol idea: Minecraft Dynmap chat poller
Post by: Robyer on 26 05 2015, 07:31:46
AnrDaemon,
I'm showing name what came from server. When I was testing it on one server, I've got my ip address as a name - correctly.
Could you give me your server IP so I can test it?
Title: Re: Protocol idea: Minecraft Dynmap chat poller
Post by: AnrDaemon on 26 05 2015, 09:28:04
I mean my name when I send messages through plugin :)
It show up at server side borked.
Anyway, it is not any priority, and I'm grateful for this plugin as it is.
I'll install a test server myself and we could get to the more productive debugging later.
Title: Re: Protocol idea: Minecraft Dynmap chat poller
Post by: Robyer on 26 05 2015, 12:11:37
I mean my name when I send messages through plugin

Your name in Miranda chat window or your name on server?
In Miranda chat window is showed name as it is readed from server (for received and also for send messages).

Title: Re: Protocol idea: Minecraft Dynmap chat poller
Post by: AnrDaemon on 27 05 2015, 04:43:26
Err, let's put it on the ice for amoment :)