tnychn / mpv-discord

🎈 A cross-platform Discord Rich Presence integration for mpv with no external dependencies.
MIT License
172 stars 14 forks source link

need help in installation #22

Closed TheHeroicFrog1 closed 3 years ago

TheHeroicFrog1 commented 3 years ago

I don't know anything about scripts and things like this so I am having trouble installation like I don't any steps of installation please help.

1xxyu commented 3 years ago

I don't know anything about scripts and things like this so I am having trouble installation like I don't any steps of installation please help.

Here's a quick way to install in windows in case install_windows.bat not working:

step 1: Extract the .zip and copy scripts and scripts-opts folders and mpv-discord.exe to mpv directory.

step 2: Edit scripts-opts\discord.conf and write path to mpv-discord.exe i.e. <your mpv directory>\mpv-discord.exe next to binary_path= . For example: binary_path=C:\Program Files\mpv\mpv-discord.exe

TheHeroicFrog1 commented 3 years ago

by directory you means this folder right ? Screenshot (49) and i have to paste scripts and scripts-opts folders here or the contents of these folders in the folder already present here named scripts and scripts-opts.

also in discord.conf file i have to right the path like this ?

key=D active=yes client_id=737663962677510245 binary_path=C:\Program Files\mpv use_static_socket_path=yes autohide_threshold=0

TheHeroicFrog1 commented 3 years ago

well i don't know how but now whenever i open mpv it shows discord rich presence started in top left corner but it doesn't update my discord status

1xxyu commented 3 years ago

paste scripts and scripts-opts (or its contents if folder already present) there and in discord.conf you need to specify full path to mpv-discord.exe like C:\Program Files\mpv\mpv-discord.exe

1xxyu commented 3 years ago

well i don't know how but now whenever i open mpv it shows discord rich presence started in top left corner but it doesn't update my discord status

that's because you haven't specified the path to mpv-discord.exe correctly

TheHeroicFrog1 commented 3 years ago

Well I did I pasted it at C:\Program Files\mpv\mpv where the scripts and scrit-opts folder is and I specified this path in the discord.config file

1xxyu commented 3 years ago

your mpv folder should look like this Screenshot 2021-06-06 144610

and your discord.conf should look like this Screenshot 2021-06-06 144822

tnychn commented 3 years ago

Example directory structure:

C:\Program Files\mpv
├── d3dcompiler_43.dll
├── doc
│   └── (...)
├── installer
│   └── (...)
├── mpv
│   └── (...)
├── mpv-discord.exe 👈🏻
├── mpv-install.bat
├── mpv-uninstall.bat
├── mpv.com
├── mpv.exe
├── script-opts
│   └── discord.conf 👈🏻
├── scripts
│   └── discord.lua 👈🏻
└── updater.bat

(Files pointed by a finger belong to mpv-discord. Others belong to mpv itself.)
If the folders `scripts` and `script-opts` do not exist yet, create them.

In the above setup, the binary_path would be C:\Program Files\mpv\mpv-discord.exe.

TheHeroicFrog1 commented 3 years ago

Screenshot (50) Screenshot (51) correct?

now when i open install_windows.bat it asks for a path so i have paste this C:\Program Files\mpv\mpv-discord.exe or just enter in both cases it shows some kind of text then closes and it too fast to be able to read

1xxyu commented 3 years ago

You don't need to run install_windows.bat now, you are done already. Just open discord and play something on mpv and see if it's working.

TheHeroicFrog1 commented 3 years ago

Thank you it's working now