Using Beamdog's serverlist API, this script allows for browsing and then directly connecting to a Neverwinter Nights Enhanced Edition server, as well as rotating and timestamping client logs, all from the comfort of the terminal.
Normally, the NWN client log is overwritten every time the game is played. For those who play on NWN multiplayer servers, it is immensely useful to have an automatic log repository for making reports to the moderators or just to look back over.
Direct connecting is purported to have a number of benefits for both the player and the server host. I can't remember what they are, so you'll just have to take my word for it, but being able to immediately join a server without having to trawl through clients and the in-game menu is something I personally want.
Requires jq.
- Error handling
- Colorize & format logs
- Ditch jq, POSIX compliance
- Search & select server by string argument
- Unit tests, because why not, using shUnit2 (or other)
- Clean up & optimize code