Skip to content

Commit

Permalink
exclude jukebox music from SN (-22mb to mod dll)
Browse files Browse the repository at this point in the history
rebuild assets
  • Loading branch information
Govorunb committed Dec 26, 2023
1 parent c22bc0b commit e941f1f
Show file tree
Hide file tree
Showing 19 changed files with 29 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<objects serializationModel="Studio.02.01.00">
<object class="Bank" id="{b53bb930-317b-47eb-b4f9-6582c4219d2a}">
<property name="name">
<value>Music</value>
</property>
<relationship name="folder">
<destination>{260d3c23-6191-4d70-ad12-e129474461ec}</destination>
</relationship>
</object>
</objects>
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<destination>{2c7de081-9295-4fee-a507-78a5ac1dc51f}</destination>
</relationship>
<relationship name="banks">
<destination>{6f6c823e-9073-439e-9503-3b2b490ddbfb}</destination>
<destination>{b53bb930-317b-47eb-b4f9-6582c4219d2a}</destination>
</relationship>
<relationship name="defaultEvent">
<destination>{e57de3d0-7136-405f-aab9-f8b3694d7064}</destination>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<destination>{a830a647-15cd-4cbe-9d4b-90b3e2ebb249}</destination>
</relationship>
<relationship name="banks">
<destination>{6f6c823e-9073-439e-9503-3b2b490ddbfb}</destination>
<destination>{b53bb930-317b-47eb-b4f9-6582c4219d2a}</destination>
</relationship>
</object>
<object class="EventMixer" id="{a55781f5-c2de-4433-aa6f-78cca0bc6da1}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<destination>{a56a35a3-07d3-43df-bf06-00b6872c5836}</destination>
</relationship>
<relationship name="banks">
<destination>{6f6c823e-9073-439e-9503-3b2b490ddbfb}</destination>
<destination>{b53bb930-317b-47eb-b4f9-6582c4219d2a}</destination>
</relationship>
<relationship name="defaultEvent">
<destination>{e57de3d0-7136-405f-aab9-f8b3694d7064}</destination>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<destination>{6c4cb6d7-bc09-47c0-9a4f-9a10be018978}</destination>
</relationship>
<relationship name="banks">
<destination>{6f6c823e-9073-439e-9503-3b2b490ddbfb}</destination>
<destination>{b53bb930-317b-47eb-b4f9-6582c4219d2a}</destination>
</relationship>
</object>
<object class="EventMixer" id="{85358190-ae55-4225-899b-44e08b886333}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<destination>{92f80dc8-a67e-4e39-8841-a0db36954c0e}</destination>
</relationship>
<relationship name="banks">
<destination>{6f6c823e-9073-439e-9503-3b2b490ddbfb}</destination>
<destination>{b53bb930-317b-47eb-b4f9-6582c4219d2a}</destination>
</relationship>
</object>
<object class="EventMixer" id="{cd1f2e1c-3220-467e-b3ee-9b7d96731b56}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<destination>{0ef0c190-6741-4dca-9cc3-b3165a706f43}</destination>
</relationship>
<relationship name="banks">
<destination>{6f6c823e-9073-439e-9503-3b2b490ddbfb}</destination>
<destination>{b53bb930-317b-47eb-b4f9-6582c4219d2a}</destination>
</relationship>
</object>
<object class="EventMixer" id="{90d710b9-1291-4406-b856-75e3d9d4523f}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<destination>{311bdcbe-ea7e-424d-bf54-ee40f5acab62}</destination>
</relationship>
<relationship name="banks">
<destination>{6f6c823e-9073-439e-9503-3b2b490ddbfb}</destination>
<destination>{b53bb930-317b-47eb-b4f9-6582c4219d2a}</destination>
</relationship>
</object>
<object class="EventMixer" id="{63c18c03-e8bd-4ee1-8a5c-a30927fe45f1}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<destination>{8822be8a-db34-44e9-b1f2-4ebe8bb26395}</destination>
</relationship>
<relationship name="banks">
<destination>{6f6c823e-9073-439e-9503-3b2b490ddbfb}</destination>
<destination>{b53bb930-317b-47eb-b4f9-6582c4219d2a}</destination>
</relationship>
</object>
<object class="EventMixer" id="{5fb5b6ce-3bff-43f9-a70e-763ce552793f}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<destination>{0554ca85-e90e-4dd4-aca8-4a45b52befd7}</destination>
</relationship>
<relationship name="banks">
<destination>{6f6c823e-9073-439e-9503-3b2b490ddbfb}</destination>
<destination>{b53bb930-317b-47eb-b4f9-6582c4219d2a}</destination>
</relationship>
</object>
<object class="EventMixer" id="{4d76ee5c-24b7-45c8-9ed9-d20e00e0a2ab}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<destination>{fda5a527-f4a7-4f21-ba17-cc979c2f501c}</destination>
</relationship>
<relationship name="banks">
<destination>{6f6c823e-9073-439e-9503-3b2b490ddbfb}</destination>
<destination>{b53bb930-317b-47eb-b4f9-6582c4219d2a}</destination>
</relationship>
</object>
<object class="EventMixer" id="{37698042-d1fd-40ad-bd79-2d2e7891d0c5}">
Expand Down
4 changes: 3 additions & 1 deletion SCHIZO/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ private IEnumerator Start()
yield return MaterialHelpers.LoadMaterials();
StaticHelpers.CacheAttribute.CacheAll();
FMODHelpers.LoadMasterBank("SCHIZO");

if (IS_BELOWZERO)
FMODHelpers.LoadSubBank("Music");

Assets.Mod_Registry.InvokeRegister();
Assets.Mod_Registry.InvokePostRegister();

Expand Down
2 changes: 1 addition & 1 deletion SCHIZO/Resources/AssetBundles/Assets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace SCHIZO.Resources;

public static class Assets
{
private const int _rnd = 1956607609;
private const int _rnd = 1357310099;

private static readonly UnityEngine.AssetBundle _a = ResourceManager.GetAssetBundle("assets");

Expand Down
Binary file modified SCHIZO/Resources/AssetBundles/assets
Binary file not shown.
Binary file added SCHIZO/Resources/FMODBanks/Music.bank
Binary file not shown.
Binary file modified SCHIZO/Resources/FMODBanks/SCHIZO.bank
Binary file not shown.
Binary file modified SCHIZO/Resources/FMODBanks/SCHIZO.strings.bank
Binary file not shown.
2 changes: 2 additions & 0 deletions SCHIZO/SCHIZO.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@

<ItemGroup>
<EmbeddedResource Include="Resources/**" />
<!-- needs to be here because the Include happens after importing game-specific .props -->
<EmbeddedResource Remove="Resources/FMODBanks/Music.bank" Condition="'$(Configuration)' == 'Subnautica'" />
<EmbeddedResource Remove="Resources/**/*.cs" />
<EmbeddedResource Remove="Resources/AssetBundles/AssetBundles" />
<EmbeddedResource Remove="Resources/AssetBundles/*.manifest" />
Expand Down
3 changes: 2 additions & 1 deletion Unity/Assets/Plugins/FMOD/Resources/FMODStudioSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@ MonoBehaviour:
Plugins: []
MasterBanks:
- SCHIZO
Banks: []
Banks:
- Music
BanksToLoad: []
LiveUpdatePort: 9264
EnableMemoryTracking: 0
Expand Down

0 comments on commit e941f1f

Please sign in to comment.