Commit Graph
45 Commits
Author SHA1 Message Date
N0VAN0M4LY feda31d12a fix(profile): prevent saved showcases from crashing the parser
Store local showcase selections separately from the client's top-level
showcase block.
2026-11-25 22:46:35 +08:00
N0VAN0M4LY 3144adc487 refactor(research): separate research rules from price encoding
Keep ResearchRules focused on vehicle research and purchases. Move
cln_get_price_ex encoding into the character protocol layer and inject
its catalogue dependencies explicitly. Load only the catalogues needed
by each service and save editing command.

Type checking and isolated service and save CLI checks passed.
In-game acceptance is pending.
2026-11-25 16:33:27 +08:00
N0VAN0M4LY 4d8229ae92 feat(economy): offer a free offline payment option
Expose free payment in the in-game dialog, local store, and marketplace.
Grant the selected item without debiting GJN and reject unknown payment
methods. Apply the configured per-purchase limit consistently.

Type checking, binary and GUI patch checks, and local purchase checks
passed. In-game acceptance is pending.
2026-11-25 13:41:37 +08:00
N0VAN0M4LY e1468df52b fix(store): resolve vehicle icons and default to the in-game account
Match archive paths without regard to case and include Golden Eagle
vehicles in icon extraction. Default read-only page state to the
current in-game account. Keep web mutations gated on an explicit
account ID.

Type checking and local icon and account selection checks passed.
In-game acceptance is pending.
2026-11-25 13:41:35 +08:00
N0VAN0M4LY 259cd0f32c feat(store): sell multi-vehicle packs and localize country names
Offer the five three-vehicle packs and nine starter packs as bundles.
Grant their unowned vehicles and bonuses on purchase. Encode each
vehicle in an aircraftGift field and validate duplicate IDs and
vehicle assignments.

Read group labels from units.csv and country names from
_common_languages.csv. Use those names in packs and browser filters.

Type checking and local catalogue and price response checks passed.
In-game acceptance is pending.
2026-11-25 13:41:32 +08:00
N0VAN0M4LY 78f1857918 fix(research): keep a valid vehicle research target for each branch
The accelerated research dialog reads currUnit when it first opens.
Assign a valid target whenever an eligible vehicle exists and replace
stale selections when refreshing a profile.

Prefer an available direct successor when configured. Otherwise use
the configured rank or tech tree order. Type checking and profile
initialization passed. In-game acceptance is pending.
2026-11-25 13:41:29 +08:00
N0VAN0M4LY 9cf7df5299 feat(store): open store pages in-game and centralize economy tuning
Use the native embedded browser and pass the game language through
auto_local. Share web assets and extract vehicle icons, flags, and
localized names from the installed client.

Load and validate per-domain JSONC tuning and merge local overrides
by field. Use official store USD prices for GJN products, keep GJN
balances in integer cents, and split the native and web store
handlers by protocol. Multi-vehicle packs are still listed as single
vehicles at this point.

Type checking, patch checks, and configuration loading passed.
In-game acceptance is pending.
2026-11-25 11:01:05 +08:00
N0VAN0M4LY 8d9cca9d05 fix(vromfs): use 64-bit digest table offsets
Read and write the digest table start as a 64-bit field in both codecs.
The truncated offset caused SHA-1 mismatches in large packs such as
ui/images.vromfs.bin and ui/atlases.vromfs.bin.

Type checking passed and the service extracted icons and flags from
the large packs.
2026-11-25 11:00:48 +08:00
N0VAN0M4LY 29e5cf2bd8 fix(server): persist squadrons and align inventory wire formats
Read squadron action parameters from the request headers and persist
squadron state on profile refresh. Use floating-point trophy weights
to match the client probability display and assign unique log IDs
when opening multiple chests.

Tighten shop, marketplace, squadron, and cloud settings validation.
Move PBBD and inventory encoding into the protocol modules and share
CSV reading. Update the research and acceptance instructions.

