1st off welcome to the site from California. Next we will need more information on your "wiring harness" you made. Go to the tech section here and search wiring diagram and pick your truck and look at the wiring diagram and see if it matches what you did.
The pegging of the tach to max sounds like a short or wire got crossed. The new fuel gage, is it for the right year of truck for the printed circuit board ? Or, I am assuming it is a stock one and not a digital one. More information will help everyone out in helping you.
Merry Christmas and welcome to the site.