Skip to content

Commit

Permalink
Add thunderkit packaging.
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyhoot committed Nov 24, 2023
1 parent 83325df commit 187b9b3
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 1 deletion.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# ShipLobby

A mod for Lethal Company which reopens the lobby whenever you're in orbit in between missions.

I've often had the issue where I'd been playing with friends for a while and one of them
decided to hop off for the night. In order to invite someone else to keep playing with
I'd have to remake the lobby every time. This mod fixes that by re-opening the lobby as soon
as you return to orbit from any mission.

**Only the host** needs to install this mod. It has no impact when used as a client. Clients who
want to join you do not need to have this mod installed.

### Differences to LateCompany

LateCompany allows joining at any point in time, even during ongoing missions. This mod
allows joining or "backfilling" *only between missions* while the ship is in orbit.
Thus, the impact of any newly joining clients is minimal and there is no danger of desynchronisation.

## Installation

- Install [BepInEx](https://thunderstore.io/c/lethal-company/p/BepInEx/BepInExPack/)
- Unzip this mod into your `Lethal Company/BepInEx` folder

Or use the thunderstore mod manager to handle the installing for you.
6 changes: 6 additions & 0 deletions ShipLobby/PostBuildEvents.targets
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
<GameDirTargetsFile>GameDirectory.targets</GameDirTargetsFile>
<GameDirTargetsFullPath>$(ProjectDir)$(GameDirTargetsFile)</GameDirTargetsFullPath>
</PropertyGroup>
<ItemGroup>
<ThunderStoreItems Include="..\icon.png" />
<ThunderStoreItems Include="..\manifest.json" />
<ThunderStoreItems Include="..\README.md" />
</ItemGroup>

<!-- Ensure the user (you!) has actually set everything up properly. -->
<Target Name="EnsureGameDirectoryDefined" BeforeTargets="PrepareForBuild">
Expand Down Expand Up @@ -55,6 +60,7 @@
<Message Importance="normal" Text="Copying files to temporary directory." />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(TempZipDir)\$(ZipStructure)" />
<Copy SourceFiles="@(Assets)" DestinationFolder="$(TempZipDir)\$(ZipStructure)\%(Assets.RelativeDir)" />
<Copy SourceFiles="@(ThunderStoreItems)" DestinationFolder="$(TempZipDir)\$(ThunderStoreItems)" />
</Target>
<Target Name="CreateZip" AfterTargets="PrepareZip" Condition="$(Configuration.Contains('Release'))">
<Message Importance="high" Text="Zipping project for distribution." />
Expand Down
2 changes: 1 addition & 1 deletion ShipLobby/ShipLobby.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ internal class ShipLobby : BaseUnityPlugin
{
public const string GUID = "com.github.tinyhoot.ShipLobby";
public const string NAME = "ShipLobby";
public const string VERSION = "0.1";
public const string VERSION = "1.0";

internal static ShipLobby Instance;
internal static ManualLogSource Log;
Expand Down
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "ShipLobby",
"version_number": "1.0.0",
"website_url": "https://github.com/tinyhoot/ShipLobby",
"description": "Let people join late whenever you're in orbit in between missions.",
"dependencies": [
"BepInEx-BepInExPack-5.4.2100"
]
}

0 comments on commit 187b9b3

Please sign in to comment.