Type checking and all eight executable patch checks passed.
In-game acceptance is pending.
2026-11-25 09:10:09 +08:00
N0VAN0M4LY b68f321b84 refactor(server): separate inventory, squadron, and web logic
Split inventory definition generation by category and select chest
contents deterministically. Move squadron queries, membership, and
lifecycle into focused modules and enforce role permissions.

Serve store and marketplace pages as static files with shared web
helpers. Share profile field readers and keep response encoding in
the protocol modules. Restrict cloud settings to registered blocks.

Type checking and the save CLI ran successfully. In-game acceptance
is pending.
2026-11-25 08:26:11 +08:00
N0VAN0M4LY 814ac9409e fix(accounts): require explicit accounts for game and web requests
Reject game requests whose token or account hint cannot be resolved
and require a valid explicit user ID for web mutations. Remove the
entitlement action without a verified client call site.

Register the loopback store URL script edit and require a unique match
during pack construction. Type checking and patch loading passed.
In-game acceptance is pending.
2026-11-25 08:08:29 +08:00
N0VAN0M4LY 29b731d52d feat(saves): persist cloud settings with each local save 2026-11-25 07:59:47 +08:00
N0VAN0M4LY f3fb6f6b53 feat(squadrons): add local squadrons, activity, and vehicle research 2026-11-25 07:47:33 +08:00
N0VAN0M4LY 415f78e761 feat(inventory): add external inventory, marketplace, and supply chests
Define external inventory items and support GJN purchases, recycling,
and supply chest drops.
2026-11-25 07:19:07 +08:00
N0VAN0M4LY 129d796095 feat(store): add GJN balances, a local store, and redemption codes
Support currency and entitlement purchases, including packs, from the
local store and the in-game payment flow. Expose the supported
redemption codes.
2026-11-25 06:33:41 +08:00
N0VAN0M4LY ddb381d7f9 fix(native): handle local HTTPS and allow shared log reads
Use the loopback service certificate for the offline HTTPS path. Retain
original host names for host-based routing and allow the network log
to be read while the client is running.
2026-11-25 06:05:20 +08:00
N0VAN0M4LY b6b6effef3 fix(native): preserve stock socket export ordinals
Keep the original ordinals for functions imported by number so Windows
can resolve the socket library imports during startup.
2026-11-25 05:04:28 +08:00
N0VAN0M4LY 2428b34497 feat(native): route client traffic to the loopback service
Build the socket library and client-local port configuration for redirecting
traffic to the offline service. Accept HTTPS and the existing matching and
HTTP protocols on the same port. Route requests by the original host.
2026-11-25 05:02:34 +08:00
N0VAN0M4LY ddfc067874 feat(inventory): add classic items and default showcase responses
Store and activate boosters, personal discounts, wagers, and universal
spares. Apply active personal discounts when pricing vehicle purchases.
Return the server time and default fields for every showcase type.

Add developer commands for inspecting game logs, strings, references,
callers, and disassembly.
2026-11-25 04:17:34 +08:00
N0VAN0M4LY f463f3e325 feat(profile): add unlock purchases and showcases
Load unlock prices from unlocks.blk and expose them in Common/unlocks.
Support purchasing unlocks and saving showcases, and count qualified
crews for the ace showcase.

Read charRequestBlk action parameters from HTTP headers and apply this
to cln_get_users_terse_info.
2026-11-25 02:49:13 +08:00
N0VAN0M4LY 1e7dc2447f fix(equipment): correct modification status and persist weapon presets
Write modStatus in modsResearch so the client recognizes purchasable
modifications. Persist ownership and initial equipment state for free
modifications and quantities for free weapon presets.

