Ladder of Wesnoth: Friends list (new script)

General feedback and discussion of the game.

Moderator: Forum Moderators

Post Reply
helling3r
Posts: 33
Joined: April 11th, 2019, 7:16 pm

Ladder of Wesnoth: Friends list (new script)

Post by helling3r »

Hello,
i spent my lunch break to quickly write up a new ladder member script as i found the old one does not work anymore, becaus my preferences file uses a new format (with square brackets).

Details and current code on github: https://github.com/hbeni/wesnoth-ladder-friends
(you just need a bash interpreter.)


It will merge the ladder members into your already existing friends list, so you now can keep your manually added friends (and ignores too!).
For distinguishing them, the script adds a "LoW" note to the generated friends, this will show up in the ingame friends browser as "<name> (LoW)", so you can easily see it there too.
The script will only manage such marked members.

It can add the whole ladder, or just parse the (supposedly active) ones from the ladder page.
Also it can clean all ladder members out, leaving you with only manually added friends.

I call it like this in my crontab:

Code: Select all

# Usage: wesnoth_ladder_friends.sh <mode> [preffile]
wesnoth-ladder-friends.sh add-ladder
For the first run you really want to back up your file, and also clean up your friends list, so it only contains friends you want always to keep (so manually remove all to-be-managed ladder members first)


Use at your own risk, if it explodes, don't blame me!
Last edited by helling3r on August 16th, 2021, 11:31 am, edited 1 time in total.
NEW LoW Linux automated friends script: GitHub project site | Forums post
helling3r
Posts: 33
Joined: April 11th, 2019, 7:16 pm

Re: Ladder of Wesnoth: Friends list (new script)

Post by helling3r »

Hi there,
I noticed the "add-ladder" command did not work. Reason was a syntax change in the ladder table output.
Fixed that in the code in first post.
NEW LoW Linux automated friends script: GitHub project site | Forums post
helling3r
Posts: 33
Joined: April 11th, 2019, 7:16 pm

Re: Ladder of Wesnoth: Friends list (new script)

Post by helling3r »

NEW LoW Linux automated friends script: GitHub project site | Forums post
helling3r
Posts: 33
Joined: April 11th, 2019, 7:16 pm

Re: Ladder of Wesnoth: Friends list (new script)

Post by helling3r »

Update at github to support 1.16.
NEW LoW Linux automated friends script: GitHub project site | Forums post
Post Reply