Author Topic: Quotation Marks in the deck file munched.  (Read 1254 times)

cyberneticpony

  • Guest
Quotation Marks in the deck file munched.
« on: May 25, 2016, 03:54:51 PM »
A few of the cards in my plugin have a name such as:

Code: [Select]
Pattern 1Z - "Box"
When this is saved in the deck editor, this shows up in the file as:

Code: [Select]
<card><name id="">Pattern 1D - “Box</name><set>Original</set></card>
The quotation mark is munched and the card goes missing when the deck is reloaded.

cyberneticpony

  • Guest
Re: Quotation Marks in the deck file munched.
« Reply #1 on: May 25, 2016, 04:10:00 PM »
Further followup, as a workaround, I attempted to remove the quotation marks.

This ends up saving in the file correctly, but when it was loaded from the csv file, the table shows the card as:

Code: [Select]
Pattern 1Z   Box
With the hyphen mysteriously missing. This also means loading fails to work because it cannot match the correctly saved card (Pattern 1Z - Box) with the loaded database.

What is going on with the parsing?

MasterJediAdam

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
Re: Quotation Marks in the deck file munched.
« Reply #2 on: May 25, 2016, 05:09:38 PM »
Are you using a spreadsheet editor like excel or open office spreadsheet? If so, you need to format your column as "text" so that it keeps everything.

You may also just open it in wordpad or text edit and place them in manually.

cyberneticpony

  • Guest
Re: Quotation Marks in the deck file munched.
« Reply #3 on: May 26, 2016, 06:52:15 AM »
Are you using a spreadsheet editor like excel or open office spreadsheet? If so, you need to format your column as "text" so that it keeps everything.

You may also just open it in wordpad or text edit and place them in manually.

No, I checked that, the data is being properly made into the CSV, it's just not loading into Lackey correctly.

Here's how the data is represented in the carddata file:

Code: [Select]
Pattern 1D – “Box” Original Cyber Corp Common Unit Bot Autonomous Worker 2 1 5 Upgrade into Bot.

EDIT: I replaced the hyphens with minuses and that problem stopped existing, which was a sufficient workaround, but I still haven't discovered a workaround for the quotation marks.
« Last Edit: May 26, 2016, 07:08:35 AM by cyberneticpony »

StarcatProducts

  • Guest
Re: Quotation Marks in the deck file munched.
« Reply #4 on: May 29, 2016, 08:05:51 PM »
Hello! From the issues I have encountered while playtesting my games I have noticed that it is best to keep card names simple.
This will allow you to use the various punctuation marks for your ability text without your players getting confused.

Such as Pattern 1D – “Box”    you can just name it 1D The Box or Box Bot Worker and this new name removes any special formatting in the name.
This really helps your plugin as TSVs/CSVs are really over-glorified text documents that don't handle formatting too well. :D