MapPalette
MapPalette
Description
This plugin allows the server owner to change the color palette used for map items. If you use a plugin to display images as map items, such as ImageMaps, MapPalette can be used to correct differences between the server's map color palette and the clients' palette. If you have a 1.8 server, simply put MapPalette.jar in your plugins folder, restart your server, and your server will be compatible with 1.8.1 clients.
Note: CraftBukkit/Spigot 1.8.3 has the updated palette built-in. So in most cases, you do not need this plugin with server versions 1.8.3 and beyond.
Details
In order for images to be displayed as map items correctly, the color palette used by the server must match the palette used by the clients. Minecraft versions 1.7.2 through 1.8 all use the same palette; any server-client combination will display the colors correctly. But Minecraft version 1.8.1 uses a different palette. If, for example, you are running a 1.8 server and your players are using 1.8.1 clients, the colors will be wrong. This plugin allows your 1.8 server to use the 1.8.1 palette so the colors will be displayed properly for players using the 1.8.1 client. (Of course that means players with the 1.8 client will now see the wrong colors, but most players are probably using 1.8.1.)
Please note that this plugin can change the palette only for other plugins which use the Bukkit map API. If you have a standalone program which produces map .dat files, this plugin cannot change the palette. You would need to adjust the palette in the standalone program.
Configuration
By default, this plugin will switch your server to use the 1.8.1 palette.
mapversion: 1.8.1
The sole configuration parameter specifies which palette should be used. Supported values are 1.7.2 (for Minecraft versions 1.7.2 through 1.8) and 1.8.1 (for Minecraft 1.8.1 and beyond). Again, this is how you specify which palette will be used by the majority of your clients. So if your clients are running 1.8.1, you should specify mapversion 1.8.1.
Map Color Palette Files
The .jar file includes two .png files which contain one pixel of each color used by Minecraft map items:
- minecraft_palette_172.png - For Minecraft 1.7.2 - 1.8
- minecraft_palette_181.png - For Minecraft 1.8.1+
The use of these files is optional. You can use these files with an image editor to adjust the color palette of an image so it will match the one used by Minecraft. Exactly how to adjust an image's color palette will depend on your image editing program.
Commands/Permissions
None
Miscellaneous
Source code is included in the .jar file.
@Paladin5000
This plugin simply changes the color palette used by the Bukkit map API, which can be called by other plugins. My plugin doesn't provide any other commands or functionality.
What are the commands to see your map?
@JeyBeeHH
You have to change that 1.7.2 to 1.8.1
Ahh ok... so i have missunderstand the plugin a little bit.
I think its es polugin to send maps in realtime, with the correct palette to client.
Its also a plugin for maps that create ingame. :/
But very thanks for yor support. :)
So ImageToMapX is a stand-alone program you use to create map .dat files, which you then put in your server's folders? I'm sorry to say my plugin can't adjust the palette for you.
Bukkit has an API which allows plugins to convert images to map data. The API includes a definition of the map palette, which is used during the conversion. That's the palette my plugin updates. ImageToMapX contains its own copy of the palette; that's the one which would have to be updated.
I see someone here says how to adjust ImageToMapX's palette, at least for the black-brown problem: http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-tools/1261738-linux-windows-imagetomap-in-game-text-and-images?comment=750 But there were other color changes, too, but not as drastic.
I think that means you have to regenerate all your files.
It might be possible to write a plugin which converts the colors in real-time, but that would 1) require a lot of work to figure out how to map old colors to new, and 2) result in a double-conversion so some colors would still be wrong.
1. Of course!
2. Yes.
3. No plugin for create or display map-images. The maps are created with ImageToMapX.
4. Server: 1.8 , Client: 1.8 - maps looks correct , Client: 1.8.1 - maps looks wrong.
And yes you see it right... the old (1.7.x - 1.8) palette has black colors... in 1.8.1 these black colors are brown. :(
But should your plugin not correct the palette?
Or i missunderstand it totaly?
i dont want/can create all my >500 map-images new with 1.8.1 palette. :/
You can take a look on my server if you want. (german server)
Server-ip: jeybeehh.minecraft.to
@JeyBeeHH
OK, let's back up a little bit.
1. After you changed the config back to 1.8.1, did you restart your server?
2. Do you see "[MapPalette] Map palette changed to version 1.8.1 successfully." in the log file?
3. Which plugin are you using to display your images?
4. If you use a 1.8 CLIENT, do the colors look right or wrong? And with a 1.8.1 CLIENT are they right or wrong?
I see the brown colors in the holes for the bottles in the vending machine. That indicates you're probably still using the old palette. Let me know the answers to the above questions.
Note that some colors might not display exactly the same with the new palette. This is because some of the colors in the old palette don't exist in the new one, and the server will choose the closest matching color. But it's still better than using the old palette with a 1.8.1 client, which will be particularly ugly.
Thanx... i change the mapversion to 1.8.1 in the config.yml.
But the colors not change with 1.8.1 client! (vanilla) :(
I use over 500 maps on my server, createt for the 1.7.x palette.
And so its look on 1.8 client (left) and 1.8.1 client (right)
What i doing wrong?
@JeyBeeHH
You want mapversion: 1.8.1 for people with 1.8.1 clients to properly view the maps on your 1.8 server. Remember, you're specifying the version used by the client.
It´s dosn´t work on my Bukkit-Skygot-Server 1.8
Build #20151203a 1.8 R0.1 (20141203)
I use many Maps on my Server created with 1.7.x.
But with Client 1.8.1, the palette is wrong.
So i was very happy i see this plugin... but... it dosnt work! :(
Konfiguration´in MapPalette config.yml
Whats going wrong? :(