ImageOnMap icon indicating copy to clipboard operation
ImageOnMap copied to clipboard

[Request] Reloading maps at intervals (For dynamic images)

Open TomLewis opened this issue 4 years ago • 3 comments

Hi

I would love to have maps refresh at intervals, selected maps only. This would allow me to have a script edit/change images locally and display information from say, my discord changelogs or my website blog! But it would only work if I had one big image instead of small maps tho, so it might not work.

TomLewis avatar Jun 04 '20 16:06 TomLewis

Hello, you can change image directly in the images folder but you have to reload the plugin. That's not really user friendly. This can be a nice addition to the plugin, we planned to put image that switch between a list of predetermined picture, your idea can be pretty usefull. A command like /maps update can do the job.

Vlammar avatar Jun 05 '20 11:06 Vlammar

@Vlammar thats awesome! how did I not think of reloading the plugin! Its fine, when my script runs to generate the new images, I will tell it to send a reload command to the wrapper to reload the plugin!

If you want to make it really user friendly, you could integrate with DiscordSRV so people just have to post to a channel in discord and itll display that information over an image or something.

Or just add placeholderAPI support?

It gets confusing when you start adding image manipulation mind.

One thing I am still stuck on is each image is saved as a map 128x128, not one big image, so I would need to make my image editor script cut it up into small images, not done that before, I will have to figure that out!

TomLewis avatar Jun 06 '20 07:06 TomLewis

Or just add placeholderAPI support?

That can be also a good solution. We were only planning to use maps from file system (you can do it right now but it's actualy not intended, with file:// check out https://github.com/zDevelopers/ImageOnMap/issues/78)

One thing I am still stuck on is each image is saved as a map 128x128, not one big image, so I would need to make my image editor script cut it up into small images, not done that before, I will have to figure that out!

That's why it's not really user friendly :/

Vlammar avatar Jun 06 '20 15:06 Vlammar