It is currently 16 Apr 2024, 19:18
   
Text Size

Problem with card creation: Undefined String :/

Moderator: CCGHQ Admins

Problem with card creation: Undefined String :/

Postby MonsieurKaZe » 14 Oct 2010, 16:40

Hi there,

I'm trying to create new cards in order to make a SLIVER Deck... So my very first intention is to create Sliver cards which are not to hard to code... I choose Battering Sliver as my first attempt.
Here is the code of the card :

| Open
<?xml version="1.0"?>
<MULTICARDS>
<CARD>

<!--
///////////////////////////////////////////////////////////////////////////////////

CARD INFORMATIONS

///////////////////////////////////////////////////////////////////////////////////
-->

<FILENAME text = "BATTERING_SLIVER" />
<ARTID value = "88889000" />

<TITLE text = "BATTERING_SLIVER_TITLE" />
<TYPE metaname = "Creature" />
<SUB_TYPE metaname = "Sliver" />
<POWER value = "4" />
<TOUGHNESS value = "4" />

<CASTING_COST cost = "{5}{R}" />
<COLOR value = "R" />
<FRAMECOLOUR name = "R" />

<EXPANSION metaname = "8888" />
<RARITY metaname = "common" />
<COLLECTIONMAX value = "0" />
<COLLECTORNUMBER value = "0" />
<CARDNUMBER value = "0" />
<ARTIST name = "Greg Staples" />
<FLAVOURTEXT text = "BATTERING_SLIVER_FLAVOUR" />

<!--
///////////////////////////////////////////////////////////////////////////////////

START OF CARD ABILITIES

///////////////////////////////////////////////////////////////////////////////////
-->

<STATIC_ABILITY tag="BATTERING_SLIVER_RULE_1" internal="1" layer="6">

<FILTER>
return CreaturesInPlayOfType( CREATURE_TYPE_SLIVER )
</FILTER>

<EFFECT>
Trample()
</EFFECT>
</STATIC_ABILITY>

<!--
///////////////////////////////////////////////////////////////////////////////////

END OF CARD ABILITIES

///////////////////////////////////////////////////////////////////////////////////
-->

<SFX text="GREENCLAW2_attack" />

</CARD>
</MULTICARDS>


I added this card to the card folder of my game and I edited 8888_CARD_TEXT.XML (because I just want to test the card, I will create my own DLC repo latter in order to add :

| Open
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s75"><Data ss:Type="String">BATTERING_SLIVER_FLAVOUR</Data></Cell>
<Cell ss:Index="3" ss:StyleID="s77"><Data ss:Type="String">Covered with hard shell-like plates, these slivers burrow throught solid rock to carve out new nests for their hives.</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="String">Covered with hard shell-like plates, these slivers burrow throught solid rock to carve out new nests for their hives.</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="String">Covered with hard shell-like plates, these slivers burrow throught solid rock to carve out new nests for their hives.</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="String">Covered with hard shell-like plates, these slivers burrow throught solid rock to carve out new nests for their hives.</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="String">Covered with hard shell-like plates, these slivers burrow throught solid rock to carve out new nests for their hives.</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s75"><Data ss:Type="String">BATTERING_SLIVER_RULE_1</Data></Cell>
<Cell ss:Index="3" ss:StyleID="s77"><Data ss:Type="String">All Sliver creatures get +1/+1.</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="String">All Slivers have trample.</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="String">All Slivers have trample.</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="String">All Slivers have trample.</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="String">All Slivers have trample.</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s75"><Data ss:Type="String">BATTERING_SLIVER_TITLE</Data></Cell>
<Cell ss:Index="3" ss:StyleID="s77"><Data ss:Type="String">Muscle Sliver</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="String">Battering Sliver</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="String">Battering Sliver</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="String">Battering Sliver</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="String">Battering Sliver</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s75"><Data ss:Type="String">BATTERING_SLIVER_TYPE_LINE</Data></Cell>
<Cell ss:Index="3" ss:StyleID="s77"><Data ss:Type="String">Creature — Sliver</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="String">Creature — Sliver</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="String">Creature — Sliver</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="String">Creature — Sliver</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="String">Creature — Sliver</Data></Cell>
</Row>


I also downloaded the image of the card and succesfully modified it with Paint.net !
For now I have the red card with the good image and the good mana cost + the right power and toughness (4/4) BUT the name of the card, the rule and the flavour does not appear (Undefined String problem)...
Maybe I missed something but I don't know what... Can somebody can help me to solve this problem of Undefined String... I promise to share my deck when it is finished =)
MonsieurKaZe
 
Posts: 8
Joined: 08 Oct 2010, 12:08
Has thanked: 0 time
Been thanked: 0 time

Re: Problem with card creation: Undefined String :/

Postby MonsieurKaZe » 16 Oct 2010, 08:05

Up!

I really need your assistance because I want to add new cards and new decks to this game =)
I'm sure this is a little problem but I can't find it now :/
MonsieurKaZe
 
