shoppingtriada.blogg.se

Bfbc2 splayer stats
Bfbc2 splayer stats













bfbc2 splayer stats

Retrieve all available game (server) lobbies.Your IP address has been temporarily blocked due to a large number of HTTP requests. Initialize the connection to the Theater backend by sending the initial CONN/hello packet.Īuthenticate against/log into the Theater backend using the lkey retrieved via FESL. Port of the theater backend for the platform (can be retrieved via FESL) IP/hostname of the theater backend for the platform (can be retrieved via FESL) TheaterClient(host, port, lkey, platform, timeout)Ĭreate a new TheaterClient instance. Key to sort leaderboard by, must be one of deaths, elo, kills, rank, score, time, veteranīy default, only deaths, kills, score and time are retrieved (see STATS_KEYS constant for additional available keys)įrom pybfbc2stats import FeslClient, Platform client = FeslClient( 'ea_account_name', 'ea_account_password', Platform. Maximum placement/rank on the leaderboard (1-250001) Minimum placement/rank on the leaderboard (1-250000) You will, however, need to increase your client-wide timeout if you are planning to retrieve large chunks of the leaderboard or lots of stats attributes. Note: There does not seem to be a hard limit to either the rank rage size nor the number of stats keys that can be retrieved for each player. Retrieve a given range of players on the leaderboard with the given list of stats, sorted by a given key, on the client instance's platform. get_stats( 223789857, )įeslClient.get_leaderboard(min_rank, max_rank, sort_by, keys) One of: Namespace.pc, Namespace.ps3, Namespace.xbox360įrom pybfbc2stats import FeslClient, Platform client = FeslClient( 'ea_account_name', 'ea_account_password', Platform.

bfbc2 splayer stats

Note: Since this method accepts a namespace argument, it can lookup usernames in any namespace (on any platform), regardless of which Platform was used to create the client instance. Lookup a list of url encoded/quoted usernames and return any matching personas (only exact name matches are returned). Get the hostname and port of the theater backend for the client's platform.įeslClient.lookup_usernames(usernames, namespace) Get the login key (lkey) used to authenticate on theater backend. Send the login details to the FESL server. Send the response to the FESL server's "memcheck" challenge. Send the initial "hello" packet to the FESL server. How long to wait for data before raising a timeout exception (timeout is applied per socket operation, meaning the timeout is applied to each read from/write to the underlying connection to the FESL backend) One of: Platform.pc, Platform.ps3 (Xbox 360 is not yet supported) \ealist.exe -A -a bfbc2-pc (the created account will work for all platforms). If your account does not work, you can create a new one using ealist. Note: The account has to be valid for Bad Company 2. FeslClient(username, password, platform, timeout) get_servers( int( lobby))īoth the default and the async clients offer the same methods with the same signatures. # Now use the theater client to get the server list async with AsyncTheaterClient( theater_hostname, theater_port, lkey, Platform. Theater_hostname, theater_port = await feslClient. # First, get theater details and login key (lkey) from FESL async with AsyncFeslClient( 'ea_account_name', 'ea_account_password', Platform. Import asyncio from pybfbc2stats import AsyncFeslClient, AsyncTheaterClient, Platform async def main():















Bfbc2 splayer stats