BetterDiscordPlugins icon indicating copy to clipboard operation
BetterDiscordPlugins copied to clipboard

AutoStartRichPresence An error was encountered while trying to load this plugin

Open NotEnderVN opened this issue 2 years ago • 33 comments

NotEnderVN avatar Dec 11 '22 05:12 NotEnderVN

I got the same error I think this is the error it gave me, not working at all

Error: ENOENT: no such file or directory, lstat 'C:\Users\Reiwa\AppData\Local\Discord\app-1.0.9008\zlib' at Object.j [as realpathSync] (:4:340384) at Function.getFilePath (:4:341654) at Function._load (:4:341749) at :4:344940 at eval (betterdiscord://plugins/AutoStartRichPresence.plugin.js:104:18) at eval (betterdiscord://plugins/AutoStartRichPresence.plugin.js:2014:6) at eval (betterdiscord://plugins/AutoStartRichPresence.plugin.js:2273:5) at eval (betterdiscord://plugins/AutoStartRichPresence.plugin.js:3729:3) at Object.requireAddon (:4:37112) at Object.loadAddon (:4:8234) at Object.loadAddon (:4:34784) at Object.reloadAddon (:4:9124) at AsyncFunction. (:4:6260)

randoomdude avatar Dec 15 '22 01:12 randoomdude

same!! Error: ENOENT: no such file or directory, lstat 'C:\Users\tabs\AppData\Local\Discord\app-1.0.9008\zlib' at Object.j [as realpathSync] (:4:340384) at Function.getFilePath (:4:341654) at Function._load (:4:341749) at :4:344940 at eval (betterdiscord://plugins/AutoStartRichPresence.plugin.js:104:18) at eval (betterdiscord://plugins/AutoStartRichPresence.plugin.js:2014:6) at eval (betterdiscord://plugins/AutoStartRichPresence.plugin.js:2273:5) at eval (betterdiscord://plugins/AutoStartRichPresence.plugin.js:3729:3) at Object.requireAddon (:4:37112) at Object.loadAddon (:4:8234) at Object.loadAddon (:4:34784) at Object.loadAllAddons (:4:10708) at Object.initialize (:4:5130) at Object.initialize (:4:33979) at Object.startup (:4:390667)

ruihq avatar Dec 19 '22 07:12 ruihq

same for me

fluffeliger avatar Dec 26 '22 02:12 fluffeliger

temporary solution for me: https://www.customrp.xyz/

fluffeliger avatar Dec 26 '22 03:12 fluffeliger

same error.

The-Anonymous-Developer avatar Jan 06 '23 12:01 The-Anonymous-Developer

samee

Pltrxd avatar Jan 15 '23 10:01 Pltrxd

temporary solution for me: https://www.customrp.xyz/

bit old reply but does anyone know if this is safe (?)

littlelapin avatar Jan 21 '23 05:01 littlelapin

temporary solution for me: https://www.customrp.xyz/

bit old reply but does anyone know if this is safe (?)

probably not https://www.virustotal.com/gui/file/7fc0c0298b645c7d7b1d3f6c8e48c7e988ab041d12cfb039471c59f11feb6446/behavior

niemogewejsc avatar Jan 28 '23 17:01 niemogewejsc

~~The error says zlib folder doesn't exist.~~

~~I have found the cause: It is because it is not being seen as package but just as folder/file. I will try to find solution~~

~~Update: Adding zlib doesn't work!~~

~~UPDATE: I think because of the way how discord works and not has all the nodejs packages this one needs, we can NOT use this plugin at all!~~

~~So for now, it will stay unuseable~~

Update: See my last comment

Miniontoby avatar Apr 12 '23 09:04 Miniontoby

The error tells you whats wrong!

It says zlib folder doesn't exist.

I have found the cause: It is because it is not being seen as package but just as folder/file. I will try to find solution

UPDATE: I think because of the way how discord works and not has all the nodejs packages this one needs, we can NOT use this plugin at all!

( i added the "zlib" files, and stills error occured.)

yumsha avatar Jun 04 '23 11:06 yumsha

( i added the "zlib" files, and stills error occured.)

You don't have to/you cannot 'add' zlib, cause it just doesnt work.

And to the owner of this plugin: Please delete the plugin from the Plugin Repo, until you have fixed this!

Update: I made a fix, see my last comment

Miniontoby avatar Jun 04 '23 11:06 Miniontoby

temporary solution for me: https://www.customrp.xyz/

bit old reply but does anyone know if this is safe (?)

probably not https://www.virustotal.com/gui/file/7fc0c0298b645c7d7b1d3f6c8e48c7e988ab041d12cfb039471c59f11feb6446/behavior

its fine https://github.com/maximmax42/Discord-CustomRP

AJXD2 avatar Jul 19 '23 03:07 AJXD2

You don't have to/you cannot 'add' zlib, cause it just doesnt work. But what I recommend is installing "CustomRP" (#177 (comment)), it does the same and it auto reconnects when discord is not yet found/running

Yeah no, I wouldn't. Virustotal shows a whoooole bunch of behaviors that just raise too many red flags for me. Things that raised those red flags: Large memory allocation (Heap Spray attack), Checks for VMs, Geographical Location requests, Shutdown system (Why would you need that for just rich presence modification? Wouldn't you just need a bit of client modification to discordapp?), It deleted a few things from chrome userdata. The person who created the CustomRP thing has been accused of making malware before Theres a whole bunch of reg keys opened that I looked through and I just don't see the risk outweighing the benefit. Hell, I'm not computer expert but maybe someone else can drop in for me? My apologies if i am wrong, though.

f1zzyl1zzy avatar Jul 19 '23 03:07 f1zzyl1zzy

Oke for everyone who doesn't trust him,

Use my fix (just copy paste the code into the AutoStartRichPresence.plugin.js file in your plugins folder): https://raw.githubusercontent.com/Miniontoby/MinionBDStuff/main/Plugins/AutoStartRichPresence/AutoStartRichPresence.plugin.js

And then you can use the plugin settings to modify what it should say

Miniontoby avatar Aug 03 '23 18:08 Miniontoby

its fine https://github.com/maximmax42/Discord-CustomRP

ah shit i didnt see that part of it. Just uninstalled it. dont download it.

thanks @f1zzyl1zzy

AJXD2 avatar Aug 03 '23 21:08 AJXD2

@AJXD2 Just use my patch/fix for this BD Plugin! It works like a charm!

Miniontoby avatar Aug 04 '23 14:08 Miniontoby

Oke for everyone who doesn't trust him,

Use my fix (just copy paste the code into the AutoStartRichPresence.plugin.js file in your plugins folder): https://gist.githubusercontent.com/Miniontoby/9a7c77538cd3d5a3cdc7324d0e23b351/raw/AutoStartRichPresence.plugin.js

And then you can use the plugin settings to modify what it should say

it works guys!! thanks btw!!!

fau-zi avatar Sep 19 '23 13:09 fau-zi

Since I am now uploading my version to the BD plugins list, the link to the download has changed: https://raw.githubusercontent.com/Miniontoby/MinionBDStuff/main/Plugins/AutoStartRichPresence/AutoStartRichPresence.plugin.js

Miniontoby avatar Feb 22 '24 19:02 Miniontoby

Since I am now uploading my version to the BD plugins list, the link to the download has changed: https://raw.githubusercontent.com/Miniontoby/MinionBDStuff/main/Plugins/AutoStartRichPresence/AutoStartRichPresence.plugin.js

i have downloaded this and tried it but it doesnt work either. first off, all the setting fields are just white, but that could be a design issue, that's not that important. more important is that this doesnt even work, it does not start a rich presence status, atleast not in my test. it just shows up as nothing in my status (it says "playing a game" and nothing else in my RP status), although the errors and stuff is gone and i can access the settings atleast. at this point im not too eager to make this work, to be honest, theres other plugins in the DB that can do similar things so ill be using those, just wanted to say that the fix above did not work for me. Maybe at some point the dev will hopefully fix this plugin instead of letting it get obsolete.. Edit: from Discord's side, Discord-RPC has been deprecated anyway so i would just settle on not using this plugin, since it seems Discord will discard it for a newer SDK anyway.

woolloo24 avatar Apr 17 '24 16:04 woolloo24

Have you checked that your "Share activities with others" is enabled?

At least I am still running my plugin and it is still working. You said white setting fields, that would mean you have an older version than the one you in the mention in your message. I had made some changes to the settings pane for the betterdiscord release, so just make sure you have version 2.0.11.

Btw, my plugin doesn't make use of the IPC (which might get removed), it directly sets the RPC in discord by using discord's functions, so I would think it might not get to be obsolete, but we never know.

Miniontoby avatar Apr 17 '24 19:04 Miniontoby

Have you checked that your "Share activities with others" is enabled?

At least I am still running my plugin and it is still working. You said white setting fields, that would mean you have an older version than the one you in the mention in your message. I had made some changes to the settings pane for the betterdiscord release, so just make sure you have version 2.0.11.

Btw, my plugin doesn't make use of the IPC (which might get removed), it directly sets the RPC in discord by using discord's functions, so I would think it might not get to be obsolete, but we never know.

yeah that's enabled. honestly im fairly new to all this so maybe im wrong, idk. also i just tested it again, it works fine, i just didnt notice that it doesnt actually reload the status after ive changed something unless i restart the plugin. the fields are still white but i am using version 2.0.11, it says so in the script too. thats fine though, i dont mind it too much to be honest.

woolloo24 avatar Apr 17 '24 20:04 woolloo24

one thing i have noticed is that you cant rename the profiles which would be handy to be honest. the plugin seems to add information to the config file but it doesnt seem to fetch that information from the config file. so it would be great if it did that, its a bit bothersome to have to click on each "New Profile" to find out which one is the correct one. also the "active profile" thing doesnt work, it doesnt actually change profiles unless you use the "editing profile" thing, which isnt that bad but then the active profile field becomes unnecessary, yknow.

not sure how open you are to testing and i dont know if you knew all this but i thought id drop it in.

woolloo24 avatar Apr 18 '24 14:04 woolloo24

The "Select Active Profile" is supposed to be used to select the profile that should show up.

The "Select Editing Profile" is ONLY to edit any profile's information not to change profiles.

And I do not have to restart the plugin in order to get it to work, tho.

I could try to add renaming function, yeah. But for now you must STOP the plugin, then edit the json file and then start the plugin again (unless BD just saved the json file in it's cache... but I do not remember...)

Still that it is white is really strange, since I do not see it being white! Only the text is white, but not anything else... Update: Oh wait, I use Discord11 and then there is no white stuff...

I am going to make an update on it, that will fix the problems, this week!

Miniontoby avatar Apr 18 '24 16:04 Miniontoby

yes but that's what i did. the plugin doesnt fetch the information from the config.json file, it only adds to it. because i type in a name, save the file, then turn on the plugin and the plugin reloads the config file in notepad++ but it doesnt actually use the information that i put into the file, same if i do it while the plugin is running. atleast thats what happens for me. i did restart and all that but the plugin doesnt seem to read the config file, because if i change anything (literally anything, even other settings than pname), then that doesnt show up in the fields on discord, and after reloading, the plugin just reloads the config file with its own information instead of reading what i wrote into it. or atleast it seems that way for me.

thanks for wanting to fix this stuff though!

woolloo24 avatar Apr 18 '24 16:04 woolloo24

@woolloo24

That is sadly enough how BetterDiscord's api works... The only solution I can think of right now is to close discord, then edit the settings file and then open discord again...

For the settings menu, I have just released an update on my github. Please install it and try it out.

Miniontoby avatar Apr 18 '24 17:04 Miniontoby

thank you very much! closing discord completely, changing the names in the file and then opening discord again seems to do the trick. the settings fields are also no longer white, thank you very much! ^^

woolloo24 avatar Apr 18 '24 17:04 woolloo24