We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 82f376c + fe1eeb1 commit 6f1f129Copy full SHA for 6f1f129
1 file changed
scripts/logfile-parser.sh
@@ -6,11 +6,11 @@ LogParser() {
6
while IFS= read -r line; do
7
echo "$line"
8
9
- if [[ "$line" == *"is using new name"* ]]; then
+ if [[ "$line" == "[userid:"*"] player"*"connected islocalplayer="* ]]; then
10
11
# Extract the steamid and character name
12
steamid=$(echo "$line" | awk -F'[[]|[ :]+|[]]' '{print $3}')
13
- char_name=$(echo "$line" | awk -F'new name ' '{print $2}')
+ char_name=$(echo "$line" | awk -F'player | connected' '{print $2}')
14
LogDebug "Character Name: $char_name ($steamid)"
15
16
# Store character name for future use
0 commit comments