Results 1 to 12 of 12
  1. #1
    geoxhon's Avatar
    Join Date
    Oct 2017
    Gender
    male
    Location
    Greece
    Posts
    115
    Reputation
    10
    Thanks
    54
    My Mood
    Angelic

    Lightbulb [PYTHON]Cross Platform Parties with Console Players Before BHVR Enables Them

    Before we begin let's talk about BHVR's implementation of parties. From my research parties work in 2 ways, a P2P party and a dedicated server party. When you create a party, you create a P2P party and after you join the dedicated server party while still hosting the P2P party. Parties work this way so that they are compatible with platform provided methods of joining parties(Steam Invites). When you accept a Steam Invite for a party, you initially connect to the P2P party then your game grabs the Party ID and joins the dedicated server party. This becomes a problem when joining parties outside of your platform, P2P parties are managed by the respective platform provider(Steamworks, PSN, Xbox Live), so you simply cant join a party outside of your platform. To join a Console party we will need to skip the P2P party completely. The only case where the game doesn't join a P2P party is when it creates a party, so we will need to trick the game into thinking its creating a party while in reality it is joining one.
    PART 1 Joining A Party:
    To join the party is fairly simple, it is explained on the following code. All you need is your friends Cloud ID
    Code:
    def joinParty(PlayerID):
        global cookies, bhvr, should_join_party, party, partyid
        try:
            print('Please Make Sure You Are On The Main Menu Screen')
            print('https://steam.live.bhvrdbd.com/api/v1/party/join?playerId=' + str(PlayerID) + '&autoJoin=true')
            #Here we are joining the party using the API Request
            r = requests.post('https://steam.live.bhvrdbd.com/api/v1/party/join?playerId=' + str(PlayerID) + '&autoJoin=true', cookies={'bhvrSession': bhvr})
            print(r.text)
            if r.status_code == 200:
                #If the connection was successful we save the party information for our MITM Proxy
                should_join_party = True
                party = r.content
                data = r.json()
                partyid = data['partyId']
                print('Success. You have joined the party, click play as survivor on your game')
            else:
                print("Error! Couldn't join the party, server returned " + str(r.status_code) + ' \n This might be because you are not on the main menu or bhvr patched this')
        except:
            print('unknown error')
    PART 2 Forcing your game to connect to the party instead of creating a new one:
    For this part we will be using the MITMPROXY module for python in order to supply the correct information to our game.
    Code:
    class AddHeader():
      def request(context, flow: http.HTTPFlow) -> None:
        global party, partyid, should_join_party
        if should_join_party:
            #In the first if we are telling the game that we are not in a party. If we didnt do this, the game would send a request to remove us from the party we joined in part 1
            if 'api/v1/party?includeState' in flow.request.pretty_url:
                flow.response = http.HTTPResponse.make(404,  
                    '{"type":"DataNotFoundException","localizationCode":"notFound","message":"Unable to find requested data in {Party}"}')
    
            #We supply the party content of the party we connected previously instead of allowing the game to create one
            elif 'api/v1/party' in flow.request.pretty_url and not partyid in flow.request.pretty_url:
                flow.response = http.HTTPResponse.make(200,  
                    party)
    
            elif 'api/v1/party' in flow.request.pretty_url and partyid in flow.request.pretty_url:
                should_join_party = False
                flow.response = http.HTTPResponse.make(200,  
                    party)
    IMPORTANT INFORMATION:
    This script is not meant to be copy pasted. However it is meant to give you an idea how to implement it on a project of yours.
    You can not use this to join steam parties of popular streamers(BHVR has patched this).
    You can not use this to join console parties of popular streamers, BHVR hides the cloud id in settings so you cant trick them into revealing it.
    You can use this method to join DBD Mobile parties too but you will not be able to connect to a match.
    If you use this to any of your projects or mpgh posts, a mention is appreciated
    Last edited by geoxhon; 07-08-2020 at 05:06 AM.

  2. The Following 6 Users Say Thank You to geoxhon For This Useful Post:

    adambro3 (07-11-2020),FluxDot (07-08-2020),IThoughtItWasANerf (07-08-2020),[MPGH]T-800 (07-08-2020),thezxcvballs (07-08-2020),WalrusWalrus69 (07-08-2020)

  3. #2
    WalrusWalrus69's Avatar
    Join Date
    Jun 2018
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    1
    My Mood
    Yeehaw
    Can they see my dbd friend tag if I join them?

  4. #3
    geoxhon's Avatar
    Join Date
    Oct 2017
    Gender
    male
    Location
    Greece
    Posts
    115
    Reputation
    10
    Thanks
    54
    My Mood
    Angelic
    Quote Originally Posted by WalrusWalrus69 View Post
    Can they see my dbd friend tag if I join them?
    They cannot add you to their friend list. They can see your player name and the globe icon indicating the crossplatform

  5. The Following User Says Thank You to geoxhon For This Useful Post:

    WalrusWalrus69 (07-08-2020)

  6. #4
    IThoughtItWasANerf's Avatar
    Join Date
    Jul 2020
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    My Mood
    Confused

    How to use?

    How do I use this?

  7. #5
    WalrusWalrus69's Avatar
    Join Date
    Jun 2018
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    1
    My Mood
    Yeehaw

    Question

    Quote Originally Posted by geoxhon View Post
    They cannot add you to their friend list. They can see your player name and the globe icon indicating the crossplatform
    I mean, do they have any idea of who it is?

    edit: nvm
    Last edited by WalrusWalrus69; 07-09-2020 at 11:02 AM. Reason: nvm

  8. #6
    WalrusWalrus69's Avatar
    Join Date
    Jun 2018
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    1
    My Mood
    Yeehaw

    Question Patched?

    Code:
    {"type":"UnauthorizedException","localizationCode":"ALREADY_CONNECTED","message":"Unauthorized, Conflict : You are already connected !"}
    
    Error! Couldn't join the party, server returned 401 
     This might be because you are not on the main menu or bhvr patched this
    Patched already or did I fuck something up?

  9. #7
    Neyato's Avatar
    Join Date
    Sep 2018
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by WalrusWalrus69 View Post
    Code:
    {"type":"UnauthorizedException","localizationCode":"ALREADY_CONNECTED","message":"Unauthorized, Conflict : You are already connected !"}
    
    Error! Couldn't join the party, server returned 401 
     This might be because you are not on the main menu or bhvr patched this
    Patched already or did I fuck something up?
    how do you use it ? (pls it's important)

  10. #8
    geoxhon's Avatar
    Join Date
    Oct 2017
    Gender
    male
    Location
    Greece
    Posts
    115
    Reputation
    10
    Thanks
    54
    My Mood
    Angelic
    Quote Originally Posted by WalrusWalrus69 View Post
    Code:
    {"type":"UnauthorizedException","localizationCode":"ALREADY_CONNECTED","message":"Unauthorized, Conflict : You are already connected !"}
    
    Error! Couldn't join the party, server returned 401 
     This might be because you are not on the main menu or bhvr patched this
    Patched already or did I fuck something up?
    Wrong cookie most likely

  11. #9
    Neyato's Avatar
    Join Date
    Sep 2018
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by geoxhon View Post
    Wrong cookie most likely
    can you do a tutorial on how to use this please

  12. #10
    doriñocoss's Avatar
    Join Date
    Mar 2019
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    3
    My Mood
    Stressed
    plz, do a tutorial. thanks.

  13. #11
    adambro3's Avatar
    Join Date
    Nov 2015
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    Please tutorial *-*

  14. #12
    johnhei's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    19
    Reputation
    23
    Thanks
    4
    Are you willing to sell a completed tool for this? I'd pay for a tool and a tutorial (something simple idk how to code)

Similar Threads

  1. [Release] DUtility - The unique python coded utility (with Autohotkey player)
    By chikencow in forum Combat Arms Spammers, Injectors and Multi Tools
    Replies: 20
    Last Post: 05-22-2012, 09:32 AM
  2. the fag with hack of before.
    By konefke in forum CrossFire Hacks & Cheats
    Replies: 7
    Last Post: 02-17-2010, 11:49 AM
  3. Dissable Killstreaks with console?
    By icrap in forum Call of Duty Modern Warfare 2 Help
    Replies: 5
    Last Post: 02-08-2010, 10:18 PM
  4. help with fl4sh player as sigy
    By Jarppi in forum General
    Replies: 6
    Last Post: 01-31-2010, 02:26 AM
  5. Can u use the gain experience hack with 1 player
    By mjt20mik in forum WarRock - International Hacks
    Replies: 7
    Last Post: 02-05-2006, 02:20 AM