ID:2653866
 
Not a bug
BYOND Version:513.1546
Operating System:Windows 7 Home Premium 64-bit
Web Browser:Chrome 88.0.4324.146
Applies to:Dream Seeker
Status: Not a bug

This is not a bug. It may be an incorrect use of syntax or a limitation in the software. For further discussion on the matter, please consult the BYOND forums.
Descriptive Problem Summary:
The square, cube, circle, and sphere generators don't support vector arguments fully. When a vector is passed as the second arg, they always generate 0,0,0. If the first arg is a vector but the second is a number, the generator works fine.

Numbered Steps to Reproduce Problem:
1. Pass vector as second arg to those 4 generators.
2. Get 0,0,0 as result.

Code Snippet (if applicable) to Reproduce Problem:
    var/generator/gennie = generator("square", list(0,0), list(1,1))
var/out = gennie.Rand()
if(islist(out))
out = list2params(out)
world << out


Expected Results:
A random vector matching generator("square", 0, 1)'s output if my understanding is correct.

Actual Results:
List(0,0,0) every time.

Workarounds:
Box and Vector support vector args just fine.
Lummox JR resolved issue (Not a bug)
The square/cube/circle/sphere generators generate a shape whose size is multiplied by a random number between A and B. Therefore they don't take vector arguments.