-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POI support for DynMap #320
Comments
Is this a continuation of #305? |
D'oh! Yes, it is. I'd completely forgotten about that post from back in August and had come up with the need to do this independently. Anyway, I have a rough patch for this now, but just need to tidy it up for a pull request (and probably synch my repo here with the current dev trunk as well) |
When you add the pull request, I'll make it a milestone. |
I just haven't been able to find any time to work on this for weeks. It's not a big change but I need to synch my dev environment to the current dev branch before sending a pull request, and tidy it up. Hopefully this week :( |
I wouldn't hurry yourself. I doubt this will be ready for some time. |
After a think, I feel the best way to handle this is with a Dynmap Bukkit plugin, rather than MCDungeon exporting to a static config file. It should be relatively easy to make a Bukkit plugin that interfaces with the Dynmap API, and on startup, loads in the MCDungeon cache and updates the Markerset. I'm having a go at doing this now. Whether or not you'd want to distribute the Bukkit plugin with MCDungeon, or as a separate linked project, is up to you (and of course, it assumes that I ever get to finish it ... ) |
... the mcdungeon Dungeon cache file format is the most awkward I have ever tried to read. Reading this from Java... pickled NBT inside objects in lists in hashes in a pickle file... Sob... why couldn't you have used YAML ... :( |
Yeah, sorry. Too lazy to write a dumper and parser from YAML to the internal NBT object format. Didn't design for external access. :) |
My first attempt at a Bukkit plugin! Yeah, parsing Pickle files is painful, especially when they have non-base types in them. I had to hook in the Jython library to do it in the end adding 30+MB to the 14K plugin size! Still, it works, and I now have all MCDungeon dungeons appearing via Dynmap (no treasure hunts yet, they're even harder to unpickle) |
Neat! |
Closing as dupe of #305 |
I'm working on extending the genpoi support. A --naked flag to output only the POI definitions (and not the surrounding configuration code); also a --dynmap flag to output in the correct formay for the Bukkit 'DynMap' plugin.
The difference is pretty small - Dynmap uses a JSON format rather than python - but they both need the same data. We're using DynMap on the family server here so it's useful, and since we're already suporting regions format for WorldGuard under Bukkit it makes sense to add this one.
I have a working code at the moment but it needs to be tidied up before I can submit a pull request.
The text was updated successfully, but these errors were encountered: