Soon after independece, Pakistan joined the US camp and strained relations with USSR even before they even started. But then one leader come into power in 70s, and he establishes good relations not only with China but Russia also. And his efforts and charisma alone earn Pakistan the steel mills that is still the largest industrial unit in country after 4 decades. Similary he was able to secure HMC and many other deal from China, nuclear power plant deal from France and a lot more... because he was sincere, competent, determined and financially clean person.
Now if we get an honest and a visionary leader, everything will change, all deals be re-negotiated and will be re-negotiated.
Now the current goons have signed extrenely expensive LNG deal with Qatar and we can see how Qatar tried to help these goons. Similarly BB (the corrupt dead body) signed the worst deal for power production that practically bankrupted WAPDA and GoP and the country is in the mess because of her, her husband and the current corrupt goons.
Every country in this world plays its game based on its national interests. GoP has failed on all fronts due to its incompetence, lack of determination and will, and corruption, so can't blame Japan.