A much larger attack of an army of about 16,000 soldiers in the west on Dornach, however, met a quickly assembled but strong Swiss army. In the Battle of Dornach on July 22, 1499, the Swabian and mercenary troops suffered a heavy defeat after a long and hard battle. Their general Heinrich von Fürstenberg fell early in the fight, about 3,000 Swabian and 500 Swiss soldiers died, and the Swabians lost all of their artillery again. One of the last skirmishes of the war took place on July 25. A Swabian army marched from the Hegau on Schaffhausen, but met with fierce defense at Thayngen. Although the small force of defenders was finally overcome, and the village was pillaged, the defenders inflicted heavy casualties and the attack was held up long enough for the Swiss to send troops from Schaffhausen to meet the Swabians in the field. Misunderstandings between the Swabian knights and their foot soldiers made the Swabians retreat, and nightfall then prevented a larger battle. A major problem for the Swiss was the lack of any unified command. The cantonal contingents only took orders from their own leaders. Complaints of insubordination were common. The Swiss Diet had to adopt this resolution on 11 March 1499: "Every canton shall impress upon its soldiers that when the Confederates are under arms together, each one of them, whatever his canton, shall obey the officers of the others." The war was paid for largely by the French and Italian allies of the Swiss as well as by ransoming prisoners of war. Early mediation attempts in March 1499 had failed because of mutual distrust between the parties. But after the Battle of Dornach, the Swabian League was war-weary and had lost all confidence in the king's abilities as a military leader, and thus refused Maximilian's demands to muster a new army. The Swabian and Habsburg armies had suffered far higher human losses than the Swiss, and were also short on artillery, after repeatedly having lost their equipment to the Swiss. The Swiss also had no interest to prolong the war further, though they refused a first peace proposal that Maximilian presented at Schaffhausen in August 1499. However, events in the Italian Wars helped bring the Swabian War to an end. The French king Louis XII tried to bring the Duchy of Milan under his control.