If you are cooking in a fire pit, don't place foil packets directly in the flames of the fire. Heat coals in the fire and cook the packets on the heated coals. You can also wait until the firewood burns long enough to break down into coals, and then place the packets on the heated coals to cook.