Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Not an Issue] How to get Rune Page Name/List and/or Master Page Name/List? #11

Open
Apothems opened this issue Jul 21, 2012 · 8 comments

Comments

@Apothems
Copy link

How do I check a summoner's rune page list and the names of each rune page?

and/or

How do I check a summoner's mastery page list and the names of each master page?

@encratite
Copy link
Owner

Check out the RiotControl repository to see examples of how the rune page data is retrieved and stored in nice objects. I'm afraid I've never looked into the masteries. You would probably want to use a TLS MITM proxy approach to log what the regular client does. I haven't done that in a while.

@Apothems
Copy link
Author

Can you point me to specific files?

@encratite
Copy link
Owner

RiotControl/RiotGear/Worker/UpdateRunes.cs is probably related. Ultimately that data comes from the RPC.GetAllPublicSummonerDataByAccountAsync(AccountId, new Responder(GetPublicSummonerData, Error)); call, I think.

So ultimately the rune data is from getAllPublicSummonerDataByAccount as described in RPCService.cs in LibOfLegends.

@Apothems
Copy link
Author

Thanks! I'll look into those!

@Apothems
Copy link
Author

Well I'm looking at the RPC stuff and I've come to a block:
Call(SummonerService, "getAllSummonerDataByAccount", responder, arguments);

Which I also want to make sure, "by account" really means "by summoner" right?

@encratite
Copy link
Owner

That's the wrong one, you want:

public AllPublicSummonerDataDTO GetAllPublicSummonerDataByAccount(int accountID)

(or its asynchronous brother)

Look at the signature, it says account ID.

@Apothems
Copy link
Author

Yes I think that method led me to that one:

return (new InternalCallContext(GetAllPublicSummonerDataByAccountInternal, new object[] { accountID })).Execute();

So I thought "Must need to look at GetAllPlublicSummonerDataByAccountInternal:
Call(SummonerService, "getAllPublicSummonerDataByAccount", responder, arguments);

Which I thought "I'm stuck!"

Uhhhh is it possible for you to write pseudocode for me for the process of getting their rune page? Since I've never programmed in C# (I think that's the language you're using).

@encratite
Copy link
Owner

You probably want to browse the definitions of all the structures inside AllPublicSummonerDataDTO in the C# code for that. I can't be arsed to write additional code just to show you. I don't remember any of this stuff anyways. The code in UpdateRunes.cs already demonstrates how to iterate over the rune pages and how to retrive their names etc.

That component is responsible for converting the AMF data to SQL, basically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants