Electrical wires not being copiedSolved
hello, the problem is still there. we can not see the wires :'(
i love your works misticos and this one is amazing.
could be great to have it fully fonctionnal !
Hi when you copy base it doesn't copy the electrical cables
5d826ae6d4a1a.png WhiteDragon
There was an error in my fix. I have updated it:
ioConnection.Add("linePoints", output.linePoints?.ToList() ?? new List<Vector3>());​

 

Similarly, replace the following in PasteLoop():
// Get the relative positions (normalized) and convert it to an actual position.
var normalizedPos =
    pasteData.QuaternionRotation * (new Vector3(
        Convert.ToSingle(linePoint["x"]),
        Convert.ToSingle(linePoint["y"]) + pasteData.HeightAdj,
        Convert.ToSingle(linePoint["z"]))) + pasteData.StartPos;
lineList.Add(normalizedPos);​

With this:
lineList.Add(new Vector3(
    Convert.ToSingle(linePoint["x"]),
    Convert.ToSingle(linePoint["y"]),
    Convert.ToSingle(linePoint["z"])));​

If this actually fixes it....any chance you could add it to the official version while we wait for your rewrite, @misticos ? Would make so much more sense if it was fixed at the source rather than left up to all of us coding-amateurs... Personally I know I would be able to find and replace the needed lines from WhiteDragons instruction, (and don't fear risking to break it as it is already broken for me anyway and it is very simple to make a backup of the file before trying.), but if FP changes anything that requires other fixes to the core of oxide/copypaste I will be very quickly s.o.o.l. too...

HI old thread i know however the latest version (released 3 days ago) does not copy the new "deluxe christmas lights" and also i had to add this.
lineList.Add(new Vector3(
    Convert.ToSingle(linePoint["x"]),
    Convert.ToSingle(linePoint["y"]),
    Convert.ToSingle(linePoint["z"])));​
to make it copy normal wires aswell.

is this possible to be done at all
so in previous versions of the plugin it would not copy the electrical wires and would paste the copy with out wires but the electrical would still work

is there a way to have an option do this again?
reason for needing this is we are using the copy paste plugin for raidable bases on our servers and sometimes when removing a base it will not remove some of the electrical wires so over time there will be random floating wires around the raidable base locations
Locked automatically