Page 1 of 2

Searching addon named "CheckRR"

Posted: Fri Mar 10, 2017 4:11 pm
by Zaru
Hey folks,

I've seen a slayer guide blog where the poster mentions "CheckRR" addon for getting the renown rank of the enemy target.
But the link, that he is referring to, is a war.curse db link and as we all know, war curse is down.

Thus i've searched the whole www over diffrent search engines finding out nothing worthy.
I've found the programmer (an italian man) but before I distrub him ....

So ... I'm a software developer and it was time to get my hands dirty.
I've programmed a while in lua and I've tried to write a program in C# to gather the renown rank of a player from the ROR website (quite easy with POST).
But due to the fact, that in lua (integrated in warhammer) there is no possibility to get a http/POST socket up and send/get requests from the website. Neither it is possible to access IO to write and read the name of the target enemy and lookup with a C# program in the website armory the renown rank to send it in thefile back again.
Furthermore I've remembered that there is a way to persistent save variables .... SavedVariables.
But it doesn't work properly in my codes.
All I've got now is an addon that retreives the name of the target, but I'm stuck now here.

Ok ok ok you see I've done something, but all I've reached is just a tear in a waterfall.


Does anybody have this addon and is willing to share it with me?
OR: Is another lua/addon developer ready to share his/her knowledge with me to reach my superior goal: Getting the renown rank ingame from my target?



[Aunt EDITH:
The reason why I'm programming ways around is that the WAR API doesn't obtain a target.getRR() method as far as I've seen. If I'm totally on a false way, please tell me!

AND @ Staff: If obtaining renown rank of enemy by addon is forbidden, please tell me.]

Re: Searching addon named "CheckRR"

Posted: Fri Mar 10, 2017 4:36 pm
by shaggyboomboom
The API doesn't obtain the target's RR, just use thr armory on the website.

Re: Searching addon named "CheckRR"

Posted: Fri Mar 10, 2017 5:36 pm
by Zaru
Seriously, did you even read my development details?

I tried to use programmatically the ROR armory website.
If you're interested HOW I did this, tell me in private message.

Otherwise please keep the thread clear for real suggestions/advices. Thanks.

Re: Searching addon named "CheckRR"

Posted: Fri Mar 10, 2017 7:09 pm
by Sigimund
The original addon read the renown title (eg lordling) under your target's name and displayed their renown bracket (see http://warhammeronline.wikia.com/wiki/Renown for the titles and brackets).

Re: Searching addon named "CheckRR"

Posted: Fri Mar 10, 2017 8:53 pm
by Karl
If I recall correct this addon stopped working on live with patch 1.4.1 when ranks 80-100 were introduced. The parameters needed to show correct rank were not available after that patch.

Re: Searching addon named "CheckRR"

Posted: Sat Mar 11, 2017 12:59 am
by Caffeine
Using the armory for this is not the best idea. If I understand you correctly what you are thinking of is:
  • player selects a new target
  • an addon get's player name from API and saves it to file
  • script reads file, parses the name and builds an armory URL
  • script makes a http request with the URL
  • renown is parsed from HTLM code of the page
  • in game addon displays the RR
Right off the bat you will most likely get in to trouble for writing software that interacts with the client.
We have very strict rules regarding that here.

Second issue: latency. The delay between selecting a target and getting the RR is going to be monstrous if you compare it to how often people change targets in this game.

A different way to do this would be to download the list of all players currently online every x seconds, build a json object and store it as a lua file. An in game addon can then parse the file and search for the name of your target every time you select a new one to get the RR (this time much faster).

The problem here is that we no longer have the entire player list in a single web page. You can't even open a specific page of the results via URL manipulation. So it's a lovely idea but it's just not practical.

Re: Searching addon named "CheckRR"

Posted: Sat Mar 11, 2017 7:37 am
by Critos
Actually, you can build an addon specifically for scenarios.

Every time you join scenario (when it starts), browse all enemy via armory and build a json as Caffeine suggested.

Re: Searching addon named "CheckRR"

Posted: Sat Mar 11, 2017 7:46 am
by Zaru
Hey folks,

thank you very much for all the ideas!
Yeah its a lovely thought though.

Ok ok hm what do I do ...
I think I'll try to program an addon that uses the lookup table of renown titles to specify a range. Somehow I get used to that idea since the origin addon used this method.

Since I'm done, I'll like to share this addon with you guys.
Keep steady ;)

Re: Searching addon named "CheckRR"

Posted: Sat Mar 11, 2017 8:20 am
by Zaru
AhI've forgotten something:
@Caffeine:
IO interactions aren't available in warhammer lua addon programming.
Also Socket building with http POST is not possible.

In WoW there was an addon that allows other addons to import libaries such as socket, io read/write, etc.
If I'm finished with the title renown addon, I'll try to convert the importer to warhammer.

Re: Searching addon named "CheckRR"

Posted: Tue Jun 27, 2017 11:06 am
by Vance
Zaru wrote: Since I'm done, I'll like to share this addon with you guys.
Keep steady ;)
Thank you for your effort. Is there any update to the topic?

Cheers,
Vance