Skip to content

Commit

Permalink
2.1.1
Browse files Browse the repository at this point in the history
- Improved parity, easier future maintenance
- Moved BZ to BepInEx + Nautilus
  • Loading branch information
DingoDjango committed Jun 1, 2024
1 parent ef4dc34 commit d9f017e
Show file tree
Hide file tree
Showing 24 changed files with 139 additions and 279 deletions.
Binary file not shown.
81 changes: 0 additions & 81 deletions Below Zero/HarmonyPatches.cs

This file was deleted.

40 changes: 20 additions & 20 deletions Below Zero/ModPlugin.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
//using BepInEx;
//using UnityEngine;
using BepInEx;
using UnityEngine;

//namespace StorageInfo_BZ
//{
// [BepInPlugin(modGUID, modName, modVersion)]
// public class ModPlugin : BaseUnityPlugin
// {
// private const string modGUID = "Dingo.SN.StorageInfo";
// internal const string modName = "Storage Info";
// private const string modVersion = "2.0.1";
namespace StorageInfo
{
[BepInPlugin(modGUID, modName, modVersion)]
public class ModPlugin : BaseUnityPlugin
{
public const string modGUID = "Dingo.SNBZ.StorageInfo";
public const string modName = "Storage Info BZ";
public const string modVersion = "2.1.1";

// internal static void LogMessage(string message)
// {
// Debug.Log($"{modName} :: " + message);
// }
public static void LogMessage(string message)
{
Debug.Log($"{modName} :: ${message}");
}

// public void Start()
// {
// HarmonyPatches.InitializeHarmony();
// }
// }
//}
public void Start()
{
HarmonyPatches.InitializeHarmony();
}
}
}
6 changes: 3 additions & 3 deletions Below Zero/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("StorageInfo.Properties")]
[assembly: AssemblyCopyright("Dingo 2019-2023")]
[assembly: AssemblyCopyright("Dingo 2019-2024")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -29,5 +29,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("2.1.1.0")]
[assembly: AssemblyFileVersion("2.1.1.0")]
10 changes: 0 additions & 10 deletions Below Zero/QMods/StorageInfo_BZ/mod.json

This file was deleted.

46 changes: 32 additions & 14 deletions Below Zero/StorageInfo_BZ.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ProjectGuid>{0CDFE192-9672-425C-B635-6819C7389A95}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>StorageInfo_BZ</RootNamespace>
<RootNamespace>StorageInfo</RootNamespace>
<AssemblyName>StorageInfo_BZ</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
Expand All @@ -17,7 +17,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>embedded</DebugType>
<Optimize>false</Optimize>
<OutputPath>QMods\StorageInfo_BZ\</OutputPath>
<OutputPath>BepInEx\plugins\StorageInfo_BZ\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand All @@ -28,7 +28,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>QMods\StorageInfo_BZ\</OutputPath>
<OutputPath>BepInEx\plugins\StorageInfo_BZ\</OutputPath>
<DefineConstants>
</DefineConstants>
<ErrorReport>prompt</ErrorReport>
Expand Down Expand Up @@ -59,12 +59,8 @@
<HintPath>D:\SubnauticaBelowZero\SubnauticaZero_Data\Managed\LitJson.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="QModInstaller">
<HintPath>..\..\..\..\SubnauticaBelowZero\BepInEx\plugins\QModManager\QModInstaller.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="SMLHelper">
<HintPath>..\..\..\..\SubnauticaBelowZero\QMods\SMLHelper_BZ\SMLHelper.dll</HintPath>
<Reference Include="Nautilus">
<HintPath>..\..\..\..\SubnauticaBelowZero\BepInEx\plugins\Nautilus\Nautilus.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
Expand All @@ -91,12 +87,34 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="HarmonyPatches.cs" />
<Compile Include="..\Shared\HarmonyPatches.cs">
<Link>HarmonyPatches.cs</Link>
</Compile>
<Compile Include="..\Shared\Translation.cs">
<Link>Translation.cs</Link>
</Compile>
<Compile Include="ModPlugin.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Translation.cs" />
</ItemGroup>
<ItemGroup>
<None Include="mod.json">
<None Include="..\Shared\Languages\English.json">
<Link>Languages\English.json</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="..\Shared\Languages\French.json">
<Link>Languages\French.json</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="..\Shared\Languages\German.json">
<Link>Languages\German.json</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="..\Shared\Languages\Polish.json">
<Link>Languages\Polish.json</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="..\Shared\Languages\Russian.json">
<Link>Languages\Russian.json</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
Expand All @@ -106,10 +124,10 @@
<Target Name="BeforeBuild">
</Target> -->
<PropertyGroup>
<PostBuildEvent>SET MODDIR=D:\SubnauticaBelowZero\QMods\
<PostBuildEvent>SET MODDIR=D:\SubnauticaBelowZero\BepInEx\
SET ZIPFILE=D:\Downloads\$(ProjectName).zip

xcopy "$(ProjectDir)QMods\*" "%25MODDIR%25" /i /e /r /y
xcopy "$(ProjectDir)BepInEx\*" "%25MODDIR%25" /i /e /r /y

7z a -mx9 "%25ZIPFILE%25" "$(ProjectDir)QMods"
</PostBuildEvent>
Expand Down
125 changes: 0 additions & 125 deletions Below Zero/Translation.cs

This file was deleted.

10 changes: 0 additions & 10 deletions Below Zero/mod.json

This file was deleted.

File renamed without changes.
6 changes: 6 additions & 0 deletions Shared/Languages/English.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ContainerEmpty": "empty",
"ContainerFull": "full",
"ContainerOneItem": "1 item (not full)",
"ContainerNonempty": "{0} items (not full)"
}
6 changes: 6 additions & 0 deletions Shared/Languages/French.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ContainerEmpty": "vide",
"ContainerFull": "plein",
"ContainerOneItem": "1 objet (pas plein)",
"ContainerNonempty": "{0} objets (pas plein)"
}
Loading

0 comments on commit d9f017e

Please sign in to comment.