OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Matthijs on 28 Aug 2002, 22:57:02

Title: Can mission results be written to file?
Post by: Matthijs on 28 Aug 2002, 22:57:02
I want to get the following results out to some kind of text file:
- Losses
- People "escaped" (crossed a certain marker)

Would there be a way?
Title: Re:Can mission results be written to file?
Post by: Marksman on 29 Aug 2002, 00:46:04
There should be a way of outputting variables to a text file, but i couldn't get it to work.

Only tried once though  ;)

Take a look in the command reference, i think the commands you are looking for are something like

debug value

or

log value

where value is the variable you want to output.

If i remember rightly, i think with the log command, you also have to specify a filename. Take a look in the com. ref., it'll be a lot clearer than my ramblings  :hmm:

Marksman
Title: Re:Can mission results be written to file?
Post by: Matthijs on 29 Aug 2002, 01:02:43
Well well... that's not correct pal.
It's not log <argument>
It's also not debug <argument>
But it's debuglog <argument>
hehe...
Thanks for the hint!

Two questions remain:
1- What file is the debug output?
2- Will it work for a dedicated server?

Yes I know, I should just try it out. But it's bedtime. Nighty night!  ;D


textLog anything
Operand types:
    anything: Any
Type of returned value:
    None
Description:
    Dump argument value to debugging output.

debugLog anything
Operand types:
    anything: Any
Type of returned value:
    None
Description:
    Dump argument type and value to debugging output.
Title: Re:Can mission results be written to file?
Post by: Matthijs on 30 Aug 2002, 00:36:49
Where is the debug output written to?

I can't find my output...

 ???