NWN2 client extension logs to Forum Readable text script

Off-Topic Community Conversations and Discussions

Moderators: Moderator, DM

User avatar
SpookySkeleton
Posts: 56
Joined: Mon Aug 31, 2020 11:03 pm

NWN2 client extension logs to Forum Readable text script

Unread post by SpookySkeleton »

Hello,

I've been working on a script to translate the NWN2 extension logs into text that can be pasted into the forum that looks pretty :)
I figured I would make it publicly available as its mostly done (though there is room for improvement and possible bugs!)

Follow This link to download and press the green "Code" button, download as zip and extract anywhere.

Here are the instructions for use :
Hidden: show
Put log output from your nwn2 client extension into "input.txt"

logs are different for players and DMs, so there are different .bat files to run for each.

Run one of the following :

Run_DM.bat - translates text into bgtscc forum colors, all player names are the same color

Run_DM_Rainbow.bat - translates text into bgtscc forum colors, player names are different colors (up to 10, then program will recycle colors)

Run_Player.bat - translates text into bgtscc forum colors, all player names are the same color

Run_Player_Rainbow.bat - translates text into bgtscc forum colors, player names are different colors (up to 10, then program will recycle colors)

The program will run in a console, if there are no errors, press enter twice to exit the program.

Open "output.txt" and copy text into forum message!
Possible Bugs and what to do :
Hidden: show
DMs! I have limited output from your logs, you will probably find more problem lines than players.

This script will most likey run into some messages I hadn't coded for, in most cases simply going into the text and removing the problem lines (before or after translation) will work fine. Sending them to me in a message would be appreciated :)

In the case that your program stops and gives you some gobledeegook program error and doesn't complete, please just sent the error and whatever text you were trying to translate to me and I will fix the program. I will send you the translated text as a response to make sure you get it one way or another!
Lines with the following text will be ignored and not included in the final output (these can be expanded, please let me know):
Hidden: show
For DMs :

Player Joins:
Player Leaves:
[Tell]

For Players :

Player Joins:
Player Leaves:
[Tell]
[Whipser]
[Notice]
-- Samples --

DM - No Rainbow :
Hidden: show
14:45 [WinterborneTE] Nathan Goldenmane: Could it be trimmed to be less abusable by bad actors?
14:45 [Leramak] Morgan: (Thank you :P )
14:45 [SlipperyCatfish] Je'stance Tir'ei'makiir: Raises hand
14:45 [WinterborneTE] Nathan Goldenmane: Fingerguns to Jestance.
14:46 [SlipperyCatfish] Je'stance Tir'ei'makiir: My experience was that they could spawn in placeables, set up encounters and distribute exp. I don't know the exact ins and outs of what their powers are but I would definitely want limitations placed on them
DM - Rainbow :
Hidden: show
14:45 [WinterborneTE] Nathan Goldenmane: Could it be trimmed to be less abusable by bad actors?
14:45 [Leramak] Morgan: (Thank you :P )
14:45 [SlipperyCatfish] Je'stance Tir'ei'makiir: Raises hand
14:45 [WinterborneTE] Nathan Goldenmane: Fingerguns to Jestance.
14:46 [SlipperyCatfish] Je'stance Tir'ei'makiir: My experience was that they could spawn in placeables, set up encounters and distribute exp. I don't know the exact ins and outs of what their powers are but I would definitely want limitations placed on them
Player - No Rainbow :
Hidden: show
Player1: Ah, well this is news to me. she looks to the pair
Player2: Yes, as is to me.
Player2: We will see.
Player3: (brb!
Player - Rainbow :
Hidden: show
Player1: Ah, well this is news to me. she looks to the pair
Player2: Yes, as is to me.
Player2: We will see.
Player3: (brb!
Any questions or suggestions please let me know. I am -very- open to color suggestions, I am really not the best with color schemes!
Lys Beskytte - Sorceress

Laila - Adeptus Deathbringer, Harbinger of the Undeath, Temple of All Seeing Eyes
Post Reply

Return to “Community”