-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is version 1.0.0 of the mod! YAY
- Loading branch information
Meeps
committed
Sep 12, 2020
1 parent
0347cf4
commit e70b5b0
Showing
6 changed files
with
458 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,204 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{B450DB87-100F-446D-BA5F-93B6E9042F46}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>CustomDifficultyNames</RootNamespace> | ||
<AssemblyName>CustomDifficultyNames</AssemblyName> | ||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<Deterministic>true</Deterministic> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>none</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="Assembly-CSharp"> | ||
<HintPath>lib\Assembly-CSharp.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Assembly-CSharp-firstpass"> | ||
<HintPath>lib\Assembly-CSharp-firstpass.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Il2CppMono.Security"> | ||
<HintPath>lib\Il2CppMono.Security.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Il2Cppmscorlib"> | ||
<HintPath>lib\Il2Cppmscorlib.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Il2CppSystem"> | ||
<HintPath>lib\Il2CppSystem.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Il2CppSystem.Configuration"> | ||
<HintPath>lib\Il2CppSystem.Configuration.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Il2CppSystem.Core"> | ||
<HintPath>lib\Il2CppSystem.Core.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Il2CppSystem.Runtime.Serialization"> | ||
<HintPath>lib\Il2CppSystem.Runtime.Serialization.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Il2CppSystem.Xml"> | ||
<HintPath>lib\Il2CppSystem.Xml.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="MelonLoader.ModHandler"> | ||
<HintPath>lib\MelonLoader.ModHandler.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Oculus.VR"> | ||
<HintPath>lib\Oculus.VR.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Sanford.Multimedia.Midi"> | ||
<HintPath>lib\Sanford.Multimedia.Midi.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SonyNP"> | ||
<HintPath>lib\SonyNP.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="SteamVR"> | ||
<HintPath>lib\SteamVR.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.IO.Compression, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"> | ||
<HintPath>packages\System.IO.Compression.4.3.0\lib\net46\System.IO.Compression.dll</HintPath> | ||
<Private>True</Private> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="System.IO.Compression.FileSystem" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Net.Http" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="TwitchChatter"> | ||
<HintPath>lib\TwitchChatter.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnhollowerBaseLib"> | ||
<HintPath>lib\UnhollowerBaseLib.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnhollowerRuntimeLib"> | ||
<HintPath>lib\UnhollowerRuntimeLib.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Unity.TextMeshPro"> | ||
<HintPath>lib\Unity.TextMeshPro.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.AIModule"> | ||
<HintPath>lib\UnityEngine.AIModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.AnimationModule"> | ||
<HintPath>lib\UnityEngine.AnimationModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.AudioModule"> | ||
<HintPath>lib\UnityEngine.AudioModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.CoreModule"> | ||
<HintPath>lib\UnityEngine.CoreModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.IMGUIModule"> | ||
<HintPath>lib\UnityEngine.IMGUIModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.JSONSerializeModule"> | ||
<HintPath>E:\Steam\steamapps\common\Audica\MelonLoader\Managed\UnityEngine.JSONSerializeModule.dll</HintPath> | ||
</Reference> | ||
<Reference Include="UnityEngine.ParticleSystemModule"> | ||
<HintPath>lib\UnityEngine.ParticleSystemModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.Physics2DModule"> | ||
<HintPath>lib\UnityEngine.Physics2DModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.PhysicsModule"> | ||
<HintPath>lib\UnityEngine.PhysicsModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.TerrainModule"> | ||
<HintPath>lib\UnityEngine.TerrainModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.TextCoreModule"> | ||
<HintPath>lib\UnityEngine.TextCoreModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.TextRenderingModule"> | ||
<HintPath>lib\UnityEngine.TextRenderingModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.UI"> | ||
<HintPath>lib\UnityEngine.UI.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.UIModule"> | ||
<HintPath>lib\UnityEngine.UIModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.UnityWebRequestModule"> | ||
<HintPath>lib\UnityEngine.UnityWebRequestModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.UnityWebRequestWWWModule"> | ||
<HintPath>lib\UnityEngine.UnityWebRequestWWWModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.VehiclesModule"> | ||
<HintPath>lib\UnityEngine.VehiclesModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.XRModule"> | ||
<HintPath>lib\UnityEngine.XRModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="src\CustomDifficultyName\CustomDifficultyNames.cs" /> | ||
<Compile Include="src\CustomDifficultyName\DifficultyHooks.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="packages.config" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<PropertyGroup> | ||
<PostBuildEvent>copy "$(TargetPath)" "F:\DATA HDD\Steam\SteamApps\common\Audica\Mods\$(TargetFileName)"</PostBuildEvent> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.Resources; | ||
using System.Reflection; | ||
using System.Runtime.InteropServices; | ||
using MelonLoader; | ||
using AudicaModding; | ||
|
||
[assembly: AssemblyTitle("Custom Difficulty Names")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("MeepsKitten")] | ||
[assembly: AssemblyProduct("Custom Difficulty Names Mod")] | ||
[assembly: AssemblyCopyright("Created by MeepsKitten")] | ||
[assembly: AssemblyTrademark("MeepsKitten")] | ||
[assembly: AssemblyCulture("")] | ||
[assembly: ComVisible(false)] | ||
//[assembly: Guid("")] | ||
[assembly: AssemblyVersion("1.0.0")] | ||
[assembly: AssemblyFileVersion("1.0.0")] | ||
[assembly: NeutralResourcesLanguage("en")] | ||
[assembly: MelonInfo(typeof(CustomDifficultyNames), "Custom Difficulty Names", "1.0.0", "MeepsKitten")] | ||
|
||
|
||
// Create and Setup a MelonModGame to mark a Mod as Universal or Compatible with specific Games. | ||
// If no MelonModGameAttribute is found or any of the Values for any MelonModGame on the Mod is null or empty it will be assumed the Mod is Universal. | ||
// Values for MelonModGame can be found in the Game's app.info file or printed at the top of every log directly beneath the Unity version. | ||
[assembly: MelonGame("Harmonix Music Systems, Inc.", "Audica")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="System.IO.Compression" version="4.3.0" targetFramework="net472" /> | ||
</packages> |
85 changes: 85 additions & 0 deletions
85
AudicaMod/src/CustomDifficultyName/CustomDifficultyNames.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
using Il2CppSystem; | ||
using MelonLoader; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
using System.IO; | ||
using System.IO.Compression; | ||
using MelonLoader.TinyJSON; | ||
|
||
namespace AudicaModding | ||
{ | ||
public class CustomDifficultyNames : MelonMod | ||
{ | ||
public static Dictionary<string, CustomNameData> CustomDifficulties = new Dictionary<string, CustomNameData>(); | ||
|
||
public class CustomNameData | ||
{ | ||
public bool hasCustomExpertName = false; | ||
public bool hasCustomAdvancedName = false; | ||
public bool hasCustomModerateName = false; | ||
public bool hasCustomBeginnerName = false; | ||
|
||
|
||
public string customExpert = ""; | ||
public string customAdvanced = ""; | ||
public string customModerate = ""; | ||
public string customBeginner = ""; | ||
} | ||
|
||
public static void LoadCustomNames() | ||
{ | ||
CustomDifficulties = new Dictionary<string, CustomNameData>(); | ||
|
||
foreach (SongList.SongData data in SongList.I.songs.ToArray()) | ||
{ | ||
ZipArchive SongFiles = ZipFile.OpenRead(data.foundPath); | ||
|
||
foreach (ZipArchiveEntry entry in SongFiles.Entries) | ||
{ | ||
if (entry.Name == "song.desc") | ||
{ | ||
Stream songData = entry.Open(); | ||
StreamReader reader = new StreamReader(songData); | ||
string descDump = reader.ReadToEnd(); | ||
CustomNameData DifficultyNames = new CustomNameData(); | ||
DifficultyNames = JSON.Load(descDump).Make<CustomNameData>(); | ||
|
||
bool anyAreTrue = false; | ||
|
||
|
||
if (DifficultyNames.customExpert.Length > 0) | ||
{ | ||
DifficultyNames.hasCustomExpertName = true; | ||
anyAreTrue = true; | ||
} | ||
|
||
if (DifficultyNames.customAdvanced.Length > 0) | ||
{ | ||
DifficultyNames.hasCustomAdvancedName = true; | ||
anyAreTrue = true; | ||
} | ||
|
||
if (DifficultyNames.customModerate.Length > 0) | ||
{ | ||
DifficultyNames.hasCustomModerateName = true; | ||
anyAreTrue = true; | ||
} | ||
|
||
if (DifficultyNames.customBeginner.Length > 0) | ||
{ | ||
DifficultyNames.hasCustomBeginnerName = true; | ||
anyAreTrue = true; | ||
} | ||
|
||
if (anyAreTrue) | ||
CustomDifficulties[data.songID] = DifficultyNames; | ||
|
||
|
||
} | ||
} | ||
|
||
SongFiles.Dispose(); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.