diff --git a/README.md b/README.md index 653ee73..585b279 100644 --- a/README.md +++ b/README.md @@ -62,12 +62,14 @@ This mod is based on [CelesteTAS](https://github.com/EverestAPI/CelesteTAS-Evere Here lists some ideas, which I may not work on recently. Feel free if you like that idea and want to implement that in your mod (tell me when you've implemented it so i needn't work on them). +- SpeedrunTool multi-saveslots PR (Update: done, PR is created but never gets merged) + +- Predictor combined with Brute Forcer: previous brute forcers simulate game logic so can be wrong if there are some complex mod logics, so in our way it should be better? (but also slower for sure) + - Slowdown indicator (note there's 1 frame delay between DeltaTime and TimeRate) - Key cycle indicator. -- SpeedrunTool multi-saveslots PR (Update: done, PR is created but never gets merged) - # Known issues: - AutoWatchEntity sometimes doesn't work -> it's possible if there's some mod which add some hooks and interfere AutoWatchEntity, please tell me if that happens. diff --git a/Source/Module/WhatsNew.cs b/Source/Module/WhatsNew.cs index 988aa10..90baa83 100644 --- a/Source/Module/WhatsNew.cs +++ b/Source/Module/WhatsNew.cs @@ -80,6 +80,7 @@ public static void CreateUpdateLog() { AddLog("2.0.7", "Feature: Auto-Watch now supports CrumbleWallOnRumble."); AddLog("2.0.8", "Change: Target CelesteTAS v3.41.0", "Feature: Auto-Watch supports more triggers."); AddLog("2.0.9", "Feature: SubMenus support Mod Options' Search Box.", "Bugfix: Predictor results are not cleared after loadstate.", "Change: Don't initialize predictor unless necessary."); // note items inside submenus can't be fetched, coz they are not items of the main menu. + AddLog("2.0.10", "Bugfix: Predictor results are not cleared after re-run the tas."); UpdateLogs.Sort((x, y) => new Version(y.Item1).CompareTo(new Version(x.Item1))); } diff --git a/Source/Predictor/PredictorCore.cs b/Source/Predictor/PredictorCore.cs index 2ed9b73..82b8d3c 100644 --- a/Source/Predictor/PredictorCore.cs +++ b/Source/Predictor/PredictorCore.cs @@ -278,6 +278,13 @@ private static bool SafeGuard() { public static void PredictLater(bool mustRedo) { hasDelayedPredict = true; delayedMustRedo = mustRedo; + } + + [TasEnableRun] + private static void OnTasRerun() { + futures.Clear(); + PredictorRenderer.ClearCachedMessage(); + HasCachedFutures = false; } private static void DelayedActions() { DelayedClearFutures(); diff --git a/everest.yaml b/everest.yaml index 82ba629..5ca9a57 100644 --- a/everest.yaml +++ b/everest.yaml @@ -1,5 +1,5 @@ - Name: TASHelper - Version: 2.0.9 + Version: 2.0.10 DLL: bin/Release/net7.0/TASHelper.dll Dependencies: - Name: EverestCore