Recent Topics

Ads

[Addon] Scenario Alerter

Here you can post addons, or anything related to addons.
Forum rules
Before posting on this forum, be sure to read the Terms of Use
User avatar
ztil
Posts: 39

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?
[P&P] Ztil - Squig Herder
[P&P] Zlurp - Shaman

[P&P] Zinista - Shadow Warrior

Ads
User avatar
Caffeine
Posts: 611

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: 39

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

[P&P] Zinista - Shadow Warrior

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
Community Management
Posts: 728
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
Helpful links:

Install guide for Linux
Install guide for Windows
Offical RoR Discord

AUR package for WARAddonClient

-------------------------------------------------------------------
My Linux Gaming Videos

User avatar
sullemunk
Addon Developer
Posts: 1213

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
Community Management
Posts: 728
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
Helpful links:

Install guide for Linux
Install guide for Windows
Offical RoR Discord

AUR package for WARAddonClient

-------------------------------------------------------------------
My Linux Gaming Videos

Ads
User avatar
xpander
Community Management
Posts: 728
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
Helpful links:

Install guide for Linux
Install guide for Windows
Offical RoR Discord

AUR package for WARAddonClient

-------------------------------------------------------------------
My Linux Gaming Videos

User avatar
Caffeine
Posts: 611

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 19 guests