Hi,
After the frustration of not getting my trigger to work, and posting a Trigger 'fix' request, I decided to try and look at the logs, and sadly, as has proven to be the case many times, I decided to go into the profiles / <profile> / logs / triggers / <date> / <race Time? / directory, and open the gz file with winrar, to be presented with a text log file.
I opened the log for a particular race where I lost money, because my trigger is not working. I wanted to see exactly what is contained in these logs, in a raw state, i.e. the text of the log...
As you can see from the image, I have overlayed the image of the text file, containing the criminal horse "Caspian Prince", which won, and I LAYED it....
So, if you look at the image, you can see that the trigger is called "Back Offset Mistake V2", the race time was 17:10, hopefully, you can see in the trigger that it is checking to see if the selections name is in the file "T2R456_A4A5A6D4D5D6WLSP00.txt", and from the overlayed image, you can see, quite clearly, that it IS indeed in there, but then, the statement preceded with 17:13:30|2|3, shows as FALSE.
This trigger is checking for any selections contained in the text file, and if found, it then looks to see if the number of matched lay bets is greater than 0, and there are other conditions, but these have not been reached, because the trigger exits once the condition is false. I have gone right to the bottom of the log file, and they all show false
For the sake of simplicity, I will refer to the file above as SP00, and the log file as LogMistakeV2
So, before the race goes in play, I have a trigger which places a LAY at SP bet, AND it writes to the file SP00.
Once the race goes in play, I have another trigger which examines the SP00 file, and if there is an entry in there, then, surely, the trigger log should show this condition as TRUE.
I am not fully understanding how these log files are structured, but I know for absolute certain, that "Caspian Prince", was DEFINITELY in the SP00 file, and yet, the log file shows FALSE?
Throughout all of my trigger development, I ALWAYS enclose the selections name with speech marks, and the trigger's action which does this is a simple write to text file, with the text as ["sel_name"], hence Caspian Prince is shown as "Caspian Prince"
I can't believe that "Caspian Prince" and Caspian Prince are different, because ALL of my selections that contain a space, are contained in speech marks, and MFP picks them up no problem, so I don't think it is that which is causing the condition to show as false...
Maybe I am mis-reading the log file?
Any help would be appreciated.
Thanks
Mark