Persist preset inventory in the weapon records and handle cln_buy_weapon
using the maximum quantity extracted from the game data.
2026-11-25 02:44:16 +08:00
N0VAN0M4LY 743efbbd39 feat(profile): save appearance and return player summaries
Persist titles, avatars, backgrounds, and frames. Return the corresponding
appearance fields in the player summary response.
2026-11-24 22:06:48 +08:00
N0VAN0M4LY 40f088a912 feat(crew): add skills, qualifications, and training fees
Support spending crew skill points, buying skill point packs, and
purchasing expert and ace qualifications. Charge for training a crew on
an unfamiliar vehicle and expose the skill pack prices.
2026-11-24 22:05:15 +08:00
N0VAN0M4LY 28909cf1e9 feat(cosmetics): support cosmetic purchases
Handle cln_buy_resource, persist ownership in resourcesInfo, and expose
the prices of skins, decals, and attachments.
2026-11-24 21:56:00 +08:00
N0VAN0M4LY 6d8a3af37a feat(cosmetics): save decal and attachment layouts
Handle cln_save_decals and cln_save_attachables and return the complete
updated layout block for the affected resource type.
2026-11-24 21:51:53 +08:00
N0VAN0M4LY c448ed94a7 feat(equipment): add modification, ammunition, and spare actions
Include modification, weapon, and spare vehicle prices, omitting zero
prices. Recalculate modification research and ranks and handle research
target selection, purchases, bulk purchases, and equipment toggles.
2026-11-24 21:43:35 +08:00
N0VAN0M4LY 9196dc2a4d fix(economy): wrap vehicle prices in the Common block
Use the block expected by the client to fix zero vehicle prices.
Document hangar settings, modification state, and price table paths.
2026-11-24 21:34:31 +08:00
N0VAN0M4LY 08b5c1e51c feat(research): add vehicle research and purchases
Recompute unlocked ranks, prerequisites, and unit states before serving
profiles. Add research target selection, research conversion, vehicle
and slot purchases, and the price table. Support editing convertible RP
and restrict hidden vehicle visibility to eligible entries.

The client still displays zero purchase prices pending price table
integration.
2026-11-24 21:04:19 +08:00
N0VAN0M4LY e5452e925f feat(saves): seed new saves and reveal eligible hidden vehicles
Set initial Silver Lions and Golden Eagles balances and add a save
editing command. Open rank I for each nation and branch and migrate
older saves to format 3. Reveal eligible hidden vehicles while keeping
split air-defense launchers out of the tech tree.

Document the currency, rank, and unit status fields observed in the offline client.
2026-11-24 14:45:28 +08:00
N0VAN0M4LY ed0136f5fc feat(crew): add crew presets and grant reserve vehicles
Derive reserve vehicles from the stock economy data. Grant all reserves
and mark the basic takeoff and landing tutorials complete in new saves.
Apply the same grants through the format 2 migration.

Use shared crew slot rules for first-run selection, presets, training,
assignment, and removal.
2026-11-24 14:18:02 +08:00
N0VAN0M4LY 1d9c92a9d0 feat(battle): serve game modes from extracted mission data
Publish stable mode IDs and matching responses in the stock format.
Build the mission pools from the multiplayer mission data and provide
required fields and localized names. Load datasets before listening and
reuse cached results when the source file digests match.

Preserve invalid UTF-8 bytes when round-tripping BLK strings and names.
The game mode list appeared in the offline client.
2026-11-24 11:02:30 +08:00
N0VAN0M4LY d88aa3ff4f feat(profile): support first-run selection and tutorial skipping
Save the selected country, starting crew, and unlocks when the client
submits its first-run selection. Use the stock unlock and crew formats.
Enable the existing option to skip the basic tutorial.

The client reached the hangar. Tutorial verification is pending.
2026-11-24 10:01:47 +08:00
N0VAN0M4LY ac2c185d4c feat(accounts): persist EULA acceptance
Persist the accepted EULA version before responding and return both
agreement fields in the profile. Respond to matching heartbeats.
2026-11-24 09:05:31 +08:00
N0VAN0M4LY 6233a64835 fix(matching): return clusters in the stock response envelope
Return recognizable regions from fetch_clusters_list and place matching
results in data.data. Document the handshake, heartbeat, and EULA
requirements. The offline client remains logged in after the cluster reply.
2026-11-24 08:44:44 +08:00
N0VAN0M4LY 27754122fc feat(server): handle matching login and decorative content manifests
Add matching frame and message handling, per-connection session
encryption, and loopback traffic dispatch. Serve the decorative content
manifest and empty indices to remove startup download waits.

