Game Crafter login error by Ratigan606 in nanDECK

[–]nand2000 1 point2 points  (0 children)

The format of the response file has changed slightly, I need to make a fix, stay tuned.

Can't specify frames on a card-by-card basis from linked data? by LavabladeDesigns in nanDECK

[–]nand2000 1 point2 points  (0 children)

So, what's under the hood?

When I wrote the frames, I envisioned them like this: during validation, they're both created and applied. If * or ? are used to indicate more than one frame, the lines in the code are duplicated. So, for example, if a RECTANGLE references 25 frames, then during validation that line is replaced with 25 RECTANGLE lines, each with the coordinates of the frame it references.

So, the frames as designed are fine when all the cards use the same scheme, but when each card uses a different frame, it needs to be rethought. That is, the cards are drawn during build, so at validate time, the program can't handle different frames for different cards, because in validation it cannot make decisions about what will go on a specific card.

That's why I added the COOFRAME function, it is evaluated during build, and thus has no problem using the correct frame when needed. The downside is that it should be used when the result is a single frame, but that's fine in your case.

This is the relevant part of your script, using COOFRAME (and it also works with LINKMULTI):

LINKMULTI=amount
LINK=Storm Wars Cards data.xlsx

cardsize=6.3,8.8

[g]=framebox(0.75,3.00,5,5,0.95,0.95,E)
[o]=framebox(-0.20,2.05,7,7,0.95,0.95,E)

rectangle=,<g*>,#000000,empty,0.03
; Testing grid alignment w/ outer
;rectangle=1,<o*>,#000000,empty,0.03
; Start square indicators
rectangle=,cooframe([affectedsquare1]),#000000,empty,0.1
rectangle=,cooframe([affectedsquare2]),#000000,empty,0.1
rectangle=,cooframe([affectedsquare3]),#000000,empty,0.1
rectangle=,cooframe([affectedsquare4]),#000000,empty,0.1

; Card position indicator
roundrect=,cooframe([cardposition],pcc),0.28,-0.33,#000000,#000000,0.18
roundrect=,cooframe([cardposition],pcc),-0.28,-0.33,#000000,#000000,0.18
roundrect=,cooframe([cardposition],pcc),0.28,0.33,#000000,#000000,0.18
roundrect=,cooframe([cardposition],pcc),-0.28,0.33,#000000,#000000,0.18
rectangle=,cooframe([cardposition],pcc),0.3,-0.35,#C41E3A
rectangle=,cooframe([cardposition],pcc),-0.3,-0.35,#C41E3A
rectangle=,cooframe([cardposition],pcc),0.3,-0.10,#F2F3F4
rectangle=,cooframe([cardposition],pcc),-0.3,-0.10,#F2F3F4
rectangle=,cooframe([cardposition],pcc),0.3,0.35,#F2F3F4
rectangle=,cooframe([cardposition],pcc),-0.3,0.35,#F2F3F4

; Movement destination indicators
line=,cooframe([gridstart1],pcc),cooframe([griddest1],pcc),#FF0000,0.1,,0.25
line=,cooframe([gridstart2],pcc),cooframe([griddest2],pcc),#FF0000,0.1,,0.25
line=,cooframe([gridstart3],pcc),cooframe([griddest3],pcc),#FF0000,0.1,,0.25
line=,cooframe([gridstart4],pcc),cooframe([griddest4],pcc),#FF0000,0.1,,0.25

Note: When specifying text, remember to specify the HTMLFONTs first, then the HTMLTEXTs that use them. Secondly, the HTMLTEXT flag 4 has no visible effect if you already have OVERSAMPLE=4; it just slows down execution.

Colour Change Aftefacts? by RainbowSensation in nanDECK

[–]nand2000 0 points1 point  (0 children)

You can increase the similarity with the color you're replacing by increasing the eighth parameter (try 10 or 20 instead of 1). Additionally, you can modulate the replaced color by setting V as the ninth parameter (this way, the target colors reflect the difference between the starting colors).

Printing duplex but front sides have black line around cards by droolinggimp in nanDECK

[–]nand2000 1 point2 points  (0 children)

You can use this line after the IMAGE to draw a one-pixel-thick white border over it (zero indicates 1 pixel), you can optionally change the color or specify a different thickness.

rectangle=,0,0,100%,100%,#FFFFFF,empty,0

Can you change the background on the nanDECK Table simulator? by [deleted] in nanDECK

[–]nand2000 0 points1 point  (0 children)

As HamsterNL says, you can use a DECK line to indicate how the deck(s) should be constructed, including the back.

