Page 1 of 1

[ER] PacketParser.exe - add logname to output

Posted: Sun Feb 24, 2008 12:21 pm
by John Adams
This enhancement is something I tossed into my packetparser because I use DOS for/do loops to process multiple logs at once. However, when one fails I sometimes cannot tell which, so adding the logfile name being processed to the concluding Stats line could be helpful.
My dirty little hack works, but is not pretty.
Find:

Code: Select all

	cout << "Took: " << (int)((this_time - curr)/1000) << " seconds. Processed " << total_items << " items, " << total_spawns << " spawns.\n";
Replace with:

Code: Select all

	cout << "Took: " << (int)((this_time - curr)/1000) << " seconds. Processed " << total_items << " items, " << total_spawns << " spawns in file: " << argv[argc-1] << ".\n";
The output to the screen is then:
Took: 5 seconds. Processed 0 items, 764 spawns in file .EQ2PacketLog.log.
Unfortunately, there seems to be an extra "." period at the beginning that I could strip out, but I'm no coder, just hack. :) So anyone with a better idea, please let me know.
Thx