KeyNotFoundException at PasteSolved
Hi . Since the last update the copy does not do more or the paste is partial. I have several error messages. Can you help me thank you

And in the chat he tells me this: "You must paste structure before it"

(06:13:11) | Failed to call hook 'cmdChatPaste' on plugin 'CopyPaste v4.0.2' (KeyNotFoundException: The given key was not present in the dictionary.)

at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <e1a80661d61443feb3dbdaac88eeb776>:0

at Oxide.Plugins.CopyPaste.Paste (System.Collections.Generic.List`1[T] entities, System.Collections.Generic.Dictionary`2[TKey,TValue] protocol, UnityEngine.Vector3 startPos, BasePlayer player, System.Boolean stability, System.Single RotationCorrection, System.Single heightAdj) [0x009d6] in <d81cd12279cb4672a217ddcf576f6c43>:0

For now I use 3.6.8 to paste and copy again with 4.0.2, then it will paste.
However I am not overwriting the old file until this gets resolved.


Edit: I think it has to do with ceiling lights being changed to electric, and/or the save had fuel in them.

EDIT: confirmed that removing ceiling light from a copy allows the paste to work.

However it was a base that only had 1 light.
I use npp with a plugin "multi line find and replace".
So if you have a base like I have with hundreds of ceiling lights, how to remove when the coordinates, rotation, and fuel amounts willl vary for each light?

Data that has to be removed from .json is like this for each light:
This issue should be resolved with the latest update. Was an issue with ceiling lights from older updates. Oversight from my part.
Still the same problem with version 4.1.0. This bug does not paste the entire building. Can not do a / undo.
As in the video this still does not settle. On the other hand version 3.6.8 works very well. Thank you

I'm working on it. Managed to replicate the bug so shouldn't be too long to get a fix out.

Merged post

Updated the plugin, this should fix the issues (at least for me it did when replicating the bug)

Merged post

A word of notice, as soon as you get it to paste succesfully, overwrite the old file (or make a new one) but try to get it to use a file newer than 4.0.0 since that will just simply include all the needed data instead of either skipping the pasting of the data or substituting it.

Merged post

Fixing this issue also solves the undo issue since the undo is added at the end of the paste, the paste doesn't finish entirely so the undo also doesn't work because of this reason.
Great . Everything works thanks
Locked automatically