Game Development Community

TGEA 1.7.1 gui editor save bug

by Steven Chiu · in Torque Game Engine Advanced · 08/23/2008 (8:23 pm) · 1 replies

After editing my gui, save to and override the same file, the line below
//--- OBJECT WRITE END ---

disappears. So if you got any function below that line, it'll have problem after saving the file. Anybody got the same problem?

Edit: When trace into the code, I found that SimObject::save function not called during saving. Is that normal? Any quick fix for this?

#1
08/24/2008 (7:29 am)
I've found the place to fix the problem, find the lines within the function GuiEditCanvas::save( %this ) at tools/guiEditor/scripts/guiEditorCanvas.ed.cs,

for( %i = 0; %i < %beforeLines; %i++)
change to:
for( %i = 0; %i <= %beforeLines; %i++)

and


for( %i = 1; %i <= %lines; %i++ )
change to:
for( %i = 0; %i <= %lines; %i++)

around line number 244 and 252.