Recent Topics

Ads

[Addon] Scenario Alerter

Here you can post addons, or anything related to addons.

Moderators: Management, Web Developer

Forum rules
Before posting on this forum, be sure to read the Terms of Use
User avatar
ztil
Posts: 18

Re: [Addon] Scenario Alerter

Post#21 » 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?
Ztil - Squig Herder
Zlurp - Shaman

Ads
User avatar
Caffeine
Legacy RR80
Posts: 556

Re: [Addon] Scenario Alerter

Post#22 » Fri Aug 02, 2019 9:07 pm

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.
VinyUI | FPS Guide | Scenario Alert | Image Caffeine Image Decaf Image Vermont Image Nevada

User avatar
ztil
Posts: 18

Re: [Addon] Scenario Alerter

Post#23 » Sat Aug 03, 2019 12:00 am

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. :)
Ztil - Squig Herder
Zlurp - Shaman

jonhanaley
Posts: 1

Re: [Addon] Scenario Alerter

Post#24 » Tue Nov 26, 2019 8:55 am

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

nickwilson
Posts: 1

Re: [Addon] Scenario Alerter

Post#25 » Mon Feb 10, 2020 5:15 am

Very good ad-on, thank you for creating and sharing. suonerie gratis
Last edited by nickwilson on Thu Feb 13, 2020 7:57 am, edited 1 time in total.

User avatar
xpander
Posts: 83
Contact:

Re: [Addon] Scenario Alerter

Post#26 » 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

User avatar
sullemunk
Addon Developer
Posts: 853

Re: [Addon] Scenario Alerter

Post#27 » Mon Feb 10, 2020 10:08 am

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
Image
Image Ethreal   Image Corque   Image Urgiz   Image Loxley   Image Chilli   Image Maduza

User avatar
xpander
Posts: 83
Contact:

Re: [Addon] Scenario Alerter

Post#28 » Mon Feb 10, 2020 10:48 am

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

Ads
User avatar
xpander
Posts: 83
Contact:

Re: [Addon] Scenario Alerter

Post#29 » 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:
Image

User avatar
Caffeine
Legacy RR80
Posts: 556

Re: [Addon] Scenario Alerter

Post#30 » Mon Feb 10, 2020 8:14 pm

xpander 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:
Image
Some linux sorcery from earlier in this thread: viewtopic.php?f=66&t=20524&start=10#p339877
VinyUI | FPS Guide | Scenario Alert | Image Caffeine Image Decaf Image Vermont Image Nevada

Who is online

Users browsing this forum: No registered users and 2 guests