ID:2489856
 
Resolved
Step offsets, pixel offsets, and bounds were not always set properly in the map editor.
BYOND Version:512
Operating System:Windows 7 Home Premium 64-bit
Web Browser:Chrome 75.0.3770.142
Applies to:Dream Maker
Status: Resolved (512.1475)

This issue has been resolved.
Descriptive Problem Summary:

In 1474, whenever I place an object individually, it gets a semi-random step_x and step_y added to it. If I drag-and-dropped multiple ones, only the first one was out of place, the rest were fine (0,0).

Tested it with a clean install, with Nudge as Pixels turned on and off.

Downgraded to 1473, it persisted. Downgraded to 1472, it was fixed.

Numbered Steps to Reproduce Problem:

1. Upgrade to 1474
2. Open DreamMaker
3. Place any object
4. See it having random step_x and step_y values

Code Snippet (if applicable) to Reproduce Problem:


Expected Results:

All objects should have 0 on both step_x and step_y.

Actual Results:

All objects have random step_x and step_y values.

Does the problem occur:
Every time? Or how often?
Every time on 1473, 1474.
In other games?
N/A
In other user accounts?
N/A
On other computers?
N/A

When does the problem NOT occur?

When I drag-and-dropped (added multiple objects at once).

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.)

1472 is the latest version it worked.

Workarounds:

Drag-and-drop objects to have 0 step_x and step_y.
I think I know why this happened. Should be a simple fix.
Lummox JR resolved issue with message:
Step offsets, pixel offsets, and bounds were not always set properly in the map editor.
I still have the same problem in 1475.
Also reporting same issue with 1475. Going into map editor with a selected object, and using "Insert Obj" or "Insert Above Topmost Obj" causes two instances to occur.

I notice that right-clicking causes the selection box to appear in off-grid areas. This occurs with the "nudge as pixels" setting on and off.

https://media.discordapp.net/attachments/249281120141574145/ 605544483106455554/unknown.png
New bug report and test case please.