Page 1 of 1

[ADDON] Syncing friends between chars

Posted: Thu Dec 31, 2015 12:40 am
by ropuch
Hi,

I "wrote" an addon for TheSchocker from #martyr_square, and as he thinks it can be usefull to other ppl - I'm sharing
Stage: Working beta
Restriction: Lame exploiters (this one is for you, J**)

https://mega.nz/#!HF9hUYQR!HnyAyAXTRaEu ... RTBWfZvOBc

WarBoard_ext: syncing friends between chars, storing them in SavedVariables. You can also add a comment for stored friend. It's tweaked WarBoard_Friends mod (so you need a warboard addon). After it's enabled, hoover your mouse over WB_Friends icon - it should sync between friend list with savedvariable file. Default description for saved friend is class/guild (when available) or "Friend".
Commands available:

/ext desc - toggle friends' description
/ext help - show this help
/ext off - toggle showing offline friends
/ext set Friendame=Description - set friend description
/ext show - show saved friend list
/ext sync - sync friends with saved file

Default settings: show only online friends, show friends' description
Setting (and friends' desc) can be changed by editing WAR\user\settings\GLOBAL\WarBoard_ext\SavedVariables.lua

TODO:
- saving current configuration to file
- displaying current conf
- toggle debug messages
- store local (per character) copy of friends' list (just in case)

Use, break, abuse, sent a feedback.

Cheers!
ropuch

Re: [ADDON] Syncing friends between chars

Posted: Thu Dec 31, 2015 2:24 am
by magicthighs
Well, the reason I said this is useful is that it's **** useful, pardon my french :P
Shared persistent friends list between all your characters is amazing, just think of what this can mean for coordinating warbands.

Re: [ADDON] Syncing friends between chars

Posted: Thu Dec 31, 2015 1:30 pm
by Zhentarim
So this like a working friends list? Awesome!

Re: [ADDON] Syncing friends between chars

Posted: Thu Dec 31, 2015 1:34 pm
by Tesq
well it's a lot i lf something like this thx

Re: [ADDON] Syncing friends between chars

Posted: Thu Dec 31, 2015 4:54 pm
by taccr
Looks good so far. A few things here:

1.) Typo: ShOut("/ext set Friendame=Description - set friend description")

2.) Write settings back to file:
function WarBoard_ext.save():
Add:
WarBoard_ext.data["config"]["offline"] = WarBoard_ext.offline
WarBoard_ext.data["config"]["comments"] = WarBoard_ext.comments
WarBoard_ext.data["config"]["deb"] = WarBoard_ext.deb

3.) Remove Realm based friendlist and make it all global:
local _realm = "all"
Remove
if (GameData.Player.realm == 1) then
_realm = "order"
[..]

Instead add a blue/red color and an extra option to set what side the friend is on.
Or better, on mouseover create a friend window for each realm.

4.) Make it sync/add/remove on login and not on mouseover.

5.) Removing friends doesn't work. They don't get deleted from the file and are readded on the next login.

Re: [ADDON] Syncing friends between chars

Posted: Sun Jan 10, 2016 6:38 pm
by DaWolf
Works well here !
Thanks :D

Re: [ADDON] Syncing friends between chars

Posted: Sun Jan 10, 2016 6:41 pm
by ropuch
(Some) changes suggested by taccr will be added in this week ;)

Re: [ADDON] Syncing friends between chars

Posted: Fri Apr 12, 2019 3:13 pm
by buckmaster
I wanted to resurrect this thread as I desperately am seeking an improvement to in-game Friends. Having a "note" attached to your list of Friends is basically required for a social game like this. In addition to that a synchronized Friends list between characters. FastFriends add on does not work. I've tried it, and it only fulfills one of these requirements anyway. So I hope to try this addition to Warboard, is anyone using this successfully?