LackeyCCG

LackeyCCG Forum => General Discussion Forum => Topic started by: carapippino on March 16, 2013, 06:03:50 AM

Title: custom playmat
Post by: carapippino on March 16, 2013, 06:03:50 AM
hi, which characteristics must a playmat file have to be loaded in a plugin and is it possible to include it a plugin to make it available automaticcaly when the plugin is installed/loaded?
Title: Re: custom playmat
Post by: r0cknes on March 16, 2013, 07:31:07 AM
Yes there is a way. Do you want it to load with a plugin you are making?
Title: Re: custom playmat
Post by: carapippino on March 16, 2013, 11:32:08 AM
exactly
Title: Re: custom playmat
Post by: Trevor on March 16, 2013, 01:54:33 PM
You can have the playmat image download to images/backgrounds/ so it can be used in any game.

The problem with making a playmat automatically selected when you install a plugin is that it has the potential to override a person's ability to choose another. You could include a pluginpreferences.txt file with your plugin download, but it is very important that you make its checksum 0. (Or was it -1... I forget which off hand.) What that will do is not overwrite a pluginpreferences.txt if they already have one. If you didn't do that, you would be constantly overwriting their preferences, which would be annoying. That's why it is usually a bad idea to include pluginpreferences.txt in updatelist.txt.