Skip to content

Commit

Permalink
Corrected pathing structure for QMM Packages to work with the thunder…
Browse files Browse the repository at this point in the history
…store mod manager.
  • Loading branch information
MrPurple6411 committed Mar 1, 2022
1 parent 92f3f97 commit 6d7e293
Show file tree
Hide file tree
Showing 46 changed files with 30 additions and 22 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "QModManager_BZ",
"version_number": "4.4.0",
"version_number": "4.4.1",
"website_url": "https://github.com/SubnauticaModding/QModManager",
"description": "QModManager is an intermidiate loader for mods made for the QMM system.",
"dependencies": [ "Subnautica_Modding-BepInExPack_BelowZero-5.4.19" ]
Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified BepinexPackages/BelowZero_Packages/QModManager_BelowZero.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "QModManager_BZ_Experimental",
"version_number": "4.4.0",
"version_number": "4.4.1",
"website_url": "https://github.com/SubnauticaModding/QModManager",
"description": "QModManager is an intermidiate loader for mods made for the QMM system.",
"dependencies": [ "Subnautica_Modding-BepInExPack_BelowZero-5.4.19" ]
Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified BepinexPackages/BelowZero_Packages/SMLHelper.zip
Binary file not shown.
Binary file not shown.
Binary file modified BepinexPackages/BelowZero_Packages/SMLHelper_Exp.zip
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "QModManager",
"version_number": "4.4.0",
"version_number": "4.4.1",
"website_url": "https://github.com/SubnauticaModding/QModManager",
"description": "QModManager is an intermidiate loader for mods made for the QMM system.",
"dependencies": [ "Subnautica_Modding-BepInExPack_Subnautica-5.4.19" ]
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "QModManager_Experimental",
"version_number": "4.4.0",
"version_number": "4.4.1",
"website_url": "https://github.com/SubnauticaModding/QModManager",
"description": "QModManager is an intermidiate loader for mods made for the QMM system.",
"dependencies": [ "Subnautica_Modding-BepInExPack_Subnautica-5.4.19" ]
Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified BepinexPackages/Subnautica_Packages/QModManager_Subnautica.zip
Binary file not shown.
Binary file not shown.
Binary file modified BepinexPackages/Subnautica_Packages/SMLHelper.zip
Binary file not shown.
Binary file not shown.
Binary file modified BepinexPackages/Subnautica_Packages/SMLHelper_Exp.zip
Binary file not shown.
Binary file not shown.
8 changes: 6 additions & 2 deletions SMLHelper/SMLHelper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,9 @@
copy "$(TargetDir)SMLHelper.xml" "$(TargetDir)SMLHelper_BZ\SMLHelper.xml" /y > nul
copy "$(TargetDir)SMLHelper.dll" "$(TargetDir)SMLHelper_BZ\SMLHelper.dll" /y > nul
rmdir "$(SolutionDir)BepinexPackages\BelowZero_Packages\SMLHelper\QMods\SMLHelper_BZ" /q /s > nul
xcopy "$(TargetDir)SMLHelper_BZ" "$(SolutionDir)BepinexPackages\BelowZero_Packages\SMLHelper\QMods\SMLHelper_BZ\" /y /d
$(SolutionDir)packages\7-Zip.CommandLine.18.1.0\tools\7za.exe a "$(SolutionDir)BepinexPackages\BelowZero_Packages\SMLHelper.zip" "$(SolutionDir)BepinexPackages\BelowZero_Packages\SMLHelper\*"
xcopy "$(TargetDir)SMLHelper_BZ" "$(SolutionDir)BepinexPackages\BelowZero_Packages\SMLHelper\QMods\SMLHelper_BZ\" /y /d > nul
IF EXIST "$(SolutionDir)BepinexPackages\BelowZero_Packages\SMLHelper.zip" DEL /F "$(SolutionDir)BepinexPackages\BelowZero_Packages\SMLHelper.zip"
$(SolutionDir)packages\7-Zip.CommandLine.18.1.0\tools\7za.exe a "$(SolutionDir)BepinexPackages\BelowZero_Packages\SMLHelper.zip" "$(SolutionDir)BepinexPackages\BelowZero_Packages\SMLHelper\*" > nul
powershell Compress-Archive -Path '$(TargetDir)SMLHelper_BZ' -DestinationPath '$(TargetDir)\SMLHelper_$(ConfigurationName).zip' -Force
)

