OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Darius on 23 Sep 2002, 18:18:54
-
Has anyone out there had any success using the "debugLog" command in a script to record data during a mission?
I'm thinking about the feasibility of making an off-line replay tool (probably in C++) so you can review who did what and when, BUT I need some way of recording a whole load of parameters to a file.
I've tried to use the "debugLog" command, but there's no sign of any output file anywhere. Is this a command that is disabled in the release versions of the game, or do I need to do something else to initialise the debug log???
Or, if anyone can think of an alternative way I could do the above, please let me know!! ???
Thanks
-
AFAIK, it's been disabled.
However, if it's anywhere, it's on the clipboard;
so you could see if you can paste results somewhere.
-
No sign of anything left in clipboard (either during or after the game run) so I guess there is no debug log in the release version of the game.
Any of you clever people have any ideas for an alternative approach I might be able to try?
???
-
Try opening up the flashpoint.rpt file in your flashpoint folder, then use it, then see if there's any change. If not, then im out of idea's. Must not work. :-\
8)PEACE
-
Yeah sure. Send it to an array and have a radio command print the array. Sort of:
(in an init file):
DebugArray = []
(where you need to add something to the log:)
DebugArray = DebugArray + format ["Value = %1", value]
and have a radio hotel repeatedly trigger:
debugstatement = []; "debugstatement = debugstatement + format [""%1\n"", _x]" ForEach DebugArray; hint debugstatement
if you get a bunch of \ns in there, reverse it to /n
Alternatively, my colleague VektorBoson has generated a debug dialogue that might interest you. Check ont he flashpoint1985 forum if you can't find it here.
-
Weren't you the one who said it was disabled? ::)
So what's this used for then, hmm? :-*
8)PEACE
-
You can see an explanation of debug in this website :
http://editing.deltaforcecommand.org.uk/lusty/default.htm
If you understand, you will understand...
Pax ;D
-
You can see an explanation of debug in this website :
http://editing.deltaforcecommand.org.uk/lusty/default.htm
If you understand, you will understand...
Pax ;D
I found no explanation there. If you are refering to the thing about the debug.log file,the debug.log file is not created. It may have been in the past but now only the flashpoint.rpt is created and it only lists crash data.
-
Thanks Toad; I couldn't find it either.
Oh well, I shall go away and re-think my re-thinking.
???
-
Anyone found a way where the game saves data to an outside file during a mission ? It would be great to communicate with another program running.