Serious Sam Fusion 2017 (beta)

Serious Sam Fusion 2017 (beta)

45 ratings
Discord Rich Presence
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
195.998 KB
16 Nov, 2019 @ 6:43pm
28 Nov, 2019 @ 7:31am
2 Change Notes ( view )

Subscribe to download
Discord Rich Presence

Description


The following mod enables Rich Presence for Fusion on your Discord chatting application.
What this means is that when you play Fusion, Discord will display extended details on your profile about your playsession, such as your current level, gamemode, time played, and more.

How does it work?

As you might have already guessed, this is not very feasible without using an external application. This mod relies on a bridging application that handles creating the RPC connection with discord, written entirely by nano in Python. The only thing it does is spawn an HTTP server at localhost:33310 that listens for GET requests. The mod passes data to that server which then handles passing it forwards to Discord.

To make things easier, the application was made into a windows service, which means that it runs in the background, away from the user. No annoying windows or console prompts, plus it auto-starts with the operating system. The code for it is freely available at https://github.com/naomiEve/FusionRPCBridge (With some modifications that aren't done yet, it'll also easily run from the terminal on Linux/BSD/Mac/etc.)

How to install

1. Obviously, subscribe to this mod.
2. Download the prepackaged binary.[github.com]
3. Save it into a place where you won't remove it from.
4. Open the command prompt (cmd.exe) as an administrator.
5. Navigate to the folder where you've saved the binary file. (for example, if you've saved the file in "C:/Users/*username*/Documents", you would enter "cd c:\Users\*username*\Documents". Everything is case sensitive, so pay attention!)
6. Run "bridge.exe --startup auto install" to install the service. (You can also do "--startup manual", if you don't want the service to start automatically)
7. After installing, type "sc start FusionRPCBridge" to start the service.

If you're having any issues following these instructions, check out the youtube video in this page.




How to uninstall the bridge
1. Open the command prompt (cmd.exe) as an administrator.
2. Navigate to the folder where you've saved the binary file.
3. Run "sc stop FusionRPCBridge".
4. After stopping the service, run "bridge.exe remove" to uninstall the service.


FAQ

Q.1: Can we submit pictures to display for custom maps?
A.1: Discord has a limit on the amount of art assets you can upload to an application, so no. :(

Q.2: It's not working in multiplayer
A.2: In multiplayer, the host needs to have the mod installed in order for rich presence to work. This is because client functionality is limited, and relies on the host sending them the necessary info.

Q.3: It's not working at all
A.3: Open task manager, and in the "Services" tab, check that "FusionRPCBridge" is running. If it isn't, start it. If it is running and rich presence is still not working, refer to the answer below.

Q.4: Something is wrong/I'm having issues/I have a question
A.4: Double check that you've followed all the instructions properly. If you're positive you've done everything properly, write a comment and we'll try to figure out what's the issue.


Credits

noam 2000 - Scripting on Fusion's side
nano - The bridging application (basically all the difficult and important parts of this)
23 Comments
Аанг | SeriousRoman 18 Sep, 2024 @ 1:07am 
Thanks:bombsmile:
noam 2000  [author] 20 Dec, 2022 @ 7:22am 
Should work the same with FusionVR.
Skyguy 19 Dec, 2022 @ 9:31pm 
VR status yet?
tensor algebra  [author] 16 Apr, 2021 @ 12:16am 
you can check if the service is running by navigating to "localhost:33310" in any web browser. if the service works, you should see a prompt saying: "Hello from within the windows service!"
noam 2000  [author] 15 Apr, 2021 @ 5:47pm 
If you've used "bridge.exe --startup auto install", it should start automatically, but the service may tend to stop after a period of time because ???

You can try doing the following:

1. Go to Administrative Tools - Services
2. Right click on "Fusion RPC Bridge", then properties
3. Click on the Recovery tab, and set the following:
First Failure = Restart the Service
Second Failure = Restart the Service
Subsequent Failures = Restart the Service
Reset Fail count After = 120
Restart Service after = 0

Let me know if it helps!
IAmSympathy 15 Apr, 2021 @ 5:19pm 
I did everything it said and it works, the only thing is that it doesn't start automatically. Perhaps I misunderstood something ?
tensor algebra  [author] 7 Dec, 2020 @ 1:31pm 
Moddable only.
MrTest5009 7 Dec, 2020 @ 1:29pm 
Can this also work for unmodded or is it just modded only?
The solar flare. 30 Jan, 2020 @ 7:18am 
Why did you make this mod? You shouldn't have to
PootisMayo 19 Nov, 2019 @ 3:31pm 
I'd make another joke here but you all would ignore it easily like any other joke.