Suggested Name: PictureChat What I'd like this plugin to do: It wouldn't display a big picture, it would only display large pixels in a combination, for example, on hypixel minigame select. It would arrange the colored boxes in a certain formation in chat. If you still don't understand, watch this: Suggested Commands: /pc reload -Reloads the Config /pc (name) - displays the picture. /pc new (name) -Starts a new picture /pc (name) (Line number) (Column Number) (color). - Changes the color of a pixel in a picture. Suggested Perms - picturechat.new- allows for creating new pictures picturechat.see.(name) -allows to see a picture. picturechat.change- allows you to change pixels. picturechat.see.all - allows to see all pictures. OR Suggested Commands: /pc new (name)- Creates a new chat picture using the WorldEdit selection system, so this command will only work when a flat area is selected. /pc (name) - same as above Suggested Perms- picturechat.new- allows for creating new pictures picturechat.see.(name) -allows to see a picture. picturechat.see.all - allows to see all pictures. Suggested Config- (name) Block- (true, false) - allows stepping on a certain block to get a picture Block Name- (name of block) - When this block is stepped on, the picture will be shown (but only if block is set to true) Item- (true, false) - allows clicking on a certain item to get a picture/ Item Name- (name of item) - When this item is clicked on, the picture will be shown (but only if item is set to true) Thanks guys, I really appreciate it. EDIT: I believe (I'm not sure, since I can't code) that you can use this API to help: http://dev.bukkit.org/bukkit-plugins/ascii-stuff/ Also, if a library is any different, you can use this: http://forums.bukkit.org/threads/lib-imgmessage-send-images-to-players-via-the-chat.204902/ I don't know what that does, but I hope it helps!
For a coder who has no idea how to do this. You would do something like this. I just don't have time for this currently. https://github.com/MrSnare/AsciiStuff/blob/master/src/net/shotbow/asciistuff/AsciiStuff.java
ya, i saw this. Then I realized you needed to know java to use it, so I gave up xD. Apparently its an API, but I believe there is also a library for this. Not sure what that does, but its out there! I'll try to get a link later
Well. Take a look at LoreAnimations. It's basically the same thing, but displays animations in item lores. I could easily implement the same method for your purpose. I'll see what I can wrap up later on today
Bump! I'm leaving for a month on friday, so I really need this by then. Thanks! Oh, sorry, forgot to reload. I'll take a look! EDIT by Moderator: merged posts, please use the edit button instead of double posting.
FreddyCraft You forgot to reload in 3 hours? That is long whitehooder Is a config option hard for this?
Just let me finish downloading the Dropbox to this computer and I'll wrap up something. Shouldn't take a long time. Haha, I do realize it's supposed to display images in chat I just figured I'd go with 32x32 since it pretty much fills the screen. The /pc command you suggested seems like a huge amount of work to create larger animations, and for the selection with worldedit I'd have to wrap up some new method. Currently all I have is a method for converting pictures (and animated gifs) into pixel art. There's probably a library out there which creates images out of in-game pixel art so I'll see what I can find. If I don't bump into anything useful I'll create something myself. Will be more time consuming, but I'll get it done by friday most likely I've got something you can test. Currently, the only commands are /chatart and /chatartbc. They both take only one argument; the name of the file in the plugin's "pic" directory (without the extension). You can put any image file in the pic folder and the plugin will convert them on server (re)load. /chatart shows the picture in your chat, /chatartbc broadcasts the picture to everyone on the server. I've figured out the max dimension is somewhere around 32 in width and precisely 20 in height. If images are larger they are scaled down, but keep in mind, the aspect ratio is kept, so if it's a "tall" picture it will probably be overly pixelated (not that other images are less pixelated ) Anyway, give it a go. The permissions are the same as the commands and default to OP. I'll see what I can do with commands for creating animations and such, but you could just take a look at the generated text files for an idea of how to create one yourself. Color codes and text is all. I'll dig into the WorldEdit thing later today as well [edit by JaguarJo: merged posts. Please use the edit option if your post is the last one and it is still the same day that you made that last post. Thanks.]
Alright, I've been swimming all day, so I'm gonna answer comments now. I left the page open when I turned my computer off. Oooo, I like this. Also, any way we can animate it? Thanks! I really appreciate the help you guys are giving! I forgot to mention, my server is freddycraft.com (obviously) if you want to check it out! I also like the configurable size thing, that is really cool. EDIT: Any way we can have like a /chatart reload, so I don't have to restart the server every time? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Sure thing. Adding animations isn't that hard either, but it would probably screw up the chat a bit. I don't know if there's a way to edit the chat. Haven't done it myself at least.
You could probably download code's map, to see how it works. Also, can u make it so /chatartb mutes the players for like, 1 second, so it won't get messed up? Alright, could you make default size about... 9x9? Config doesn't seem to be working, though the pictures do. The problem is, they have to open the chat to see the complete picture, so 9x9 would be good. I'd be sorry to bother you, but is there any way we can add chat? It would sit next to the image. Again, I really appreciate the time you are probably putting into this. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
This is simply because the dimensions only apply to the image conversion, so when there's already a text file there is no scaling going on. Easy. I'll do it tomorrow. You can already do this though. Just add your text to the <picturename>.txt file. Something like this for instance: Code: §0§l█§0§l█§4§l█§0§l█§0§l█ §0§l█§4§l█§4§l█§4§l█§0§l█ §4§l█§4§l█§4§l█§4§l█§4§l█ §cThe Red Square §0§l█§4§l█§4§l█§4§l█§0§l█ §fis awesome §0§l█§0§l█§4§l█§0§l█§0§l█ I'll add an option to add a message to the broadcast command and add a chat delay thing as well Ok, so I've google'd for just a little while and haven't found anything on editing chat messages. I think it's not possible with Bukkit, but I'll dig into NMS a little tomorrow, just to see if I can find anything on it. There is a way to display animations either way but it's quite a dirty way of doing it. It's simply spamming your chat so handling stuff like messages popping up and stuff would be quite hard, but still quite possible. I'll check that tomorrow as well. If it's too resource heavy I think I'll just abandon the idea of animations. You could just use the LoreAnimations plugin I'm developing right now anyway EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Alright, thanks. I think I found a plugin that could edit the chat message. It's called IMGSender. HOWEVER, it doesn't have animations. There is no way the LoreAnimations plugin could work with chat also?