Something has recently rendered my WIP map completely broken. I added a new ground texture, saved when it looked decent, and the game now crashes to desktop while loading the map. I've done it dozens of times before with no issue. In fact, I don't think its ever crashed on me before yesterday. Yesterday, however, the game crashed upon doing much of anything and saving that new texture completely broke even loading the map. I'm truly at a loss, I figured it was due to the new world editor being in production but @nekitu ruled that possibility out. Any help is appreciated. Pardon the file size, its a bigg'un Tons of extra stuff in it, although nothing that should break the game...
Okay, error has changed from the ever-helpful series of 0s to a status_heap_corruption error. I'll try verifying integrity and seeing if that does anyhting. --- Post updated --- Well this sucks. I got the game to load using an old terrain file. Looks like I'm building it all back from scratch. :/
...That really sucks? Trial and error I guess? I suppose just constantly save the last save and current save in a folder, and see if that update works? All I can think of.
My original map did the same thing. I deleted tyre terrain and it loaded fine. I rebuilt the whole map but it was never just right. Fortunately the roads, shapes, trees etc were still all there to guide me but.. Eugh makes me sick to my stomach just remembering it. Sorry this happened to you man. I have 700gb of backups of this current map, never going through that again!
i was thinking the crash was happening because of error in materials.cs But it's because the gameengine only support 31 materials for the terrain (32th is holes) I will get back to you soon, we should fix that as there is no warning/error and the torque3d terrain file support more (254)
Well that would explain why the game was so unhappy with adding one terrain layer. I thought that was strange.
Yes it was a bug. now it's fixed and will print an error. If you need to "recover a terrain" you can send it to me via pm and I will give you the export files The fix will probably not be in an hotfix, you will need to wait for next update
Well, I've already remade most of the terrain by hand, but I appreciate your efforts! Bugs are bugs, they happen. It's all a learning experience