Expand All @@ -319,6 +320,7 @@
copy "$(TargetDir)SMLHelper.dll" "$(TargetDir)SMLHelper_BZ\SMLHelper.dll" /y > nul
rmdir "$(SolutionDir)BepinexPackages\BelowZero_Packages\SMLHelper_Exp\QMods\SMLHelper_BZ" /q /s > nul
xcopy "$(TargetDir)SMLHelper_BZ" "$(SolutionDir)BepinexPackages\BelowZero_Packages\SMLHelper_Exp\QMods\SMLHelper_BZ\" /y /d >nul
IF EXIST "$(SolutionDir)BepinexPackages\BelowZero_Packages\SMLHelper_Exp.zip" DEL /F "$(SolutionDir)BepinexPackages\BelowZero_Packages\SMLHelper_Exp.zip"
$(SolutionDir)packages\7-Zip.CommandLine.18.1.0\tools\7za.exe a "$(SolutionDir)BepinexPackages\BelowZero_Packages\SMLHelper_Exp.zip" "$(SolutionDir)BepinexPackages\BelowZero_Packages\SMLHelper_Exp\*"
powershell Compress-Archive -Path '$(TargetDir)SMLHelper_BZ' -DestinationPath '$(TargetDir)\SMLHelper_$(ConfigurationName).zip' -Force
)
Expand All @@ -331,6 +333,7 @@
copy "$(TargetDir)SMLHelper.dll" "$(TargetDir)Modding Helper\SMLHelper.dll" /y > nul
rmdir "$(SolutionDir)BepinexPackages\Subnautica_Packages\SMLHelper\QMods\Modding Helper" /q /s > nul
xcopy "$(TargetDir)Modding Helper" "$(SolutionDir)BepinexPackages\Subnautica_Packages\SMLHelper\QMods\Modding Helper\" /y /d >nul
IF EXIST "$(SolutionDir)BepinexPackages\Subnautica_Packages\SMLHelper.zip" DEL /F "$(SolutionDir)BepinexPackages\Subnautica_Packages\SMLHelper.zip"
$(SolutionDir)packages\7-Zip.CommandLine.18.1.0\tools\7za.exe a "$(SolutionDir)BepinexPackages\Subnautica_Packages\SMLHelper.zip" "$(SolutionDir)BepinexPackages\Subnautica_Packages\SMLHelper\*"
powershell Compress-Archive -Path '$(TargetDir)Modding Helper' -DestinationPath '$(TargetDir)\SMLHelper_$(ConfigurationName).zip' -Force
)
Expand All @@ -343,6 +346,7 @@
copy "$(TargetDir)SMLHelper.dll" "$(TargetDir)Modding Helper\SMLHelper.dll" /y > nul
rmdir "$(SolutionDir)BepinexPackages\Subnautica_Packages\SMLHelper_Exp\QMods\Modding Helper" /q /s > nul
xcopy "$(TargetDir)Modding Helper" "$(SolutionDir)BepinexPackages\Subnautica_Packages\SMLHelper_Exp\QMods\Modding Helper\" /y /d
IF EXIST "$(SolutionDir)BepinexPackages\Subnautica_Packages\SMLHelper_Exp.zip" DEL /F "$(SolutionDir)BepinexPackages\Subnautica_Packages\SMLHelper_Exp.zip"
$(SolutionDir)packages\7-Zip.CommandLine.18.1.0\tools\7za.exe a "$(SolutionDir)BepinexPackages\Subnautica_Packages\SMLHelper_Exp.zip" "$(SolutionDir)BepinexPackages\Subnautica_Packages\SMLHelper_Exp\*"
powershell Compress-Archive -Path '$(TargetDir)Modding Helper' -DestinationPath '$(TargetDir)\SMLHelper_$(ConfigurationName).zip' -Force
)
Expand Down
28 changes: 16 additions & 12 deletions Scripts/QModPluginGenerator-post-build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,34 @@ set configName=%3


