Project 1999

Go Back   Project 1999 > General Community > Technical Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 05-21-2022, 08:16 PM
Indefinite Indefinite is offline
Kobold

Indefinite's Avatar

Join Date: Apr 2014
Posts: 138
Default EQ Alert - Log Parser

EQ Alert - A Configurable and Context Driven Project 1999 Log Parser with NCurses Interface (for Linux)

I've been periodically chipping away at a parser over the last 5 years with the goal of putting something together that can eventually understand every type of line in this games log file, and sometimes doing something about that.

[You must be logged in to view images. Log in or Register.]

Features as of 3.1.3:
- All python
- TUI
- google TTS
- config.json to customize alerts
- character state
- encounter parsing
- /say commands
- default zone timers
- metronome

Installation:

$ pip3 install eqalert

or

$ git clone git@github.com:mgeitz/eqalert.git
$ cd eqalert
$ python3 setup.py install --user

More Information:

Source code & Readme: https://github.com/mgeitz/eqalert

Road Map: https://github.com/mgeitz/eqalert/projects

Contributing:

If you're interested in contributing in any way to this project, please do! As of version 3.1.3 there are ~598 elif statements!

Issues & Requests: https://github.com/mgeitz/eqalert/issues

Contributing: https://github.com/mgeitz/eqalert/bl...ONTRIBUTING.md
__________________
Last edited by Indefinite; 05-21-2022 at 08:19 PM..
Reply With Quote
  #2  
Old 05-21-2022, 09:01 PM
loramin loramin is offline
Planar Protector

loramin's Avatar

Join Date: Jul 2013
Posts: 9,340
Default

[You must be logged in to view images. Log in or Register.]
__________________

Loramin Frostseer, Oracle of the Tribunal <Anonymous> and Fan of the "Where To Go For XP/For Treasure?" Guides
Anyone can improve the wiki! If you are new to the Blue server, you can improve the wiki to earn a "welcome package" of up to 2k+ platinum! Message me for details.
Reply With Quote
  #3  
Old 05-22-2022, 12:29 PM
Graahle Graahle is offline
Sarnak


Join Date: Jun 2012
Location: Houston, TX
Posts: 433
Default

This looks immense!
Reply With Quote
  #4  
Old 05-22-2022, 12:42 PM
Jibartik Jibartik is offline
Planar Protector


Join Date: May 2015
Posts: 22,216
Default

Lets hook it up to a learning computer!

[You must be logged in to view images. Log in or Register.]
Last edited by Jibartik; 05-22-2022 at 12:45 PM..
Reply With Quote
  #5  
Old 06-21-2022, 05:32 PM
Indefinite Indefinite is offline
Kobold

Indefinite's Avatar

Join Date: Apr 2014
Posts: 138
Default

Just about all spell text should be matched by the parser now as of version 3.2.5!
__________________
Reply With Quote
  #6  
Old 06-21-2022, 06:19 PM
Loiterius Loiterius is offline
Kobold


Join Date: Jan 2014
Location: Az
Posts: 109
Default

Impressive!
Reply With Quote
  #7  
Old 09-22-2022, 11:45 PM
sharkukri sharkukri is offline
Skeleton


Join Date: Sep 2022
Posts: 18
Default

Looks promising! Will try it out
Reply With Quote
  #8  
Old 09-25-2022, 04:02 PM
Indefinite Indefinite is offline
Kobold

Indefinite's Avatar

Join Date: Apr 2014
Posts: 138
Default

Version 3.3.5 added features:
  • Auto-set character
  • Consider Evaluation
  • Default config alerts when a spell drops or refreshes from your spell bar
  • Timer persistance between restarts

If you have any thoughts, feature requests, or issues please let me know - I'll get anything not yet on the road map added!
__________________
Last edited by Indefinite; 09-25-2022 at 04:04 PM..
Reply With Quote
  #9  
Old 10-03-2022, 05:36 AM
sharkukri sharkukri is offline
Skeleton


Join Date: Sep 2022
Posts: 18
Default

Quote:
Originally Posted by Indefinite [You must be logged in to view images. Log in or Register.]
Version 3.3.5 added features:
  • Auto-set character
  • Consider Evaluation
  • Default config alerts when a spell drops or refreshes from your spell bar
  • Timer persistance between restarts

If you have any thoughts, feature requests, or issues please let me know - I'll get anything not yet on the road map added!
Is there a specific version of Python this only works under? Attempting to run things on Gentoo with kernel 5.19.11 and Python version 3.10.7 throws the following errors

Code:
write config line alert: Error on line13130: not enough arguments for format string
config read: Error on line 70: Expecting value: line 1 column 1 (char 0)
Unfortunately, the startup step failed with: 73: 'NoneType' object has no attribute 'settings'# Sometimes this is solved by forcing config regeneration
Installing via pip3 directly and from cloning the git repo and manually installing both threw the errors above. I attempted to copy and past a config into the file but every time I attempt to run it the file is overwritten and made empty.

Edit: missed a "s"
Reply With Quote
  #10  
Old 10-03-2022, 03:21 PM
Indefinite Indefinite is offline
Kobold

Indefinite's Avatar

Join Date: Apr 2014
Posts: 138
Default

I'm using python version 3.7.3 when running locally. Looking at the error it seems like the following might not be working as expected:

```
import pkg_resources
version = str(pkg_resources.get_distribution("eqalert").vers ion)
print(version)
```

I'll get an issue added to the repo to track this down; there's probably a better way to report the package version than the first thing I found through google and the python requires in setup.py should be narrowed to a tested range rather than >3.

Just in case it's helpful, here is a gist to each generated config file. Everything should be set to directly copy down sans the settings.json file, you'll want to spot check the paths set in there. If it is an issue with pkg_resources, I'd expect starting things up with the configs will get it far enough to initialize logging and might provide better debug output in ~/.eqa/log/eqalert.log

EQ Alert 3.3.5 Config Files (Settings has placeholder values):
~/.eqa/config/settings.json
~/.eqa/config/zones.json
~/.eqa/config/line-alerts/chat-received.json
~/.eqa/config/line-alerts/chat-received-npc.json
~/.eqa/config/line-alerts/chat-sent.json
~/.eqa/config/line-alerts/combat.json
~/.eqa/config/line-alerts/command-output.json
~/.eqa/config/line-alerts/emotes.json
~/.eqa/config/line-alerts/group-system-messages.json
~/.eqa/config/line-alerts/loot-trade.json
~/.eqa/config/line-alerts/other.json
~/.eqa/config/line-alerts/pets.json
~/.eqa/config/line-alerts/spell-general.json
~/.eqa/config/line-alerts/spell-specific.json
~/.eqa/config/line-alerts/system-messages.json
~/.eqa/config/line-alerts/who.json

I think that should be each of the config files which keep the version string in them for regeneration following new versions.
__________________
Last edited by Indefinite; 10-03-2022 at 03:32 PM..
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:42 PM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.