I tackled your problem.
1) it compiles now into a runnable mission
2) the placement of buildings is off! You've got to put the buildings in the right spots: if they cant fit the way you've coded them, op2 will just move the building to the closest position in which it WILL fit (all to the best guess of op2)
Version 0.5 has all previously mentioned bugs resolved, but will undoubtedly create new ones. At the moment it is not yet released, but will be soon enough..