Giter Club home page Giter Club logo

easyrp's Introduction

EasyRP (Custom Discord Rich Presence)

EasyRP is a small program to use the discord-rpc, to make a custom rich presence/game on discord.
using just an easy config file.

Usage

  • First you need to register a Rich Presence application with discord

  • Download the latest release of EasyRP from here https://github.com/Pizzabelly/EasyRP/releases

  • Edit the config file with the information from your newly registered app

  • Run the EasyRP executable (it should open a cmd window)

    • It should report errors from your config file (if there are any)
  • Discord should show the game on your profile

    • if not, add the exe as a game on discord and the file path should change to your presence
  • You can edit the config any time while the program is running to change the presence (make sure to save the file)

Timestamps
The Start and End timestamps are in epoch/unix time. Your desired values can be found here. For elapsed time set only the StartTimestamp. For remaining time set both. Though discord seems to only care about hours/minutes/seconds. As it doesnt go above 24hrs either way ¯\_(ツ)_/¯

Building
To build EasyRP from source you need the following

  • any c++ compiler (cl, g++, clang++, etc)
  • Meson
  • Ninja
  • CMake (for discord-rpc library)

Build discord-rpc

  • git clone https://github.com/Pizzabelly/EasyRP --recurse-submodules
  • cd EasyRP/discord-rpc
  • mkdir build && cd build
  • cmake .. -DENABLE_IO_THREAD=OFF -DENABLE_IO_THREAD option will prevent a link error (see #49)

Now depending on your platform building the discord-rpc library will be different

  • Unix: make
  • Windows (visual studio): msbuild /p:Configuration=Release
  • Windows (mingw): mingw32-make.exe
    Now the library should be under src/[lib]discord-rpc.[lib|a], move that to the root of the EasyRP repo

To build EasyRP (in the root of the repo)

  • meson --buildtype=release build
  • ninja -C build

Now the EasyRP executable will be under the build directory!

easyrp's People

Contributors

alilogic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

easyrp's Issues

EasyRP.exe flagged as a virus

Avast recognises the EasyRP executable as a FileRepMetagen [Malware] even if the program never gave me problems before.

Path of EasyRP.exe doesn't change

I already created a new app. I copied the ClientID and edited the config file, including the other stuff like LargeImage, State etc.. I don't have any errors when I opened EasyRP.exe.

I add EasyRP as a game but my playing status says I'm playing the path, and not the rich presence.
image

issue here

unknown
i cant edit those & i dont know why, i tried to edit on the config.ini but it didnt work!
screenshot_1

Elapsed Time

I am currently trying to make it say how long I have been playing the EasyRP after the "Details=" it put "StartTimestamp=1531342252". Can someone please help me where I went wrong?

Meson Build Failed

When I try to build your project using Meson, I get this error:

Build started at 2018-07-20T13:03:21.759307
Main binary: C:\Program Files\Meson\meson.exe
Python system: Windows
The Meson build system
Version: 0.47.1
Source dir: C:\Users\fordf\Downloads\EasyRP
Build dir: C:\Users\fordf\Downloads\EasyRP\builddir
Build type: native build
Project name: EasyRP
Project version: 3.0

meson.build:1:0: ERROR:  Unknown compiler(s): ['cl', 'c++', 'g++', 'clang++']
The follow exceptions were encountered:
Running "cl /?" gave "[WinError 2] The system cannot find the file specified"
Running "c++ --version" gave "[WinError 2] The system cannot find the file specified"
Running "g++ --version" gave "[WinError 2] The system cannot find the file specified"
Running "clang++ --version" gave "[WinError 2] The system cannot find the file specified"

How can I fix this?

Missing DLLs

Program wont launch because its missing DDLs but you haven't said what I need installed (I've put screenshots here, don't judge the Fornite and stuff lol)

I'm probably missing something Python e.g. Python installed but since I don't know what language its in I don't really know.

Would be nice just to say if you need certain things installed (e.g. Python, Node.JS etc)
screenshot_1
screenshot_2
screenshot_3

For Termux Building

I was trying to build it via the termux application


now you might be thinking now:
what is termux?
Termux is an application that you can download on Android 5.0+ on Google Play Store, as for the smarts, you can describe it as a "late 2010 MS-DOS Terminal but in Linux", in other words, Basically a terminal that can be used to run scripts like actual Linux, eg. Ubuntu


thing is, Termux hasn't got the package "meson", and i wonder if there is any other package similar to meson or something like that for termux? if anyone finds out please post, i want to try building it into Termux and i may add a pull request for Readme on how to do with phone/termux after it is found :) (i mean in fun fact, only if Pizzabelly accepts to do this [the readme thing]) So anyways for now let me know thanks!

Rich Presence not working even if redownloaded.

The Rich Presence worked for me for about five minutes, and then stopped working completely. EasyRP.exe opens fine, no error messages and the config.ini is configured correctly. All it says in discord is "\PATH\EasyRP.exe".
I deleted the folder and downloaded it again and it still doesn't work.
Does it affect the app if i'm running BandagedBD(BetterDiscord)?

EDIT: It somehow appeared again after a reboot ¯\_(ツ)_/¯

The updates caused issues

I used the ver 1.0 and it worked perfectly fine. But when it comes to the newest ver you updated. It keeps telling me this.
unknown

Linux support

Please add support to use it remotely on an Linux server.
That you don't need to add it as game.

Will this ever support mac?

Will there be a mac release like by using terminal? I really love how this works and have done this on my windows pc but not on my mac sadly, I would really like if this somehow supported mac as more people could use this. If there is another way to do this let me know.

Thanks

Cmake error when trying to build

`press any key to continue building...
building discordapp/discord-rpc library
fatal: destination path 'rpc' already exists and is not an empty directory.
CMake Error at C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:515 (file):
file STRINGS file
"C:/EasyRP-master/rpc/CMakeFiles/3.12.0-rc1/CompilerIdC/a.exe" cannot be
read.
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:37 (CMAKE_DETERMINE_COMPILER_ID_CHECK)
C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCCompiler.cmake:112 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:7 (project)

CMake Error at C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:521 (list):
list sub-command REMOVE_DUPLICATES requires list to be present.
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:37 (CMAKE_DETERMINE_COMPILER_ID_CHECK)
C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCCompiler.cmake:112 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:7 (project)

CMake Error at C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:587 (file):
file failed to open for reading (Invalid argument):

C:/EasyRP-master/rpc/CMakeFiles/3.12.0-rc1/CompilerIdC/a.exe

Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:37 (CMAKE_DETERMINE_COMPILER_ID_CHECK)
C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCCompiler.cmake:112 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:7 (project)

CMake Error at C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:589 (string):
string begin index: 1 is out of range 0 - 0
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:37 (CMAKE_DETERMINE_COMPILER_ID_CHECK)
C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCCompiler.cmake:112 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:7 (project)

CMake Error at C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:597 (math):
math cannot parse the expression: " * 16 + ": syntax error, unexpected
exp_TIMES, expecting exp_PLUS or exp_MINUS or exp_OPENPARENT or exp_NUMBER
(2)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:37 (CMAKE_DETERMINE_COMPILER_ID_CHECK)
C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCCompiler.cmake:112 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:7 (project)

CMake Error at C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:599 (file):
file failed to open for reading (Invalid argument):

C:/EasyRP-master/rpc/CMakeFiles/3.12.0-rc1/CompilerIdC/a.exe

Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:37 (CMAKE_DETERMINE_COMPILER_ID_CHECK)
C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCCompiler.cmake:112 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:7 (project)

CMake Error at C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:639 (file):
file failed to open for reading (Invalid argument):

C:/EasyRP-master/rpc/CMakeFiles/3.12.0-rc1/CompilerIdC/a.exe

Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCompilerId.cmake:37 (CMAKE_DETERMINE_COMPILER_ID_CHECK)
C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineCCompiler.cmake:112 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:7 (project)

-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: C:/MinGW/bin/gcc.exe
-- Check for working C compiler: C:/MinGW/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/MinGW/bin/g++.exe
-- Check for working CXX compiler: C:/MinGW/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring incomplete, errors occurred!
See also "C:/EasyRP-master/rpc/CMakeFiles/CMakeOutput.log".
See also "C:/EasyRP-master/rpc/CMakeFiles/CMakeError.log".
mingw32-make: *** No targets specified and no makefile found. Stop.
The system cannot find the path specified.
The system cannot find the path specified.
CMaking...
CMake Error: The source directory "C:/" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
compiling using mingw32-make/gcc..
mingw32-make: *** No targets specified and no makefile found. Stop.
cleaning build artifacts...
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
A subdirectory or file assets already exists.
Press any key to continue . . .`

I'm not the best at this so I might be missing something obvious, please help!

Rich Presence not showing up

Whenever I turn on my status, it show the path of EasyRP.exe instead of the Rich Presence.
I checked and made sure everything was typed in correctly in the config file, and there are no errors when I start up EasyRP.
I tried closing and re-opening EasyRP, didn't work.
I tried waiting for the path to change, still didn't work.
I tried everything I could think of, and nothing ever worked.

Is there something else that I've missed?

A New War

so i had this program for months, and had no issue to it, all i had to do is exclude it everything and for anyone else works perfectly like me, hit the thumbs up button and of not you can hit that dislike, impretty sure that around 40% of people hasn't got issues with the program
and now let's get into the part:
my discord friend volcanicer was testing the program, he experienced problems but his files was fine thank goodness, he also has a good strong pc and malwarebytes as his antivirus, malwarebytes and Kaspersky is the best antivirus, and it will trigger whenever it is or not, idk why my friend's one kept having weird things, for me i had no issues as i said
and after that test we are going to have a github discord war I
so i want you to to tell the truth and hit the thumbs up if you had any issues in the start you had the program and hit the thumbs down if not, we are talking about a new war on what it is true or not, alright let's let it begin!

C++ Applying discord rp

I want to connect it with my c++ application, but when i want to build i have that:
Error LNK2019 unresolved external symbol Discord_Initialize
Error LNK2019 unresolved external symbol Discord_UpdatePresence1
Error LNK1120 3 unresolved externals

I included all files with .lib file, how can i fix it?

what do i do in ninja?

i typed ninja -C build in discord-rpc directory but all i get is the ninja.build no file error, and I can't use meson package,
im trying it on termux, introduction in: https://wiki.termux.com/wiki/Main_Page
so any help for this? if you want further info, let me know!
(and yes i did followed as the readme says)

What is this clusterfuck of a repo

With the build files actually not even working because of numberous typos in make files and the bash build script, the numerous, supposedly false, virus reports, and the whole repo not being maintained to any degree, why isn't anyone finding a better option?

I am 90% sure there's a better options than whatever this shit show is, and virus or not, it's probably not as easy as it says it is, especially if you're on linux or mac.

Embedded miners. Malicious software.

No .exe?

When I download the latest release, there's no .exe file in it for me.
Am I missing something here?

easyrp.exe

the exe file is not in the zip file when downloaded...

virus detected

Positive detected as a virus and inmedietly got placed in quarantine.
image

Won't Open with Mac

It'll send a message saying it can't open a Windows application. I don't know if it's not compatible with make or if I'm doing something wrong.

Windows defender flagging it

Windows defender started flagging it as carrying a trojan bitrep.a virus. is there some embedded bitcoin mining software in this?

StartTimestamp

How do you setup SetTimestamp so it shows how long you have been playing/using the program? I think it would be really useful. When ever i launch the program it doesnt show how long i'v been playing it even after i put StartTimestamp=

Image not showing up

I have already done everything i should (i think so), but my picture is still not showing up.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.