if %configName% == "SN.STABLE" (
xcopy "%targetDir%QModManager.QModPluginGenerator.dll" "%solutionDir%BepinexPackages\Subnautica_Packages\QModManager\QModManager\Bepinex\patchers\QModManager\" /I /Q /Y
xcopy "%targetDir%QModInstaller.dll" "%solutionDir%BepinexPackages\Subnautica_Packages\QModManager\QModManager\Bepinex\plugins\QModManager\" /I /Q /Y
xcopy "%targetDir%QModInstaller.xml" "%solutionDir%BepinexPackages\Subnautica_Packages\QModManager\QModManager\Bepinex\plugins\QModManager\" /I /Q /Y
xcopy "%targetDir%QModManager.QModPluginGenerator.dll" "%solutionDir%BepinexPackages\Subnautica_Packages\QModManager\patchers\QModManager\" /I /Q /Y
xcopy "%targetDir%QModInstaller.dll" "%solutionDir%BepinexPackages\Subnautica_Packages\QModManager\plugins\QModManager\" /I /Q /Y
xcopy "%targetDir%QModInstaller.xml" "%solutionDir%BepinexPackages\Subnautica_Packages\QModManager\plugins\QModManager\" /I /Q /Y
IF EXIST "%solutionDir%BepinexPackages\Subnautica_Packages\QModManager_Subnautica.zip" DEL /F "%solutionDir%BepinexPackages\Subnautica_Packages\QModManager_Subnautica.zip"
%solutionDir%packages\7-Zip.CommandLine.18.1.0\tools\7za.exe a "%solutionDir%BepinexPackages\Subnautica_Packages\QModManager_Subnautica.zip" "%solutionDir%BepinexPackages\Subnautica_Packages\QModManager\*"
)

if %configName% == "SN.EXP" (
xcopy "%targetDir%QModManager.QModPluginGenerator.dll" "%solutionDir%BepinexPackages\Subnautica_Packages\QModManager_Exp\QModManager\Bepinex\patchers\QModManager\" /I /Q /Y
xcopy "%targetDir%QModInstaller.dll" "%solutionDir%BepinexPackages\Subnautica_Packages\QModManager_Exp\QModManager\Bepinex\plugins\QModManager\" /I /Q /Y
xcopy "%targetDir%QModInstaller.xml" "%solutionDir%BepinexPackages\Subnautica_Packages\QModManager_Exp\QModManager\Bepinex\plugins\QModManager\" /I /Q /Y
xcopy "%targetDir%QModManager.QModPluginGenerator.dll" "%solutionDir%BepinexPackages\Subnautica_Packages\QModManager_Exp\patchers\QModManager\" /I /Q /Y
xcopy "%targetDir%QModInstaller.dll" "%solutionDir%BepinexPackages\Subnautica_Packages\QModManager_Exp\plugins\QModManager\" /I /Q /Y
xcopy "%targetDir%QModInstaller.xml" "%solutionDir%BepinexPackages\Subnautica_Packages\QModManager_Exp\plugins\QModManager\" /I /Q /Y
IF EXIST "%solutionDir%BepinexPackages\Subnautica_Packages\QModManager_Subnautica_Experimental.zip" DEL /F "%solutionDir%BepinexPackages\Subnautica_Packages\QModManager_Subnautica_Experimental.zip"
%solutionDir%packages\7-Zip.CommandLine.18.1.0\tools\7za.exe a "%solutionDir%BepinexPackages\Subnautica_Packages\QModManager_Subnautica_Experimental.zip" "%solutionDir%BepinexPackages\Subnautica_Packages\QModManager_Exp\*"
)

if %configName% == "BZ.STABLE" (
xcopy "%targetDir%QModManager.QModPluginGenerator.dll" "%solutionDir%BepinexPackages\BelowZero_Packages\QModManager\QModManager\Bepinex\patchers\QModManager\" /I /Q /Y
xcopy "%targetDir%QModInstaller.dll" "%solutionDir%BepinexPackages\BelowZero_Packages\QModManager\QModManager\Bepinex\plugins\QModManager\" /I /Q /Y
xcopy "%targetDir%QModInstaller.xml" "%solutionDir%BepinexPackages\BelowZero_Packages\QModManager\QModManager\Bepinex\plugins\QModManager\" /I /Q /Y
xcopy "%targetDir%QModManager.QModPluginGenerator.dll" "%solutionDir%BepinexPackages\BelowZero_Packages\QModManager\patchers\QModManager\" /I /Q /Y
xcopy "%targetDir%QModInstaller.dll" "%solutionDir%BepinexPackages\BelowZero_Packages\QModManager\plugins\QModManager\" /I /Q /Y
xcopy "%targetDir%QModInstaller.xml" "%solutionDir%BepinexPackages\BelowZero_Packages\QModManager\plugins\QModManager\" /I /Q /Y
IF EXIST "%solutionDir%BepinexPackages\BelowZero_Packages\QModManager_BelowZero.zip" DEL /F "%solutionDir%BepinexPackages\BelowZero_Packages\QModManager_BelowZero.zip"
%solutionDir%packages\7-Zip.CommandLine.18.1.0\tools\7za.exe a "%solutionDir%BepinexPackages\BelowZero_Packages\QModManager_BelowZero.zip" "%solutionDir%BepinexPackages\BelowZero_Packages\QModManager\*"
)

