In multiple location switch setups, you are always going to need 3 conductors (plus ground) between each switch location. This can be 1 hot + two travelers, 2 travelers + 1 neutral, or 2 travelers + 1 load. As long as there are 3 wires (plus ground) available between each box you are good to go no matter which boxes the incoming line and and outgoing load are connected to.
Let's call the three boxes A, B, and C. B is the "middle" box with the 4-way switch. This might be a case where a picture is worth a 1,000 words, but I'll try to describe the connections (hopefully in less than 1,000 words!)
One has the hot lead at the 4-way switch with the load at the end.
The hot lead coming into box B will wirenut to an available wire* which will go to box A, where it will connect to the "common" terminal on the 3-way switch. The two travelers will then come from the 3-way switch in box A to the 4-way switch in box B. Two more travelers will continue from the 4-way switch to the 3-way switch in box C. The "common" terminal on the 3-way switch in box C will connect to the load.
The incoming neutral in box B will wire nut to an available white wire to travel to Box C, where it will wire nut to the neutral going to the load.
The other circuit has the load at the 4-way switch and power at the end.
Assuming the incoming power is at the end we call Box A...
The hot lead coming into box A will connect to the "common" terminal on the 3-way switch. Two travelers (typically black and red) will continue to Box B. The incoming neutral will wire nut an available white wire and also continue to box B, where it will be wire nutted to the neutral going to the load.
In Box B, the incoming travelers will connect to the 4 way switch. The other side of the 4-way switch will connect to two more travelers which will continue to Box C. In Box C, the two travelers will connect to the 3-way switch. The "common" terminal of the 3-way switch (which is the switched hot going to the load) will connect to the remaining wire* to go back to Box B, where it will be wire nutted to the wire going to the load.
There, I think that was less than 1,000 words (but maybe not by much!) Hopefully you can draw it out from this description.
*If you are using NM (Romex), you may recolor wires to change the white wire to another color for use as something other than a neutral. Green and bare copper are for ground ONLY; white and gray are for neutral ONLY; all other colors may be used for hot leads, including travelers and switched hot to the load. In the case of standard 12-3 NM, I would use the black and red as the travelers and when needed recolor the white to say blue when it is needed as a hot or switched hot (load) conductor.