├── NuGet.Config ├── README.md ├── AutoToot.sln ├── LICENSE ├── AutoToot ├── AutoToot.csproj ├── AutoIndicator.cs ├── Patches │ ├── PointSceneControllerPatch.cs │ └── GameControllerPatch.cs ├── Configuration.cs ├── Plugin.cs ├── Helpers │ └── Easing.cs └── Bot.cs └── .gitignore /NuGet.Config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AutoToot 2 | A mod that makes Trombone Champ play itself. 3 | 4 | ## Additional Features 5 | - Supports TrombLoader maps 6 | - Toggleable with the F8 key 7 | - Scores and toots from AutoToot are not saved 8 | - AutoTooted plays are indicated in-game and on the score screen 9 | 10 | ## Usage 11 | 1. Place the mod in your BepInEx plugins folder (view TrombLoader's BepInEx installation instructions [here](https://github.com/NyxTheShield/TrombLoader#installation)). 12 | 2. Open up the game and play a map of your preference. 13 | 3. Use the `F8` key to toggle AutoToot. 14 | -------------------------------------------------------------------------------- /AutoToot.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AutoToot", "AutoToot\AutoToot.csproj", "{B186DEC2-BE42-4D8C-B3E3-42365536B6CF}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Any CPU = Debug|Any CPU 8 | Release|Any CPU = Release|Any CPU 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {B186DEC2-BE42-4D8C-B3E3-42365536B6CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 12 | {B186DEC2-BE42-4D8C-B3E3-42365536B6CF}.Debug|Any CPU.Build.0 = Debug|Any CPU 13 | {B186DEC2-BE42-4D8C-B3E3-42365536B6CF}.Release|Any CPU.ActiveCfg = Release|Any CPU 14 | {B186DEC2-BE42-4D8C-B3E3-42365536B6CF}.Release|Any CPU.Build.0 = Release|Any CPU 15 | EndGlobalSection 16 | EndGlobal 17 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Tom O'Sullivan 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /AutoToot/AutoToot.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | net472 4 | AutoToot 5 | Auto play for Trombone Champ. 6 | 1.2.4 7 | false 8 | latest 9 | Tom.AutoToot 10 | AutoToot 11 | Tom. 12 | C:\Program Files (x86)\Steam\steamapps\common\TromboneChamp 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /AutoToot/AutoIndicator.cs: -------------------------------------------------------------------------------- 1 | /* 2 | COPYRIGHT NOTICE: 3 | © 2023 Thomas O'Sullivan - All rights reserved. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | FILE INFORMATION: 24 | Name: AutoIndicator.cs 25 | Project: AutoToot 26 | Author: Tom 27 | Created: 16th October 2022 28 | */ 29 | 30 | using UnityEngine; 31 | using UnityEngine.UI; 32 | 33 | namespace AutoToot; 34 | 35 | public class AutoIndicator : MonoBehaviour 36 | { 37 | private void Start() 38 | { 39 | gameObject.name = GameObjectName; 40 | 41 | Vector3 modifiedPosition = transform.position; 42 | modifiedPosition.y = YPosition; 43 | transform.position = modifiedPosition; 44 | 45 | _foregroundText = transform.Find(ForegroundObjectName).GetComponent(); 46 | _shadowText = GetComponent(); 47 | 48 | _foregroundText.text = IndicatorText; 49 | _shadowText.text = IndicatorText; 50 | } 51 | 52 | private void Update() 53 | { 54 | bool shouldShow = Plugin.IsActive; 55 | 56 | if (_foregroundText.enabled != shouldShow) 57 | { 58 | _foregroundText.enabled = shouldShow; 59 | _shadowText.enabled = shouldShow; 60 | } 61 | } 62 | 63 | private const string GameObjectName = "AutoToot Indicator"; 64 | private const string IndicatorText = "AutoToot Enabled"; 65 | 66 | private const float YPosition = -4.7322f; 67 | 68 | private const string ForegroundObjectName = "maxcombo_text"; 69 | 70 | private Text _foregroundText; 71 | private Text _shadowText; 72 | } -------------------------------------------------------------------------------- /AutoToot/Patches/PointSceneControllerPatch.cs: -------------------------------------------------------------------------------- 1 | /* 2 | COPYRIGHT NOTICE: 3 | © 2023 Thomas O'Sullivan - All rights reserved. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | FILE INFORMATION: 24 | Name: PointSceneControllerPatch.cs 25 | Project: AutoToot 26 | Author: Tom 27 | Created: 16th October 2022 28 | */ 29 | 30 | using System.Security.Permissions; 31 | using HarmonyLib; 32 | using UnityEngine; 33 | 34 | #pragma warning disable CS0618 35 | [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] 36 | 37 | namespace AutoToot.Patches; 38 | 39 | [HarmonyPatch(typeof(PointSceneController), nameof(PointSceneController.Start))] 40 | internal class PointSceneControllerStartPatch 41 | { 42 | static void Prefix() 43 | { 44 | if (Plugin.WasAutoUsed) 45 | --GlobalVariables.localsave.tracks_played; 46 | } 47 | } 48 | 49 | [HarmonyPatch(typeof(PointSceneController), nameof(PointSceneController.updateSave))] 50 | internal class PointSceneControllerUpdateSavePatch 51 | { 52 | static bool Prefix() => !Plugin.WasAutoUsed; 53 | } 54 | 55 | [HarmonyPatch(typeof(PointSceneController), nameof(PointSceneController.checkScoreCheevos))] 56 | internal class PointSceneControllerAchievementsCheckPatch 57 | { 58 | static bool Prefix() => !Plugin.WasAutoUsed; 59 | } 60 | 61 | [HarmonyPatch(typeof(PointSceneController), nameof(PointSceneController.doCoins))] 62 | internal class PointSceneControllerDoCoinsPatch 63 | { 64 | static void Postfix(PointSceneController __instance) 65 | { 66 | if (!Plugin.WasAutoUsed) 67 | return; 68 | 69 | GameObject coin = GameObject.Find(CoinPath); 70 | if (coin == null) 71 | { 72 | Plugin.Logger.LogError("Unable to find toots coin, it may be visible still."); 73 | } 74 | else 75 | { 76 | coin.SetActive(false); 77 | } 78 | 79 | __instance.tootstext.text = "AutoTooted Play"; 80 | 81 | __instance.Invoke(nameof(PointSceneController.showContinue), 0.75f); 82 | } 83 | 84 | private const string CoinPath = "Canvas/buttons/coingroup/coin"; 85 | private const float TootsTextXPosition = -0.246f; 86 | } 87 | -------------------------------------------------------------------------------- /AutoToot/Configuration.cs: -------------------------------------------------------------------------------- 1 | /* 2 | COPYRIGHT NOTICE: 3 | © 2023 Thomas O'Sullivan - All rights reserved. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | FILE INFORMATION: 24 | Name: Configuration.cs 25 | Project: AutoToot 26 | Author: Tom 27 | Created: 21st October 2022 28 | */ 29 | 30 | using System; 31 | using System.Reflection; 32 | using AutoToot.Helpers; 33 | using BepInEx.Configuration; 34 | using UnityEngine; 35 | 36 | namespace AutoToot; 37 | 38 | public class Configuration 39 | { 40 | internal Configuration(ConfigFile configFile) 41 | { 42 | Plugin.Logger.LogInfo($"Loading config..."); 43 | 44 | ToggleKey = configFile.Bind("Keybinds", "ToggleKey", DefaultToggleKey, 45 | "The key used to toggle AutoToot on and off."); 46 | 47 | EaseFunction = configFile.Bind("Interpolation", "EaseFunction", DefaultEasingFunction, 48 | "The easing function to use for animating pointer position between notes." 49 | + $"\nValid easing functions are: {String.Join(", ", GetValidEasingTypes())}." 50 | + "\nPreview easing functions at: https://easings.net/"); 51 | 52 | EarlyStart = configFile.Bind("Timing", "EarlyStart", DefaultEarlyStart, 53 | "Starts playing notes earlier by the given duration."); 54 | 55 | LateFinish = configFile.Bind("Timing", "LateFinish", DefaultLateFinish, 56 | "Finishes notes later by the given duration."); 57 | 58 | PerfectScore = configFile.Bind("Score", "PerfectScore", false, 59 | "Cheat the score returned by notes to achieve a perfect score."); 60 | } 61 | 62 | public void Validate() 63 | { 64 | if (typeof(Easing).GetMethod(EaseFunction.Value) == null) 65 | { 66 | Plugin.Logger.LogWarning( 67 | $"Easing function '{EaseFunction.Value}' does not exist, falling back to '{DefaultEasingFunction}'." 68 | + $"\nValid easing functions are: {String.Join(", ", GetValidEasingTypes())}."); 69 | EaseFunction.Value = DefaultEasingFunction; 70 | } 71 | 72 | if (EarlyStart.Value < 0) 73 | { 74 | Plugin.Logger.LogWarning($"Early start time is less than zero, falling back to {DefaultEarlyStart}."); 75 | EarlyStart.Value = DefaultEarlyStart; 76 | } 77 | 78 | if (LateFinish.Value < 0) 79 | { 80 | Plugin.Logger.LogWarning($"Late finish time is less than zero, falling back to {DefaultLateFinish}."); 81 | EarlyStart.Value = DefaultLateFinish; 82 | } 83 | } 84 | 85 | private string[] GetValidEasingTypes() 86 | { 87 | MethodInfo[] methods = typeof(Easing).GetMethods(); 88 | 89 | int methodCount = methods.Length - 4; //Last 4 methods are derived from object 90 | string[] types = new string[methodCount]; 91 | 92 | for (int i = 0; i < methodCount; i++) 93 | types[i] = methods[i].Name; 94 | 95 | return types; 96 | } 97 | 98 | public ConfigEntry ToggleKey { get; } 99 | public ConfigEntry EaseFunction { get; } 100 | public ConfigEntry EarlyStart { get; } 101 | public ConfigEntry LateFinish { get; } 102 | public ConfigEntry PerfectScore { get; } 103 | 104 | private const KeyCode DefaultToggleKey = KeyCode.F8; 105 | private const string DefaultEasingFunction = "Linear"; 106 | private const int DefaultEarlyStart = 8; 107 | private const int DefaultLateFinish = 8; 108 | } -------------------------------------------------------------------------------- /AutoToot/Plugin.cs: -------------------------------------------------------------------------------- 1 | /* 2 | COPYRIGHT NOTICE: 3 | © 2023 Thomas O'Sullivan - All rights reserved. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | FILE INFORMATION: 24 | Name: Plugin.cs 25 | Project: AutoToot 26 | Author: Tom 27 | Created: 15th October 2022 28 | */ 29 | 30 | using BepInEx; 31 | using BepInEx.Logging; 32 | using HarmonyLib; 33 | using UnityEngine; 34 | using UnityEngine.SceneManagement; 35 | 36 | namespace AutoToot; 37 | 38 | [BepInPlugin(PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)] 39 | public class Plugin : BaseUnityPlugin 40 | { 41 | private void Awake() 42 | { 43 | Logger = base.Logger; 44 | Logger.LogInfo($"Loaded {PluginInfo.PLUGIN_NAME} v{PluginInfo.PLUGIN_VERSION}."); 45 | 46 | Configuration = new Configuration(Config); 47 | Configuration.Validate(); 48 | 49 | Harmony harmony = new Harmony(PluginInfo.PLUGIN_GUID); 50 | harmony.PatchAll(); 51 | 52 | SceneManager.sceneLoaded += OnSceneLoaded; 53 | Logger.LogDebug("Added sceneLoaded delegate."); 54 | } 55 | 56 | private void OnSceneLoaded(Scene scene, LoadSceneMode mode) 57 | { 58 | if (mode == LoadSceneMode.Additive) 59 | return; 60 | 61 | Logger.LogDebug($"Level {scene.buildIndex} ({scene.name}) was loaded."); 62 | 63 | if (scene.name == GameplaySceneName) 64 | { 65 | Logger.LogInfo("Gameplay scene loaded."); 66 | _isInGameplay = true; 67 | WasAutoUsed = false; 68 | } 69 | else if (_isInGameplay) 70 | { 71 | Logger.LogInfo("Gameplay scene unloaded."); 72 | _isInGameplay = false; 73 | IsActive = false; 74 | Bot = null; 75 | } 76 | } 77 | 78 | private static void SetupBot() 79 | { 80 | GameObject gameControllerObject = GameObject.Find(GameControllerPath); 81 | if (gameControllerObject == null) 82 | { 83 | Logger.LogError("Unable to find the GameController object, Auto-Toot cannot function."); 84 | } 85 | else 86 | { 87 | GameController gameController = gameControllerObject.GetComponent(); 88 | if (gameController == null) 89 | { 90 | Logger.LogError("Unable to retrieve the GameController component, Auto-Toot cannot function."); 91 | } 92 | else 93 | { 94 | Bot = new Bot(gameController); 95 | } 96 | } 97 | } 98 | 99 | public static void ToggleActive() => IsActive = !_isActive; 100 | 101 | public static bool IsActive 102 | { 103 | get => _isActive; 104 | set 105 | { 106 | if (_isActive == value) return; 107 | 108 | if (value) 109 | { 110 | SetupBot(); 111 | WasAutoUsed = true; 112 | } 113 | 114 | _isActive = value; 115 | Logger.LogInfo($"{(_isActive ? "Enabled" : "Disabled")} Auto-Toot."); 116 | } 117 | } 118 | 119 | public static bool WasAutoUsed { get; private set; } 120 | 121 | public static Bot Bot { get; private set; } 122 | public static Configuration Configuration { get; private set; } 123 | 124 | internal new static ManualLogSource Logger { get; private set; } 125 | 126 | private static bool _isActive; 127 | private static bool _isInGameplay; 128 | 129 | private const string GameplaySceneName = "gameplay"; 130 | private const string GameControllerPath = "GameController"; 131 | } -------------------------------------------------------------------------------- /AutoToot/Helpers/Easing.cs: -------------------------------------------------------------------------------- 1 | /* 2 | COPYRIGHT NOTICE: 3 | © 2023 Thomas O'Sullivan - All rights reserved. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | FILE INFORMATION: 24 | Name: Easing.cs 25 | Project: AutoToot 26 | Author: Tom 27 | Created: 21st October 2022 28 | */ 29 | 30 | using System; 31 | 32 | namespace AutoToot.Helpers; 33 | 34 | internal static class Easing //https://gist.github.com/Kryzarel/bba64622057f21a1d6d44879f9cd7bd4 35 | { 36 | public static float Linear(float t) => t; 37 | 38 | public static float InQuad(float t) => t * t; 39 | public static float OutQuad(float t) => 1 - InQuad(1 - t); 40 | public static float InOutQuad(float t) 41 | { 42 | if (t < 0.5) return InQuad(t * 2) / 2; 43 | return 1 - InQuad((1 - t) * 2) / 2; 44 | } 45 | 46 | public static float InCubic(float t) => t * t * t; 47 | public static float OutCubic(float t) => 1 - InCubic(1 - t); 48 | public static float InOutCubic(float t) 49 | { 50 | if (t < 0.5) return InCubic(t * 2) / 2; 51 | return 1 - InCubic((1 - t) * 2) / 2; 52 | } 53 | 54 | public static float InQuart(float t) => t * t * t * t; 55 | public static float OutQuart(float t) => 1 - InQuart(1 - t); 56 | public static float InOutQuart(float t) 57 | { 58 | if (t < 0.5) return InQuart(t * 2) / 2; 59 | return 1 - InQuart((1 - t) * 2) / 2; 60 | } 61 | 62 | public static float InQuint(float t) => t * t * t * t * t; 63 | public static float OutQuint(float t) => 1 - InQuint(1 - t); 64 | public static float InOutQuint(float t) 65 | { 66 | if (t < 0.5) return InQuint(t * 2) / 2; 67 | return 1 - InQuint((1 - t) * 2) / 2; 68 | } 69 | 70 | public static float InSine(float t) => (float)-Math.Cos(t * Math.PI / 2); 71 | public static float OutSine(float t) => (float)Math.Sin(t * Math.PI / 2); 72 | public static float InOutSine(float t) => (float)(Math.Cos(t * Math.PI) - 1) / -2; 73 | 74 | public static float InExpo(float t) => (float)Math.Pow(2, 10 * (t - 1)); 75 | public static float OutExpo(float t) => 1 - InExpo(1 - t); 76 | public static float InOutExpo(float t) 77 | { 78 | if (t < 0.5) return InExpo(t * 2) / 2; 79 | return 1 - InExpo((1 - t) * 2) / 2; 80 | } 81 | 82 | public static float InCirc(float t) => -((float)Math.Sqrt(1 - t * t) - 1); 83 | public static float OutCirc(float t) => 1 - InCirc(1 - t); 84 | public static float InOutCirc(float t) 85 | { 86 | if (t < 0.5) return InCirc(t * 2) / 2; 87 | return 1 - InCirc((1 - t) * 2) / 2; 88 | } 89 | 90 | public static float InElastic(float t) => 1 - OutElastic(1 - t); 91 | public static float OutElastic(float t) 92 | { 93 | float p = 0.3f; 94 | return (float)Math.Pow(2, -10 * t) * (float)Math.Sin((t - p / 4) * (2 * Math.PI) / p) + 1; 95 | } 96 | public static float InOutElastic(float t) 97 | { 98 | if (t < 0.5) return InElastic(t * 2) / 2; 99 | return 1 - InElastic((1 - t) * 2) / 2; 100 | } 101 | 102 | public static float InBack(float t) 103 | { 104 | float s = 1.70158f; 105 | return t * t * ((s + 1) * t - s); 106 | } 107 | public static float OutBack(float t) => 1 - InBack(1 - t); 108 | public static float InOutBack(float t) 109 | { 110 | if (t < 0.5) return InBack(t * 2) / 2; 111 | return 1 - InBack((1 - t) * 2) / 2; 112 | } 113 | 114 | public static float InBounce(float t) => 1 - OutBounce(1 - t); 115 | public static float OutBounce(float t) 116 | { 117 | float div = 2.75f; 118 | float mult = 7.5625f; 119 | 120 | if (t < 1 / div) 121 | { 122 | return mult * t * t; 123 | } 124 | else if (t < 2 / div) 125 | { 126 | t -= 1.5f / div; 127 | return mult * t * t + 0.75f; 128 | } 129 | else if (t < 2.5 / div) 130 | { 131 | t -= 2.25f / div; 132 | return mult * t * t + 0.9375f; 133 | } 134 | else 135 | { 136 | t -= 2.625f / div; 137 | return mult * t * t + 0.984375f; 138 | } 139 | } 140 | public static float InOutBounce(float t) 141 | { 142 | if (t < 0.5) return InBounce(t * 2) / 2; 143 | return 1 - InBounce((1 - t) * 2) / 2; 144 | } 145 | } -------------------------------------------------------------------------------- /AutoToot/Patches/GameControllerPatch.cs: -------------------------------------------------------------------------------- 1 | /* 2 | COPYRIGHT NOTICE: 3 | © 2023 Thomas O'Sullivan - All rights reserved. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | FILE INFORMATION: 24 | Name: GameControllerPatch.cs 25 | Project: AutoToot 26 | Author: Tom 27 | Created: 15th October 2022 28 | */ 29 | 30 | using System.Security.Permissions; 31 | using HarmonyLib; 32 | using UnityEngine; 33 | 34 | #pragma warning disable CS0618 35 | [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] 36 | 37 | namespace AutoToot.Patches; 38 | 39 | [HarmonyPatch(typeof(GameController), nameof(GameController.Start))] 40 | internal class GameControllerStartPatch 41 | { 42 | static void Postfix() 43 | { 44 | GameObject comboObject = GameObject.Find(ComboPath); 45 | if (comboObject == null) 46 | { 47 | Plugin.Logger.LogError("Unable to find combo text, the auto toot indicator will not be present."); 48 | } 49 | else 50 | { 51 | GameObject autoIndicator = Object.Instantiate(comboObject, comboObject.transform); 52 | autoIndicator.AddComponent(); 53 | 54 | GameObject parent = GameObject.Find(ParentPath); 55 | if (parent == null) 56 | { 57 | Plugin.Logger.LogError("Unable to find the UIHolder to re-parent the indicator, placement may be wrong."); 58 | } 59 | else 60 | { 61 | autoIndicator.transform.parent = parent.transform; 62 | } 63 | } 64 | } 65 | 66 | private const string ComboPath = "GameplayCanvas/UIHolder/maxcombo/maxcombo_shadow"; 67 | private const string ParentPath = "GameplayCanvas/UIHolder"; 68 | } 69 | 70 | [HarmonyPatch(typeof(GameController), nameof(GameController.Update))] 71 | internal class GameControllerUpdatePatch 72 | { 73 | static void Postfix(GameController __instance) 74 | { 75 | if (__instance.freeplay || __instance.paused) 76 | return; 77 | 78 | if (Input.GetKeyDown(Plugin.Configuration.ToggleKey.Value)) 79 | Plugin.ToggleActive(); 80 | 81 | __instance.controllermode = Plugin.IsActive; //Disables user input for us, nice shortcut!! 82 | 83 | if (Plugin.IsActive) 84 | { 85 | Plugin.Bot.Update(); 86 | 87 | if (Plugin.Bot.IsPerfectPlay) 88 | { 89 | __instance.released_button_between_notes = true; // no need to release toot between notes because some pepega maps have 2 notes on the same frame 90 | __instance.breathcounter = 0f; 91 | } 92 | } 93 | } 94 | } 95 | 96 | [HarmonyPatch(typeof(GameController), nameof(GameController.isNoteButtonPressed))] 97 | internal class GameControllerIsNoteButtonPressedPatch 98 | { 99 | static void Postfix(ref bool __result) 100 | { 101 | if (Plugin.IsActive) 102 | __result = Plugin.Bot.IsTooting; 103 | } 104 | } 105 | 106 | [HarmonyPatch(typeof(GameController), nameof(GameController.getScoreAverage))] 107 | internal class GameControllerGetScoreAveragePatch 108 | { 109 | static void Prefix(GameController __instance) 110 | { 111 | if (Plugin.IsActive && Plugin.Bot.IsPerfectPlay) 112 | { 113 | __instance.notescoreaverage = 100f; 114 | } 115 | } 116 | } 117 | 118 | [HarmonyPatch(typeof(GameController), nameof(GameController.doScoreText))] 119 | internal class GameControllerDoScoreTextPatch 120 | { 121 | static void Prefix(object[] __args) 122 | { 123 | if (Plugin.IsActive && Plugin.Bot.IsPerfectPlay) 124 | { 125 | __args[0] = 4; // note tally, 4 being perfect 126 | __args[1] = 100f; // note score average just to make sure xd 127 | } 128 | } 129 | } 130 | 131 | [HarmonyPatch(typeof(GameController), nameof(GameController.pauseRetryLevel))] 132 | internal class GameControllerRetryPatch 133 | { 134 | static void Postfix(GameController __instance) 135 | { 136 | if (Plugin.IsActive) Plugin.IsActive = false; 137 | } 138 | } -------------------------------------------------------------------------------- /AutoToot/Bot.cs: -------------------------------------------------------------------------------- 1 | /* 2 | COPYRIGHT NOTICE: 3 | © 2023 Thomas O'Sullivan - All rights reserved. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | FILE INFORMATION: 24 | Name: Bot.cs 25 | Project: AutoToot 26 | Author: Tom 27 | Created: 15th October 2022 28 | */ 29 | 30 | using System.Reflection; 31 | using System.Security.Permissions; 32 | using AutoToot.Helpers; 33 | using BepInEx.Logging; 34 | using UnityEngine; 35 | using TrombLoader.Data; 36 | 37 | #pragma warning disable CS0618 38 | [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] 39 | 40 | namespace AutoToot; 41 | 42 | public class Bot 43 | { 44 | public bool IsTooting { get; private set; } 45 | public bool IsPerfectPlay { get; } 46 | 47 | public Bot(GameController gameController) 48 | { 49 | _gameController = gameController; 50 | _humanPuppetController = gameController.puppet_humanc; 51 | _backgroundPuppetController = null; 52 | _bg = gameController.bgcontroller.fullbgobject; 53 | if (_bg) { 54 | _backgroundPuppetController = _bg.GetComponent(); 55 | } 56 | 57 | _noteHolderPosition = GameObject.Find(NotesHolderPath)?.GetComponent(); 58 | _pointer = GameObject.Find(CursorPath)?.GetComponent(); 59 | 60 | if (_noteHolderPosition == null || _pointer == null) 61 | { 62 | Logger.LogError("Unable to locate the NotesHolder and Pointer, Auto-Toot cannot function."); 63 | Plugin.IsActive = false; 64 | } 65 | else 66 | { 67 | Logger.LogDebug("Located NotesHolder and Pointer."); 68 | } 69 | 70 | _earlyStart = Plugin.Configuration.EarlyStart.Value; 71 | _lateFinish = Plugin.Configuration.LateFinish.Value; 72 | _easeFunction = typeof(Easing).GetMethod(Plugin.Configuration.EaseFunction.Value); 73 | IsPerfectPlay = Plugin.Configuration.PerfectScore.Value; 74 | } 75 | 76 | public void Update() 77 | { 78 | if (_gameController.currentnoteindex > -1) 79 | { 80 | float currentTime = GetTime(); 81 | 82 | 83 | if (_currentNoteEndTime >= _gameController.currentnotestart) 84 | _gameController.released_button_between_notes = true; 85 | 86 | _currentNoteStartTime = _gameController.currentnotestart - _earlyStart; 87 | _currentNoteEndTime = _gameController.currentnoteend + _lateFinish; 88 | 89 | IsTooting = ShouldToot(currentTime, _currentNoteStartTime, _currentNoteEndTime); 90 | 91 | if (IsTooting) 92 | { 93 | _lastNoteEndTime = currentTime + _lateFinish; 94 | _lastNoteEndY = _pointer.anchoredPosition.y; 95 | } 96 | 97 | float pointerY = GetPointerY(currentTime, _currentNoteStartTime, _currentNoteEndTime); 98 | 99 | Vector2 pointerPosition = _pointer.anchoredPosition; 100 | pointerPosition.y = pointerY; 101 | _pointer.anchoredPosition = pointerPosition; 102 | 103 | _humanPuppetController.doPuppetControl(-pointerY / GameCanvasSize * 2); 104 | if (_backgroundPuppetController){ 105 | _backgroundPuppetController.DoPuppetControl(-pointerY / GameCanvasSize * 2, _gameController.vibratoamt); 106 | } 107 | } 108 | } 109 | 110 | private float GetTime() 111 | { 112 | float noteHolderX = _noteHolderPosition.anchoredPosition3D.x - NotesHolderZeroOffset; 113 | return noteHolderX <= 0f ? Mathf.Abs(noteHolderX) : -1f; 114 | } 115 | 116 | private float Ease(float e) 117 | { 118 | return (float)_easeFunction.Invoke(typeof(Easing), new object[] { e }); 119 | } 120 | 121 | private float GetPointerY(float currentTime, float noteStartTime, float noteEndTime) 122 | { 123 | if (ShouldToot(currentTime, noteStartTime, noteEndTime)) 124 | { 125 | return _gameController.currentnotestarty + _gameController.easeInOutVal( 126 | Mathf.Abs(1f - ((noteEndTime - _lateFinish) - currentTime) / ((noteEndTime - _lateFinish) - (noteStartTime + _earlyStart))), 127 | 0f, _gameController.currentnotepshift, 1f 128 | ); 129 | } 130 | 131 | return Mathf.Lerp(_lastNoteEndY, _gameController.currentnotestarty, 132 | Ease(1f - (noteStartTime - currentTime) / (noteStartTime - _lastNoteEndTime))); 133 | } 134 | 135 | private bool ShouldToot(float currentTime, float noteStartTime, float noteEndTime) 136 | { 137 | return !_gameController.outofbreath 138 | && currentTime >= noteStartTime 139 | && currentTime <= noteEndTime; 140 | } 141 | 142 | private ManualLogSource Logger => Plugin.Logger; 143 | 144 | private float _lastNoteEndTime; 145 | private float _lastNoteEndY; 146 | private float _currentNoteStartTime; 147 | private float _currentNoteEndTime; 148 | 149 | private readonly GameController _gameController; 150 | private readonly HumanPuppetController _humanPuppetController; 151 | private readonly GameObject _bg; 152 | private readonly BackgroundPuppetController _backgroundPuppetController; 153 | private readonly RectTransform _noteHolderPosition; 154 | private readonly RectTransform _pointer; 155 | 156 | private readonly int _earlyStart; 157 | private readonly int _lateFinish; 158 | private readonly MethodInfo _easeFunction; 159 | 160 | private const float GameCanvasSize = 450f; 161 | private const float NotesHolderZeroOffset = 60f; 162 | 163 | private const string NotesHolderPath = "GameplayCanvas/GameSpace/NotesHolder"; 164 | private const string CursorPath = "GameplayCanvas/GameSpace/TargetNote"; 165 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Ll]og/ 33 | [Ll]ogs/ 34 | 35 | # Visual Studio 2015/2017 cache/options directory 36 | .vs/ 37 | # Uncomment if you have tasks that create the project's static files in wwwroot 38 | #wwwroot/ 39 | 40 | # Visual Studio 2017 auto generated files 41 | Generated\ Files/ 42 | 43 | # MSTest test Results 44 | [Tt]est[Rr]esult*/ 45 | [Bb]uild[Ll]og.* 46 | 47 | # NUnit 48 | *.VisualState.xml 49 | TestResult.xml 50 | nunit-*.xml 51 | 52 | # Build Results of an ATL Project 53 | [Dd]ebugPS/ 54 | [Rr]eleasePS/ 55 | dlldata.c 56 | 57 | # Benchmark Results 58 | BenchmarkDotNet.Artifacts/ 59 | 60 | # .NET Core 61 | project.lock.json 62 | project.fragment.lock.json 63 | artifacts/ 64 | 65 | # ASP.NET Scaffolding 66 | ScaffoldingReadMe.txt 67 | 68 | # StyleCop 69 | StyleCopReport.xml 70 | 71 | # Files built by Visual Studio 72 | *_i.c 73 | *_p.c 74 | *_h.h 75 | *.ilk 76 | *.meta 77 | *.obj 78 | *.iobj 79 | *.pch 80 | *.pdb 81 | *.ipdb 82 | *.pgc 83 | *.pgd 84 | *.rsp 85 | *.sbr 86 | *.tlb 87 | *.tli 88 | *.tlh 89 | *.tmp 90 | *.tmp_proj 91 | *_wpftmp.csproj 92 | *.log 93 | *.tlog 94 | *.vspscc 95 | *.vssscc 96 | .builds 97 | *.pidb 98 | *.svclog 99 | *.scc 100 | 101 | # Chutzpah Test files 102 | _Chutzpah* 103 | 104 | # Visual C++ cache files 105 | ipch/ 106 | *.aps 107 | *.ncb 108 | *.opendb 109 | *.opensdf 110 | *.sdf 111 | *.cachefile 112 | *.VC.db 113 | *.VC.VC.opendb 114 | 115 | # Visual Studio profiler 116 | *.psess 117 | *.vsp 118 | *.vspx 119 | *.sap 120 | 121 | # Visual Studio Trace Files 122 | *.e2e 123 | 124 | # TFS 2012 Local Workspace 125 | $tf/ 126 | 127 | # Guidance Automation Toolkit 128 | *.gpState 129 | 130 | # ReSharper is a .NET coding add-in 131 | _ReSharper*/ 132 | *.[Rr]e[Ss]harper 133 | *.DotSettings.user 134 | 135 | # TeamCity is a build add-in 136 | _TeamCity* 137 | 138 | # DotCover is a Code Coverage Tool 139 | *.dotCover 140 | 141 | # AxoCover is a Code Coverage Tool 142 | .axoCover/* 143 | !.axoCover/settings.json 144 | 145 | # Coverlet is a free, cross platform Code Coverage Tool 146 | coverage*.json 147 | coverage*.xml 148 | coverage*.info 149 | 150 | # Visual Studio code coverage results 151 | *.coverage 152 | *.coveragexml 153 | 154 | # NCrunch 155 | _NCrunch_* 156 | .*crunch*.local.xml 157 | nCrunchTemp_* 158 | 159 | # MightyMoose 160 | *.mm.* 161 | AutoTest.Net/ 162 | 163 | # Web workbench (sass) 164 | .sass-cache/ 165 | 166 | # Installshield output folder 167 | [Ee]xpress/ 168 | 169 | # DocProject is a documentation generator add-in 170 | DocProject/buildhelp/ 171 | DocProject/Help/*.HxT 172 | DocProject/Help/*.HxC 173 | DocProject/Help/*.hhc 174 | DocProject/Help/*.hhk 175 | DocProject/Help/*.hhp 176 | DocProject/Help/Html2 177 | DocProject/Help/html 178 | 179 | # Click-Once directory 180 | publish/ 181 | 182 | # Publish Web Output 183 | *.[Pp]ublish.xml 184 | *.azurePubxml 185 | # Note: Comment the next line if you want to checkin your web deploy settings, 186 | # but database connection strings (with potential passwords) will be unencrypted 187 | *.pubxml 188 | *.publishproj 189 | 190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 191 | # checkin your Azure Web App publish settings, but sensitive information contained 192 | # in these scripts will be unencrypted 193 | PublishScripts/ 194 | 195 | # NuGet Packages 196 | *.nupkg 197 | # NuGet Symbol Packages 198 | *.snupkg 199 | # The packages folder can be ignored because of Package Restore 200 | **/[Pp]ackages/* 201 | # except build/, which is used as an MSBuild target. 202 | !**/[Pp]ackages/build/ 203 | # Uncomment if necessary however generally it will be regenerated when needed 204 | #!**/[Pp]ackages/repositories.config 205 | # NuGet v3's project.json files produces more ignorable files 206 | *.nuget.props 207 | *.nuget.targets 208 | 209 | # Microsoft Azure Build Output 210 | csx/ 211 | *.build.csdef 212 | 213 | # Microsoft Azure Emulator 214 | ecf/ 215 | rcf/ 216 | 217 | # Windows Store app package directories and files 218 | AppPackages/ 219 | BundleArtifacts/ 220 | Package.StoreAssociation.xml 221 | _pkginfo.txt 222 | *.appx 223 | *.appxbundle 224 | *.appxupload 225 | 226 | # Visual Studio cache files 227 | # files ending in .cache can be ignored 228 | *.[Cc]ache 229 | # but keep track of directories ending in .cache 230 | !?*.[Cc]ache/ 231 | 232 | # Others 233 | ClientBin/ 234 | ~$* 235 | *~ 236 | *.dbmdl 237 | *.dbproj.schemaview 238 | *.jfm 239 | *.pfx 240 | *.publishsettings 241 | orleans.codegen.cs 242 | 243 | # Including strong name files can present a security risk 244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 245 | #*.snk 246 | 247 | # Since there are multiple workflows, uncomment next line to ignore bower_components 248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 249 | #bower_components/ 250 | 251 | # RIA/Silverlight projects 252 | Generated_Code/ 253 | 254 | # Backup & report files from converting an old project file 255 | # to a newer Visual Studio version. Backup files are not needed, 256 | # because we have git ;-) 257 | _UpgradeReport_Files/ 258 | Backup*/ 259 | UpgradeLog*.XML 260 | UpgradeLog*.htm 261 | ServiceFabricBackup/ 262 | *.rptproj.bak 263 | 264 | # SQL Server files 265 | *.mdf 266 | *.ldf 267 | *.ndf 268 | 269 | # Business Intelligence projects 270 | *.rdl.data 271 | *.bim.layout 272 | *.bim_*.settings 273 | *.rptproj.rsuser 274 | *- [Bb]ackup.rdl 275 | *- [Bb]ackup ([0-9]).rdl 276 | *- [Bb]ackup ([0-9][0-9]).rdl 277 | 278 | # Microsoft Fakes 279 | FakesAssemblies/ 280 | 281 | # GhostDoc plugin setting file 282 | *.GhostDoc.xml 283 | 284 | # Node.js Tools for Visual Studio 285 | .ntvs_analysis.dat 286 | node_modules/ 287 | 288 | # Visual Studio 6 build log 289 | *.plg 290 | 291 | # Visual Studio 6 workspace options file 292 | *.opt 293 | 294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 295 | *.vbw 296 | 297 | # Visual Studio 6 auto-generated project file (contains which files were open etc.) 298 | *.vbp 299 | 300 | # Visual Studio 6 workspace and project file (working project files containing files to include in project) 301 | *.dsw 302 | *.dsp 303 | 304 | # Visual Studio 6 technical files 305 | *.ncb 306 | *.aps 307 | 308 | # Visual Studio LightSwitch build output 309 | **/*.HTMLClient/GeneratedArtifacts 310 | **/*.DesktopClient/GeneratedArtifacts 311 | **/*.DesktopClient/ModelManifest.xml 312 | **/*.Server/GeneratedArtifacts 313 | **/*.Server/ModelManifest.xml 314 | _Pvt_Extensions 315 | 316 | # Paket dependency manager 317 | .paket/paket.exe 318 | paket-files/ 319 | 320 | # FAKE - F# Make 321 | .fake/ 322 | 323 | # CodeRush personal settings 324 | .cr/personal 325 | 326 | # Python Tools for Visual Studio (PTVS) 327 | __pycache__/ 328 | *.pyc 329 | 330 | # Cake - Uncomment if you are using it 331 | # tools/** 332 | # !tools/packages.config 333 | 334 | # Tabs Studio 335 | *.tss 336 | 337 | # Telerik's JustMock configuration file 338 | *.jmconfig 339 | 340 | # BizTalk build output 341 | *.btp.cs 342 | *.btm.cs 343 | *.odx.cs 344 | *.xsd.cs 345 | 346 | # OpenCover UI analysis results 347 | OpenCover/ 348 | 349 | # Azure Stream Analytics local run output 350 | ASALocalRun/ 351 | 352 | # MSBuild Binary and Structured Log 353 | *.binlog 354 | 355 | # NVidia Nsight GPU debugger configuration file 356 | *.nvuser 357 | 358 | # MFractors (Xamarin productivity tool) working folder 359 | .mfractor/ 360 | 361 | # Local History for Visual Studio 362 | .localhistory/ 363 | 364 | # Visual Studio History (VSHistory) files 365 | .vshistory/ 366 | 367 | # BeatPulse healthcheck temp database 368 | healthchecksdb 369 | 370 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 371 | MigrationBackup/ 372 | 373 | # Ionide (cross platform F# VS Code tools) working folder 374 | .ionide/ 375 | 376 | # Fody - auto-generated XML schema 377 | FodyWeavers.xsd 378 | 379 | # VS Code files for those working on multiple tools 380 | .vscode/* 381 | !.vscode/settings.json 382 | !.vscode/tasks.json 383 | !.vscode/launch.json 384 | !.vscode/extensions.json 385 | *.code-workspace 386 | 387 | # Local History for Visual Studio Code 388 | .history/ 389 | 390 | # Windows Installer files from build outputs 391 | *.cab 392 | *.msi 393 | *.msix 394 | *.msm 395 | *.msp 396 | 397 | # JetBrains Rider 398 | *.sln.iml 399 | 400 | riderModule.iml 401 | /_ReSharper.Caches/ 402 | .idea/ 403 | 404 | # macOS metadata files 405 | .DS_Store --------------------------------------------------------------------------------