From 12f2a1344be9067837bb7916c527a982bca7165c Mon Sep 17 00:00:00 2001 From: bonbon Date: Mon, 19 Aug 2024 02:01:56 +0900 Subject: [PATCH] version up MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit スペスペたいむの完全なシミュレーションをParsedLogで行えるようにした --- source/@MasterVersion.txt | 2 +- .../ACT.Hojoring.Common.csproj | 5 ++ source/ACT.Hojoring.Common/Version.cs | 4 +- source/ACT.Hojoring.Common/split.ps1 | 63 ++++++++++++++++ .../Config/Views/TimelineManagerView.xaml | 8 ++ .../Config/Views/TimelineManagerView.xaml.cs | 74 ++++++++++++++++++- .../Config/Views/TimelineTesterView.xaml.cs | 12 ++- .../strings/Strings.SpeSpe.en-US.xaml | 3 +- .../strings/Strings.SpeSpe.ja-JP.xaml | 3 +- .../strings/Strings.SpeSpe.ko-KR.xaml | 1 + .../strings/Strings.SpeSpe.zh-CN.xaml | 1 + 11 files changed, 167 insertions(+), 9 deletions(-) create mode 100644 source/ACT.Hojoring.Common/split.ps1 diff --git a/source/@MasterVersion.txt b/source/@MasterVersion.txt index efcdd8685..457562cfb 100644 --- a/source/@MasterVersion.txt +++ b/source/@MasterVersion.txt @@ -1 +1 @@ -v10.3.8 +v10.3.9 diff --git a/source/ACT.Hojoring.Common/ACT.Hojoring.Common.csproj b/source/ACT.Hojoring.Common/ACT.Hojoring.Common.csproj index fa9fbcaf3..3a9f812ed 100644 --- a/source/ACT.Hojoring.Common/ACT.Hojoring.Common.csproj +++ b/source/ACT.Hojoring.Common/ACT.Hojoring.Common.csproj @@ -59,6 +59,11 @@ + + + Always + + Code diff --git a/source/ACT.Hojoring.Common/Version.cs b/source/ACT.Hojoring.Common/Version.cs index ff560dee6..b13c6d843 100644 --- a/source/ACT.Hojoring.Common/Version.cs +++ b/source/ACT.Hojoring.Common/Version.cs @@ -1,4 +1,4 @@ using System.Reflection; -[assembly: AssemblyVersion("10.3.0.8")] -[assembly: AssemblyFileVersion("10.3.0.8")] +[assembly: AssemblyVersion("10.3.0.9")] +[assembly: AssemblyFileVersion("10.3.0.9")] diff --git a/source/ACT.Hojoring.Common/split.ps1 b/source/ACT.Hojoring.Common/split.ps1 new file mode 100644 index 000000000..6d7bf3af0 --- /dev/null +++ b/source/ACT.Hojoring.Common/split.ps1 @@ -0,0 +1,63 @@ +param ( + [string]$inputFile +) + +try { + # 入力ファイルの内容を読み込み + $content = Get-Content -Path $inputFile + + # フラグの初期化 + $copying = $false + $outputFile = "" + + # 行ごとに処理 + foreach ($line in $content) { + if ($line -match "00:0039::戦闘開始!") { + $copying = $true + + $fileName = $inputFile.Substring(10, 10) + "_" + $line.Substring(1, 2) + $line.Substring(4, 2) + $line.Substring(7, 2) + ".log" + $outputFile = ".\" + $fileName + + Write-Host $outputFile + Write-Host $line + + if (Test-Path -Path $outputFile) { + Clear-Content -Path $outputFile + } + } + if ($copying -and -not ($line -match "\[DEBUG\]$")) { + Add-Content -Path $outputFile -Value $line + } + if ($copying -and $line -match "00:0038::Hojoring>WIPEOUT") { + $copying = $false + $newFileName = $outputFile.Replace(".log", "_false_.log") + Rename-Item -Path $outputFile -NewName $newFileName + } + if ($copying -and $line -match "ブラックキャットを倒した。") { + $copying = $false + $newFileName = $outputFile.Replace(".log", "_true_.log") + Rename-Item -Path $outputFile -NewName $newFileName + } + if ($copying -and $line -match "ハニー・B・ラブリーを倒した。") { + $copying = $false + $newFileName = $outputFile.Replace(".log", "_true_.log") + Rename-Item -Path $outputFile -NewName $newFileName + } + if ($copying -and $line -match "ブルートボンバーを倒した。") { + $copying = $false + $newFileName = $outputFile.Replace(".log", "_true_.log") + Rename-Item -Path $outputFile -NewName $newFileName + } + if ($copying -and $line -match "ウィケッドサンダーを倒した。") { + $copying = $false + $newFileName = $outputFile.Replace(".log", "_true_.log") + Rename-Item -Path $outputFile -NewName $newFileName + } + } +} catch { + Write-Error "エラーが発生しました: $_" + Pause + exit 1 +} + +Pause diff --git a/source/ACT.SpecialSpellTimer/ACT.SpecialSpellTimer.Core/Config/Views/TimelineManagerView.xaml b/source/ACT.SpecialSpellTimer/ACT.SpecialSpellTimer.Core/Config/Views/TimelineManagerView.xaml index 458b142df..8d5deef84 100644 --- a/source/ACT.SpecialSpellTimer/ACT.SpecialSpellTimer.Core/Config/Views/TimelineManagerView.xaml +++ b/source/ACT.SpecialSpellTimer/ACT.SpecialSpellTimer.Core/Config/Views/TimelineManagerView.xaml @@ -113,6 +113,7 @@