Add additional development info
This commit is contained in:
parent
8e99ee0b72
commit
8d81295f43
3 changed files with 40 additions and 19 deletions
|
@ -50,6 +50,7 @@ namespace GamecraftRPC
|
||||||
|
|
||||||
public static void MenuEnter(object sender, MenuEventArgs data)
|
public static void MenuEnter(object sender, MenuEventArgs data)
|
||||||
{
|
{
|
||||||
|
if (PresenceUtility.IsConnecting) return;
|
||||||
PresenceUtility.LastGameStart = 0;
|
PresenceUtility.LastGameStart = 0;
|
||||||
PresenceUtility.Activity.Timestamps.Start = 0;
|
PresenceUtility.Activity.Timestamps.Start = 0;
|
||||||
PresenceUtility.Activity.Timestamps.End = 0;
|
PresenceUtility.Activity.Timestamps.End = 0;
|
||||||
|
|
|
@ -145,6 +145,23 @@ namespace GamecraftRPC
|
||||||
|
|
||||||
})
|
})
|
||||||
.Build();
|
.Build();
|
||||||
|
#if !RELEASE
|
||||||
|
bool alreadyWarned = false;
|
||||||
|
Client.EnterMenu += (_, args) =>
|
||||||
|
{
|
||||||
|
if (alreadyWarned) return;
|
||||||
|
//GamecraftModdingAPI.Utility.Logging.LogDebug($"Displaying {Name} {Version} DEBUG warning");
|
||||||
|
/*
|
||||||
|
RobocraftX.Services.ErrorBuilder.DisplayCustomError(
|
||||||
|
$"THIS IS NOT ACTUALLY AN ERROR! {Name} v{Version} is a pre-release. If you encounter a bug or other issue, please report it to NGnius or Exmods on Discord.",
|
||||||
|
"Discord", () => { UnityEngine.Application.OpenURL("https://discord.exmods.org"); },
|
||||||
|
"Ok!", () => { GamecraftModdingAPI.Utility.Logging.LogDebug($"Dismissed {Name} {Version} DEBUG warning"); }
|
||||||
|
);
|
||||||
|
*/
|
||||||
|
RobocraftX.Services.ErrorBuilder.DisplayWarning($"{Name} v{Version} is a pre-release. If you encounter a bug or other issue, please report it to NGnius or Exmods on Discord.");
|
||||||
|
alreadyWarned = true;
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
GamecraftModdingAPI.Utility.Logging.LogDebug($"{Name} has started up");
|
GamecraftModdingAPI.Utility.Logging.LogDebug($"{Name} has started up");
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# GamecraftRPC
|
# GamecraftRPC
|
||||||
|
|
||||||
Experimental project for Discord Rich Presence in Gamecraft.
|
Experimental project for Discord Rich Presence in Gamecraft.
|
||||||
This currently only works in native environments (eg this does not work with Wine/Proton) although I'm sure someone can find a way to fix that'.
|
This currently only works in native environments (eg this does not work with Wine/Proton) although I'm sure someone can find a way to fix that.
|
||||||
|
|
||||||
## Dev environment Setup
|
## Dev environment Setup
|
||||||
|
|
||||||
|
@ -19,6 +19,9 @@ For any mod to work, you will have to patch your game with [GCIPA](https://git.e
|
||||||
This project also requires the [GamecraftModdingAPI](https://git.exmods.org/modtainers/GamecraftModdingAPI) library to be installed (in `ref/Plugins/GamecraftModdingAPI.dll`).
|
This project also requires the [GamecraftModdingAPI](https://git.exmods.org/modtainers/GamecraftModdingAPI) library to be installed (in `ref/Plugins/GamecraftModdingAPI.dll`).
|
||||||
[Direct link to install guide](https://www.exmods.org/guides/install.html).
|
[Direct link to install guide](https://www.exmods.org/guides/install.html).
|
||||||
|
|
||||||
|
For rich presence functionality, files in lib/x86_64 of Discord's [GameSDK](https://discord.com/developers/docs/game-sdk/sdk-starter-guide) must be copied to ref/Gamecraft_Data/Plugins.
|
||||||
|
The GameSDK csharp folder is already included in the git repo.
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
After you've completed the setup, open the solution file `GamecraftRPC.sln` in your prefered C# .NET/Mono development environment.
|
After you've completed the setup, open the solution file `GamecraftRPC.sln` in your prefered C# .NET/Mono development environment.
|
||||||
|
|
Loading…
Add table
Reference in a new issue