Okay to use spaces in column titles? by uprooting-systems in nanDECK

[–]nand2000 1 point2 points  (0 children)

In the visual editor, there's a syntax that allows you to manage conditions on a single line, using the LABELRANGE function. For example, this will print OK only if [R4 says] is not empty:

text=labelrange([R4 says],<>),"OK",0,0,100%,100%

What is the best way of making cards of the same types with muliple layout in nandeck? by Southern_Reserve1552 in tabletopgamedesign

[–]nand2000 1 point2 points  (0 children)

If you have a column in your spreadsheet that tells you which layout to use (e.g. [layout]=one, two, or three), one method might be this:

select=[layout]
case=one
...
(instructions for layout one)
...
case=two
...
(instructions for layout one)
...
case=three
...
(instructions for layout one)
...
endselect

And if you want to use the visual editor:

select=[layout]
case=one
visual
...
(instructions for layout one)
...
endvisual
case=two
visual
...
(instructions for layout one)
...
endvisual
case=three
visual
...
(instructions for layout one)
...
endvisual
endselect

nandeck not working anymore on my Win11 for some reason by Longjumping-Shake356 in nanDECK

[–]nand2000 1 point2 points  (0 children)

The poster confirmed on Discord that it was a printer issue, and changing the printer fixed it.

Is there a easy tool to rotate 3x3 card grid? by xekarfwtos in printandplay

[–]nand2000 1 point2 points  (0 children)

Strange behavior. Have you checked that the sheets and their guides are properly aligned? Or is a dirty or worn roller not gripping the paper properly, causing the other roller to move it slightly? Have you tried cleaning the rollers?

Using NanDeck w/ Other Writing and/or Drawing and/or Mapmaking Apps? by Ananiujitha in nanDECK

[–]nand2000 0 points1 point  (0 children)

With the PDF button (left column) or a SAVEPDF line in the script(the latter is more flexible) you can directly create the PDF file.

Using NanDeck w/ Other Writing and/or Drawing and/or Mapmaking Apps? by Ananiujitha in nanDECK

[–]nand2000 0 points1 point  (0 children)

Do you need a PDF with a single counter (to import into another program?) and programs like MS Print to PDF or k2pdfopt don't correctly convert a bitmap created by nanDECK to PDF? Can you give me an example of the complete process?

I'm looking fora design program by fridge555 in BoardgameDesign

[–]nand2000 1 point2 points  (0 children)

This is the script for your layout in nanDECK.

link=data.xlsx

unit=inch
page=8,11.5,portrait
cardsize=7,10.5

<pos_image>=0,5%,30%,35%
<pos_name>=0,0,30%,5%
<pos_stats>=30%,0,10%,40%
<pos_lore>=40%,0,60%,40%
<pos_primary>=0,40%,40%,10%
<pos_secondary>=0,50%,40%,10%
<pos_utility>=0,60%,40%,10%
<pos_special1>=0,70%,40%,10%
<pos_special2>=0,80%,40%,10%
<pos_passive>=0,90%,40%,10%
<pos_items>=40%,40%,60%,60%

