ID:2889733
 
Resolved
Copying and pasting a selection of turfs in the map editor could cause weird duplication of movables in certain cases, and interacted strangely with the right-click menu.
BYOND Version:515.1614
Operating System:Windows 10 Pro 64-bit
Web Browser:Firefox 117.0
Applies to:Dream Maker
Status: Resolved (515.1615)

This issue has been resolved.
Descriptive Problem Summary:
Pasting copied objects without de-selecting after each paste results in duplicated items, map editor also does not show pasted objects in tile until after de-selection.

Copy any set number of objects.
Paste the objects,
Without de-selecting, Paste again in different location.
Each paste is duplicated except for the final, as demonstrated in the following video:

https://cdn.discordapp.com/attachments/1003180567086506004/ 1153424609606107226/2023-09-18_16-10-41.mp4

Numbered Steps to Reproduce Problem:
Video starts off by me right clicking to show there is only one instance of each object being copied, then proceeds to show how the duplication happens.
This was noticed after auditing the map file and seeing the following:



Code Snippet (if applicable) to Reproduce Problem:
"g" = (/obj/tree/tl,/turf/floor/grass,/area)
"h" = (/obj/tree/tr,/turf/floor/grass,/area)
"i" = (/obj/tree/l,/turf/floor/grass,/area)
"j" = (/obj/tree/r,/turf/floor/grass,/area)
"k" = (/obj/tree/bl,/turf/floor/grass,/area)
"l" = (/obj/tree/br,/turf/floor/grass,/area)
"r" = (/obj/tree/tl,/obj/tree/tl,/turf/floor/grass,/area)
"s" = (/obj/tree/tr,/obj/tree/tr,/turf/floor/grass,/area)
"t" = (/obj/tree/l,/obj/tree/l,/turf/floor/grass,/area)
"u" = (/obj/tree/r,/obj/tree/r,/turf/floor/grass,/area)
"v" = (/obj/tree/tr,/obj/tree/bl,/obj/tree/bl,/turf/floor/grass,/area)
"w" = (/obj/tree/br,/obj/tree/br,/turf/floor/grass,/area)
"x" = (/obj/tree/bl,/obj/tree/bl,/turf/floor/grass,/area)


Expected Results:

One instance to be pasted per paste even if de-selection has not occurred.

Actual Results:
Each obj up till the last is duplicated.

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

When does the problem NOT occur?
When de-selecting after pasting each time.

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

Workarounds:

De-select after each paste.
Can you shoot me a copy of the project that this happens on and point me to the part of the map involved? I'm not sure we're fully on the same page.

I'm also missing contextual information like what tool you were using in the toolbar. All of this is adding up to me having trouble reproducing the issue.
Lummox JR resolved issue with message:
Copying and pasting a selection of turfs in the map editor could cause weird duplication of movables in certain cases, and interacted strangely with the right-click menu.