Help - Search - Members - Calendar
Full Version: Unable to read a file in ACTool.
AC Tools Everything Macro > AC Tool Macros > Other Macros
cdslaughter
Perhaps someone here can point me in the correct direction.
I tried writing a tool to parse my EQ2 log file, but cant seem to get it to work. I have included the code and sample files below.
In short when you try and parse the log file for EQ2 you get an odd error, but when you read a different text file it works just fine.
If anyone has any in-site as to what's going on and possibly an idea on how to fix it, I would appreciate the assistance.
If this has already been covered (I searched for about 30 min looking for an existing topic on this.) just point me in the correct direction.

CODE
Constants
  FileName = C:\Macros\Sample1.txt
  TempZ=0
End

//Example
Constructs
  File1=file
end

FileOpen File1, $FileName
FileReset File1

while 1 = 1
  FileRead File1, TempZ
  timestamp {LoopNo} - $TempZ
  if {EOF} = True
    break
  End
End

FileClose File1


Error message on Sample1.txt is
QUOTE
Error: Could not find list, dataset, or form
Module: ReadMuLog.mac Line: 17


Results for Sample2.txt file.
CODE
TimeStamp: 10/26/2009 05:59:56:794 am - 1 - This is line one.
TimeStamp: 10/26/2009 05:59:56:794 am - 2 - This is line Two.
TimeStamp: 10/26/2009 05:59:56:805 am - 3 - This is line Three.
TimeStamp: 10/26/2009 05:59:56:805 am - 4 - This is line Four.
DaMOB
This is an issue with ACTool and it is the ")[" symbols doing it. Put a space between them and it will work but the log is done via EQ2 so the file will have )[ already in it. I haven't played with this in a very long time but I remember that no matter what I did I could not get it to read or manipulate those symbols if side by side like that.
cdslaughter
Ok Thanks for the reply. I was about to go nuts trying to figure it out..


Thank you
DaMOB
QUOTE(cdslaughter @ Oct 26 2009, 08:38 AM) *
Ok Thanks for the reply. I was about to go nuts trying to figure it out..


Thank you

No problem. My solution was to write it in C++ and that is when the C++ gui for my bot was born out of a need.
Bear
QUOTE(Readme.txt)
4.3.14 Beta - 03/19/2003:
- IgnoreBracketErrors comamnds will turn on/off bracket checking.

IgnoreBracketErrors on
IgnoreBracketErrors off


Could try this, maybe??
DaMOB
QUOTE(Bear @ Oct 26 2009, 09:10 AM) *
QUOTE(Readme.txt)
4.3.14 Beta - 03/19/2003:
- IgnoreBracketErrors comamnds will turn on/off bracket checking.

IgnoreBracketErrors on
IgnoreBracketErrors off


Could try this, maybe??

Yep that works but I never really understood why it needed it and better yet why there was an off for the command because I always thought that it should have been "always on" but I forgot now why Cam didn't do that. Been so long since I messed with it that I had actually forgotten about that command so thanks for the refresher. smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.