News:

A forum for users of LackeyCCG

Main Menu

Nothing in Deck Editor

Started by PereUbu, July 11, 2010, 04:30:12 PM

Previous topic - Next topic

PereUbu

I've been working recently on a plugin for Ani-Mayhem and had it working just fine... now that I've finished entering text and info for all the cards, nothing is showing up in the Deck Editor where previously it had been, when all I had was the card names, sets and image file names.

This is the relevant plugininfo.txt; I just hacked the one from War3000 and it worked just fine until now:
PLUGINVERSION:"0.5"

GLOBALSTAT0:

PLAYERSTAT0:

SUPERZONE0:"Deck"   0   0
SUPERZONE1:"Characters"   0   0
SUPERZONE2:"Combat"    0   0
SUPERZONE3:"Locations"   0   0
SUPERZONE4:"Disasters"   0   0

ZONE0:"Draw Deck"   0   0
ZONE1:"Discard"   1   1
ZONE2:"Removed"   1   1
ZONE3:"Personal"   1   0

PHASE0:"Discard"
PHASE1:"Reload"
PHASE2:"Maintainance"
PHASE3:"Equip"
PHASE4:"Move"
PHASE5:"Scavenge"

GENERALFUNCTION0:"ALLYOURCARDSMAKERIGHT0DEGREES"   "Untap All"   1
GENERALFUNCTION1:"DRAWCARD"   "Draw"   1
GENERALFUNCTION2:"PREVIOUSPHASE"   "Previous Phase"   0
GENERALFUNCTION3:"NEXTPHASE"   "Next Phase"   0
GENERALFUNCTION4:"TRANSFERCARD"   "Syphon Deck"   0   -1   1 T -1 2 T
GENERALFUNCTION5:"ROLLD6"   "Roll D6"   1
GENERALFUNCTION6:"SPAWNCARD"   "Spawn Card"   0
GENERALFUNCTION7:"NEXTTURN"   "Next Turn"   0
GENERALFUNCTION8:"ROLLD20"   "RollD20"   0
GENERALFUNCTION9:"ALLYOURCARDSMAKERIGHT90DEGREES"   "TapAll"   0
GENERALFUNCTION10:"PREVIOUSTURN"   "Previous Turn"   0
GENERALFUNCTION11:"FLIPCOIN"   "Flip Coin"   0

CARDFUNCTION0:"MAKERIGHT0DEGREES"   "Refresh"   1
CARDFUNCTION1:"MAKERIGHT90DEGREES"   "Exert"   1
CARDFUNCTION2:"REMOVECOUNTERGREEN"   "Green-1"   1
CARDFUNCTION3:"ADDCOUNTERGREEN"   "Health"   1   .9   .04
CARDFUNCTION4:"REMOVECOUNTERRED"   "Red-1"   1
CARDFUNCTION5:"ADDCOUNTERRED"   "Duration"   1   .7   .04
CARDFUNCTION6:"EDITNOTE"   "Edit Note"   1   .4   .95
CARDFUNCTION7:"TURNOVER"   "Turn Over"   0
CARDFUNCTION8:"TOGGLETURNALLIMMUNITY"   "Doesn't Refresh"   0
CARDFUNCTION9:"CHANGEOWNER"   "Take Control"   0
CARDFUNCTION10:"CLEARCARD"   "Clear"   1

COLUMN0:"Name"   1
COLUMN1:"Set"   1
COLUMN2:"Image"   0
COLUMN3:"Rarity"   0
COLUMN4:"Type"   1
COLUMN5:"Attack"   0
COLUMN6:"Defense"   0
COLUMN7:"Charm"   0
COLUMN8:"Energy"   0
COLUMN9:"Skills"   0
COLUMN10:"Qualit"   0
COLUMN11:"Requir"   0
COLUMN12:"Text"   1

ISYOURFACEDOWNVISIBLE:"yes"

CARDBACK0:"cardback"

setdata.txt is nothing but
1
carddata.txt

and here's a couple relevant lines from carddata.txt

A-ko Magami   1   A-Ko   C   Character   4   4   4   3   0   Stdn, Str x3, Acro, Comm   Female      
Adult Gohan   2   Ad_Gohan   R   Character   5   5   3   2   4   MArt,Chi x2, Flying, Stdn, Teach, Driving   Male, Half-Saiyan      
Afura Mann   0   Afura   C   Character   3   3   2   4   3   Priest, Savoir-Faire, Flying, Air Element   Female      +1 all air effects.

carddata.txt was created in OpenOffice, saved as a tab-delimited .csv and then edited to eliminate the " characters.

Anything jump out immediately as wrong?

Trevor

You need to post the actual files. If you don't have enough tabs in your card data file, for example, that isn't clear in a copy/paste.

PereUbu

OK - this should link to a zip file for the entire plugin, card art and all, in its present rough but should-be-working state:

http://www.4shared.com/dir/sdfe3UvT

As I said, it was formerly just card art and titles and worked fine... probably should have left it that way  :(

Trevor

Your card data file must begin with Name<tab>Set<tab>ImageFile<tab> and so forth. Yours has no header line. I suggest you look at a working plugin and modify it.

PereUbu

Quote from: Trevor on July 11, 2010, 10:02:55 PM
Your card data file must begin with Name<tab>Set<tab>ImageFile<tab> and so forth. Yours has no header line. I suggest you look at a working plugin and modify it.

Which is what I thought I was doing... I really hate to argue with the guy who wrote the darned thing, but I seem to recall my version 0.1 (which was just card images) worked fine without a header; in fact I took the header out specifically because I thought it would cause problems.

Huh. I shall restore the header - I'm assuming it needs the same format as the lines for the Deck Editor in plugininfo.txt... we'll see if that works. Appreciate the trouble you're taking for a newbie, though! :)

Trevor

The header has always been required.

PereUbu

Yep... I put the header back in, using the same format as the fields in pluginfo.txt, and it works just fine now! Trevor, you are awesome.

I also was missing a field in the COLUMNS list, which didn't help. But everything is there and it works now and I am happy. :)