I do have a question.Shouldn't a highly factionalised courts be a good thing for the emperor since he can play one side against another?
A highly factionalized court was bad for the Ming, because the Ming decision-making process (like the Song before it) required consensus.
Ming decision making went like this:
1) A problem is put before the Emperor and his officials.
2) Solicitation of local bureaucrats' input.
3) Solicitation of
every bureaucrat's input, if he so desired.
4) A court conference between the Emperor and his highest officials.
5) A decision is made, usually through consensus within the conference.
3) especially is where the trouble comes in, since a well-organized faction could simply wear down any Emperor's resolve through mass-submission of memorials. There was also a practice in the Confucian court for officials to recognize 'shame' and step down when too many bureaucrats opposed him. So unsurprisingly this led to frequent changes of personnel, which did not help in creating of strategy. This can be seen in the constant change of chief commander (
jinglue) of Liaodong during the early phase of the Ming-Manchu wars:
1618: Yang Hao
1619: Xiong Tingbi
1620: Yuan Yingtai (KIA)
1621: Xiong Tingbi/Wang Huazhen
1623: Sun Chengzong
1625: Gao Di
1626: Wang Zicheng/Yuan Chonghuan
1627: Yuan Chonghuan
1630: Position abolished
During this time, Ming strategy in Liaodong switched from defensive to offensive, from promoting Western weapons to disdaining them, from negotiation to confrontation, and so on, with every piece of news from the front leading to some personnel change: a similar pattern emerges in the Ming strategy against Li Zicheng. And if the Ming court couldn't even get its act together in matters of war, there was very little chance it could put out a long-term development plan. (BTW this phenomenon is not restricted to the Ming - the Song was similarly fractious).
the Safavid Persians were utterly thrashed by the Ottomans before they built up their corps of musketeers, and matchlocks and artillery were the backbone of Mughal power in Hindustan.
The point I'm making is that gunpowder was not the sole (or maybe not even the critical) ingredient that made these so-called 'gunpowder empires'. Mughal dominance in particular came through their cavalry (which is why they put such a heavy emphasis on recruiting Central Asian warriors through the
mansabdar system), and the
taulqama tactic involving flanking horse archers and heavy cavalry was
the decisive moment in foundational battles like Panipat and against Gujarat (which had better, Ottoman-made cannon during the time of Akbar and Humayun). Not saying the Mughals didn't use artillery, but it was not the main thing that allowed for their dominance... and whenever the Mughals couldn't use cavalry (like in jungles or hill forts), their success rate rapidly diminished.
More broadly, the early success of the three empires was not just because of gunpowder but because
how they used gunpowder: the so-called 'Rumi' tactic of packing all your cannons into a
wagenburg and enticing the enemy to charge blindly towards that. Once enemies wise up to the strategy and get artillery of their own, the superior mobility and flanking potential of massed cavalry comes back into play.
During the Qing conquest, the vast majority of troops fielded by the dynasty against the rebels and the Ming were themselves Chinese; 75% of the Eight Banners were Han, mostly from Liaoning, and they were the Qing's heavy troops, operating muskets at cannon.
The early battles of the Ming-Qing dynasty (Sarhu, Shenyang, Liaoyang) were won by Qing cavalry enticing Ming armies into open ground, surrounding them and then shooting them down with horse archers/charging into them before the Ming musketeers could get out more than a few volleys. I don't deny that cavalry is geographically limited and that the Qing increasingly used Green Standards and artillery as their war with the Ming progressed, but in general Ming armies fared poorly in the field, where Qing cavalry dominated, and made much better accounts of themselves in walled cities that negated cavalry advantages (like Ningyuan).
The point of all this is to say that wholesale adoption of firearms in the 16-17thC did not guarantee success in regions where massed horse archer formations could still be deployed: neither matchlocks firing twice a minute or artillery firing once every 15 minutes can realistically stand up to an adequately-prepared cavalry charge of tens of thousands or a swarm of horse archers shooting from 100-200m away. In the long-run advances in infantry drill and weaponry would render this cavalry tactic obsolete, but that really comes to Asia in the mid-1700s with European imports. The defence of post-Imjin Ming and Korea were/would have been better served concentrating on other military spheres rather than firearms experimentation.