@Override
	public void save(Output output, String name, int chunksX, int chunksY) {
		this.filepath = "output/"+name+"/build/"+name+".owf";
		
		System.out.println(":: OutlanderWorldFragmented format (.owf format) ::");
		System.out.println(": The file will be located in: "+filepath);
		
		File f = new File(filepath);
		if (f.exists()) f.delete();
		
		int dimx = chunksX * MyzoGEN.DIMENSION_X;
		int dimy = chunksY * MyzoGEN.DIMENSION_Y;
		tempBuffer = ByteBuffer.allocate(calcSize(name, description, chunksX, chunksY, output));
		
		//Header
		writeShort(VERSION);
		writeString(name);
		writeInt(dimx);
		writeInt(dimy);
		writeString(description);
		
		for (int j = 0; j < chunksY; j++) {
			for (int i = 0; i < chunksX; i++) {
				writeChunk(i, j, output);
			}
		}
		
		push();
	}