Modding Tools > Lucas' Simpsons Hit & Run Mod Launcher > Hacks > Setting Hacks > Discord Rich Presence

Discord Rich Presence

This is a setting hack that can be enabled on the "Settings" page of the Mods List.

This hack adds Discord Rich Presence to the game that shows what main mod, level and mission you're currently playing.

Settings

Show Main Mod

Sets whether or not to show the current main mod.

Defaults to Enabled.

Show Mission Elapsed Time

Set whether or not to show the elapsed time of the current mission.

Defaults to Enabled.

Configuring This Hack

To configure this hack from a mod when its enabled, create a file named DiscordRichPresence.ini and add the parameters necessary for your mod inside it.

; [Global] Section: Set the titles for missions on every level.
    ; Currently only supports setting the titles for the Bonus Missions, Street Races and Wager Races.

[Global]
BonusMission=Example Bonus Mission
StreetRace1=Example Street Race 1
StreetRace2=Example Street Race 2
StreetRace3=Example Street Race 3
WagerRace=Example Wager Race

Command Line Arguments

This hack is affected by certain Command Line Arguments for the Mod Launcher.

Version History

1.23.10

  • Made it use the new Discord GameSDK instead of the obsolete Discord RPC if the DLL file for it (discord_game_sdk.dll) happens to inexplicably be in the Mod Launcher's DLLs folder.
    • Also added the -discordrpc to opt out of this.
    • To be clear, this DLL is not included with the Mod Launcher. If you want to use it for some reason, you can get it here.
  • Fixed an issue when logging state updates after 3:14:07 AM on January 19th, 2038 UTC.
  • Made this hack tell Discord the command to start the Mod Launcher so Discord doesn't try launching Simpsons.exe with an incorrect working directory when clicking Play/Play Game.
    • Also added the -nodiscordregistercommand command line argument to opt out of this.
      • When using Discord RPC, this causes the old behaviour of Discord updating the command to be wrong.
      • When using Discord GameSDK, this causes Discord to just not update the command.
  • Added the -discordloadinitialise command line argument. This makes the hack initialise Discord RPC / GameSDK as soon as the hack loads.
    • This used to be the default behaviour prior to Version 1.22 but it often causes rich presence to not work because Discord handles this poorly.

1.23.8

  • Added the -nodiscordrichpresence command line argument.
  • Made the Bonus Mission, Street Race and Wager Race titles configurable by mods.

1.23

Updated the description of this hack.

1.22

  • Added the "RapidJSON" license.
  • Made this hack output DISCORD RICH PRESENCE: Initialising... when initialising Discord RPC.
  • Made this hack wait until the main menu to initialise Discord RPC.
    • This seems to make the hack work far more reliably than before.

1.21

  • Fixed an oversight where the hack was listed on Windows XP.
  • Updated to a newer version of Discord RPC.

1.18

Moved this hack to the new "Settings" page.

1.16.3

Added this hack.

Donut Team © 2024 · v4.0