Skip to content

Commit

Permalink
1.1.0
Browse files Browse the repository at this point in the history
- 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/)]
  • Loading branch information
CTNOriginals committed Feb 9, 2024
1 parent da2e981 commit 81b3a1a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion DevelopmentStartup/DevelopmentStartup.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TargetFramework>netstandard2.1</TargetFramework>
<AssemblyName>DevelopmentStartup</AssemblyName>
<Description>My first plugin</Description>
<Version>1.0.0</Version>
<Version>1.1.0</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
Expand Down
10 changes: 8 additions & 2 deletions DevelopmentStartup/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion DevelopmentStartup/PluginInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 81b3a1a

Please sign in to comment.