[ER] PacketParser.exe - add logname to output

Old feature requests stored here for reference.
Locked
User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

[ER] PacketParser.exe - add logname to output

Post by John Adams » Sun Feb 24, 2008 12:21 pm

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
John Adams
EQ2Emulator - Project Ghost
"Everything should work now, except the stuff that doesn't" ~Xinux

Locked

Who is online

Users browsing this forum: No registered users and 0 guests