Skip to content

Commit

Permalink
Release v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DJDavid98 committed Oct 13, 2022
1 parent 21f5c70 commit 4c05710
Show file tree
Hide file tree
Showing 8 changed files with 296 additions and 149 deletions.
354 changes: 230 additions & 124 deletions Plugin.cs

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("bsrpc")]
[assembly: AssemblyCopyright("Copyright © 2022")]
[assembly: AssemblyCopyright("Copyright © DJDavid98 2022")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.0.1")]
[assembly: AssemblyFileVersion("0.0.1")]
[assembly: AssemblyVersion("1.0.0")]
[assembly: AssemblyFileVersion("1.0.0")]
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# bsrpc

To be able to build, follow the Discord SDK installation guide: [Code Primer - Non-Unity Projects (Csharp)
](https://discord.com/developers/docs/game-sdk/sdk-starter-guide#code-primer-nonunity-projects-csharp)
Discord Rich Presence support for Beat Saber. No customization options whatsoever, because I'm too lazy to add them (sorry).

The `discord_game_sdk.dll` file must be placed into the `Plugins` folder alongside the mod's DLL for it to function.
<div align="center">
<img src="screenshots/card.png" height="300" alt="Discord account card showing the Beat Saber rich presence">
<img src="screenshots/profile.png" height="300" alt="Discord profile activity tab showing the Beat Saber rich presence">
</div>

## Dependencies

* BSIPA v4 (ModAssistant)
* DiscordCore v1.0.10 (https://github.com/FizzyApple12/DiscordCore/releases/tag/v1.0.10)
* DataPuller v2.1.0 (https://github.com/ReadieFur/BSDataPuller/releases/tag/2.1.0)
45 changes: 45 additions & 0 deletions RichPresenceResources.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
namespace bsrpc
{
public static class RichPresenceAssetKeys
{
// Environments
public static readonly string BigMirror = "big_mirror";
public static readonly string Billie = "billie";
public static readonly string BTS = "bts";
public static readonly string CrabRave = "crab_rave";
public static readonly string Dragons = "dragons";
public static readonly string EDM = "edm";
public static readonly string FallOutBoy = "fall_out_boy";
public static readonly string FitBeat = "fitbeat";
public static readonly string Gaga = "gaga";
public static readonly string GreenDay = "green_day";
public static readonly string GreenDayGrenade = "green_day_grenade";
public static readonly string Interscope = "interscope";
public static readonly string Kaleidoscope = "kaleidoscope";
public static readonly string KDA = "kda";
public static readonly string LinkinPark = "linkin_park";
public static readonly string Lizzo = "lizzo";
public static readonly string MainMenu = "main_menu";
public static readonly string Monstercat = "monstercat";
public static readonly string MultiplayerLobby = "multiplayer_lobby";
public static readonly string Nice = "nice";
public static readonly string Origins = "origins";
public static readonly string Panic = "panic";
public static readonly string Rocket = "rocket";
public static readonly string Skrillex = "skrillex";
public static readonly string Spooky = "spooky";
public static readonly string TheFirst = "the_first";
public static readonly string TheSecond = "the_second";
public static readonly string Timbaland = "timbaland";
public static readonly string Triangle = "triangle";
public static readonly string Weave = "weave";

// Map types
public static readonly string BlankMapType = "blank_map_type";
public static readonly string Ninety = "90";
public static readonly string NoArrows = "no_arrows";
public static readonly string OneSaber = "one_saber";
public static readonly string Standard = "standard";
public static readonly string ThreeSixty = "360";
}
}
21 changes: 4 additions & 17 deletions bsrpc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
<Private>False</Private>
<SpecificVersion>False</SpecificVersion>
</Reference>
<Reference Include="SiraUtil">
<HintPath>$(BeatSaberDir)\Plugins\SiraUtil.dll</HintPath>
<Reference Include="DiscordCore, Version=1.0.10.0, Culture=neutral, processorArchitecture=MSIL">
<Private>False</Private>
<HintPath>$(BeatSaberDir)\Plugins\DiscordCore.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
</Reference>
<Reference Include="System" />
Expand Down Expand Up @@ -118,34 +118,21 @@
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\UnityEngine.VRModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="websocket-sharp, Version=1.0.2.1803, Culture=neutral, PublicKeyToken=5660b08a1845a91e, processorArchitecture=MSIL">
<Private>False</Private>
<HintPath>$(BeatSaberDir)\Libs\websocket-sharp.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="DiscordGameSDK\ActivityManager.cs" />
<Compile Include="DiscordGameSDK\Constants.cs" />
<Compile Include="DiscordGameSDK\Core.cs" />
<Compile Include="DiscordGameSDK\ImageManager.cs" />
<Compile Include="DiscordGameSDK\LobbyManager.cs" />
<Compile Include="DiscordGameSDK\StorageManager.cs" />
<Compile Include="DiscordGameSDK\StoreManager.cs" />
<Compile Include="LiveData.cs" />
<Compile Include="MapData.cs" />
<Compile Include="Plugin.cs" />
<Compile Include="Configuration\PluginConfig.cs" />
<Compile Include="bsrpcController.cs" />
<Compile Include="PluginSocketData.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RichPresenceResources.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="manifest.json" />
</ItemGroup>
<ItemGroup>
<None Include="Directory.Build.props" Condition="Exists('Directory.Build.props')" />
<None Include="bsrpc.csproj.user" Condition="Exists('bsrpc.csproj.user')" />
<None Include="README.md" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="BeatSaberModdingTools.Tasks">
Expand Down
5 changes: 3 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
"id": "bsrpc",
"name": "bsrpc",
"author": "",
"version": "0.0.1",
"version": "1.0.0",
"description": "Discord Rich Presence integration for Beat Saber",
"gameVersion": "1.20.0",
"dependsOn": {
"BSIPA": "^4.2.0",
"DiscordGameSDK": "3.2.1"
"DataPuller": "^2.1.0",
"DiscordCore": "^1.0.10"
},
"links": {
"project-source": "https://github.com/DJDavid98/bsrpc"
Expand Down
Binary file added screenshots/card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4c05710

Please sign in to comment.