/Gen4RPC

Discord Rich Presence (RPC) integration for the Generation 4 Pokémon games, used in conjunction with the DeSmuMe emulator.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Gen4RPC

Discord Rich Presence (RPC) Integration for the Generation 4 Pokémon games, used in conjunction with the DeSmuMe emulator.

  • (Due to the Discord API's rate limit on activty updates, this script updates every 5 seconds to be a little bit under the limit).

  • If your rich presence is not updating properly, try restarting your Discord client (CTRL+R)


pypresence


How to use

  1. Run the Lua script export.lua in the DeSmuMe version of your choice.
  2. Run the Python script rpc.py.

Features

  • Current Map Header
  • Game Name
  • Time Played

Games currently supported

  • Pokémon Diamond/Pearl
  • Pokémon Diamond/Pearl Demo Version
  • Pokémon Platinum
  • Pokémon HeartGold/SoulSilver

To-do

  • Revise map headers for D/P (sort-of done)
  • Support Platinum, combine Pt headers with D/P if possible
  • Support HG/SS, check if both games use the same map headers
  • Differentiate between games, (Ex: Diamond OR Pearl, HeartGold OR SoulSilver)
  • If possible, read from DeSmuMe RAM rather than relying on a lua to output information