The Last Homely House
Middle-Earth => Chamber of Mazarbul => Topic started by: TelTura on June 28, 2020, 04:33:12 AM
-
Watch this: YouTube Video Tutorial (https://youtu.be/46KzoN6pUQc)
Latest download here. (https://www.lotrtcgpc.net/cardgenerator/latest)
Documentation is included as a PDF with each release. The latest version can also be found here on Google docs (https://docs.google.com/document/d/1cNroWUOQIsaYW1oCn4Mb5EtAfMQXgrekxR5INhLkkYc/edit?usp=sharing).
Installation instructions: If you have a previous version installed then close nanDECK, make sure to back up your cards.csv and card_portraits / card_output folders, then copy-paste the contents of the zip into your existing installation folder.
Card Generator v2.0.3 Update
Big changes and old spreadsheets need updated; see here (https://lotrtcgwiki.com/forums/index.php?topic=11718.msg97863#msg97863) for update instructions.
Change Log:
- Fixing an issue where modifier type/subtype wasn't displaying properly
- Fixed the resistance ring icon being named incorrectly, which made ring-bearers impossible to make.
- Fixed One Ring template not rendering title.
- Fixed rare text corruption involving thin spaces.
- Updated nanDECK to the latest 1.25.3 final release.
- Fixed Dwarven culture icons not showing on full art cards.
- All absolute size-based columns have been replaced with size-factor columns that treat 1.0 as no change and 0.5 and 2.0 as half and double, respectively. Some names have been altered as a result.
- Added a column for manually setting the size of the modifier template title bar
- Added a column for manually sizing the text in the type bar
- Fixed a recurring thin spacing bug
- Added support for creating mockup cards, either via the new force_mockup setting, or on a per-card basis with the mockup tag.
- Added new output_format setting that can be set to various output formats, notably jpg.
- Made various small adjustments to alignment/size that were found to be out of whack.
Card Generator v1.9.1 Update
Change Log:
- Fixed an issue which would sometimes cause decks to fail validation
Card Generator v1.9.0 Update
Change Log:
- Updated included nanDECK version to 1.25.3_b17
- Fixed single-section card type panels rendering an error
- Narrowed the margins of all game text to the top and left, bringing it more in line with later-era cards
- Overhauled the autoformatting to no longer affect lore or promo text
- Added thin_space as a tag that replaces spaces in the game text (not lore or promo text) with the unicode thin space character
Card Generator v1.8.0 Update
Change Log:
- Fixed an issue where capital Js would get cut off in subtitles
- Fixed an issue where single-card CSVs would cause titles and subtitles with spaces to get rendered with quotes around them
- Added new template type Back, which only needs ID and Template set and renders the LotR-TCG card back.
Card Generator v1.7.0 Update
Change Log:
- Updated the included nanDECK version to 1.25.3_b16
- Due to the updated nanDECK, fixed a long-standing bug relating to single smart quotes getting interpreted backwards.
- Altered the disclaimer to use the positioned sprite version and not the standalone
- Fixed Ally card type line rendering as blank when exporting cards via batch
- Added aliases for full_art (no_template) and full_portrait (portrait_backdrop). These should be considered the canonical tags moving forward.
- Added new [rotate_site_templates] setting, which tells the generator whether or not to rotate the site templates. Defaults to true (since the included templates are in landscape), but can be set to False if you provide your own portrait-aligned sites.
- Updated documentation, particularly with a large section detailing the difference between no_template and portrait_backdrop.
Card Generator v1.6.0 Update
Change Log:
- Fixed culture icons using the wrong font size, which lead to cards having extra space between lines
- Altered block symbol detection to permit a different sizing between the type bar ("Home 3T") and game text
- Added new column "display_type", which overrides the name displayed for the card type. This permits alternate languages or template-compatible variants to use existing layouts.
- Added new ally_home_label setting which controls how the "Home X" label is displayed for Allies. This is mostly intended to be used for alternate languages.
- Added new column "game_text_scale" which is a multiplier for the game text, helper text, lore, and promo text areas.
- Updated example files to reflect recent column changes
Card Generator v1.5.0 Update
Change Log:
- Added support for overriding the text color of the type bar or the title/subtitle separately from the rest of the game text. To do this, include the "title_color_override" or "type_color_override" columns and provide a standard hex color. These values will default to what is already normally provided in game_text_color, but can be further overridden here if needed.
- Added promo text support. You can now include a "promo_text" column to place bold text at the bottom of the card, similar to the dAgent and other promo cards.
- Added helper text support. Game text with the <helper></helper> tags around it will be rendered in slightly smaller italic text matching the helper text used in the originals.
- Included new font which approximates the original promo text (but which is not really all that close).
- Sites which have a pre-rotated image can now use the "no_rotate" tag to prevent the generator from rotating the portrait.
- Rarities of O will now be replaced with the ring icon
- fixed onering templates erroring out if they also had the full_art tag
- fixed onering templates not supporting full_portrait mode
- adjusted collector's info positioning
- temporarily removed some of the smart quote parsing pending a fix from the nanDECK dev
- added autobolding for the Ring-bearer keyword
- added promo font setting
- Fixed some issues with inconsistent and unnecessary spacing between game text sections
- Decreased the size of game text symbols to eliminate extra line spacing occurring because of them
- Updated the documentation
Card Generator v1.4.1 Update
Change Log:
- Fixed an issue where the Original-sized templates had an incorrectly named FOTR block icon, meaning that sites did not display the icon when exported at that size.
Card Generator v1.4.0 Update
Change Log:
- Added customizable setting key for non-breaking space.
- Added oversampling by default to the original size templates.
- Added support for custom site 'cultures' instead of using the hard-coded template name 'site'.
Card Generator v1.3.1 Update
Change log:
- Fixed an issue with the Gollum artifact and culture icon overlays not showing up due to an outdated naming scheme in the template filenames.
Card Generator v1.3.0 Update
Change log:
- Updated nanDECK version to fix a bug where using the batch file would make busted cards on some computers
- Fixed batch file not updated to the latest nanDECK path
- Altered tower and king replacement with digits (i.e. 3T or 4K) to be case-sensitive; this permits "4th" etc to be used without issue.
- Added automatic en dash insertion when a - is in front of a digit. Added manual en dash replacement of -- and em dash replacement of ---.
- Added support for custom newline characters in addition to <br>.
- Added full_portrait tag, which will alter the behavior of the portrait to instead fill the entire card background (including border), which can be used to just place whole cards underneath the template without cutting them out.
- Fixed auto-accent replacement being broken from the small caps rework. Auto-accent rules overhauled so it should be a bit easier to make new entries.
- Fixed twilight symbol replacement not working in italicized helper text.
- Altered the image sizing filter to Lanczos for hopefully an easy fidelity upgrade.
- Altered position and size of collector's info to be more compatible with longer coll infos.
- Altered site game text to not cut off a bold 'damage +1' on the bottom line.
Card Generator v1.2.0 Update
Change log:
- The name/location of the card CSV can now be altered by changing the [spreadsheet_path] option in settings.txt.
- Font installation instructions updated. Based on new information, fonts do not actually need to be installed, and so are packaged by default in the same folder as nanDECK.exe.
Card Generator v1.1.0 Update
Change log:
- Fixed a bug where Maneuver phase events wouldn't autobold unless it was spelled incorrectly
- Altered the smallcaps fonts to use a configured factor for the size difference between uppercase and lowercase
- Extracted font choices into settings.txt
- Added a new font scale factor setting which globally scales the size of all text (for custom fonts)
- Altered sites to automatically rotate their portrait image 270 degrees
- Added a set of default portrait images which can be used to author portraits of the correct size more easily
- Revamped the documentation with troubleshooting and how-to sections
Card Generator v1.0.0 Release
If you've read my post about card templates (http://lotrtcgwiki.com/forums/index.php/topic,11714.0.html), then you might have remembered I mentioned I was working on a script for generating cards from the ground up, so that manual photoshopping was unnecessary.
Well here I am, bearing gifts of the Valar.
I PRESENT an all-in-one script which can convert a CSV and a folder of portrait images into properly-formatted, 98% accurate virtual cards. It also works with all sizes of my previously-released templates, and with a settings change can flip between Original, Double, and Huge without any other changes on your part.
If you've been drooling over the full-art cards I posted in the other thread, well, this was the tool I used to create those.
Code is up on github, and the release zip on github includes nanDECK and original/double templates all packaged together.
There were several changes to the templates, which were detailed in the thread linked at the top. I would encourage you to redownload if you have used these resources in the past, as it's all improvements.
All of the images in the other thread were built using this tool; some are recreations of existing cards, and some are brand new virtual cards.
If you have any questions or suggestions, please let me know here and I will address them as soon as I see them.
-
I can't get custom pictures to work or the twilight symbol for [1] to work either. Other than that it works really good.
Also, theoretically you could put your physical LOTRTCG cards in sleeves and print these images and play with custom cards!
-
So it comes with the two example cards in cards.csv, do those not render when you run the utility?
If you want to send me screenshots of your folder setup and a copy of the csv you're using I will be happy to look at what's up.
-
So it comes with the two example cards in cards.csv, do those not render when you run the utility?
If you want to send me screenshots of your folder setup and a copy of the csv you're using I will be happy to look at what's up.
I am not beside my computer right now, so I can't show screenshots at the moment. The example pictures do work, but if I try to make my own pictures, those don't work even though I made the exact same pixel scale and .png. Is there anything else I'm supposed to do other than put the picture in the folder and the Excell spreadsheet?
-
nope, that's supposed to be all you need. Portrait in "card_portraits", and then the name of the image in the "image_name" column. Make sure you include the extension, i.e. "example.png" and not "example".
As for the twilight, the only thing that I can think of is that the fonts aren't installed correctly, as noted in the documentation. Do the [Dwarf], [Moria], or [2] symbols show up in the game text of Steel is Steel?
-
Very few issues so far for me:
- While reading the tutorial, I was wondering what to put under "culture" for sites. To avoid confusion, perhaps you should specify that you don't need to specify a culture for sites.
- I'm having issues with special characters. When I name my card "Úlairë Cantëa", it becomes something like "Â?lair« Cant«a".
The twilight and culture symbols worked fine for me.
Still haven't tried portraits.
-
- While reading the tutorial, I was wondering what to put under "culture" for sites. To avoid confusion, perhaps you should specify that you don't need to specify a culture for sites.
I will add this to the documentation. I think it's mentioned somewhere, but perhaps not in the correct place.
(EDIT: Added to the "culture" column section (https://docs.google.com/document/d/1cNroWUOQIsaYW1oCn4Mb5EtAfMQXgrekxR5INhLkkYc/edit#heading=h.y0xl9y56qpmd). This is updated in the google doc link but has not yet been added to the PDF.)
- I'm having issues with special characters. When I name my card "Úlairë Cantëa", it becomes something like "Â?lair« Cant«a".
So nanDECK has a love-hate relationship with accents. Sometimes I've found it goes in just fine, and other times it seems to crap itself; it uses the installed Internet Explorer engine to render HTML, so I imagine that's part of it.
I would take a look at the section on the "all_text_replacements.txt" file (https://docs.google.com/document/d/1cNroWUOQIsaYW1oCn4Mb5EtAfMQXgrekxR5INhLkkYc/edit#heading=h.78awr49x2uj5). This file contains a bunch of search/replace pairs (applied to the entire card's text), which includes all of the Nazgul names, so you should just be able to use "Ulaire Cantea" and have it auto-replaced with the necessary HTML-encoded version of "Úlairë Cantëa". If you have a name not in that list of ~60 auto-replaced names, you can add new ones that follow the same pattern to that file.
Thanks for the feedback! Let me know if that helps you overcome the naming woes.
-
- I'm having issues with special characters. When I name my card "Úlairë Cantëa", it becomes something like "Â?lair« Cant«a".
Oh, and this could also be an encoding thing. If you're in Excel or whatever, try modifying the Character Set or Encoding to "Western Europe / Windows-1252 / Latin" for your CSV when you save it; by default it's probably using a character set that's based on American usage which doesn't use accents.
-
https://imgur.com/LpuNydX (https://imgur.com/LpuNydX)
I finally got it working! I couldn't get the word Easterling to not be in bold because it thinks it's a keyword because of the period. This is Attea from the Lairs set.
-
Aw nuts! Should have known there'd be a case where the auto-formatter would fail, lol.
Delete line 103 from game_text_replacements.txt and it will stop that. I'll take a look and see if I can finagle a better autoformatter setup.
It looks like this:
HTMLKEY=,"Easterling.","<b>Easterling.</b>",,C
What did you do to fix it?
Also, use <br> tags to put newlines in the proper places.
-
I forgot to download the fonts and write .png.
I wanted to make a card from one of the deleted scenes, so I have Frodo turning into Gollum. I know it's a really weird card, but I just wanted to make something unique 8-)
https://imgur.com/zUkzFMC (https://imgur.com/zUkzFMC)
(Not entirely sure how to put the card image in the post yet...)
-
I forgot to download the fonts and write .png.
Cool. I'll add some additional info to the docs to try and head this problem off.
(Not entirely sure how to put the card image in the post yet...)
Get the link to the image itself (on imgur, usually click the image in your profile, then copy the link option that ends in ".png") and put it between img tags, like so:
[img]https://i.imgur.com/zUkzFMC.png[/img]
-
Great, great job :)
Personally I have such an issue with generated files: (https://i.imgur.com/5wehvjt.png)
Any hints?
-
Whoa. That looks like nanDECK is trying and failing to find an internet explorer version that it is compatible with, and is instead using Edge? That's the bing logo. I will research this and post back with what I find.
-
Whoa. That looks like nanDECK is trying and failing to find an internet explorer version that it is compatible with, and is instead using Edge? That's the bing logo. I will research this and post back with what I find.
I had that issue once. Closing everything and loading it back up fixed it
On a side note, is there any way to use a tengwar font?
-
Alright, looks like there's a new setup step I might have to add.
Moro, give this a whirl: Open nanDECK and click on the Config button in the lower-left:
(https://i.imgur.com/y24tdYC.png)
And then in the options dialog, click "Enable Internet Explorer 11 for HTMLTEXT / HTMLFILE" in the lower-right:
(https://i.imgur.com/YcDGgjw.png)
And then restart nanDECK. I think this will address the issue, but please let me know how it goes.
-
On a side note, is there any way to use a tengwar font?
Not at the moment. I will throw it on my to-do list; it should be pretty straightforward to include.
-
Thanks but unfortunately in my case it says it is already enabled :( and problem remains the same. I'll give it some time tommorow once I have more time to debug it. I have a typical, up-to-date Windows 10 installation.
-
Ok, using batch script it looks the same on 3 different windows installations :D I've tried to find the cause but with no result yet
EDIT: Anyway, "manual" building via nandeck application gives better results ;-)
(https://i.imgur.com/zB1uM7g.png)
-
Oh, so the issue only came up when using the batch script? Hrrm. That's odd. I'll make a note of it in the documentation, tho, for future reference.
Glad to see it works when actually opening nanDECK for you.
-
Card Generator v1.1.0 Update
See links in the OP.
Smallcaps are now more accurate, which should be noticeable in the title, subtitle, and card type bar. Site portraits are now automatically rotated 90 CCW, so you don't have to manually rotate those images anymore.
There is now a portrait_templates folder which includes examples for all card types at all template sizes, to make it easier to get images to the correct size.
Fonts may now be configured in settings.txt if you want to try and get Tengwar or Angerthas or anything else working.
Documentation has had How-to and Troubleshooting sections added, to make easing in somewhat easier.
If you have a previous version installed then close nanDECK, make sure to back up your card_portraits and card_output folders and cards.csv, then copy-paste the contents of the zip into your existing installation folder.
If you have any questions or problems, please let me know here and I will address them as soon as I see them.
Full Patch Notes:
- Fixed a bug where Maneuver phase events wouldn't autobold unless it was spelled incorrectly
- Altered the smallcaps fonts to use a configured factor for the size difference between uppercase and lowercase
- Extracted font choices into settings.txt
- Added a new font scale factor setting which globally scales the size of all text (for custom fonts)
- Altered sites to automatically rotate their portrait image 270 degrees
- Added a set of default portrait images which can be used to author portraits of the correct size more easily
- Revamped the documentation with troubleshooting and how-to sections
-
Card Generator v1.2.0 Update
See links in the OP.
Change log:
- The name/location of the card CSV can now be altered by changing the [spreadsheet_path] option in settings.txt.
- Font installation instructions updated. Based on new information, fonts do not actually need to be installed, and so are packaged by default in the same folder as nanDECK.exe.
-
The nanDECK dev has issued a fix for the issue mentioned by @Moro in this thread. If you're running into this issue (which only affects using the batch file), use the nanDECK version linked at the bottom of this post: https://boardgamegeek.com/thread/2459316/issues-exec-usage
There is a new version of the generator in the works that includes this updated version, but it won't be released until a particularly persnickity bug has been fixed, but this should tide anyone affected by the issue until then.
-
Card Generator v1.3.0 Update
See links in the OP.
Change log:
- Updated nanDECK version to fix a bug where using the batch file would make busted cards on some computers
- Fixed batch file not updated to the latest nanDECK path
- Altered tower and king replacement with digits (i.e. 3T or 4K) to be case-sensitive; this permits "4th" etc to be used without issue.
- Added automatic en dash insertion when a - is in front of a digit. Added manual en dash replacement of -- and em dash replacement of ---.
- Added support for custom newline characters in addition to <br>.
- Added full_portrait tag, which will alter the behavior of the portrait to instead fill the entire card background (including border), which can be used to just place whole cards underneath the template without cutting them out.
- Fixed auto-accent replacement being broken from the small caps rework. Auto-accent rules overhauled so it should be a bit easier to make new entries.
- Fixed twilight symbol replacement not working in italicized helper text.
- Altered the image sizing filter to Lanczos for hopefully an easy fidelity upgrade.
- Altered position and size of collector's info to be more compatible with longer coll infos.
- Altered site game text to not cut off a bold 'damage +1' on the bottom line.
-
Hi,
I am really loving the card generator, but I have a question. When I make a Gollum artifact, I notice that I get the gold overlay if the card is broken (Because I didn't specify freeps or shadow first time), but not once the card image loads normally, even if I add the artifact_overlay tag. Is there some kind of error or am I missing something?
-
Aha, this is due to the culture change that I did to gollum. It used to be that you just had a "gollum" culture and you put a "shadow" tag in the tags column if you wanted the shadow version, but with Moria-Balrog and other such variants I decided it was a better idea to treat them as separate cultures ("gollum_freeps" and "gollum_shadow").
But then I forgot to update the artifact overlay to match! Make a copy of the artifact_gollum_double.png file in /templates/double_res_export/overlays and make sure that there are two such templates: artifact_gollum_freeps_double .png and artifact_gollum_shadow_double .png. I'll make sure to put out a fix that includes this soon.
EDIT: Release is in the OP. Just copy the templates folder over.
-
Card Generator v1.3.1 Update
See links in the OP.
If you already have v1.3.0, you only need to replace the templates folder.
Change log:
- Fixed an issue with the Gollum artifact and culture icon overlays not showing up due to an outdated naming scheme in the template filenames.
-
Hi, loving the generator. However I've run into a bit of problem i can't figure out. When inputting a possession into the excel doc whenever I try to put the +2 in the strength column excel automatically deletes the + and just leaves the 2. Sometimes I can get it to stay but then excel thinks i'm inputting a formula. How do I get around this?
-
Never mind, I figured it out
-
What was the solution for this? I used ' in front of + but then it seems the csv forgets it's there the next time you open it?
-
I changed the cell to Text. But again like you csv forgets every time I open it annoyingly so i have to keep redoing it.
-
Yeah, there are no spreadsheet programs I've used (save maybe Google Sheets) that don't do horrendously obnoxious things to auto update one's data like this.
This exact issue is the reason there is both a cards.csv and a cards.ods in the zip. I use LibreOffice Calc, and my workflow looks like this:
- Modify cards.ods so that all of the stat columns are Text (the entire column)
- Adjust column widths, etc
- Add new cards as needed
- Save cards.ods (all the formatting is now saved, and will not need to be done again so long as I open the ods again in the future)
- Save A Copy As into cards.csv with the following options:
(https://i.imgur.com/tEsrCys.png)
And there you go. You could theoretically do the same thing with a new cards.xls if you're working with Excel: keep a master copy that is in the native format of whatever software you're using, and just export to CSV when you're done.
It's a pity all offline spreadsheet programs are a giant pile of #$&*@!, but it is what it is. This workaround workflow at least keeps Excel/Calc from touching my goddamn data every time I interact with it.
I sort-of mentioned this issue in the documentation, but I'll make sure something like the above is put into the next version more explicitly.
-
Would a possible work-around be to open the csv as a text file instead of as a spreadsheet? You'd have to add the delimiters yourself, but you wouldn't have to worry about Excel trying to help or anything. Might not be worth the hassle in the end, since you're just substituting one set of problems with another.
-
My thoughts exactly. One can do that if they are okay with manually counting commas and the like. It also breaks down once you have more than, oh, 20 or so cards, as remembering what each column is specifically becomes a hassle.
As someone who has probably spent more time than anyone else iterating, saving, and re-saving the CSV, this is the fastest/most convenient workflow I've found so far. Next step might be to make a macro in LibreOffice that exports with one button press, and then it's not much different from just saving.
-
Well I'm doing a set so I just figure I'll wait till everything else fir the set is ready and then input the strength and vitality plus totals once before creating the final versions. That way I don't have to keep going back.
-
What do you mean? Just save it as an xls or whatever is native. You don't hop back and forth, you only use the xls or ods, and when you're done editing you "save a copy" to the csv.
-
Hi me again. The card creator was working great but suddenly seems to have run into a problem and I can't figure out where it has come from. When I try to validate the deck it says there are Invalid labels and aborts. Particularly seens to be 632 and lots of 636 where it is running into trouble.
-
At the bottom of the screen there is an output section; can you copy-paste the contents of that box here?
I suspect it's due to you including a character that is not permitted (such as the | symbol or others). If you delete the card you added last and it works, that's probably all it is, but I'll take a look if you'll post the error output here.
-
This is what it is saying:
632: Wrong function <REPLACE("string", "from", "to")> : Exert a dwarf companion and make that companion <b>damage -X</b> until the regroup phase to remove X threats (limit 3".|If Gimli is damage +X spot Frodo and exert a companion with the Frodo signet to make a companion strength +X (limit +4).|<b>Damage +1</b> <br> While Frodo is the ring-bearer Gimli's twilight cost is -1. <br><b>Skirmish:</b> Exert a companion with the Frodo signet to make a companion <b>damage +1</b>. |<b>Damage +1</b><br>While skirmishing an orc\44\ Gimli is <b>damage +2</b>.|Bearer must be Gimli.<br>He is damage +1.<br><b>Skirmish:</b>Exert Gimli and make him <b>damage -X</b> to make him strength +X.|Exert a dwarf X times to make them <b>damage +X</b> until the regroup phase.|Make Gimli <b>damage -X</b> to make X different companions strength +1 until the regroup phase.|While you can spot an elf\44\ Gimli is <b>damage +1</b>.|<b>Response:</b> If the shadow player wounds a minion you may spot Legolas and Frodo and exert a companion with the Frodo signet to wound that minion again.|While mounted you may exert Arwen to cancel a <b>fierce</b> skirmish involving Arwen.|While you can spot Aragorn\44\ Arwen is strength +1.<br><b>Response:</b> If the shadow player uses a minions special ability you may exert Arwen to suspend the current phase. Begin a skirmish involving Aragorn and that minion. When it ends resume the suspended phase.|Bearer must be an elf. If bearer is Arwen Arwen\44\ Asfaloth’s twilight cost is -2.<br><b>Regroup:</b> Heal a \91\wraith\93\ minion to make the move limit +1 (limit once per turn). The shadow player may discard a card to draw a card.|Each time you play an \91\elven\93\ tale you may make a companion strength +1 until the regroup phase.<br><b>Fellowship:</b> Exert Celeborn to heal an ally whose home is site 6.|If an \91\elf\93\ ally wins a skirmish you may remove a threat (or exert that ally to remove a burden).|At the start of each turns\44\ you may spot an ally whose home is site 3 and heal that ally up to 2 times.<br><b>Regroup:</b> Exert Elrond twice to take an \91\elven\93\ tale into hand your discard pile or draw deck.|The twilight cost of each \91\elven\93\ tale is -1.<br><b>Response:</b> Each time you play an \91\elven\93\ tale you may exert Galadriel to remove a burden or a threat.|Make an elf strength +2 (or +4 if that elf is an ally).|Each time the fellowship moves you may spot Gandalf in the dead pile to reinforce an \91\elven\93\ token|Each time you play an event in a skirmish involving Legolas\44\ you may spot an \91\elf\93\ tale to exert the minion he is skirmishing.|<b>Archer</b> <br> While Frodo is the ring-bearer Legolas' twilight cost is -1. <br><b>Archery:</b> Exert a companion with the Frodo signet to make the archery total +1 (limit +2).|Bearer must be Legolas.<br><b>Response:</b> Each time the shadow player exerts a minion you may exert Legolas to exert that minion again.|<b>Tale</b><br>Exert an \91\elven\93\ ally to make the shadow player exert a minion.|Each time you play an \91\elven\93\ tale you may add an \91\elven\93\ token here.<br><b>Maneuver:</b> Remove two \91\elven\93\ tokens here or discard this artifact to allow an \91\elven\93\ ally to participate in archery fire and skirmishes until the regroup phase. |Bearer must be Legolas.<br>For each wound on a minion skirmishing Legolas\44\ that minion is strength -1.|Play an \91\elven\93\ artifact from your draw deck.|While skirmishing a minion with a twilight cost of 3 or less\44\ each elf ally is strength +1 (or strength +2 if that ally is Galadriel or Celeborn).|<b>Tale</b><br>To play spot 2 \91\elven\93\ allies.<br>Each time the shadow player assigns a minion to a companion or ally\44\ that minion is strength -1 until the regroup phase.|Exert an \91\elf\93\ ally to make a companion of another culture strength +3.|When you play this condition you may add 2 \91\gandalf\93\ tokens here.<br><b>Response:</b> If Gandalf is about to take a wound you may remove 2 \91\gandalf\93\ tokens here or discard this condition to prevent it.|If Gandalf dies make all other companions and allies strength +2 until the end of the regroup phase.|While you can spot Galadriel\44\ Gandalf is <b>damage +1</b>.<br>While you can spot Elrond\44\ Gandalf is strength +2.<br>While you can spot Celeborn\44\ Gandalf takes no more than one wound in each skirmish.|While Frodo is the ring-bearer Gandalf's twilight cost is -1.<br>At the start of the Manuever phase you may exert a companion with the Frodo signet to discard a shadow condition.|At the start of each turn you may add (2) to heal an ally.|Bearer must be Gandalf.<br>He is <b>damage +1</b>.<br>While you can spot an elf this artifact's twilight cost is -1.<br>Each time Gandalf wins a skirmish you may reinforce a culture token.|If the shadow player plays the Balrog\44\ exert Gandalf twice to remove all remaining twilight.|Spot Frodo and Gandalf and exert a companion with the Frodo signet to heal x companions\44\ where x is the amount of free peoples cultures you can spot.|While you can spot Gandalf\44\ Sam is strength +1.|Spot Gandalf to make an \91\elven\93\ ally strength +2.|When you play this condition you may add a \91\gandalf\93\ token here for each of the following characters you can spot: Gandalf\44\ Radagast\44\ Elrond\44\ Galadriel and Celeborn.<br><b>Skirmish:</b> Remove a \91\gandalf\93\ token here or discard this condition to make a \91\gandalf\93\ or \91\elven\93\ character strength +1.|Place Gandalf in the dead pile to wound every minion. The shadow player may remove (5) to prevent this.|While you can spot Arwen\44\ Aragorn’s twilight cost is -2.<br>While you can spot Arwen\44\ Aragorn is strength +1.|While Frodo is the ring-bearer his twilight cost is -1.<br><b>Maneuver</b> Exert a companion with the Frodo signet to make Aragorn <b>defender +1</b> until the regroup phase.|Bearer must be Aragorn.<br>The shadow player may not assign minions to skirmish Aragorn.|While Frodo is the ring-bearer Boromir's twilight cost is -1.<br>Each time Boromir wins a skirmish you may heal a companion with the Frodo signet.|Spot an exhausted companion to make a \91\gondor\93\ man strength +2 and <b>defender +1</b> until the regroup phase.|While Boromir is assigned to skirmish more than one minion\44\ Aragorn is strength +3.<br>While Aragorn is assigned to skirmish more than one minion\44\ Boromir is strength +3.|Bearer must be Boromir.<br>Boromir is <b>defender +1</b><br><b>Skirmish:</b> If Boromir is assigned to skirmish more than one minion you may spot an unassigned companion. Exert Boromir to make him strength + X where X is that companion's strength (Limit once per skirmish). |Make a \91\gondor\93\ companion strength +2 (or strength +4 and <b>damage +1</b> if that companion is skirmishing more than one minion.)|<b>Response:</b> Each time Boromir loses a skirmish\44\ make Aragorn strength +2 until the regroup phase.<br><b>Response:</b> Each time Aragorn loses a skirmish\44\ make Boromir strength +2 until the regroup phase.|To play spot Frodo and Boromir.<br>Each time a companion with the Frodo signet wins a skirmish you may add a \91\gondor\93\ token here.<br><b>Skirmish:</b>Make a minion strength -1 for each \91\gondor\93\ token here. Discard this condition. |To play spot Frodo and Aragorn.<br><b>Response:</b> If a companion is about to take a wound you may exert a companion with the Frodo signet to prevent it. |Exert an \91\Isengard\93\ minion to gain initiative until the regroup phase\44\ regardless of the Free Peoples players hand. The Free Peoples player may exert 2 companions (or one companion twice) to prevent this.|<b>Damage +1</b><br>Each time the Free Peoples player loses initiative\44\ you may play an Uruk-Hai from your hand or discard pile. That Uruk-Hai is twilight cost -2\44\ <b>Fierce</b> and Strength +2 until the regroup phase. |Saruman may not be assigned to a skirmish by either player.<br>Each time an ally exerts you may exert Saruman to make the Free Peoples player exert a companion (or 2 companions if that ally is an \91\elf\93\ ally). |Bearer must be Saruman\59\ he is <b>damage +1</b>. The first line of Saruman’s game text do(...)
636: Wrong function <REPLACE("string", "from", "to")> : "REPLACE(""Exert a dwarf companion and make that companion <b>damage -X</b> until the regroup phase to remove X threats (limit 3".|If Gimli is damage +X spot Frodo and exert a companion with the Frodo signet to make a companion strength +X (limit +4
636: Wrong function <REPLACE("string", "from", "to")> : "Exert a dwarf companion and make that companion <b>damage -X</b> until the regroup phase to remove X threats (limit 3.|If Gimli is damage +X spot Frodo and exert a companion with the Frodo signet to make a companion strength +X (limit +4".|<b>Damage +1</b> <br> While Frodo is the ring-bearer Gimli's twilight cost is -1. <br><b>Skirmish:</b> Exert a companion with the Frodo signet to make a companion <b>damage +1</b>. |<b>Damage +1</b><br>While skirmishing an orc\44\ Gimli is <b>damage +2</b>.|Bearer must be Gimli.<br>He is damage +1.<br><b>Skirmish:</b>Exert Gimli and make him <b>damage -X</b> to make him strength +X.|Exert a dwarf X times to make them <b>damage +X</b> until the regroup phase.|Make Gimli <b>damage -X</b> to make X different companions strength +1 until the regroup phase.|While you can spot an elf\44\ Gimli is <b>damage +1</b>.|<b>Response:</b> If the shadow player wounds a minion you may spot Legolas and Frodo and exert a companion with the Frodo signet to wound that minion again.|While mounted you may exert Arwen to cancel a <b>fierce</b> skirmish involving Arwen.|While you can spot Aragorn\44\ Arwen is strength +1.<br><b>Response:</b> If the shadow player uses a minions special ability you may exert Arwen to suspend the current phase. Begin a skirmish involving Aragorn and that minion. When it ends resume the suspended phase.|Bearer must be an elf. If bearer is Arwen Arwen\44\ Asfaloth’s twilight cost is -2.<br><b>Regroup:</b> Heal a \91\wraith\93\ minion to make the move limit +1 (limit once per turn
And then it repeats that a lot
-
Think I found the offending card. No idea why it was screwing it up as I just retyped it in the same and this time it worked. Very strange
-
Cool. Yeah, the output cut off before it got to the offending card I think; I would assume you accidentally included a | or something.
Oh well; if it happens again, send me the output and the csv and I'll take a look if you can't find it.
-
Me again. How can I post images of my completed cards here? They are too big to attach.
-
I would make an account at imgur.com and host them there, then embed them here using the [img] tag.
-
Hi Teltura!
I'm having an issue having the site icon from Fellowship Block appear at top left when I try to make sites.
id image_name unique title subtitle culture template card_type card_subtype twilight strength vitality resistance signet site set_num rarity card_num game_text lore twilight_color title_font_size subtitle_font_size game_text_color icon_text_color game_text_spacing lore_spacing game_text_width border_color tags notes
HFG57 57p.png Bree Inn Entrance Site Site 1 % U 57 <b>Fellowship:</b> Add a burden to play a [Gandalf] ally from your draw deck (limit once per turn).
Do you have any idea how I could solve that?
PS. I think that this thread should be pinned at the top of the Chamber of Mazarbul board. Any mods agree?
-
Hmm, as in, you get the wrong site icon? Could you show me what the output looks like? When I type in what you put here, I get a pretty normal image.
(https://i.imgur.com/y5AeWIK.png)
(ignore the white border thingy, that's due to a failed experiment I still need to rip out)
-
That's strange...
(https://i.imgur.com/PPwZab6.png)
-
Hi again. I think that I have managed to target where the issue might come from. When I generate site cards using "original" size, the problem happens. When I use "double" size, it does not. I am not sure how to fix it though.
(https://i.imgur.com/KHAcVgI.png)
-
Aha, well that narrows it down. Turns out the FOTR block symbol is mis-named in the Original-sized template folder (and so nanDECK doesn't find it and it turns up missing). I'll get a release out that fixes this shortly.
-
Aha, well that narrows it down. Turns out the FOTR block symbol is mis-named in the Original-sized template folder (and so nanDECK doesn't find it and it turns up missing). I'll get a release out that fixes this shortly.
In the meanwhile, as a quick fix, can you please let me know how I should rename that symbol? Thank you!
-
By "shortly" I meant right then, but then I fell asleep, lol. Here is the release, two versions back to back which includes this fix. See the OP for links.
If you have any questions or problems, please let me know here and I will address them as soon as I see them.
Card Generator v1.4.0 Update
See links in the OP.
This release includes various fixes as submitted on GitHub.
If you have a previous version installed then close nanDECK, make sure to back up your card_portraits and card_output folders and cards.csv, then copy-paste the contents of the zip into your existing installation folder.
Change Log:
- Added customizable setting key for non-breaking space.
- Added oversampling by default to the original size templates.
- Added support for custom site 'cultures' instead of using the hard-coded template name 'site'.
Card Generator v1.4.1 Update
See links in the OP.
This release includes a fix for the site icon issue above.
If you have 1.4.0 installed, you only need to replace the templates folder for this bugfix.
Change Log:
- Fixed an issue where the Original-sized templates had an incorrectly named FOTR block icon, meaning that sites did not display the icon when exported at that size.
-
Card Generator v1.5.0 Update
Biggest changes today are the inclusion of support for Promo text and Helper text, both demonstrated helpfully by Aragorn, Swift Hunter (0P125):
original (scan):
(https://lotrtcgwiki.com/wiki/_media/cards:lotr00125.jpg)
generated:
(https://i.imgur.com/Y8QZtEY.png)
As you can see, the promo text is not a perfect fit, but that's because each promo was lovingly crafted by hand, and so there is no one-size-fits-all solution. This font included is "close enough" in both size and shape.
See download links in the OP.
Documentation in a PDF with the release, or here on Google Docs: https://docs.google.com/document/d/1cNroWUOQIsaYW1oCn4Mb5EtAfMQXgrekxR5INhLkkYc/edit?usp=sharing
If you have a previous version installed then close nanDECK, make sure to back up your cards.csv and card_portraits / card_output folders, then copy-paste the contents of the zip into your existing installation folder. Make sure that includes the nanDECK folder, as there is a new font.
Change Log:
- Added support for overriding the text color of the type bar or the title/subtitle separately from the rest of the game text. To do this, include the "title_color_override" or "type_color_override" columns and provide a standard hex color. These values will default to what is already normally provided in game_text_color, but can be further overridden here if needed.
- Added promo text support. You can now include a "promo_text" column to place bold text at the bottom of the card, similar to the dAgent and other promo cards.
- Added helper text support. Game text with the <helper></helper> tags around it will be rendered in slightly smaller italic text matching the helper text used in the originals.
- Included new font which approximates the original promo text (but which is not really all that close).
- Sites which have a pre-rotated image can now use the "no_rotate" tag to prevent the generator from rotating the portrait.
- Rarities of O will now be replaced with the ring icon
- fixed onering templates erroring out if they also had the full_art tag
- fixed onering templates not supporting full_portrait mode
- adjusted collector's info positioning
- temporarily removed some of the smart quote parsing pending a fix from the nanDECK dev
- added autobolding for the Ring-bearer keyword
- added promo font setting
- Fixed some issues with inconsistent and unnecessary spacing between game text sections
- Decreased the size of game text symbols to eliminate extra line spacing occurring because of them
- Updated the documentation
-
Card Generator v1.6.0 Update
This release addresses a number of small spacing and culture icon bugs, which hopefully should now all be squashed forever, but we'll see.
In addition, there are two new features. First, a new game_text_scale column has been introduced, which scales everything in the game text area, which includes normal game text, helper text, lore, promo text, and culture icons:
(https://media.discordapp.net/attachments/725317009516134442/764655617990197248/LOTR00125_double.png)(https://media.discordapp.net/attachments/725317009516134442/764655766338404392/LOTR00125_double.png)
The left has a game_text_scale of 0.5, and the right has a value of 1.5. Use this to scale all text to fit as needed, tho hopefully this is used with caution and restraint and not to create cards man was not meant to own.
I'm watching you.
The second major feature is the ability to add custom decorative icons to the card, such as the Weta and king countdown icons on the two Bombadillos below:
(https://media.discordapp.net/attachments/705737880559157248/764717201613389834/LOTR00053_double.png)(https://media.discordapp.net/attachments/705737880559157248/764717213160439858/LOTR09052_double.png)
These image icons are now included, and custom one may be provided. See the documentation for the new custom_icon column for details on how to do that.
For reference, here are the original icons:
(https://lotrtcgwiki.com/wiki/_media/cards:lotr00053.jpg)(https://lotrtcgwiki.com/wiki/_media/cards:lotr09052.jpg)
See download links in the OP.
Documentation in a PDF with the release, or here on Google Docs: https://docs.google.com/document/d/1cNroWUOQIsaYW1oCn4Mb5EtAfMQXgrekxR5INhLkkYc/edit?usp=sharing
If you have a previous version installed then close nanDECK, make sure to back up your cards.csv and card_portraits / card_output folders, then copy-paste the contents of the zip into your existing installation folder. Make sure that includes the templates folder, as there are some new icons.
Change Log:
- Fixed culture icons using the wrong font size, which lead to cards having extra space between lines
- Altered block symbol detection to permit a different sizing between the type bar ("Home 3T") and game text
- Added new column "display_type", which overrides the name displayed for the card type. This permits alternate languages or template-compatible variants to use existing layouts.
- Added new ally_home_label setting which controls how the "Home X" label is displayed for Allies. This is mostly intended to be used for alternate languages.
- Added new column "game_text_scale" which is a multiplier for the game text, helper text, lore, and promo text areas.
- Updated example files to reflect recent column changes
-
Card Generator v1.7.0 Update
What a productive weekend.
Most of the changes in this release are bug fixes, but there is one major change that I would advise you pay attention to, and that's the change to a couple of tags.
The full_art and full_portrait tags are unfortunately named, and this came to a head this weekend while debugging. I have added new aliases for these tags, and would advise that you alter any of your spreadsheets to use these new names:
full_art -> no_template
full_portrait -> portrait_backdrop
To further help explain what's what, I've added an extensive section to the documentation named No_Template vs Portrait_Backdrop (https://docs.google.com/document/d/1cNroWUOQIsaYW1oCn4Mb5EtAfMQXgrekxR5INhLkkYc/edit#heading=h.pk44h4d0mok4), which I would advise reading if you're looking to make Full Art cards in the future.
For now the old tags can still be used, but some time in the future I may end up removing the old ones, as they just aren't very good at explaining what's going on.
See download links in the OP.
Documentation in a PDF with the release, or here on Google Docs: https://docs.google.com/document/d/1cNroWUOQIsaYW1oCn4Mb5EtAfMQXgrekxR5INhLkkYc/edit?usp=sharing
If you have a previous version installed then close nanDECK, make sure to back up your cards.csv and card_portraits / card_output folders, then copy-paste the contents of the zip into your existing installation folder. Make sure that includes the nanDECK folder, as it has been updated.
Change Log:
- Updated the included nanDECK version to 1.25.3_b16
- Due to the updated nanDECK, fixed a long-standing bug relating to single smart quotes getting interpreted backwards.
- Altered the disclaimer to use the positioned sprite version and not the standalone
- Fixed Ally card type line rendering as blank when exporting cards via batch
- Added aliases for full_art (no_template) and full_portrait (portrait_backdrop). These should be considered the canonical tags moving forward.
- Added new [rotate_site_templates] setting, which tells the generator whether or not to rotate the site templates. Defaults to true (since the included templates are in landscape), but can be set to False if you provide your own portrait-aligned sites.
- Updated documentation, particularly with a large section detailing the difference between no_template and portrait_backdrop.
-
A ran the batch and then built the deck, but the game text lines end a third of the way across the card (if that makes sense). I took a screenshot, but its too big to upload.
-
D'oh, I know what happened. The stupid spreadsheet program got in the way again trying to be all smart about formatting.
Open cards.csv and go to the game_text_width column. Instead of 0.6 and 0.7, those values are supposed to be "60%" and "70%". You may have to force the cell formatting to "number/percentage" to get it to stop trying to be helpful.
Which is to say, these values are supposed to be telling the program "override the game text width to be 60% (or 70%) of the card width", but because there's not one spreadsheet program on the planet that can leave well enough alone, the script thinks we mean 0.6 or 0.7 of an inch instead.
I'll update the example csv after work.
(oh, and for uploading screenshots or output, go make an account at imgur.com and upload it there/link it here.)
-
I have updated the download zip with the corrected CSV/ODS files.
Since it's such a small change, I have also attached them to this post, James. Just place them in the same folder and overwrite the two that are already there (assuming you haven't already made additions to them).
-
That fixed the game text wrapping, but (so sorry for the inconvenience) there are a couple of other problems (which might all be my fault, I don't know.)
https://imgur.com/a/K5taz7M
On Steel is Steel, the game text is too big, Event • Maneuver is a little off, and apparently the Moria symbol is... a sun?
Aragorn is better, just a little too big game text, and the strength, vitality, and twilight numbers are off.
I apologize again for any inconvenience this may have caused.
Edit: I realized that Aragorn's game text doesn't have too big of a font size, it's just too long (I think)
-
Wow, all sorts of things have gone wrong there, lol. All of that appears to be due to the custom fonts not getting used, tho the icon text being black is odd and concerning.
First, double-check that inside the nanDECK/1.25.3 folder there is a fonts folder with eight fonts. If not, copy them from the zip or from the source: https://drive.google.com/open?id=1PJYPWQ4WkN8S-YGWnIUCi7IxTM-z_-Kw
If they *are* there, then we can try installing the fonts themselves (usually nanDECK picks em up no problem. Just double click each one one at a time and click the "install" button at the top, then restart nanDECK.
Try that and we'll go from there.
-
The fonts were there, just not installed. I installed them all and now it looks great! Thank you for all your help!
-
Does anyone know of a program that lets you edit CSV's, but doesn't convert them to xlsx's? Every time I open the cards.csv, it converts it an xlsx, so after I edit it I have to convert it back...
-
Excel should be able to do what you need, it just requires a slightly different workflow from what you might be used to:
1- save an *.xlsx file that is your "true" working file, which has column widths set and formatting and whatever else makes it easier to work with.
2- regularly File -> Save this file to avoid losing work.
3- when you're ready to export to the card generator, go to File -> Save A Copy, and then at the bottom of the save dialog, change the file extension from *.xlsx to *.csv. You may need to experiment to find the "right" csv; IIRC excel has three different csv options, you want the vanilla comma-delimited no-frills version.
4- if it asks you for options when saving the file, you want it to use commas to delimit, and " as the string indicator, and to use quotes on all columns if possible.
By using Save A Copy instead of save as, what is open in excel will always be the xlsx file, and you're just exporting a snapshot to csv at regular intervals.
It takes some adjustments to get used to, but since all spreadsheet programs are a giant piece of #$&*@!, this is the best workflow I've found yet.
-
This is a subtitle on a [shire] companion, but it's supposed to read Jam Jam. The J's get cut off. I don't know if there are any examples of this on real cards, so I can't say if this is normal or an issue with the font or what...
-
You know what, I'm not sure that I've ever tested capital Js on that line. As a quick fix you can adjust the subtitle_font_size to try and make it smaller, but I'll see if I can address the issue permanently in the next release.
-
Card Generator v1.8.0 Update
Addressed the above J cutoff issue. It turns out that capital J is the only capital letter which dips below the font baseline. The issue with subtitles only shows up on two official cards: Pippin, Just A Nuisance; and Frodo, Weary From The Journey. As you can see, those Js are skirting the line as well!
I've also added the ability to output the card back, which is only really relevant if using the output of this script to produce a PDF or something. To do so, create a row in the spreadsheet, give it an ID, and set the template column to Back; everything else can remain blank.
Github download: https://github.com/ketura/LotR-TCG_card_generator/releases/tag/v1.8.0 (https://github.com/ketura/LotR-TCG_card_generator/releases/tag/v1.8.0)
Documentation in a PDF with the release, or here on Google Docs: https://docs.google.com/document/d/1cNroWUOQIsaYW1oCn4Mb5EtAfMQXgrekxR5INhLkkYc/edit?usp=sharing (https://docs.google.com/document/d/1cNroWUOQIsaYW1oCn4Mb5EtAfMQXgrekxR5INhLkkYc/edit?usp=sharing)
If you have a previous version installed then close nanDECK, make sure to back up your cards.csv and card_portraits / card_output folders, then copy-paste the contents of the zip into your existing installation folder.
Change Log:
- Fixed an issue where capital Js would get cut off in subtitles
- Fixed an issue where single-card CSVs would cause titles and subtitles with spaces to get rendered with quotes around them
- Added new template type Back, which only needs ID and Template set and renders the LotR-TCG card back.
-
Card Generator v1.9.0 Update
This release adds a thin_space tag that can be added to cards to use the same space width used in later-era official Decipher cards (as that was one of the tricks they pulled to squeeze more words into the game text area). I have also altered the margins of the game text area to be somewhat smaller, which should grant by default more space for game text in general. This does mean that creating 1:1 card recreations of movie-block cards is less perfect than it used to be, but that whole endeavor was always a tug-of-war considering that Decipher never settled on a single set of widths/margins/sizes.
nanDECK has had its version updated, and as a result autoformatting has been overhauled. Keyword bolding will now only affect game text (and helper text); lore and promo text will not get autobolded at all. The rules for the Corsair, Southron, and Easterling keywords have been tweaked to only auto-bold if they show up as the very first keyword on the card; since those keywords are (usually) always capitalized, it's impossible to detect if they are being used as proper nouns or as keywords in the text otherwise. Any other instance of the keyword that should be bolded will need to manually use the <b></b> tags.
A bug was also fixed that probably only affected Gollum: any card type that had a single section (i.e. just card type and no race) used to output garbage, and now displays the proper card type.
Github download: https://github.com/ketura/LotR-TCG_card_generator/releases/tag/v1.9.0 (https://github.com/ketura/LotR-TCG_card_generator/releases/tag/v1.9.0)
Documentation in a PDF with the release, or here on Google Docs: https://docs.google.com/document/d/1cNroWUOQIsaYW1oCn4Mb5EtAfMQXgrekxR5INhLkkYc/edit?usp=sharing (https://docs.google.com/document/d/1cNroWUOQIsaYW1oCn4Mb5EtAfMQXgrekxR5INhLkkYc/edit?usp=sharing)
If you have a previous version installed then close nanDECK, make sure to back up your cards.csv and card_portraits / card_output folders, then copy-paste the contents of the zip into your existing installation folder.
Make sure that includes the nanDECK folder, as it has been updated.
Change Log:
- Updated included nanDECK version to 1.25.3_b17
- Fixed single-section card type panels rendering an error
- Narrowed the margins of all game text to the top and left, bringing it more in line with later-era cards
- Overhauled the autoformatting to no longer affect lore or promo text
- Added thin_space as a tag that replaces spaces in the game text (not lore or promo text) with the unicode thin space character
-
When I enter "Ring-bearer (resistance 10)." into the game_text column, nanDECK freaks out. There's a ton more, it just doesn't fit in the text window.
-
Could you attach the cards.csv you're using?
There appear to be a few issues with the new auto formatter. I'll get on it asap.
-
It's actually a xlsx (cause the online excel kept on converting it and I got tired of using free online file converters), but here you go.
I don't think being an xlsx or being called "millDeck" is the problem because I edited the settings.txt and everything was working fine until I tried entering the ring-bearer keyword.
-
Try the version attached to this post and tell me if you see a difference. You're not the only one with issues, so I haven't made a full release yet since I want to make sure all the bases are covered.
(this file only has four files in it, just copy them into your install folder and overwrite the old ones).
-
Unfortunately, no. Although, the long string of (seemingly) random text is different. Now it's more like this:
<textsymbol>♦</textsymbol>I(rohan)<textsymbol>♣</textsymbol>I(gondor)<textsymbol>♠</textsymbol>I(gollum)<textsymbol>◘</textsymbol>I(dunland)<textsymbol>♂</textsymbol>I(raider)<textsymbol>♀</textsymbol>I(isengard)<textsymbol>♪</textsymbol>I(uruk)<textsymbol>♫</textsymbol>I(urukhai)<textsymbol>♫</textsymbol>I(uruk-hai)<textsymbol>♫</textsymbol>I(moria)<textsymbol>☼</textsymbol>I(orc)<textsymbol>►</textsymbol>I(sauron)<textsymbol>◄</textsymbol>I(mordor)<textsymbol>◄</textsymbol>I(ringwraith)<textsymbol>↕</textsymbol>I(wraith)<textsymbol>↕</textsymbol>I(men)<textsymbol>‼</textsymbol>I(evil men)<textsymbol>‼</textsymbol>I(evilmen)<textsymbol>‼</textsymbol>I\91\dwarf\93\<textsymbol>☺</textsymbol>I\91\dwarven\93\<textsymbol>☺</textsymbol>I\91\elf\93\<textsymbol>☻</textsymbol>I\91\elven\93\<textsymbol>☻</textsymbol>I\91\gandalf\93\<textsymbol>♥</textsymbol>I\91\shire\93\<textsymbol>♦</textsymbol>I\91\rohan\93\<textsymbol>♣</textsymbol>I\91\gondor\93\<textsymbol>♠</textsymbol>I\91\gollum\93\<textsymbol>◘</textsymbol>I\91\dunland\93\<textsymbol>♂</textsymbol>I\91\raider\93\<textsymbol>♀</textsymbol>I\91\isengard\93\<textsymbol>♪</textsymbol>I\91\uruk\93\<textsymbol>♫</textsymbol>I\91\urukhai\93\<textsymbol>♫</textsymbol>I\91\uruk-hai\93\<textsymbol>♫</textsymbol>I\91\moria\93\<textsymbol>☼</textsymbol>I\91\orc\93\<textsymbol>►</textsymbol>I\91\sauron\93\<textsymbol>◄</textsymbol>I\91\mordor\93\<textsymbol>◄</textsymbol>I\91\ringwraith\93\<textsymbol>↕</textsymbol>I\91\wraith\93\<textsymbol>↕</textsymbol>I\91\men\93\<textsymbol>‼</textsymbol>I\91\evil men\93\<textsymbol>‼</textsymbol>I\91\evilmen\93\<textsymbol>‼</textsymbol>I(1)<textsymbol>!</textsymbol>I(2)<textsymbol>@</textsymbol>I(3)<textsymbol>#</textsymbol>I(4)<textsymbol>$</textsymbol>I(5)<textsymbol>%</textsymbol>I(6)<textsymbol>^</textsymbol>I(7)<textsymbol>&</textsymbol>I(8)<textsymbol>*</textsymbol>I(9)<textsymbol>_</textsymbol>I(X)<textsymbol>=</textsymbol>I\91\1\93\<textsymbol>!</textsymbol>I\91\2\93\<textsymbol>@</textsymbol>I\91\3\93\<textsymbol>#</textsymbol>I\91\4\93\<textsymbol>$</textsymbol>I\91\5\93\<textsymbol>%</textsymbol>I\91\6\93\<textsymbol>^</textsymbol>I\91\7\93\<textsymbol>&</textsymbol>I\91\8\93\<textsymbol>*</textsymbol>I\91\9\93\<textsymbol>_</textsymbol>I\91\X\93\<textsymbol>=</textsymbol>I(T)<textsymbol>`</textsymbol>I\91\T\93\<textsymbol>`</textsymbol>I(K)<textsymbol>~</textsymbol>I","\91\K\93\","<textsymbol>~</textsymbol>",
-
Fixed the issue the other guy was having, try the fix attached to this post. I suspect they are the same issue (and I hope so), but I guess we'll see.
-
At first, that didn't work. but then I used a different nanDECK.exe (I don't know if I installed it wrong, but for me there is a folder called nanDECK and then inside of that there is a folder called 1.25.3 and in that folder there is another nanDECK.) When I used that nanDECK, it worked fine!
-
Ah, yes. It's intended you use the specific version that comes with the generatator; this Is presumably why you had font issues at first as well. I'll get a formal release out later today.
-
Wait, so this entire time I've been using the wrong nanDECK!? :o
-
If you followed the "Packaged Installation" instructions in the documentation, there was no need to follow the "Manual Installation" instructions, as those are there for troubleshooting purposes (and do all the same work I already did in creating the zip file, only manually). I'll update the documentation to be more clear on this point.
-
Card Generator v1.9.1 Update
The issues referenced above have been fixed.
Download link in the OP.
Documentation in a PDF with the release, or here on Google Docs: https://docs.google.com/document/d/1cNroWUOQIsaYW1oCn4Mb5EtAfMQXgrekxR5INhLkkYc/edit?usp=sharing (https://docs.google.com/document/d/1cNroWUOQIsaYW1oCn4Mb5EtAfMQXgrekxR5INhLkkYc/edit?usp=sharing)
If you have a previous version installed then close nanDECK, make sure to back up your cards.csv and card_portraits / card_output folders, then copy-paste the contents of the zip into your existing installation folder.
Change Log:
- Fixed an issue which would sometimes cause decks to fail validation
-
Is nanDECK supposed to creating a bunch of files in my folder named something like temp_202010271848010584_00000 1.html?
-
Those files are created temporarily and deleted after they are no longer needed. If you run into an error however, the files stick around to aid in troubleshooting. You can safely delete them manually, but if they're still stacking up, there's an error occurring that you're overlooking.
-
Welp, something must be going on 'cause I got like 4,000 backed up.
-
Even after you delete them all? In that case, delete the html files and then re-run your most recent deck, there should be some sort of error showing up in the nanDECK status window. It might only be on one card, so watch carefully as you build to see if any appear to have errors in them. In the nanDECK folder I believe there is also an error log that you can refer to if you can't find anything amiss; post that here if you can't find anything more specific and I'll take a look.
-
For anyone curious or in need of general installation help, there is now a video on YouTube that walks you through installation and basic usage of the card generator here: https://youtu.be/46KzoN6pUQc
-
Even after you delete them all? In that case, delete the html files and then re-run your most recent deck, there should be some sort of error showing up in the nanDECK status window. It might only be on one card, so watch carefully as you build to see if any appear to have errors in them. In the nanDECK folder I believe there is also an error log that you can refer to if you can't find anything amiss; post that here if you can't find anything more specific and I'll take a look.
It got to the point of like 7,000, and I just gave up on deleting them, but there was an error on a card, but when I cleared it up, they all went away.
-
On the newest patch
When creating full art cards with Dwarven culture, the culture won't correctly load (So it just generates the card without it) -It works with other cultures.
-
Can you attach the csv you're using? You can remove the rows that aren't relevant if you prefer.
-
One thing I've noticed is that the sites game text start a little further to the right on the generated cards then on actual cards. I've recreated both Dwarrowdelf Chamber and Caras Galadhon* in the generator, and both get cut off.
-
Bug reports are best combined with examples, please, so I can see exactly what you're referring to!
I will take a look regardless later tonight.
-
Unfortunately, my files got deleted, and clicking the download link just takes me to a page that reads "Not found."
-
On the newest patch
When creating full art cards with Dwarven culture, the culture won't correctly load (So it just generates the card without it) -It works with other cultures.
D'oh, I misnamed one of the files. Go to templates/double_res_export/overlays and rename culture_dwarf_double.png -> culture_dwarven_double.png. (If you're using a different template size, change the file in that folder instead.) I'll get a fix out for this in the template files and main links in the next day or so.
-
One thing I've noticed is that the sites game text start a little further to the right on the generated cards then on actual cards. I've recreated both Dwarrowdelf Chamber and Caras Galadhon* in the generator, and both get cut off.
I just checked both of these images and as far as I can tell, they're fine:
(https://i.imgur.com/7VQFvVT.png)
(https://i.imgur.com/P9IFiY4.png)
If you notice any issues in the future send me an example (+ the CSV used to generate them) and I'll address em as they come up.
-
Huh. Maybe I was doing something wrong.
-
Update:
I regenerated some sites today (got my files back), and everything seems to be working fine. I don't know what happened with the sites before.
-
How do you put the king and weta symbols on a card, as shown in this (https://lotrtcgwiki.com/forums/index.php?topic=11714.msg97306#msg97306) post?
-
Use the custom_icon column. Those two icons are called "weta" and "king_countdown".
See the custom_icon section of the documentation for how to include new icons etc: https://docs.google.com/document/d/1cNroWUOQIsaYW1oCn4Mb5EtAfMQXgrekxR5INhLkkYc/edit?usp=drivesdk
-
Thanks, I must have missed that.
-
Card Generator v2.0.0 Update
THIS IS A BIG UPDATE. In particular, it alters the behavior of some of the csv columns, so read carefully if you've got existing spreadsheets that you are moving to a new version, as those will not work until they have been properly adjusted!
First of all, many of the size-factor columns have been adjusted. Before, to adjust e.g. the game text width you had to know that it defaulted to 69% and that if you wanted a wider area you would change it to 70% or 71%, and if you wanted a narrower area you would make it 67% (etc). This made altering sizes very tedious, as you had to basically experiment just to figure out what the default was, and then make your real adjustments from there.
As of now, all size columns are now MULTIPLIERS instead of absolute values. What this means is, instead of saying "71%" to make the game text area a little wider, you say "1.02" to make it wider, or "0.98" to make it narrower (specifically, 2% wider or 2% narrower, in these examples). Affected columns have also usually had their names changed to make things less confusing as to their intended use.
A few new columns have also been added:
- title_area_scale permits for modifier cards (Possessions, etc) to have their title area extended, which can affect how long titles are cut into two lines (characters are unaffected as theirs already fills the entire visible area).
- type_text_scale lets you alter the text size of the text in the type bar.
To update your CSV to be compatible with the new release, follow these steps:
- Back up your cards.csv
- Add new column title_area_scale
- Add new column type_text_scale
- Rename column title_font_size -> title_text_scale (and change absolute % values to multipliers)
- Rename column subtitle_font_size -> subtitle_text_size (and change absolute % values to multipliers)
If you never used any of the columns from game_text_width onward, then I would advise copy-pasting your old card data (but not the columns!) into the included cards.csv with the release.
If you have any problems upgrading your CSV, please let me know here and I will help help you (up to and including doing it for you if you send me the csv).
The generator now has support for more file type outputs than just PNG. You can now go into the settings.txt file and change output_format to be one of either png, jpg, gif, or bmp to have your output file match your selection. Note that PNGs are the only file type that will "cut" the corners round, as that relies on transparency. All others will simply have square corners.
The generator also has support for a new type of output: mockups.
I don't expect this to be used by anyone outside of the Player's Council, but the basic idea is that cards which are not ready have a mode to be drawn in which looks like it was made with crayons. To use this mode, either change the force_mockup setting to True, or add "mockup" to any card's tags column, and then bask in the wondrous result:
(https://i.imgur.com/7udl5oy.png)
(crappy mspaint portrait art not included)
As you can see, no one would ever look at this card and think "you know what, that looks ready to print". For the PC, this can be valuable to communicate the state of a card instantaneously. For everyone else, well, I guess you don't have to use it.
And as a final note, nanDECK was updated to the non-beta 1.25.3. Be sure to include that folder when updating your installation.
Again, if you have any problems with updating your existing spreadsheets, then do not hesitate to reach out to me here or on the PC Discord (https://lotrtcgpc.net/discord) for help.
Download link in the OP.
Documentation is included as a PDF with each release. The latest version can also be found here on Google docs (https://docs.google.com/document/d/1cNroWUOQIsaYW1oCn4Mb5EtAfMQXgrekxR5INhLkkYc/edit?usp=sharing).
If you have a previous version installed then close nanDECK, make sure to back up your cards.csv and card_portraits / card_output folders, then copy-paste the contents of the zip into your existing installation folder.
Change Log:
- Updated nanDECK to the latest 1.25.3 final release.
- Fixed Dwarven culture icons not showing on full art cards.
- All absolute size-based columns have been replaced with size-factor columns that treat 1.0 as no change and 0.5 and 2.0 as half and double, respectively. Some names have been altered as a result.
- Added a column for manually setting the size of the modifier template title bar
- Added a column for manually sizing the text in the type bar
- Fixed a recurring thin spacing bug
- Added support for creating mockup cards, either via the new force_mockup setting, or on a per-card basis with the mockup tag.
- Added new output_format setting that can be set to various output formats, notably jpg.
- Made various small adjustments to alignment/size that were found to be out of whack.
-
A couple of things, first, I'm not entirely sure what "force_mockup" changes. Does it make it use "crappy" templates?
Also (I haven't updated my nanDECK yet, so maybe this was fixed) I can't get unique dots to print on The One Ring cards..
-
A couple of things, first, I'm not entirely sure what "force_mockup" changes. Does it make it use "crappy" templates?
Yes, that's precisely it, crappy templates and icons. Compare the image just posted with the Isildur, Heir of Elendil that it's based on.
Also (I haven't updated my nanDECK yet, so maybe this was fixed) I can't get unique dots to print on The One Ring cards..
Another user reported this with a previous version, and it should be fixed with the new release. If you use the release it has the latest version of nanDECK included, so you shouldn't need to manually update.
If the problem persists tho send me the problem csv and I'll take a look.
-
Great, thanks for the clarification!
-
Unfortunately the title is no longer displaying... https://i.imgur.com/JjNBkFN.png (https://i.imgur.com/JjNBkFN.png).
Also, for good measure, I attached the spreadsheet.
-
Card Generator v2.0.1 Update
See above for upgrade instructions if you are upgrading from version 1.x!
See download link in the OP.
Documentation is included as a PDF with each release. The latest version can also be found here on Google docs (https://docs.google.com/document/d/1cNroWUOQIsaYW1oCn4Mb5EtAfMQXgrekxR5INhLkkYc/edit?usp=sharing).
If you have a previous version installed then close nanDECK, make sure to back up your cards.csv and card_portraits / card_output folders, then copy-paste the contents of the zip into your existing installation folder.
Change Log:
- Fixed One Ring template not rendering title.
- Fixed rare text corruption involving thin spaces.
-
You should be good to go, James. That was a dumb oversight on my part; I updated every card layout with the new title scaling logic except the one ring (and sites, which are fixed in size). Let me know if the new version doesn't work for you.
-
Card Generator v2.0.2 Update
See above for upgrade instructions if you are upgrading from version 1.x!
Download link in the OP.
Documentation is included as a PDF with each release. The latest version can also be found here on Google docs (https://docs.google.com/document/d/1cNroWUOQIsaYW1oCn4Mb5EtAfMQXgrekxR5INhLkkYc/edit?usp=sharing).
If you have a previous version installed then close nanDECK, make sure to back up your cards.csv and card_portraits / card_output folders, then copy-paste the contents of the zip into your existing installation folder.
Change Log:
- Fixed the resistance ring icon being named incorrectly, which made ring-bearers impossible to make. Only the images changed in this release; if you previously downloaded the Huge templates you will need to get them again.
-
Wonderful! Thank you so much for helping, and for making this awesome tool in the first place.
-
I've had this problem a couple times, when generating nanDECK says "Warning: counter A used without initialization
Warning: counter C used without initialization
Warning: counter E used without initialization
Warning: counter F used without initialization
Warning: counter I used without initialization"
It then refuses to draw the Possession • Type in middle of the bar, like this.
https://i.imgur.com/RaDjrFN.png
For good measure, the spreadsheet is attached.
-
Hmm. Usually this is a result of a malformed spreadsheet. I will investigate and get you a more firm answer later tonight.
-
Card Generator v2.0.3 Update
See above (https://lotrtcgwiki.com/forums/index.php?topic=11718.msg97863#msg97863) for upgrade instructions if you are upgrading from version 1.x!
Download here (https://www.lotrtcgpc.net/cardgenerator/latest)
Documentation is included as a PDF with each release. The latest version can also be found here on Google docs (https://docs.google.com/document/d/1cNroWUOQIsaYW1oCn4Mb5EtAfMQXgrekxR5INhLkkYc/edit?usp=sharing).
If you have a previous version installed then close nanDECK, make sure to back up your cards.csv and card_portraits / card_output folders, then copy-paste the contents of the zip into your existing installation folder.
Change Log:
- Fixing an issue where modifier type/subtype wasn't displaying properly
-
I had posted this in a different thread and realized I should probably post it here instead:
Loving this application, and really loving the full art card template. A request for that if I may. Would it be possible to either put a stroke color on the text and icons for the full art cards or maybe a light semi-opaque box on the game text area? this would make game text much more readable on the art.
Thanks again.
-
I've tried various incarnations doing that, and never found a version that looks good in every case. I myself just edit each background image to have the proper contrast as needed.
-
I've tried various incarnations doing that, and never found a version that looks good in every case. I myself just edit each background image to have the proper contrast as needed.
So when you edit the image, are you just editing where the text will go or do you adjust contrast for the whole image? If just where the text will go, can you give me the locations for the game text area on the image? (assuming a full portrait image)
-
Well, I end up doing contrast work for the whole image (alongside color correction etc), but what I'm talking about involves spot-fixing wherever the text goes. There isn't a specific area I can give you, because it's down to adjusting where the specific text ends up landing. See this Google drive folder for examples of what I'm talking about: https://drive.google.com/drive/folders/1KRDWvkSQe67CEzqwhWrWg9ndiR_0wY25
-
Question: The generator comes with both a cards.csv and cards.ods. What purpose does the ods serve?
-
The tutorial video explains this. Basically, csv files have zero formatting information, including column width. If you want to have a usable workspace that preserves your formatting etc, you'll need to use an ods or xlsx file, and export to csv.
However I don't use that method anymore. Instead I use the Google sheet method, which nandeck supports, and then I don't need to juggle different files. That method is detailed in the documentation pdf.
-
Okay, thanks. I just use xlsx so I haven't noticed anything.
-
This might be a question more about nanDECK than the generator, I don't know. Is it possible to print the cards at half or third (or anything other than 1x) times size? I'm trying to print out a bunch, not to play with, but rather to just fit as many cards on one page while still being readable (so like 4x4 or 4x5 instead of 3x3). Anybody have any idea on how to do this?
-
Hey, I was trying to make a card in nandeck but it wasn't working. I couldn't get my images to show up. I tried using the templates and it didn't work either. I also couldn't get the customized strength vitality and site number. I read through the PDF but I still couldn't figure it out.
-
This could be something different, but if you only have one card in the spreadsheet it doesn't work for some reason.
-
This might be a question more about nanDECK than the generator, I don't know. Is it possible to print the cards at half or third (or anything other than 1x) times size? I'm trying to print out a bunch, not to play with, but rather to just fit as many cards on one page while still being readable (so like 4x4 or 4x5 instead of 3x3). Anybody have any idea on how to do this?
There's not really a way to do this with nandeck (or at least, not with the LOTR script). You'll just have to manually resize the images, tho this can be automated with Gimp or python or what have you.
-
Hey, I was trying to make a card in nandeck but it wasn't working. I couldn't get my images to show up. I tried using the templates and it didn't work either. I also couldn't get the customized strength vitality and site number. I read through the PDF but I still couldn't figure it out.
Alright, so, pro tip: "doesn't work" is incredibly vague, and I'd advise just never using it as a phrase when it comes to tech stuff . When you download the card generator and run it by itself there are two cards in the example csv: when you right-click the "validate deck" button, does it produce those two examples, or does it make flat black cards, or does spit out an error in the bottom and produce nothing but white in the card preview area?
If that works, then can you modify cards.csv to make the example card different? Different text, different stats, different templates, whatever. If you're able to modify the example cards, then you should be able to add new cards no problem. James is right in that there is a bug where 1 card doesn't work for some reason, so I would leave the example cards in cards.csv until you have 2 or more of your own.
There's a video here that demonstrates how to use the script, and it might be useful to see it in action to see if there's any steps you're missing: https://youtu.be/aK5_3jEAQOg
-
I've noticed that the cards generated by this thing have a slight shadow under the twilight cost text, whereas there is no such thing on the official cards (Frodo, Reluctant Adventurer). Is there a way to disable this, so as to make cards as close to pixel perfect as possible? I can respond with a screen shot of said shadow if necessary.
-
Pixel-perfect isn't gonna happen; there are at least 3 different eras of card that the generator averages between, meaning that it no longer produces a 1:1 image that matches any one of them. It DID match movie era pretty darn closely early on, but after being met with the differences I decided to pick and choose whatever standards maximized card text area.
The twilight shadow in this case is actually for improved visibility; it's not so big a deal on the printed cards (which of course was Decipher's main concern), but on digital screens the contrast is not very good. That said, if you truly want to be a purist in this area (and are okay not being a purist in things like game text margin), then you can apply a hack by editing around line 350:
(https://i.imgur.com/Dq4tQZa.png)
Change each of those "0.5%" to a "0%", and each of the "0.03" to a "0". I would encourage you to do a before/after comparison and decide if it is actually an improvement. (Also note that this will affect the drop shadow on non-twilight numbers such as Strength, Vitality, etc. If you want to keep those, alter the lines that reference "twilight" and keep the ones that reference "numbers").
(Also, you'll need to reapply this change any time there's an update, just be advised.)
-
Worked like a charm; thank you!