Ok so the layer size is X*Y*24 I misunderstood that one. Now I tried over five times to create a terrain of size 100*100 and each time in the editor I only count 32 tiles on either side of the square. However when I parse the heightfield in the file the size is actually 100 * 100 so not 64 * 64.
I succeeded, made some dumb mistakes but I'm going to blame them on being to tired from my dayjob, a good nights sleep and some debugging got me thru. I was able to parse a 64 * 64 terrain.
Ok next up is to write a writer and then a bunch on NUnit tests with several terrains to see everything keeps working.
edit:
Got my writer working , so perfectly able to read a terrain and write it back one on one without breaking anything
edit2:
Added NUnit tests, all tests pass except the 100 by 100 since I expect 50 tiles on each side instead of the 32 that are in the terrain. Bug at Larian side ???
Last edited by Celludriel; 26/07/14 07:23 AM.