Page 3 of 5
Re: [Addon] Scenario Alerter
Posted: Thu Aug 01, 2019 10:22 pm
by ztil
Thank you for this addon, it works great. Do you share the source code for the exe-file somewhere?
Re: [Addon] Scenario Alerter
Posted: Fri Aug 02, 2019 9:07 pm
by Caffeine
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?
It's included in the archive, it's the sirena.au3 file.
Re: [Addon] Scenario Alerter
Posted: Sat Aug 03, 2019 12:00 am
by ztil
Ok, great thanks! I like the idea of using an external executable playing sound files based on a log from the addon since warhammer lua doesn't seem to include any function for playing custom sounds in game, only play built in sound effects like quest complete and similar.
Re: [Addon] Scenario Alerter
Posted: Tue Nov 26, 2019 8:55 am
by jonhanaley
I tried downloading and found it was awesome, thank you. Only thing is the sound is a bit small. The volume of the
ringtones is a bit louder, which is great
Re: [Addon] Scenario Alerter
Posted: Mon Feb 10, 2020 5:15 am
by nickwilson
Very good ad-on, thank you for creating and sharing.
suonerie gratis
Re: [Addon] Scenario Alerter
Posted: Mon Feb 10, 2020 8:02 am
by xpander
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
Re: [Addon] Scenario Alerter
Posted: Mon Feb 10, 2020 10:08 am
by sullemunk
xpander 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
The addon writes to a file on the disc wich the program checks
Re: [Addon] Scenario Alerter
Posted: Mon Feb 10, 2020 10:48 am
by xpander
sullemunk wrote: ↑Mon Feb 10, 2020 10:08 am
The addon writes to a file on the disc wich the program checks
Thanks! That should be easy then
Ok heres the script that works by checking file md5sum - if it changes it notifys
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
edit: ok had to add filesize check also, cause the file will get cleared when character logs out
Re: [Addon] Scenario Alerter
Posted: Mon Feb 10, 2020 7:38 pm
by xpander
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:
Re: [Addon] Scenario Alerter
Posted: Mon Feb 10, 2020 8:14 pm
by Caffeine
Some linux sorcery from earlier in this thread:
viewtopic.php?f=66&t=20524&start=10#p339877