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

Add invites #76

Open
IncPlusPlus opened this issue Sep 8, 2021 · 4 comments
Open

Add invites #76

IncPlusPlus opened this issue Sep 8, 2021 · 4 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@IncPlusPlus
Copy link
Owner

IncPlusPlus commented Sep 8, 2021

Allow for people to join games or create invitations through discord. This one is gonna be the absolute hardest to implement. I'm not sure if it's even gonna be possible externally.

This may or may not be a useful resource

The goal here is to use a discord RP button that says "ask to join" and stuff like that.

@IncPlusPlus IncPlusPlus added enhancement New feature or request help wanted Extra attention is needed labels Sep 8, 2021
@IncPlusPlus IncPlusPlus self-assigned this Sep 8, 2021
@IncPlusPlus IncPlusPlus added this to the Backburner milestone Oct 13, 2021
@headassbtw
Copy link
Contributor

i may have an idea on this, i’ll look into it

@IncPlusPlus IncPlusPlus removed the help wanted Extra attention is needed label Nov 24, 2021
@IncPlusPlus
Copy link
Owner Author

IncPlusPlus commented Nov 24, 2021

I've been working on this obsessively over the past several weeks. As it turns out, all of the invite handling happens in the Origin.exe process in OriginClient.dll. I've gotten a setup that allows for the reliable injection of the .NET Core CLR and my own executable code into the active Origin instance. The injected code hooks the right functions to be able to know when invites are sent and received by the client. It can also call those functions itself. Right now, I'm able to call functions to invite a user by their Origin ID and accept an incoming invite from a specific ID.

The current priority is to check whether it's possible to send an invite to an Origin user who isn't on the sender's friends list. If that's possible, that'd make my life a lot easier. If not, there are more APIs that I'll need to tear apart involving querying the friends list, adding friends, and then sending/accepting the invite. This is super complicated for a simple request of "can you add the join button?" but it's actually possible! I didn't think it could ever happen but by being mind-bogglingly stubborn, I've gotten close to making this a reality. Let's just hope that the EA app doesn't improve their Titanfall 2 rich presence beyond the stub of an implementation they already have and invalidate all my hard work.

@btarg
Copy link

btarg commented Dec 30, 2021

Can't wait to see this feature! Northstar doesn't make it super easy to join a friend's game so this is an important feature to have

@IncPlusPlus
Copy link
Owner Author

IncPlusPlus commented Jan 10, 2022

While I did manage to get Origin invites working (with one caveat), my work is now useless since uhhhhh... this is happening.

image

@iCrazyBlaze I hadn't even started looking into how to make this possible with Northstar. Northstar doesn't utilize the Origin lobby functionality at all from what I can tell. It's gonna be pretty hard for me to integrate Northstar into this (the implementation will be completely different) but I'll sure as hell try.

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

No branches or pull requests

3 participants