Ran pre-commit
This commit is contained in:
@@ -14,11 +14,11 @@
|
||||
<PackageReference Include="BepInEx.Core" Version="5.*" />
|
||||
<PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
|
||||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="DDVR">
|
||||
<HintPath>..\Dance Dash_Data\Managed\DDVR.dll</HintPath>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005Cgames_005Csteamapps_005Ccommon_005CDance_0020Dash_005CDance_0020Dash_005FData_005CManaged_005CDDVR_002Edll/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/AddReferences/RecentPaths/=D_003A_005Cgames_005Csteamapps_005Ccommon_005CDance_0020Dash_005CDance_0020Dash_005FData_005CManaged_005CUnityEngine_002Edll/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:String x:Key="/Default/Environment/AssemblyExplorer/XmlDocument/@EntryValue"><AssemblyExplorer /></s:String></wpf:ResourceDictionary>
|
||||
<s:String x:Key="/Default/Environment/AssemblyExplorer/XmlDocument/@EntryValue"><AssemblyExplorer /></s:String></wpf:ResourceDictionary>
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
<packageSources>
|
||||
<add key="BepInEx" value="https://nuget.bepinex.dev/v3/index.json" />
|
||||
</packageSources>
|
||||
</configuration>
|
||||
</configuration>
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace DanceDashLaunchHelper
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// when we first start the game, we set the ready button to be interactable & click it programmatically
|
||||
[HarmonyPatch(typeof(ControllerSwitchUI), "Start")]
|
||||
class ControllerSwitchUI_Start_Patch
|
||||
@@ -49,7 +49,7 @@ namespace DanceDashLaunchHelper
|
||||
Traverse.Create(__instance).Method("OnToggleHpChange", true).GetValue();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// this patch is bad, it hijacks init and toggles the albums and invokes them as true, happens to
|
||||
// toggle on the last album (custom songs) purely based on the order of execution, but again, this sucks
|
||||
[HarmonyPatch(typeof(VolListItem), "Init")]
|
||||
@@ -63,7 +63,7 @@ namespace DanceDashLaunchHelper
|
||||
__instance.Invoke(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// hijacks the ost selection happening as a side effect of VolListItem_Init_Patch, and clicks the play button
|
||||
[HarmonyPatch(typeof(PanelSelect), "OnSelectOst")]
|
||||
class PanelSelect_OnSelectOst_Patch
|
||||
@@ -135,5 +135,5 @@ namespace DanceDashLaunchHelper
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# DanceDashLaunchHelper
|
||||
|
||||
- Read comments in [Plugin.cs](Plugin.cs)
|
||||
- First time writing one of these so todo on the README
|
||||
- First time writing one of these so todo on the README
|
||||
|
||||
@@ -35,7 +35,7 @@ python -m pip install -r requirements.txt
|
||||
pre-commit install
|
||||
```
|
||||
|
||||
---
|
||||
---
|
||||
|
||||
Usage:
|
||||
|
||||
@@ -45,4 +45,4 @@ yt-dlp -f bv[ext=webm] https://youtu.be/o7I0scmptmo -o "drs_video.webm"
|
||||
|
||||
# grab song-id from "resources\data.json" or https://arcade-songs.zetaraku.dev/drs/
|
||||
.venv/Scripts/python drs2dd.py "drs_video.webm" --song-id "BOOMBAYAH-JP Ver.-"
|
||||
```
|
||||
```
|
||||
|
||||
@@ -13,7 +13,6 @@ from model.dancedash import create_note_sphere
|
||||
from model.dancedash import DDBeatMap
|
||||
from model.dancedash import LEFT_NOTE
|
||||
from model.dancedash import RIGHT_NOTE
|
||||
from util import ORDER_COUNT_PER_BEAT
|
||||
from util import crop_frame
|
||||
from util import find_l
|
||||
from util import find_r
|
||||
@@ -21,6 +20,7 @@ from util import find_stage
|
||||
from util import get_song_metadata_remote
|
||||
from util import map_position_to_dd_x
|
||||
from util import NOTE_SEARCH_AREA
|
||||
from util import ORDER_COUNT_PER_BEAT
|
||||
from util import SIGN_SEARCH_AREA
|
||||
from util import WORKING_RESOLUTION
|
||||
|
||||
|
||||
+2
-1
@@ -117,7 +117,8 @@ class DDBeatMap:
|
||||
),
|
||||
beatSubs=beat_subs,
|
||||
BPM=bpm,
|
||||
songStartOffset=-0.4, # -0.4 is arbitrary, figure out a better value. (because we detect notes early)
|
||||
# -0.4 is arbitrary, figure out a better value. (because we detect notes early)
|
||||
songStartOffset=-0.4,
|
||||
NPS='0.0',
|
||||
developerMode=False,
|
||||
noteSpeed=1.0,
|
||||
|
||||
Reference in New Issue
Block a user