Resolve character requests to their explicit account ID, include the
nickname in profile replies, and redact matching traffic logs.
2026-11-24 08:12:40 +08:00
N0VAN0M4LY 7f482ae530 feat(accounts): implement local login
Route login and character requests by their original host names on one
loopback port. Add local accounts, saves, and credential redaction.
2026-11-24 05:01:26 +08:00
N0VAN0M4LY c3914ec0d6 feat(patcher): build a loopback client copy with TypeScript
Add the shared BLK, VROMFS, executable patch, and build packages. Preserve
typed fields and shared name tables when reading BLK data. Rewrite the
service endpoints in place so the original environment names remain
available to the client, then build the client copy.
2026-11-24 00:35:13 +08:00
N0VAN0M4LY 89aa5198c3 build(repo): restore build tools and define the workspace layout
Restore the reviewed pack, PE, and patch tooling. Specify a TypeScript
build pipeline, a type-preserving BLK codec, and a configurable loopback
port selected at launch. Document the package boundaries.
2026-11-24 00:19:04 +08:00
N0VAN0M4LY 7b6d8973d1 chore(repo): archive the prototype and document hangar requests
Archive the earlier backend, client, build, and patch definitions. Document
the stock login and profile requests required to reach the hangar, along
with the profile structure and the relevant configuration blocks.
2026-11-24 00:07:51 +08:00
N0VAN0M4LY 0e4af609c8 docs(server): define the local server architecture
Describe how the stock client can handle login and profiles with a
loopback service using the native protocols. Record the service endpoints,
login and profile flow, and character action inventory. Update the feature
checklist and archive the replaced design material.
2026-11-23 23:49:19 +08:00
N0VAN0M4LY 5f6b9d6939 feat(tooling): add Quirrel checks and a GUI build command
Compile the upstream Quirrel checker with MSVC and invoke syntax and
static analysis for each input file. Treat reported errors and warnings
as failures because the checker can return a zero exit code for them.

Split the command line by purpose and add GUI pack construction from
declared edits and injected scripts. Verify the checker against stock
scripts and invalid inputs, and confirm that patch checks still run.
2026-11-23 14:36:15 +08:00
N0VAN0M4LY f014f327e5 feat(patcher): add executable patching and local archive support
Keep patch definitions and dependencies separate from the patch engine.
Resolve all patches before writing, verify expected bytes, and refuse to
overwrite the input executable. Include a read-only check command for
comparing definitions with their assembly source.

Allow locally rebuilt script archives to load in the offline client.
Verify the patch against the 2.61.0.37 executable and confirm that the
patched copy remains readable as PE.
2026-11-23 13:32:36 +08:00
N0VAN0M4LY 8d26ad0fbd feat(vromfs): read and rebuild VROMFS script packs
Split container handling from the file table and add a read-only PE view
for the patch engine. Apply declarative script edits at unique anchors and
preserve the input line endings and unmodified bytes.

Round-trip the 2.61.0.37 GUI pack byte-for-byte and verify that invalid
edit definitions and ambiguous matches are rejected.
2026-11-23 13:19:27 +08:00
N0VAN0M4LY b89e3c1ce7 docs(patches): standardize terms and describe patch design criteria
Use standard names for executable patches, adapters, and subscriptions.
Document how each change follows from a feature requirement and how
dependencies and generated code are represented. Mark the feature list
entries whose implementation still needs investigation.
2026-11-23 11:13:15 +08:00
N0VAN0M4LY 5e828352e4 chore(repo): initialize the offline project workspace
Add a TypeScript backend skeleton with a health endpoint and read-only
PE analysis tools for the target client.

Ignore game files, build outputs, saves, logs, and virtual environments.
2026-11-23 09:21:52 +08:00