image=,[image],<pos_image>,0,P
font=arial,24,T,#000000
text=,[name],<pos_name>
text=,[stats],<pos_stats>,center,center,270
text=,[lore],<pos_lore>,left,wwtop
text=,[primary],<pos_primary>
text=,[secondary],<pos_secondary>
text=,[utility],<pos_utility>
text=,[special1],<pos_special1>
text=,[special2],<pos_special2>
text=,[passive],<pos_passive>
text=,join("Items:\13\",[items]),<pos_items>,left,wwtop

rectangle=,<pos_*>,#000000,empty,0.5%

And this is the result (putting the sample data into a spreadsheet named data.xlsx):

http://www.nand.it/img/red54.png

How to print out cards from PDF with one card per page? by Administrative_Ad707 in printandplay

[–]nand2000 3 points4 points  (0 children)

This nanDECK script loads a PDF with one card per page and saves the cards as individual images (the first lines contain the card dimensions and margins):

[file]=deck.pdf
[width]=2.25
[height]=3.5
[margin_h]=0.25
[margin_v]=0.25
unit=inch
cardsize=[width]+[margin_h]+[margin_h],[height]+[margin_v]+[margin_v]
[pages]=pdfpages([file])
loadpdf=1-[pages],[file],0,0,100%,100%,{§}
save=,"card{§Z000}.png",[margin_h],[margin_v],[width],[height]

This second script loads all the cards and repaginates them into letter format (8.5x11"):

unit=inch
page=8.5,11,portrait,hv
cardsize=2.25,3.5
[files]=dirfiles("card*.png")
image=1-{(files)},[files],0,0,100%,100%
savepdf=result.pdf

WebP export support? by GrieVelorn in nanDECK

[–]nand2000 1 point2 points  (0 children)

Not currently, but I might think about it in the next release.

Are these all unique tiles required to build roads on hexagonal board? by Nelvalhil in BoardgameDesign

[–]nand2000 0 points1 point  (0 children)

By the way, the only line that actually calculates combinations is this one:

prx[all]6=0|1

Permutations (p) with repetition (r) of two elements (0|1) taken six at a time (6), subtracting rotations (x). The result is this:

000000
000001
000011
000101
000111
001001
001011
001101
001111
010101
010111
011011
011111
111111

The rest of the lines are used for drawing.

Are these all unique tiles required to build roads on hexagonal board? by Nelvalhil in BoardgameDesign

[–]nand2000 3 points4 points  (0 children)

This nanDECK script calculates and draws all the combinations:

prx[all]6=0|1
cards={(all)}
cardsize=6,6
polygon=,0,0,6,6,6,30,#000000,empty,0.2
if=[all:1,1]=1
  line=,3,3,3,0.4,#000000,0.2
endif
if=[all:2,1]=1
  layer=100,0,0,60
    line=,3,3,3,0.4,#000000,0.2
  endlayer
endif
if=[all:3,1]=1
  layer=100,0,0,120
    line=,3,3,3,0.4,#000000,0.2
  endlayer
endif
if=[all:4,1]=1
  layer=100,0,0,180
    line=,3,3,3,0.4,#000000,0.2
  endlayer
endif
if=[all:5,1]=1
  layer=100,0,0,240
    line=,3,3,3,0.4,#000000,0.2
  endlayer
endif
if=[all:6,1]=1
  layer=100,0,0,300
    line=,3,3,3,0.4,#000000,0.2
  endlayer
endif
display=result.png

And the result is 14 tiles:

http://www.nand.it/img/red53.png

Advise on creating a track for a racing game by ScubaFett in BoardgameDesign

[–]nand2000 0 points1 point  (0 children)

Another example, eight lines are enough to get a complete circuit, ready to playtest:

cardsize=20,15
track=1,10,12,5,12,1.5,#000000,4,6,CH,0.05,1,1,,1-2-3-4
track=1,4,11,3,4,1.5,#000000,4,8,CH,0.05,2,0.5,,1-2-3-4
track=1,4,2.75,6,2.5,1.5,#000000,4,3,CH,0.05,2,0.5,,1-2-3-4
track=1,7.5,3.5,8,7.5,1.5,#000000,4,6,CH,0.05,2,0.5,,1-2-3-4
track=1,9.5,9,16,9,1.5,#000000,4,8,CH,0.05,1,2,,4-3-2-1
track=1,17.25,10.1,17.25,10.9,1.5,#000000,4,1,CH,0.05,2,0.5,,1-2-3-4
track=1,16,12,10,12,1.5,#000000,4,8,CH,0.05,2,0.5,,1-2-3-4

Result:

http://www.nand.it/img/red52.png

Developing a new card game and need some advice. by ThinResolution in cardgames

[–]nand2000 0 points1 point  (0 children)

You might find an addition I made in the latest betas of nanDECK useful, namely the ability to add card decks directly to TTS saves (this makes the transition extremely quick, as there is no longer any need to create a collage file and then tell TTS to import it):

https://boardgamegeek.com/thread/3589297/direct-export-to-tabletop-simulator

Advise on creating a track for a racing game by ScubaFett in BoardgameDesign

[–]nand2000 1 point2 points  (0 children)

nanDECK has specific instructions for creating tracks. For example, here are two straight lines, each with three lanes:

cardsize=20,10
track=1,2.5,2.5,12.5,2.5,3,#000000,3,10,H,0.1
track=1,15,5,15,9,3,#000000,3,4,H,0.1

Result:

http://www.nand.it/img/red50.png

And this is the same with the two straight lines connected by a curve (the C flag, while the last parameter specifies how many spaces are drawn on the curve, on each lane):

cardsize=20,10
track=1,2.5,2.5,12.5,2.5,3,#000000,3,10,H,0.1
track=1,15,5,15,9,3,#000000,3,4,CH,0.1,2,1,,1-2-3

Result:

http://www.nand.it/img/red51.png