build(repo): make source comments and build tools self-contained
This commit is contained in:
1 parent
5b5c59ab08
commit
44190e4544
106 files changed
+152
-183
No files matched your search
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Dataset: the battle reward factors the game files carry (implementation notes "3d").
|
||||
* Dataset: the battle reward factors the game files carry.
|
||||
*
|
||||
* char.vromfs.bin config/wpcost.blk, per vehicle:
|
||||
* unitClass, expMul, rewardMul<Arcade|Historical|Simulation>, battleTimeAward<...>, timedAward<...>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Dataset: the battle awards ("streaks") of char.vromfs.bin config/unlocks.blk (implementation notes "3e").
|
||||
* Dataset: the battle awards ("streaks") of char.vromfs.bin config/unlocks.blk.
|
||||
*
|
||||
* unlockable{ id:t type:t="streak" hidden:b isAfterFlight:b isMultiStage:b
|
||||
* amount_warpoints:i|ip3 amount_exp:i|ip3 reward of a single-stage award
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/**
|
||||
* Dataset: squadron creation, edit, member-limit upgrade, battalion-to-normal upgrade prices,
|
||||
* and free tag decorators from char.vromfs.bin config/warpoints.blk (implementation notes;
|
||||
* aces.exe 0x906fe0..0x907070; scripts/clans/clanType.nut).
|
||||
* and free tag decorators from char.vromfs.bin config/warpoints.blk (aces.exe 0x906fe0..0x907070; scripts/clans/clanType.nut).
|
||||
*/
|
||||
import { findBlock, type BlkBlock } from '@wto/blk';
|
||||
import { numberField } from './blk-fields.ts';
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/**
|
||||
* Extract datasets once and reuse the result while the game files stay the same
|
||||
*:
|
||||
* Extract datasets once and reuse the result while the game files stay the same:
|
||||
*
|
||||
* 1. every pack the dataset read has the same size and modification time as when it was
|
||||
* extracted: use the cached result;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/**
|
||||
* A dataset: a set of static facts extracted from the player's game files (implementation notes
|
||||
* 3.4). Each dataset declares what it produces and reads its inputs only through the source
|
||||
* A dataset: a set of static facts extracted from the player's game files. Each dataset declares what it produces and reads its inputs only through the source
|
||||
* it is given, so the cache knows exactly which files the result depends on.
|
||||
*
|
||||
* A dataset only records what the game files say; deciding what the facts mean for a game
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/**
|
||||
* Dataset: stock game references to external inventory itemdef IDs outside shop.blk vehicles
|
||||
*:
|
||||
* Dataset: stock game references to external inventory itemdef IDs outside shop.blk vehicles:
|
||||
* - Decorator marketplace coupons in char.vromfs.bin config/{skins,decals,attachable}.blk;
|
||||
* - Unlock/pilot-icon marketplace coupons in char.vromfs.bin config/unlocks.blk;
|
||||
* - Workshop referenced itemdef IDs in aces.vromfs.bin config/workshop.blk.
|
||||
|
||||
@@ -106,7 +106,7 @@ export interface ItemDefinition {
|
||||
readonly booster?: BoosterDefinition;
|
||||
readonly wager?: WagerDefinition;
|
||||
readonly discount?: DiscountDefinition;
|
||||
/** External inventory craft-part itemdef id granted on recycling (299000..299004; implementation notes). */
|
||||
/** External inventory craft-part itemdef id granted on recycling (299000..299004). */
|
||||
readonly recycleItemResult?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* per-difficulty "mission" sub-block) are also kept as written, with their BLK types, for
|
||||
* the mission settings the local server sends when a battle starts.
|
||||
*
|
||||
* 2.61.0.37: 1315 missions, each name matching exactly one mission file (docs/implementation notes).
|
||||
* 2.61.0.37: 1315 missions, each name matching exactly one mission file.
|
||||
*/
|
||||
import type { BlkBlock, BlkParam } from '@wto/blk';
|
||||
import type { Dataset, DatasetSource } from './dataset.ts';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Dataset: how a battle's Research Points reach the researched vehicle (implementation notes "3e").
|
||||
* Dataset: how a battle's Research Points reach the researched vehicle.
|
||||
*
|
||||
* char.vromfs.bin config/rank.blk:
|
||||
* expBonusPercentForChildForMode<N> bonus when the vehicle played precedes the researched one;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Dataset: how many free research points one golden eagle converts into a vehicle's research
|
||||
* points (implementation notes, cln_convert_exp).
|
||||
* points (cln_convert_exp).
|
||||
*
|
||||
* char.vromfs.bin config/warpoints.blk playerExpToCountryFor1Gold:i (2.61.0.37: 45). The
|
||||
* client reads it in wp_get_exp_convert_exp_for_gold_rate (aces.exe 0x1052af0 -> 0x916eb0),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Dataset: entitlement-to-GUID mappings from aces.vromfs.bin config/gui.blk bundles/guid
|
||||
* (gui.vromfs.bin scripts/onlineShop/onlineBundles.nut, implementation notes).
|
||||
* (gui.vromfs.bin scripts/onlineShop/onlineBundles.nut).
|
||||
*/
|
||||
import { findBlock } from '@wto/blk';
|
||||
import type { Dataset } from './dataset.ts';
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/**
|
||||
* Dataset: the game's own names for countries and vehicle types, from lang.vromfs.bin
|
||||
*:
|
||||
* Dataset: the game's own names for countries and vehicle types, from lang.vromfs.bin:
|
||||
* lang/_common_languages.csv: country_usa, country_germany, ... country names
|
||||
* lang/menu.csv: mainmenu/type_aircraft, type_tank, ... vehicle type names
|
||||
*/
|
||||
|
||||
@@ -2,10 +2,9 @@
|
||||
* Dataset: every vehicle's research and purchase facts.
|
||||
*
|
||||
* The client takes a vehicle's economy from char.vromfs.bin config/wpcost.blk (gui.vromfs.bin
|
||||
* scripts/unit/unit.nut initOnce; the native status function reads the same file,
|
||||
* implementation notes): one block per vehicle with
|
||||
* scripts/unit/unit.nut initOnce; the native status function reads the same file): one block per vehicle with
|
||||
* country:t the country whose tech tree and ranks it belongs to
|
||||
* unitClass:t exp_fighter, exp_tank, ... (the vehicle type, implementation notes)
|
||||
* unitClass:t exp_fighter, exp_tank, ... (the vehicle type)
|
||||
* rank:i
|
||||
* reqAir:t the vehicle that has to be researched before it
|
||||
* reqExp:i research points needed
|
||||
@@ -54,11 +53,11 @@ export interface CatalogueVehicle {
|
||||
readonly parts: readonly string[];
|
||||
/** shop.blk showOnlyWhenBought. */
|
||||
readonly onlyShownWhenOwned: boolean;
|
||||
/** shop.blk marketplaceItemdefId (vehicles traded as coupons on the market, implementation notes). */
|
||||
/** shop.blk marketplaceItemdefId (vehicles traded as coupons on the market). */
|
||||
readonly marketplaceItemdefId?: number;
|
||||
/** wpcost.blk openCostGold (early GE buyout price for squadron vehicles, implementation notes). */
|
||||
/** wpcost.blk openCostGold (early GE buyout price for squadron vehicles). */
|
||||
readonly openCostGold: number;
|
||||
/** wpcost.blk minOpenCostGold (minimum GE buyout floor for squadron vehicles, implementation notes). */
|
||||
/** wpcost.blk minOpenCostGold (minimum GE buyout floor for squadron vehicles). */
|
||||
readonly minOpenCostGold: number;
|
||||
/** wpcost.blk economicRank and per-difficulty matchmaking ranks. */
|
||||
readonly economicRank: number;
|
||||
|
||||
@@ -31,7 +31,7 @@ export interface ModificationFacts {
|
||||
readonly researchPoints: number;
|
||||
readonly silverLions: number;
|
||||
readonly goldenEagles: number;
|
||||
/** openCostGold: golden eagles to get it without the research (scaled by progress, implementation notes). */
|
||||
/** openCostGold: golden eagles to get it without the research (scaled by progress). */
|
||||
readonly openGoldenEagles: number;
|
||||
/** reqModification, repeated: modifications that must be bought first. */
|
||||
readonly requires: readonly string[];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Dataset: the game's own SVG icons that the local web pages (store and marketplace, shown in
|
||||
* the in-game browser; implementation notes) display, taken from the player's
|
||||
* the in-game browser) display, taken from the player's
|
||||
* ui/atlases.vromfs.bin at runtime. The dataset uses these entries.
|
||||
* gameuiskin/<vehicle>_ico.svg the tech-tree silhouette of a vehicle
|
||||
* gameuiskin/<country>.svg a country flag (country_usa, ...)
|
||||
|
||||
Reference in new issue
Block a user