Skip to content

Commit

Permalink
yet another bugfix of predictor
Browse files Browse the repository at this point in the history
  • Loading branch information
LozenChen committed Nov 7, 2024
1 parent 992bca9 commit fd53a75
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions Source/Module/WhatsNew.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}

Expand Down
7 changes: 7 additions & 0 deletions Source/Predictor/PredictorCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion everest.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- Name: TASHelper
Version: 2.0.9
Version: 2.0.10
DLL: bin/Release/net7.0/TASHelper.dll
Dependencies:
- Name: EverestCore
Expand Down

0 comments on commit fd53a75

Please sign in to comment.