Skip to content

Customization

dotJS edited this page Dec 1, 2017 · 9 revisions

Customizing, changing, and modifying SimplePresence to fit your needs.



Changing Default Text

  1. Open config.json with Atom (install it from the link on the Setup page)
  2. Change the textConfig text and smallText/largeText to the text you'd like to show on your Rich Presence by default
  3. Start SimplePresence by running npm run start



Changing Images

  1. Go to this page and create an app. The name you choose will show up in place of the default with code.
  2. Creating it will give you a Client ID, open config.json and put it for the clientID
  3. Scroll down to the bottom of the app page and press Enable Rich Presence
  4. Upload an image as the "small" type and an image as the "large" type
  5. Put whatever you called them when uploading them (for example, large) for the smallKey and largeKey within imageConfig in config.json (Note: You can put none for smallKey to only have a large image)
  6. Start SimplePresence with npm run start

NOTE: After you've made a custom app and changed the ID in the config, you can then use the "upload images" button to open the page where you can upload images. This button can be disabled by changing showButton to false in config.json.



EasyRPC As A Package

EasyRPC now supports building it as a package/app, which allows you to run and use it without the CLI. Make sure you do all necessary configuration and image options, as you can't change default text and image configs without re-packaging. 0. If you are on Windows, open an administrator command prompt by opening the start menu, searching for "Command Prompt", right clicking and selecting "Run As Administrator"

  1. Run npm install electron-packager -g (or sudo npm install electron-packager -g on macOS and Linux) in the folder where you have SimplePresence's files
  2. Run electron-packager . to package SimplePresence
  3. You should find your app, native for the platform you are currently on, inside a new folder. The folder is named in the output: Wrote new app to /Foo/Bar/SimplePresence/SimplePresence-darwin-x64
  4. Go inside the folder and run the app.
  5. You should see the SimplePresence app working, with it's customization UI. As noted above, this will set your rich presence, and you can edit the text through this app, but some configs cannot be changed after packaging, unless you package again.



Using Timestamps

SimplePresence has support for start and end Rich Presence timestamps.

  1. In config.json, change timeType to start or end depending on if you want a count down (end) or count up (start)
  2. Change whatTime to any amount of time - for example, 0s will count up from 0 seconds if used with a start timestamp.
  3. Start SimplePresence with npm run start

NOTE: whatTime supports any time format, for example, 5m, 1d, 1440s, or 1ms

Clone this wiki locally