-
Notifications
You must be signed in to change notification settings - Fork 348
Color changes made by an E2 are not copied by the duplicator tool #989
Description
It's a pretty simple to explain bug, and it's entirely possible the fault is in gmod/duplicator and not wire, but I can't prove that so I figured I'd post about it here in the event it is something fixable.
Title pretty much says it all, if you color a prop using an E2 chip and later try to copy and paste that prop with the duplicator tool the color changes do not copy with it, it is instead pasted with it's original coloring.
I've tried it on a prop spawned by an e2 chip, a prop I spawned from the Q menu, and another prop spawned from the duplicator tool.
I've tried E:setColor(V), E:setAlpha(N), E:setColor(N,N,N), E:setColor(V4), and probably one or two others of the setcolor/alphas, none of which have worked at all, (Set alpha doesn't copy either, not just RGB color)
And I've tried the built in duplicator tool from Gmod as well as Advanced Duplicator 2 and 1, none of them copy the colors on the prop
I originally found the bug on a multiplayer server but also tested it further in single player to confirm there was no weird addons from the server causing it to behave differently.
The code I ended up testing with mostly was just a simple one line e2 to change color:
@name ColorChanger
entity():isConstrainedTo():setColor(255,0,0)
I'd place the chip on the prop to change it's color, then undo (tried remover tool as well) the e2, and then copy it with duplicator and paste it to see if it would come out as red (or whatever color), never got it to work once
And I realize that if I duplicate the e2 I can have it recolor the prop but the original e2 I was writing when I ran into this bug will not work for that (I was trying to use the color of a prop as a sort of storage when a contraption was copy/pasted)
Also, yes, I tried just changing the color of props with the color tool and it did copy correctly, which is mostly why I assume this is a wire/E2 bug and not a Gmod/duplicator bug.