Is your terrain file in the same folder as the main script. If not, it´s possible, that the engine can´t find it (unless you have a path-instruction, pointing to the folder).