Posts: 8
Joined: 08 Oct 2010, 12:08
Has thanked: 0 time
Been thanked: 0 time

Re: Problem with card creation: Undefined String :/

Postby Huggybaby » 17 Oct 2010, 03:56

kevlahnota last posted two weeks ago. We don't know where everyone has gone.
User avatar
Huggybaby
Administrator
 
Posts: 3205
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 696 times
Been thanked: 594 times

Re: Problem with card creation: Undefined String :/

Postby MonsieurKaZe » 17 Oct 2010, 13:45

Too bad, maybe he is on hollidays ?
I'm still working on my cards. For now I am able to create them with multiple effects and they work on the battlefield BUT still I cannot had text (flavour, title or els...) :/

It is too weird because my cards are based on the information given in the Wiki and in this forum...
I hope someone will help me sooner or later ;)
MonsieurKaZe
 
Posts: 8
Joined: 08 Oct 2010, 12:08
Has thanked: 0 time
Been thanked: 0 time

Re: Problem with card creation: Undefined String :/

Postby zwastik » 17 Oct 2010, 14:21

Probably real life(TM) got in the way.

Just be patient.

keep the good work.
zwastik
 
Posts: 31
Joined: 30 Aug 2010, 11:48
Has thanked: 0 time
Been thanked: 0 time

Re: Problem with card creation: Undefined String :/

Postby Clark » 17 Oct 2010, 14:58

Hi, did u code your cards by some word tools like UE?

Your process is all right and such problem i think should not be met with if you use notepad, am i right?

This might be caused by wrong text encoding.

Please try to address the root cause as follow:
Code: Select all
<Row ss:AutoFitHeight="0">
CARD A DESCRIPTION
</Row>
<Row ss:AutoFitHeight="0">
CARD B DESCRIPTION
</Row>
<Row ss:AutoFitHeight="0">
CARD C DESCRIPTION
</Row>
If the words for Card B are in wrong encoding, then Card C & any other card text description below B can't be work well.

Then try to search text file whether there exist something strange words in it like
Code: Select all
</row>
. Ya, low-case!

This is a known bug in UE which is my favorite tool.

The solution is remove all your codes, try to code your own description by notepad to see whether such issue would be reproduced.

Hope this could be helpful to u.
Clark
 
Posts: 64
Joined: 21 Aug 2010, 16:07
Has thanked: 0 time
Been thanked: 0 time

Re: Problem with card creation: Undefined String :/

Postby MonsieurKaZe » 18 Oct 2010, 11:35

I use Notepad++ and Text editor from Win7...
MonsieurKaZe
 
Posts: 8
Joined: 08 Oct 2010, 12:08
Has thanked: 0 time
Been thanked: 0 time

Re: Problem with card creation: Undefined String :/

Postby Clark » 18 Oct 2010, 11:53

Compress your 8888_CARD_TEXT.XML into zip format and post here as attachment for me to test it.
Clark
 
Posts: 64
Joined: 21 Aug 2010, 16:07
Has thanked: 0 time
Been thanked: 0 time


Return to Programming Talk

Who is online

Users browsing this forum: No registered users and 16 guests


Who is online

In total there are 16 users online :: 0 registered, 0 hidden and 16 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 16 guests

Login Form