FET Forum

FET Support (English) => Programming Help => Topic started by: Luca Dangelo on December 26, 2019, 11:34:35 AM

Title: Write the impossible activities in a text file
Post by: Luca Dangelo on December 26, 2019, 11:34:35 AM
Hi,
Could you please let me know the most straightforward way of changing the code to write the impossible activities in a file (instead of showing in the command prompt) when we use the command-line case?

Thanks in advance.
Title: Re: Write the impossible activities in a text file
Post by: Liviu Lalescu on December 26, 2019, 11:48:20 AM
Hello,

I am not sure I understand correctly, because I tried and the difficult activities are not written on the command line, but in logs/difficult_activities.txt.
Title: Re: Write the impossible activities in a text file
Post by: Luca Dangelo on December 26, 2019, 04:58:06 PM
I meant the messages like attached that make the simulation impossible.
In other words, I want to know the most straightforward way to write these messages into a file (instead of just showing in the command prompt).

Regards.
Title: Re: Write the impossible activities in a text file
Post by: Liviu Lalescu on December 26, 2019, 05:42:18 PM
Oh, I see. See:

interface/fet.cpp, lines 1355, 1377, 1394.
engine/messageboxes.h & cpp.
interface/longtextmessagebox.h & cpp.

I think you can modify these last two files.
Title: Re: Write the impossible activities in a text file
Post by: Luca Dangelo on December 26, 2019, 05:48:40 PM
Thanks a lot.
Title: Re: Write the impossible activities in a text file
Post by: Liviu Lalescu on December 26, 2019, 05:50:59 PM
You are welcome!  :)