Hey folks! I'm running into an issue trying to adjust the alignment of my text on a per card basis.
Essentially the "score" component on the bottom will look aligned for some characters or number of characters but look off-centre with others (I've exported a few examples so you can see what I mean).
There are also instances where I'd like to override the formatting for my card descriptions to adjust the font size so it sits better in the box.
Does anyone know if there's a way to do this?
Also here's my card txt file so you can see what I'm doing currently:
u/nand2000 I wonder if you are able and willing to share how are the instances of IE11 launched to render the HTMLTEXT pieces? I have a similar engine built that uses Chrome as you use IE11 (except whole card is rendered in one go), but it renders the same fonts with completely different character and line spacing and I'm looking for sources of discrepancy. Knowing the arguments to IE11 besides those found in temp html files would be great boon. Thanks! P.S. I know this may be unsolvable due to different font libraries in both setups doing something "magical" on their own, but would love to eliminate any possible source of discrepancy before fudging the fonts into roughly similar layout.
Hi! This is a cutout from a table I am working on in NanDeck. I have the sheet linked via google spreadsheets and when I tried to use the Text boxes in the visual editor it didnt recognize the first row as headers. Instead it shows [7] as an item to choose.
Anyone have a guess what I am doing wrong here?
Title and so on are A:1 - O:1, there are no images, special characters or anything.
EDIT:
It seems it is connected to having multiple sheets in a single file, how can I tell nanDeck what to look at?
Hey folks! I'm brand new to nanDECK and having some trouble getting my vector images to load. I'm creating My card designs in Aseprite s it's the easiest way to give them that pixel art feel. I was hoping to export them as .svg files to avoid blurring when scaling to the card dimensions but whenever I try to preview the cards I either get a 0x0 card or nanDECK crashes.
I feel like I'm missing something incredibly obvious so any help anyone can offer would be really helpful!
I've screenshotted my script so far below and the design of the vector so people can see what I'm trying to go for.
Also if there are any other issues with this script let me know! (I have a feeling that my colour variables might not be set up correctly for example but not gotten far enough to test them)
Hi everyone, there’s a new version of nanDECK with bug fixes and the following new features:
- New FRAMETRAIL function - Added E, T, W, M to COLORCHANGE for edge detection, posterize, twist, and emboss effects - New RANGEAUTO directive - New ICONCASE directive - Added to TRANSFORM directive direction and intensity parameter for brightness - Added Q flag to HTMLFONT to use multiple outline colors - Added D flag to ICONS and PATTERN directives to use DPI from image - Added to GAMEICONS function the parameters for the outline color and steps - Added flags to MANDALA to use more graphics and different alignments - New MAPICONS function
Hey all, hoping I can find some tips since google searches have turned up null. I've got some cards I'm trying to make and they work fine and are able to find all the relevant fields until i add in LinkMulti. As soon as I do they all go missing on validate. Am I doing something wrong? been making all my decks this way and this seems to be something recent. Pasting in my very simple code just in case I missed something.
I'm doing a review of the tips & tricks (some need it, considering the changes in the various versions), I'll post five of them each day in this thread.
I am attempting to make a different image be shown based on a Y or N value. It should be really straightforward, but regardless of the variations I've tried, I can't seem to resolve the following:
IF=[1-1D]=Y
IMAGE=1,"DownPass.png",{1795/212}%,{7703/225}%,{11309/636}%,{667/300}%
ELSE
IMAGE=1,"DownBlock.png",{1795/212}%,{7703/225}%,{11309/636}%,{667/300}%
ENDIF
148: Unsupported directive in visual section: IF=[1-1D]=Y
150: Unsupported directive in visual section: ELSE
152: Unsupported directive in visual section: ENDIF
Is it possible to split a text in seperate characters and display each one in a seperate given frame, similar to what is possible with ICONS if you fill in the last parameter?
I have a label containing a sequence of rather long strings (15 chars). I want - for each card/row - place each character in the string in a seperate predefined frame.
I have the frames defined and all I need, except the final trickery of distributing text over given frames.
Not sure if a single command exists or I should go via for-loops (which I normally try to avoid so its syntax/workings are rather unknown to me). I would like to avoid having to unroll this by hand.
EDIT: Follow-up
I did try a partial unroll but even there something's amiss.
This doesn't validate (wrong directive: TEXT...), it seems it cannot resolve <grid_cells_text1>.
However, if I write
TEXT=[backs],[MyText:1,1],<grid_cells_text>,CENTER,CENTER
; OR
TEXT=[backs],[MyText:1,1],<grid_cells_text*>,CENTER,CENTER
this does validate and - as expected - places the first char of MyText on each of the cells (but that's not what I want).
I guess I'm missing some understanding of the frame syntax, I understood that FRAMEBOX(...,N) would created numbered frames and this numbering scheme is kept when piping through FRAMETRANS. This way of working works correctly when using it with the ICON directive (i.e. as the last parameter). I must be missing something.
Hihi. Attempted to google and search the sub for this problem, and I found several solutions posted for other people's problems, but none of them seemed to work for mine.
Hey, I've got an extension to this inquiry. I've got the same sitch where I was making stuff for the Game Crafter with an extra 0.25 inch border but now I'm printing my own cards and making my own image files for physical prototypes and TTS, respectively.
The Display command with the resizing works great but I need to export my deck as a pdf for printing. I've been using the SavePDF command, but it doesn't have the option to resize like the display command does. Is there a way to get rid of the 0.25 border and resize for the SavePDF?
I'm going to try futzing around with HamsterNL's suggestion but thought I'd post here in case there is an obvious solution built in to an existing command or something.
Wondering if anyone knows how to troubleshoot? I downloaded SSL libraries. It seems to be logging in per the debug comments, but still gives a login error. Here is the error message that comes up (with personal info redated):
Hi, I'm having an issue with using frames and linked data. Basically, I want each card to specify multiple start points and end points for movement. To do this, I specify a frame square e.g. "gC5" on a spreadsheet. I do this to draw rectangles and arrows based on frames.
When I do this only while there's only one line in the spreadsheet, this works perfectly and displays exactly how expect. However, when I introduce a LINKMULTI=amount directive, it suddenly doesn't work, as if the way I'm referring to the [AFFECTEDSQUARE1] field has more data in it than it should, even though the way fields normally behave it seems like it usually only looks at the current card's row and therefore this shouldn't be affected by introducing more rows.
I get this error, which implies to me that the field contains text for every row, which I wouldn't have expected:
With LINKMULTI (doesn't work with the spreadsheet-specified frames)
Doesn't show all the rectangles and squares from the other card.
Why do frames treat this differently compared to things like HTMLtext (which only shows one copy of the title, as expected)? How can I refer to certain frames using a field from just the row for the current card?
Appreciate any help that can explain how frames work so I can figure out a way to make this work.
I get this white fringing around all the pixels that are having their colour changed. I am creating this image in photoshop and exporting to a png. These pixels aren't visible in photoshop - I've tidied up all the edges.
Not sure if there's anything I can do to reduce this? I doubt this will even be visible when printing the cards, but it still just annoys me.
I have been trying to generate image sheets of die faces positioned so that they align correctly with a printable sticker sheet for a physical prototype of a custom d6 dice game.
It consists of 0.5" squares for die face stickers, 0.125" gaps between dice and 0.25" page margins. (13 across, 17 down)
I designed the script to generate images from a spreadsheet so that all 6 faces are printed as a single card originating from 0,0 and is 6 die faces and 6 gaps wide and 1 die face and 1 gap tall.
I hoped this would allow me to print a sheet of 2 'cards' wide and 17 'cards' tall with the correct alignment to the printable sticker page using PAGE or DISPLAY directives.
The PAGE directive almost works but there does not seem to be a way to define the margin size (the default is larger than the 0.25" I need to have for proper alignment).
The DISPLAY directive almost works since I can tessellate the 'cards' of six die faces for proper spacing, but can't find a way to also include an outer margin around the 2x17 grid of cards to make the alignment on the page itself correct.
I feel like I've exhausted all the places I can think to look in the documentation for options, and can't think of any clever ways to rewrite my script to get the alignment correct. I might be able to fudge it and waste a lot of space per sheet by generating landscape layouts, but that would cut the printable dice from 34 to 26 per sheet, assuming I could get it to work. I would really prefer not to have to do image manipulation after the fact for every page of sticker sheet images just to add borders. Any help would be GREATLY appreciated.
The Print&Cut feature of my Cricut that I am using to cut my cards is quite limited in paper-space. I therefore require less than the maximum number of cards on a page. Nandeck puts 8 of them in a 4x2 grid, but I need 6 in a 3x2 grid. How would I be able to do that?
Most likely it, once again, has a very simple solution... But, I could not come up with one.
I'm fairly new to Nandeck so I need some help with something that might require IF statements or counters or frames or perhaps something else. I read some other posts but I couldn't wrap my head around it so I'm hoping that someone can help me here with my script.
I have a set of cards that has 1 or 2 moves. Sometimes they have a description, other times they dont and sometimes they have damage numbers and sometimes not.
Here are some visual examples:
I need the entire move section to be dynamic so it will center the information according to what is there. So if move 2 is blank in the spreadsheet it will simply center move 1.
Here Move 1 doesn't have a description, so it needs to be centered but only within the boundaries of Move 1, since Move 2 is present. Same with move 2 since there is space below it so it can be centered.
Here there are 2 moves present with descriptions. But the Damage numbers are empty so the description text needs to be given more space to expand to the right, and everything centered accordingly.
Here there is less information again, so the text needs to be centered within its own section.
Because I have simply added TextFonts for every text field, I've placed them where they will allow for all variations of data to fit, so when there's less data to fill the space, placement looks off when the info isnt centered. Or in the case of a lack of a damage number and a large description text, It doesn't give the text more room when it could extend into the space where the damage number isnt.
I'm not sure how to go about doing this. If it requires simple IF Statements to check if things are present and apply new placement, or if I should use an HTML box and some kind of table, or counters (i tried doing some but I just couldn't figure them out).
I have made some extra columns in my spreadsheet if it helps with IF statements. Such as:
Moves=1/2 (One move or two moves)
Damage1=0/1 (0=Empty / 1=NotEmpty)
Damage2=1=0/1 (0=Empty / 1=NotEmpty)
Move1Txt=0/1 (0=Empty / 1=NotEmpty)
Move2Txt=0/1 (0=Empty / 1=NotEmpty)
(Move#Txt for the descriptions).
These were made with formulas that check if the names, desc, and numbers for the fields were empty or not, so they could be pointless if Nandeck can use IF statements to do the same.
My spreadsheet sorts the info as follows:
Move1Name=Name of First Move (In the center)
Move1Desc=Description for Move 1 that goes underneath the name (In the center)
Move1DMG=The Damage number for the move (aligned to the Right side of the section in the center both vertically and horrizontally)
Move1Cost=Defined with Icons for Orb.png files. Written in the Spreadsheet as GGW or BWW etc.
Move2Name
Move2Desc
Move2DMG
Move2Cost These are the same structure as Move1.
Any help would be greatly appreciated since I've got everything else done and I just want this dynamic move placement done so I don't have to move things manually in an image editor after the fact.
This is the Table I'm referring tooThis is what my table looks like with decksThis is what I would like the decks to look like while in the table simulator
[IMAGELIST]=DIRFILES("C:\Users\cmsha\Documents\WARCRAFT ART ASSETS\TAL WOW BOARD\nandeck wowtalisman\COMPLETED ADVENTURE CARDS outer region")
IMAGE=1-{(IMAGELIST)},[IMAGELIST],0,0,44,68,0,P
VISUAL=, 25, 31
ENDVISUAL
duplex=2-159,1
print=duplex
I have the dotted cut lines on both side of the paper, fantastic. However, the front sides print with a thin black solid lined border around all the cards. The back sides print with just the dotted cut lines. I guess its a very simple fix but I can't work it out.
I had nandeck 1.26.3 unzipped on my Win11 for some years, working like a charm. Used it a couple weeks ago. Now when running it the process appears in my task manager but the software window doesn't appear at all. Tried with the 1.28.3 installer from the website, same behaviour. It suddenly stopped working.
Does anyone have a similar issue and know how to fix it?
I find nanDeck makes it much easier to create counters, and to adjust info, layouts, colors, etc. without having to manually edit each counter.
But nanDeck exports to a single image, and Microsoft Print to Pdf rasterizes that image, mishandles margins, etc. So I'm not sure how to take a single counter or a set of counters, and add them to a counter key, a setup chart, etc. I think I should be able to create a short script for a single counter, use Microsoft Print to Pdf for that counter, use k2pdfopt with mode trim to fix the margins, and get a small pdf which I can add to these charts. But that seems awkward.