[pr-feature] Store add-ons you own (DARNER_OWNED): Ultimate Edition content and other store-issued content get a valid licence; every store id asked is logged once #161

Open
BadSwine wants to merge 1 commit from BadSwine/Darner:store-owned-addons into main
First-time contributor

What it changes

Offline, XStore owns no add-ons, so content the store issues (the Ultimate Edition content, pre-order bonuses and other add-ons) is never unlocked, even for a player who owns it.

DARNER_OWNED names the add-ons the user owns: store ids or package identifiers, separated by commas or semicolons, compared without case; * owns every one.

  • XStoreAcquireLicenseForDurablesAsync and XStoreAcquireLicenseForPackageAsync return a valid licence for the ids it names (the game's own package stays licensed as before).
  • Every store id or package the title asks about (durable and package licences, consumables, purchase and product pages, associated and entitled product queries, package-for-store-id) is logged once as store id asked, so the ids can be read off a run and put in DARNER_OWNED.
  • Unchanged: product queries and the add-on licence list stay empty (listing products would need full store entries), and everything that needs the store service still fails with the store network error.
  • README: a DARNER_OWNED row under "Game and console behaviour".

Not set, the behaviour is the same as now.

How it was tested

  • Tested revision: 8978e18e1 on main 57dea7f23
  • Commands and results (Windows):
    • cargo clippy --workspace --all-targets --locked -- -D warnings: passed
    • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passed
    • cargo test --workspace --locked: one failure, darner-gpu watch::tests::ask_once_by_res_splits_reservations_without_refusals (watch.rs:8614), in a crate this does not touch; it passed when run again on its own, so it looks intermittent.
    • cargo test --locked -p darner-hle: passed (493), including the new xstore::tests::owned_ids_are_listed_without_case_or_all_at_once
    • cargo xtask policy --staged: 2 files ok
  • Gameplay: tested in the game on Darner with this change and DARNER_OWNED set. The Ultimate Edition content was there:
    • Exclusive vehicles and gear: the '95 Grotti Cheetah, '67 Vapid Dominator Buggy, Ganado Retro Build, safehouse vehicles, classic car collection content, the Hawk & Little Morgan revolvers and personalized weapon variants.
    • Shops and customization, across story progression: Rideout Customs Mod Shop, One-Eyed Willie's Mod Shop, Sara's Unisex Salon, Stock 305 Clothing Store, Electric Fang Tattoo Parlor, Goodtime Gear and Vice City Style options, including special outfits in clothing stores and options at mod shops.
    • Extra activities: the PTT Youngin$ compound and the classic car collection activities.
  • Coverage gaps: the darner-gpu test above, which this change does not touch.

Checklist

  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: none found
## What it changes Offline, XStore owns no add-ons, so content the store issues (the Ultimate Edition content, pre-order bonuses and other add-ons) is never unlocked, even for a player who owns it. `DARNER_OWNED` names the add-ons the user owns: store ids or package identifiers, separated by commas or semicolons, compared without case; `*` owns every one. - `XStoreAcquireLicenseForDurablesAsync` and `XStoreAcquireLicenseForPackageAsync` return a valid licence for the ids it names (the game's own package stays licensed as before). - Every store id or package the title asks about (durable and package licences, consumables, purchase and product pages, associated and entitled product queries, package-for-store-id) is logged once as `store id asked`, so the ids can be read off a run and put in `DARNER_OWNED`. - Unchanged: product queries and the add-on licence list stay empty (listing products would need full store entries), and everything that needs the store service still fails with the store network error. - README: a `DARNER_OWNED` row under "Game and console behaviour". Not set, the behaviour is the same as now. ## How it was tested - Tested revision: `8978e18e1` on `main` `57dea7f23` - Commands and results (Windows): - `cargo clippy --workspace --all-targets --locked -- -D warnings`: passed - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings`: passed - `cargo test --workspace --locked`: one failure, `darner-gpu` `watch::tests::ask_once_by_res_splits_reservations_without_refusals` (watch.rs:8614), in a crate this does not touch; it passed when run again on its own, so it looks intermittent. - `cargo test --locked -p darner-hle`: passed (493), including the new `xstore::tests::owned_ids_are_listed_without_case_or_all_at_once` - `cargo xtask policy --staged`: 2 files ok - Gameplay: tested in the game on Darner with this change and `DARNER_OWNED` set. The Ultimate Edition content was there: - Exclusive vehicles and gear: the '95 Grotti Cheetah, '67 Vapid Dominator Buggy, Ganado Retro Build, safehouse vehicles, classic car collection content, the Hawk & Little Morgan revolvers and personalized weapon variants. - Shops and customization, across story progression: Rideout Customs Mod Shop, One-Eyed Willie's Mod Shop, Sara's Unisex Salon, Stock 305 Clothing Store, Electric Fang Tattoo Parlor, Goodtime Gear and Vice City Style options, including special outfits in clothing stores and options at mod shops. - Extra activities: the PTT Youngin$ compound and the classic car collection activities. - Coverage gaps: the `darner-gpu` test above, which this change does not touch. ## Checklist - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: none found
BadSwine changed title from Store: DARNER_OWNED licenses the add-ons it names (* for all): Ultimate Edition content, pre-order bonuses and other store-issued content; every store id the title asks about is logged once to [pr-feature] Store add-ons you own (DARNER_OWNED): Ultimate Edition content and other store-issued content get a valid licence; every store id asked is logged once 2026-12-04 00:53:57 +00:00
Owner

claudes bugging me about this one

claudes bugging me about this one
Owner

now claude knows i told on it

now claude knows i told on it
This pull request has changes conflicting with the target branch.
  • README.md
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'store-owned-addons:BadSwine-store-owned-addons'
git switch 'BadSwine-store-owned-addons'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'BadSwine-store-owned-addons'
git switch 'BadSwine-store-owned-addons'
git rebase 'main'
git switch 'main'
git merge --ff-only 'BadSwine-store-owned-addons'
git switch 'BadSwine-store-owned-addons'
git rebase 'main'
git switch 'main'
git merge --no-ff 'BadSwine-store-owned-addons'
git switch 'main'
git merge --squash 'BadSwine-store-owned-addons'
git switch 'main'
git merge --ff-only 'BadSwine-store-owned-addons'
git switch 'main'
git merge 'BadSwine-store-owned-addons'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!161
No description provided.