From: Ogre
Instead of using WriteLn() make a procedure that will do something likeprocedure WriteLnSave(string: string);
begin
GlobalVarWhereYouSaveDebugText:= GlobalVarWhereYouSaveDebugText + #10 + #13 + string; //the #10 and #13 make a newline
WriteLn(string);
end;
and you might want to make a ClearDebugSave procedure
procedure ClearDebugSave;
begin
GlobalVarWhereYouSaveDebugText:='';
ClearDebug;
end;
and I think it's pretty simple to write to a file, but I'm not sure what the procedure is, as I don't have Simba/SCAR on this computer
^ [Ogre]could you elaborate a little more on that please.
From: MylesMadness
In scar there you could just use GetDebugText to get the text, but that doesn't exist in simba so I guess you need to just do what was already suggested
^ Thanks. .. ok, I have to tease you on that.. so basically, you said "I have a solution for a different question, really you should just try what was already posted." - Good to know though :P
From: mastaraymond
If you really want to log everything, really simple.. Just open CMD, then do this: "simba.exe > debug.log".
Then it will put all the output information in the debug.log file ;).
Well, you see, I want to be able to save the text for every time a specific simba script runs. If I do that, it removes the old simba log. Also, the debug.log basically corrupts (won't save the previous information) if simba crashes or the computer force closes simba, or shuts down.
Not only when it runs, but in a pinch I need to be able to come back and see, 'oh this is how far it got, this is what happened, alright goodstuff, om nom nom.'
=]