Complex sentence: Though the great war machines are down, their crew somehow powers up the factories until control is restored, but R2 creates a new code to make the Devastators recycle each other.
Split into simpler sentences: Though the great war machines were down, their crew somehow powered up the factories until control was restored. But R2 created a new code to make the Devastators recycle each other.