Source Filmmaker

Source Filmmaker

SFM Discord Rich Presence
 This topic has been pinned, so it's probably important
valance  [developer] Jan 13, 2022 @ 12:14pm
BUGS
Post bugs that you find, please don't just say "It doesn't work"
Post the steps that you took to get to the bug
can i reproduce it?
Did you do anything different?
Post the error resulted in the script menu if possible
< >
Showing 1-15 of 26 comments
Ponyboy Jan 15, 2022 @ 9:11am 
Hey! So in discord it's stuck saying, "Loading Project...", despite the sessions being fully loaded. I am using SFM through the SDK launcher, but I doubt that would cause a lot of issues. I only loaded the base void map with no models or lights in it, and I did get an error in the console which I'll post below:


Traceback (most recent call last):
File "<string>", line 527, in updateRPC
File "e:\steam\steamapps\common\sourcefilmmaker\game\sdktools\python\2.7\win32\lib\codecs.py", line 296, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xbf in position 944: invalid start byte


I did install the script through the scripts tab in sfm, I haven't tried to install it manually or anything, and I do have -condebug in the launch settings
valance  [developer] Jan 15, 2022 @ 9:13am 
Thanks for your report, i'll try to reproduce it myself and submit a fix asap
valance  [developer] Jan 15, 2022 @ 9:31am 
Ok, quick overview on the issue, in your console.log file there is a invalid character even for encoding.

this piece of code i think would do it, but before try to just delete the console log file and check if anything you named could have a invalid character.

Code fix:
go to your sfm_init.py, open it in a text editor, do CTRL+F to search this command: consoleFile = open(os.getcwd()
there are 2 lines that have this command, so rewrite them just like in this print(remove encoding and put rb): https://pasteboard.co/ija9Te6PLdSo.png

if the code part works i'll deploy it on the main script
Last edited by valance; Jan 15, 2022 @ 9:31am
Ponyboy Jan 15, 2022 @ 9:40am 
I put the rewrite in and it works now! Thank you!
valance  [developer] Jan 15, 2022 @ 9:41am 
Goodjob for fixing it! Thanks for submitting the bug and using the script
Last edited by valance; Jan 15, 2022 @ 12:09pm
Andres El Lobo Jan 17, 2022 @ 8:08am 
The rich presence works but it is when I charge a session with a name that I put it as for example “model test.dmx” in the rich presence does not appear the name of the session I charge and puts it as session.
valance  [developer] Jan 17, 2022 @ 8:36am 
I just tested and it works fine on my end, changing maps, changing sessions, could you open the script editor and see if there is any error message there? ( It's located right below RPC Settings )
Andres El Lobo Jan 17, 2022 @ 11:55am 
Ok. Should I send him right here?
valance  [developer] Jan 17, 2022 @ 11:58am 
Yes, copy and paste it right here, the entire thing
valance  [developer] Jan 17, 2022 @ 12:43pm 
That is not what i need, check this screenshot:
https://pasteboard.co/wG4Xv3Oh7dXo.png
What i need is the error message inside sfm if there is any.
Remember, you need to add the launch command -condebug for it to gather data regarding the map, my theory is that you maybe don't while having the showmap option on, causing the script to search for a file that doesn't exist, making the rpc crash and stop sending updates.
Last edited by valance; Jan 17, 2022 @ 12:45pm
Andres El Lobo Jan 17, 2022 @ 1:33pm 
https://pasteboard.co/AT3L7soRQmow.png

I don't get any mistakes and I'm wearing the name of the session, and I still get it as a session.
valance  [developer] Jan 17, 2022 @ 1:36pm 
Thanks, i'll see if i can provide a fix
Last edited by valance; Jan 17, 2022 @ 1:36pm
valance  [developer] Jan 17, 2022 @ 2:26pm 
Here's the thing, the script uses a command that returns the movie name(that should be the same as the session name), the problem is, when you grab a file and use save as, sfm doesn't update the old movie name with the new session name that you just created.
If you really want to show that session and you know you're going to be working on it for a long time, consider turning on custom activity, writing the map name on the box, and disabling project name.
Meanwhile i'll find a way to get the document path and get the name from there, once i do, i'll send the code bit here
Ian Levin Ghane Jan 18, 2022 @ 11:11pm 
not sure if this worth reporting but i'll report anyway.
so after playin SFM for an Hour the Rich Presence on Discord Activity just revert back to "Playing Source Filmmaker for 1 hour"

if i close SFM and Reopen it, its working normally again.
< >
Showing 1-15 of 26 comments
Per page: 1530 50