Weird Problem when saving mission MegaTerrains bug?
by BryceSquared · in Torque Game Engine Advanced · 07/27/2009 (3:46 am) · 4 replies
When i try to save my mission i get a window pop up that tells me that "terrain001.ter is a read-only file!" and it returns it for every terrain so i get like 15 error windows one after the other. Has anyone else had this problem? I tried just unchecking the read-only bool in windows explorer, but it was never checked in the first place so that wasn't it. I am probably just stupid but i need help. we can sometimes save however.
#2
I also found that it doesn't happen when you save as -> all files -> add the .mis extension, so i could just be a weird bug with TGEA saving files.
07/27/2009 (11:33 pm)
Thanks Rene,I also found that it doesn't happen when you save as -> all files -> add the .mis extension, so i could just be a weird bug with TGEA saving files.
#3
Hmm, have you checked whether it is saving to the correct files? IIRC it reads the terrain filename from each terrain block and maybe things are getting out of sync here.
This is 1.8.1, isn't it? I remember squashing a megaterrain save bug that sounds similar to this. Maybe it is still screwing up.
07/28/2009 (12:05 am)
Hmm, have you checked whether it is saving to the correct files? IIRC it reads the terrain filename from each terrain block and maybe things are getting out of sync here.
This is 1.8.1, isn't it? I remember squashing a megaterrain save bug that sounds similar to this. Maybe it is still screwing up.
#4
07/28/2009 (3:37 am)
I am using 1.8.1 but things seem to be saving properly now. They used to get saved 50% of the time but now i don't get the error. It's weird, my build has become really buggy yet I have only been editing scripts I created from scratch so i don't see how i could have broken a tool script or anything.
Associate Rene Damm
Hmm, for whatever isWriteableFileName classifies the file as read-only. For a quick fix, just put something like this at the top of your main.cs file:
package MakeEverythingWriteable { function isWriteableFileName( %file ) { return true; } }; activatePackage( MakeEverythingWriteable );Alternatively, go into tools/missionEditor/scripts/menuHandlers.ed.cs and comment out the check in EditorSaveMission.