charmaur / PolyDiceGenerator

A customizable Polyhedral Dice Generator for OpenSCAD.
https://github.com/charmaur/PolyDiceGenerator
Other
92 stars 19 forks source link

WARNING: variable x (and 'y') not specified as parameter in file #29

Open DigitalSketch opened 1 year ago

DigitalSketch commented 1 year ago

I'm getting warnings on multiple lines and the "d12 adj v push" isn't updating. The first line it's referencing is here: if(d12) move(x=spacing,y=spacing) drawd12();

and then the next error is here: move(x=(d12_text_h_push+d12_adj_h_push[$faceindex])*d12_size/100,y=(d12_text_v_push+d12_adj_v_push[$faceindex])*d12_size/100)

and the next is here: move(x=d12_underscore_h_push*d12_size/100,y=d12_underscore_v_push*d12_size/100)

So it has something to do with the d12 inputs. What am I messing up?

charmaur commented 1 year ago

Sounds live a versioning issue. Please make sure you're using BOSL2 v2.0.525 that's included with PolyDiceGenerator.

DigitalSketch commented 1 year ago

I redownloaded it and copied it over, still get the same errors. Here is the file I'm using. (scad renamed to txt to uplaod) Warnings.txt PolyDiceGenerator.txt

charmaur commented 1 year ago

According to Warnings.txt your BOSL2 version is "bosl_version = "2.0.652". You need to use the version that's included with PolyDiceGenerator.

DigitalSketch commented 1 year ago

I downloaded it from here

charmaur commented 1 year ago

You're using the latest version of BOSL2, which will not work. You don't have to download BOSL2, the version required is already included with PolyDiceGenerator.

Look at line 11 of your Warnings.txt file. It shows that you are using a newer version of BOSL2. ECHO: bosl_version = "2.0.652"

Replace the BOSL2 directory with the one included with PolyDiceGenerator and I suspect your errors will clear.