Skip to content

Add SQL unlocks, persistent locks and Quick Actions (One-Click Booster / Max All)#5

Open
Vynxly wants to merge 1 commit into
masterfrom
codex/add-features-from-fh6-allinone-trainer
Open

Add SQL unlocks, persistent locks and Quick Actions (One-Click Booster / Max All)#5
Vynxly wants to merge 1 commit into
masterfrom
codex/add-features-from-fh6-allinone-trainer

Conversation

@Vynxly

@Vynxly Vynxly commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Provide requested SQL-based cheats and quick actions (Sell Payout, Drift Score, No Skill Break, Unlock Everything, Free Cars, Free Upgrades, etc.) while preserving existing working credits override behavior.
  • Add a small in-memory SQL workflow and persistent re-apply locks so autoshow/free-car changes persist without touching core memory pathways that previously caused crashes.
  • Expose safe one-click conveniences (One-Click Booster capped to 20,000,000 credits and a Max All action) to make common flows easier for users.

Description

  • Added an in-memory SQL feature to the Autoshow page and a new UnlockEverything command in AutoshowViewModel that executes safe-sized SQL batches; implemented persistent locks with a DispatcherTimer that re-applies Free Cars / Full Autoshow / Install Flags every 10s (see Forza-Mods-AIO/ViewModels/Pages/AutoshowViewModel.cs).
  • Added UI controls in Forza-Mods-AIO/Views/Pages/Autoshow.xaml for Unlock Everything and a Persistent locks (10s) toggle that bind to the new viewmodel commands.
  • Added Quick Actions on the Unlocks page: One-Click Booster (sets credits override to 20_000_000) and Max All (caps credits at 20_000_000 and enables max values for the remaining selectable modules); UI and handlers live in Forza-Mods-AIO/Views/SubPages/SelfVehicle/Unlocks.xaml(.cs).
  • Removed the following modules from the Unlocks picker and simplified selection logic to avoid exposing risky toggles: XP, Accolades, Kudos, Forzathon Points, and Seasonal Points; preserved Credits, Wheelspins, Skill Points, and Series Points flows.
  • Implemented SQL cheat batches: Free Cars (BaseCost=0), Full Autoshow (unlock / Drivable view / buckets), Add All Cars (CarBuckets approach), Free Upgrades (47 tables via GetFreeUpgradeSql), Free Wheels, Unlock Upgrade Presets, Clear "NEW!" tag, and Physics & Performance updates (DriftScoreMultiplier, TractionScale, TorqueScale, DragCoefficient) in AutoshowViewModel.
  • Renamed UI translation keys per request: SpinSellFactor -> Sell Payout, DriftScoreMultiplier -> Drift Score, and UnbreakableSkillScore -> No Skill Break in Resources/Translations/*.
  • Small SQL improvements: split large UnlockEverything into safe-sized batches (to reduce in-process work) and added an InstallFlags expansion to mark on-disc content installed.

Testing

  • Parsed modified XAML resource files with xml.etree.ElementTree to ensure they remain well-formed and the UI layout is valid (all changed XAML files parsed OK).
  • Ran git diff --check and basic file consistency checks to ensure no whitespace/merge problems.
  • Verified C# brace counts and basic source sanity for the edited viewmodel and code-behind files (balanced braces, no obvious truncation).
  • Attempted dotnet build but it could not be executed in this environment because dotnet is not installed (build not run here).

If you want, I can: run a local build guidance checklist, split any SQL into more batches, or revert any specific translation/UI change you prefer different.


Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant