Re: [Addon] Scenario Alerter
Posted: Thu Aug 01, 2019 10:22 pm
Thank you for this addon, it works great. Do you share the source code for the exe-file somewhere?
Warhammer Online
https://www.returnofreckoning.com/forum/
https://www.returnofreckoning.com/forum/viewtopic.php?t=20524
It's included in the archive, it's the sirena.au3 file.ztil wrote: Thu Aug 01, 2019 10:22 pm Thank you for this addon, it works great. Do you share the source code for the exe-file somewhere?
The addon writes to a file on the disc wich the program checksxpander wrote: Mon Feb 10, 2020 8:02 am hmm its not opensource?
i wanted to investigate this to make a linux script that could use this and send notification to desktop and play sound with the help of notify-send and aplay
but i dont quite understand how it gets the info from the addon
sullemunk wrote: Mon Feb 10, 2020 10:08 am The addon writes to a file on the disc wich the program checks
Code: Select all
#!/bin/bash
# WAR Scenario Alerter
# Requires notify-send, aplay and ScenarioAlert addon
# by xpander
# Go into the directory
BINDIR="$(dirname "$(readlink -fn "$0")")"
cd "$BINDIR"
# Parameters
# filename
file="scenarioAlert.log"
# Check for filesize to only trigger if its bigger than 1
filesize=1
# icon name
icon="warhammer-online-icon.png"
# Notification time in milliseconds
ntime="20000"
# Check inteval in seconds
ctime=5
# Audio file
audio="notify.wav"
# Check file md5sum
mdsum=$(md5sum ${file})
# Do the magic
while sleep $ctime; do
mdsum_new=$(md5sum ${file})
if [[ ${mdsum_new} != ${mdsum} && ($(stat -c%s $file) > $filesize) ]] ; then
# Notification with sound
notify-send "Warhammer:Return of Reckoning" "Scenario Pop" --icon="$BINDIR/$icon" --urgency=critical -t $ntime && aplay "$BINDIR/audio/$audio"
# Generate new md5sum
mdsum=${mdsum_new}
fi
done
Some linux sorcery from earlier in this thread: viewtopic.php?f=66&t=20524&start=10#p339877xpander wrote: Mon Feb 10, 2020 7:38 pm ok packaged version if anyone cares. Thanks Caffeine
for linux users
https://www.upload.ee/files/11111000/Sc ... ar.gz.html
shows up like this:Spoiler: