LackeyCCG

LackeyCCG Forum => Plugins & Plugin Creation Forum => Topic started by: ransomman on October 22, 2016, 08:10:20 PM

Title: Different card backs not working
Post by: ransomman on October 22, 2016, 08:10:20 PM
Hello,

I'm not sure what I am doing wrong but I am having difficulty with multiple card backs. Cards with backs other than the default back do not display with images at all. Well, they display with my spawned.jpg image.

I am creating a plugin for the new Arkham Horror card game and there are not only multiple card backs for player cards vs. encounter cards, but many of the game's cards have alternate sides, with alternate text.


I have put into my plugininfo.txt the <definition><kind>ISALLOWINGMULTIPLECARDBACKS</kind></definition>
I have also tried <definition><kind>ISALLOWINGMULTIPLECARDBACKS</kind><value>yes</value></definition>

Neither have worked to fix my issue.

In my carddata.txt file I have tried labeling the cell in the imagefile column as (card),(card) as instructed, but with no success.
Specifically, my image files are called AHC01_1a and AHC01_1b so I have tried AHC01_1a,AHC01_1b in the column with no success. I know I have created the carddata.txt file correctly because all other, non-multi-card-back cards display correctly with their images and the default card back when I load the plugin.

I have tried to eliminate the underscores with no success.
I have tried putting the image files in alternate locations with no success. For example, I currently have the image files saved under AHLCG(plugin)->sets->setimages->core. I have tried to save each file in a specific file for card backs under setimages to no success. I have tried putting the alternate backs with my general card backs under AHLCG(plugin)->sets->setimages->general.

I'm stumped. I am not finished with inputting all of my card data into my carddata.txt file nor have I finished including all of the definitions I want for the plugininfo.txt but I wanted to solve this issue before spending so much time on this. Is there a need for me to delete the card text of the cards with multi-backs? I dont know what to do!

Thanks in advance for any help,

Jake

Title: Re: Different card backs not working
Post by: AuraDragon on October 22, 2016, 11:01:46 PM

Could you attach the plugin so I can take a look?
Title: Re: Different card backs not working
Post by: ransomman on October 23, 2016, 11:44:07 AM
It seems the plugin is too big. Should I try sending an email?
Title: Re: Different card backs not working
Post by: AuraDragon on October 23, 2016, 02:16:58 PM
Could you remove all the images from the plugin except one card's front and back image?  Images are the largest files in the plugin, removal of excessive images should be sufficient.

If that's not enough for some reason, you can send me an email at ccHappyDays(at)gmail(dot)com
Title: Re: Different card backs not working
Post by: ransomman on December 28, 2016, 02:20:19 AM
Hello,

It's been a long time since I asked this question, but here I am again!

The file is still too big for some reason!

I'll email you.
Title: Re: Different card backs not working
Post by: ransomman on December 28, 2016, 05:24:41 AM
FIXED!!

Ok, so all I did was take the advice in the plugin creation about copy/pasting the excel info into a text editor like WordPad. I copied everything into TextEdit (Mac) and converted it to plain text and BAM! It worked!

Maybe my version of excel was making it all funky like the plugin tutorial said!

Thanks everyone!
Title: Re: Different card backs not working
Post by: AuraDragon on December 28, 2016, 09:31:16 PM
Glad you got it fixed!  You have to watch out for exporting with Excel since it sometimes puts quotation marks around names - although I have no idea why.

Copy pasting is what even I do when I'm updating the Magic plugin.
Title: Re: Different card backs not working
Post by: MasterJediAdam on December 29, 2016, 08:39:33 PM
I use OpenOffice spreadsheet and it works very well in avoiding extra characters.
Title: Re: Different card backs not working
Post by: jorch72 on April 21, 2017, 02:47:02 AM
 Excel adds quotes on names that have comas.
This comes from the definition of a CSV.

Quote from: Snoogy on December 28, 2016, 09:31:16 PM
You have to watch out for exporting with Excel since it sometimes puts quotation marks around names - although I have no idea why.
Title: Re: Different card backs not working
Post by: jorch72 on April 21, 2017, 03:00:52 AM
Quote from: ransomman on December 28, 2016, 05:24:41 AM
FIXED!!

Hi, found a couple of errors in the plugin: