ID:2716407
 
Resolved
Generators with the "box" type produced the same random number for Y as for X, instead of giving them independent values.
BYOND Version:514
Operating System:Windows 10 Pro 64-bit
Web Browser:Chrome 93.0.4577.82
Applies to:Dream Seeker
Status: Resolved (514.1567)

This issue has been resolved.
Descriptive Problem Summary:

Box and Vector generators appear to return the same results.

Code Snippet (if applicable) to Reproduce Problem:
generator("vector", list(-16,16), list(16,0))

vs
generator("box", list(-16,16), list(16,0))



Numbered Steps to Reproduce Problem:

1. Create a particle with a VECTOR generator for position, with params (-16,16) and (16,0)
2. Watch the particles spawn in a diagonal line (correct!)
3. Create another particle with a BOX generator with the same params
4. Watch the particles spawn in a diagonal line (incorrect!)

Expected Results:

Box should return coordinates in a box, rather than the line between two vectors
In the yellow box as per this diagram


Actual Results:

Box returns coordinates in a line between two vectors

Vector - Correct


Box - Incorrect


Does the problem occur:
Every time? Or how often?
Every time
In other games?
n/a
In other user accounts?
n/a
On other computers?
n/a

When does the problem NOT occur?
Unknown - I can't get it to work

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
n/a

Workarounds:
n/a

Lummox JR resolved issue with message:
Generators with the "box" type produced the same random number for Y as for X, instead of giving them independent values.

Login to reply.