From 81b3a1ac1068fe55e0a9f9307408f0efe3d27955 Mon Sep 17 00:00:00 2001 From: CTN Date: Fri, 9 Feb 2024 18:35:25 +0100 Subject: [PATCH] 1.1.0 - Added support for joining local games on a second instance of the game. Can be disabled in the config (enabled by default). [Added by [Kittenji](https://thunderstore.io/c/lethal-company/p/Kittenji/)] --- CHANGELOG.md | 2 ++ DevelopmentStartup/DevelopmentStartup.csproj | 2 +- DevelopmentStartup/Plugin.cs | 10 ++++++++-- DevelopmentStartup/PluginInfo.cs | 2 +- README.md | 6 ++++-- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 027cf3c..c96796f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,4 @@ +# v1.1.0 (Latest) +- Added support for joining local games on a second instance of the game. Can be disabled in the config (enabled by default). [Added by [Kittenji](https://thunderstore.io/c/lethal-company/p/Kittenji/)] # v1.0.0 (Released 2024-01-23) - Initial release \ No newline at end of file diff --git a/DevelopmentStartup/DevelopmentStartup.csproj b/DevelopmentStartup/DevelopmentStartup.csproj index 357d623..38d4d78 100644 --- a/DevelopmentStartup/DevelopmentStartup.csproj +++ b/DevelopmentStartup/DevelopmentStartup.csproj @@ -3,7 +3,7 @@ netstandard2.1 DevelopmentStartup My first plugin - 1.0.0 + 1.1.0 true latest false diff --git a/DevelopmentStartup/Plugin.cs b/DevelopmentStartup/Plugin.cs index 4be3933..e2ee613 100644 --- a/DevelopmentStartup/Plugin.cs +++ b/DevelopmentStartup/Plugin.cs @@ -24,8 +24,14 @@ public enum LaunchMode { private readonly Harmony harmony = new Harmony(PluginInfo.PLUGIN_GUID); void Awake() { + #if DEBUG //TODO make a config option for this + const bool debugMode = true; + #else + const bool debugMode = false; + #endif + CLog = BepInEx.Logging.Logger.CreateLogSource(PluginInfo.PLUGIN_NAME); - CLog.LogInfo($"Plugin {PluginInfo.PLUGIN_NAME} is loaded! Version: {PluginInfo.PLUGIN_VERSION}"); + CLog.LogInfo($"Plugin {PluginInfo.PLUGIN_NAME} is loaded! Version: {PluginInfo.PLUGIN_VERSION} ({(debugMode ? "Debug" : "Release")})"); this.ConfigFile(); harmony.PatchAll(); @@ -38,7 +44,7 @@ public enum LaunchMode { // launchMode = Config.Bind("General", "LaunchMode", LaunchMode.LAN, "The launch mode to start in (Online or LAN)").Value; // Console.Log($"LaunchMode: {launchMode}"); - autoJoinLan = Config.Bind("General", "Auto Join LAN", true, "Automatically join LAN lobbies when game is launched more than once.").Value; + autoJoinLan = Config.Bind("General", "AutoJoinLAN", true, "Automatically join LAN lobbies when game is launched more than once.").Value; } private static Mutex AppMutex; diff --git a/DevelopmentStartup/PluginInfo.cs b/DevelopmentStartup/PluginInfo.cs index a118d2d..d2e9cd2 100644 --- a/DevelopmentStartup/PluginInfo.cs +++ b/DevelopmentStartup/PluginInfo.cs @@ -4,6 +4,6 @@ public static class PluginInfo { public const string PLUGIN_GUID = "com.ctnoriginals.DevelopmentStartup"; public const string PLUGIN_NAME = "DevelopmentStartup"; - public const string PLUGIN_VERSION = "1.0.0"; + public const string PLUGIN_VERSION = "1.1.0"; } } \ No newline at end of file diff --git a/README.md b/README.md index 62d4906..996d774 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,14 @@ Skip all the useless startup menus and jump right into a game! Tool for develope 1. Download the latest version from the [releases page](https://github.com/CTN-Originals/LethalCompany-DevelopmentStartup/releases). 2. Extract the zip file. 3. Move the `BepInEx/plugins/DevelopmentStartup.dll` file to `BepInEx/plugins` folder. -4. Launch the game and never wonder where you are aiming again! +4. Move the `BepInEx/config/DevelopmentStartup.cfg` file to `BepInEx/config` folder. +5. Launch the game and never wonder where you are aiming again! ### Thunderstore Install using the Thunderstore Mod Manager: https://thunderstore.io/c/lethal-company/p/CTNOriginals/DevelopmentStartup/ ## To-Do -- [ ] Add support for joining local games on a second instance of the game. +- [x] Add support for joining local games on a second instance of the game. [Added by [Kittenji](https://thunderstore.io/c/lethal-company/p/Kittenji/)] +- [ ] Add the option to pull the ship lever once you join the lobby. ## Changelog See [CHANGELOG.md](https://github.com/CTN-Originals/LethalCompany-DevelopmentStartup/blob/main/CHANGELOG.md) for the full changelog. \ No newline at end of file