if %configName% == "BZ.EXP" (
xcopy "%targetDir%QModManager.QModPluginGenerator.dll" "%solutionDir%BepinexPackages\BelowZero_Packages\QModManager_Exp\QModManager\Bepinex\patchers\QModManager\" /I /Q /Y
xcopy "%targetDir%QModInstaller.dll" "%solutionDir%BepinexPackages\BelowZero_Packages\QModManager_Exp\QModManager\Bepinex\plugins\QModManager\" /I /Q /Y
xcopy "%targetDir%QModInstaller.xml" "%solutionDir%BepinexPackages\BelowZero_Packages\QModManager_Exp\QModManager\Bepinex\plugins\QModManager\" /I /Q /Y
xcopy "%targetDir%QModManager.QModPluginGenerator.dll" "%solutionDir%BepinexPackages\BelowZero_Packages\QModManager_Exp\patchers\QModManager\" /I /Q /Y
xcopy "%targetDir%QModInstaller.dll" "%solutionDir%BepinexPackages\BelowZero_Packages\QModManager_Exp\plugins\QModManager\" /I /Q /Y
xcopy "%targetDir%QModInstaller.xml" "%solutionDir%BepinexPackages\BelowZero_Packages\QModManager_Exp\plugins\QModManager\" /I /Q /Y
IF EXIST "%solutionDir%BepinexPackages\BelowZero_Packages\QModManager_BelowZero_Experimental.zip" DEL /F "%solutionDir%BepinexPackages\BelowZero_Packages\QModManager_BelowZero_Experimental.zip"
%solutionDir%packages\7-Zip.CommandLine.18.1.0\tools\7za.exe a "%solutionDir%BepinexPackages\BelowZero_Packages\QModManager_BelowZero_Experimental.zip" "%solutionDir%BepinexPackages\BelowZero_Packages\QModManager_Exp\*"
)

8 changes: 4 additions & 4 deletions common.props
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)'=='SN.STABLE'">
<GameDir>C:\Program Files (x86)\Steam\steamapps\common\Subnautica</GameDir>
<GameDir>C:\Program Files (x86)\Steam\steamapps\common\SubnauticaBranches\Stable</GameDir>
<ManagedDir>$(GameDir)\Subnautica_Data\Managed</ManagedDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='BZ.STABLE'">
<GameDir>C:\Program Files (x86)\Steam\steamapps\common\SubnauticaZero</GameDir>
<GameDir>C:\Program Files (x86)\Steam\steamapps\common\SubnauticaZeroBranches\Stable</GameDir>
<ManagedDir>$(GameDir)\SubnauticaZero_Data\Managed</ManagedDir>
</PropertyGroup>
<!-- using Contains so VS won't auto add this configs to all projects -->
<PropertyGroup Condition="$(Configuration.Contains('SN.EXP'))">
<GameDir>C:\Program Files (x86)\Steam\steamapps\common\Subnautica</GameDir>
<GameDir>C:\Program Files (x86)\Steam\steamapps\common\SubnauticaBranches\Exp</GameDir>
<ManagedDir>$(GameDir)\Subnautica_Data\Managed</ManagedDir>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.Contains('BZ.EXP'))">
<GameDir>C:\Program Files (x86)\Steam\steamapps\common\SubnauticaZero</GameDir>
<GameDir>C:\Program Files (x86)\Steam\steamapps\common\SubnauticaZeroBranches\Exp</GameDir>
<ManagedDir>$(GameDir)\SubnauticaZero_Data\Managed</ManagedDir>
</PropertyGroup>
<PropertyGroup>
Expand Down

0 comments on commit 6d7e293

Please sign in to comment.