LackeyCCG

LackeyCCG Forum => Plugins & Plugin Creation Forum => Topic started by: greasontim on May 23, 2011, 06:07:34 PM

Title: Lackeyccg wont open
Post by: greasontim on May 23, 2011, 06:07:34 PM
I was working on my plug-in on the plugininfo.txt and now lackey wont open.
Can someone take a look and tell me where my mistake is.

[attachment deleted by admin due to age]
Title: Re: Lackeyccg wont open
Post by: Carpemortis on May 23, 2011, 07:18:40 PM
I'm not sure about all of this, but these are the problems I see, and would try fixing.

PLUGINVERSION:"0.1" 
Should be PLUGINVERSION:"1.0" (not sure about this one, but the tutorial says use 1.0)

GLOBALSTAT0: 
If you are not going to use this line, just delete it. (Again not sure, but it might be looking for something here and not finding it.  Deleting the line will prevent it from looking.)

GENERALFUNCTION0:"ALLYOURCARDSMAKERIGHT0DEGREES" Untap All 1
All of your functions (general and card) have the same issue.  The name needs to be in "" as well as the call.  IE: "Untap All"  So the correct line in this case would be:
GENERALFUNCTION0:"ALLYOURCARDSMAKERIGHT0DEGREES" "Untap All" 1
again all the GENERALFUNCTION, and CARDFUNCTION lines need this fix.
Title: Re: Lackeyccg wont open
Post by: Trevor on May 23, 2011, 09:54:08 PM
GLOBALSTAT0:
is invalid syntax.

Just like PLAYERSTAT, you need to define a label and an initial setting for the stat.

GLOBALSTAT0:"Tally"   0
will work.

Carpemortis is right about the name labels. They need to be in quotes so you can use spaces in them if you want to.
Title: Re: Lackeyccg wont open
Post by: greasontim on May 23, 2011, 10:27:09 PM
Ok removed,
Globalstat0:

pluginversion is now 1.0 (BTW 0.1 works)

Sorry but it is a updated version now of the txt file and it still crashs.

[attachment deleted by admin due to age]
Title: Re: Lackeyccg wont open
Post by: Trevor on May 23, 2011, 10:35:27 PM
Quote from: greasontim on May 23, 2011, 10:27:09 PM
Ok removed,
Globalstat0:

pluginversion is now 1.0 (BTW 0.1 works)

Sorry but it is a updated version now of the txt file and it still crashs.
Why do you have a whole bunch of extra white space in your file at the end of lines?
Title: Re: Lackeyccg wont open
Post by: Saethori on May 23, 2011, 10:39:55 PM
It should be noted, but I found out (accidentally!) that an invalid setinfo.txt could also cause the plugin to crash. So don't forget to check that file for notable errors as well.
Title: Re: Lackeyccg wont open
Post by: greasontim on May 23, 2011, 10:40:47 PM
I have no clue......
I just grabbed the War300 plugininfo and I'm editing it, so it doesn't crash anymore but cards don't show up right now :(
Title: Re: Lackeyccg wont open
Post by: Trevor on May 23, 2011, 10:43:26 PM
Quote from: greasontim on May 23, 2011, 10:40:47 PM
I have no clue......
I just grabbed the War300 plugininfo and I'm editing it, so it doesn't crash anymore but cards don't show up right now :(
Start with a similar working plugin, in the new format imo.
Title: Re: Lackeyccg wont open
Post by: greasontim on May 23, 2011, 11:20:22 PM
The plugin works now, just need the rest of the cards to be made. :)