The original wiring had a four-wire (R,G,B,W) coming from a wall switch to an outlet on the far side of the room.
The top outlet was on the switch, the bottom was always hot.
I went to install an overhead light that would also be on the switch.
The wiring that I was using was a three-wire (B,W,G), so the first configuration that I tried was splicing the white through (bypassing the light), black -> black, G->G, and red->white. I know that was completely wrong and I got lucky because the ground was now carrying the current.
I re-wired so that the red bypassed the light, W->W, B->B, and G->G. Now the light stays on all the time and the outlet does not work at all.
I anticipate that the red is the wire on the switch, so if I just change and bypass the light with the black wire and wire the R->B in the light and keep the others the same, would that solve the problem?