Everything sat in packages/: two programs next to the small libraries
they use, and the patch data loose at the root. The programs now live in
apps/ and the shared libraries in packages/:
apps/server the local server (was packages/local-service),
package @wto/server
packages/patcher builds the game copy (was packages/build),
package @wto/patcher
patches/exe exe patch definitions (was exe-patches)
patches/gui GUI script patches (was gui-patches)
Inside the server, the network layer folder becomes transport/ so it is
not server/server/, the entry module is server.ts, and startLocalService
and its types become startServer, ServerOptions and RunningServer. The
health answer names the app wto-server, and the TLS files in the data
folder are server.key and server.crt (made again on the next start).
Comments, logs and tool texts say "local server".
The patcher no longer reaches into the server's folder. It read the
default tuning/store.jsonc by a relative path to register bundle GUIDs
for the multi-vehicle packs, which also ignored the player's overrides
in <data>/tuning/. It now takes the pack ids from its caller; the
server exports multiVehiclePackIds(dataFolder), which reads them the way
the running server does. rebuildGuiPack takes the patch folder from its
caller as well.
The development build moves out of the patcher to
scripts/build-game-copy.ts, since it uses both the server and the
patcher. It needs --data (the folder the server will run with) and
defaults the patch folders and the hook library to this repository.
Checked with the root typecheck, check-patches, check-gui,
check-offsets, the native build, a run of build-game-copy.ts into a
scratch folder (12 exe patches, 35 GUI patches, 496 bundle GUIDs as
before) and a server start from apps/server answering wto-server.
BREAKING CHANGE: Use @wto/server and @wto/patcher from the new workspace paths. Run the development build with scripts/build-game-copy.ts and pass --data.
113 lines
8.0 KiB
JSON
113 lines
8.0 KiB
JSON
// Local squadron catalogue and activity rules.
|
|
{
|
|
// Set activity and squadron RP. The service reports maxActivityPerPeriod, maxClanActivity, rewardPeriodDays, and historyDepth in squadron replies.
|
|
"activity": {
|
|
"maxPerPeriod": 360, // Activity cap per reward period.
|
|
"squadronRpPerFullPeriod": 20000, // Squadron RP awarded for a full activity period.
|
|
"rewardPeriodDays": 3, // Reward period in days.
|
|
"historyDepthDays": 14, // Activity history displayed by the client, in days.
|
|
// Seed full periods on creation or joining so squadron research can start immediately.
|
|
"startingPeriods": 3
|
|
},
|
|
|
|
// Set the full squadron cap and initial battalion cap. Expansion cost and step size are read from warpoints.blk.
|
|
"memberLimits": { "normal": 128, "battalionInitial": 10 },
|
|
|
|
// Displayed leaderboard activity is min(maxActivity, summed member activity * activityMultiplier), so small NPC rosters can represent full squadrons.
|
|
"leaderboard": { "activityMultiplier": 10, "maxActivity": 100000 },
|
|
|
|
// Starting ID for player-created squadrons.
|
|
"firstNewClanId": 600001,
|
|
|
|
// Personal arcade, realistic, and simulator squadron ratings for squadron creation and joining.
|
|
"playerRating": {
|
|
"founder": { "arc": 1500, "hist": 1500, "sim": 1500 },
|
|
"joiner": { "arc": 1450, "hist": 1500, "sim": 1400 }
|
|
},
|
|
|
|
// Seed these squadrons when clans.json does not yet exist in the data directory.
|
|
"presetClans": {
|
|
"createdDaysAgo": 180, // Age of the first seeded squadron before applying each squadron's createdAfterDays offset.
|
|
"memberJoinSpacingMinutes": 60,
|
|
// Lifetime stats displayed for each seeded squadron.
|
|
"stats": {
|
|
"akills_arc": 4280, "akills_hist": 6150, "akills_sim": 1420,
|
|
"gkills_arc": 7890, "gkills_hist": 11240, "gkills_sim": 2680,
|
|
"deaths_arc": 5120, "deaths_hist": 6890, "deaths_sim": 1950,
|
|
"ftime_arc": 18400, "ftime_hist": 32600, "ftime_sim": 8900
|
|
},
|
|
// For each game mode, subtract the rank offset from the squadron rating and use the configured minimum as the lower bound.
|
|
"memberRating": { "step": { "arc": 45, "hist": 50, "sim": 40 }, "floor": { "arc": 800, "hist": 850, "sim": 700 } },
|
|
// role is LEADER, DEPUTY, OFFICER, SERGEANT, or REGULAR. activity is the current period's activity.
|
|
"clans": [
|
|
{
|
|
"id": "500001", "tag": "[WTOF]", "name": "War Thunder Offline Guard", "type": "normal",
|
|
"slogan": "离线天空与钢铁防线 · 自由研发全部联队载具",
|
|
"desc": "War Thunder Offline 官方预置主力联队。开启自动审批,加入即可获得完整联队活跃度与联队研发点支持。",
|
|
"announcement": "欢迎加入 [WTOF]!可在联队页面右上角点击「联队载具」或「活跃度」查看研发进度。",
|
|
"region": "CN / Global", "autoAccept": true, "createdAfterDays": 0,
|
|
"rating": { "arc": 1840, "hist": 2150, "sim": 1620 },
|
|
"members": [
|
|
{ "uid": "900001001", "nick": "Lin_Wei", "role": "LEADER", "title": "title_marshall", "icon": "cardicon_28", "unit": "cn_ztz_99a", "activity": 360 },
|
|
{ "uid": "900001002", "nick": "Elena_Valkyrie", "role": "DEPUTY", "title": "title_ace", "icon": "cardicon_fem_01", "unit": "su_27sm", "activity": 360 },
|
|
{ "uid": "900001003", "nick": "iron_tiger_88", "role": "OFFICER", "title": "title_tank_destroyer", "icon": "cardicon_14", "unit": "germ_leopard_2a7v", "activity": 360 },
|
|
{ "uid": "900001004", "nick": "Tomcat_Actual", "role": "OFFICER", "title": "title_jet_powered", "icon": "cardicon_07", "unit": "f_14b", "activity": 345 },
|
|
{ "uid": "900001005", "nick": "Kuroshio_DD", "role": "SERGEANT", "title": "title_sea_wolf", "icon": "cardicon_19", "unit": "jp_destroyer_shimakaze", "activity": 330 },
|
|
{ "uid": "900001006", "nick": "Northern_Fox", "role": "REGULAR", "title": "title_sniper", "icon": "cardicon_11", "unit": "sw_strv_122b_plus", "activity": 310 }
|
|
]
|
|
},
|
|
{
|
|
"id": "500002", "tag": "=PLAF=", "name": "Red Falcon Aviation Wing", "type": "normal",
|
|
"slogan": "鹰击长空 · 现代喷气空战与陆空协同联队",
|
|
"desc": "专注于高阶喷气机与现代主战坦克联合作战的离线联队,支持自动入队与高活跃度加成。",
|
|
"announcement": "本期联队研发推荐:F-16A OCU、苏-33、豹 2PL、M1A1 AIM。",
|
|
"region": "Asia", "autoAccept": true, "createdAfterDays": 12,
|
|
"rating": { "arc": 1690, "hist": 2040, "sim": 1780 },
|
|
"members": [
|
|
{ "uid": "900002001", "nick": "SkyDragon_J20", "role": "LEADER", "title": "title_ace", "icon": "cardicon_25", "unit": "j_11a", "activity": 360 },
|
|
{ "uid": "900002002", "nick": "Thunderbolt_CN", "role": "DEPUTY", "title": "title_pilot", "icon": "cardicon_09", "unit": "jh_7a", "activity": 360 },
|
|
{ "uid": "900002003", "nick": "SteelWall_99", "role": "OFFICER", "title": "title_unstoppable", "icon": "cardicon_16", "unit": "cn_vt_4a1", "activity": 350 },
|
|
{ "uid": "900002004", "nick": "NightHawk_04", "role": "REGULAR", "title": "title_eagle", "icon": "cardicon_05", "unit": "f_15j_kai", "activity": 300 }
|
|
]
|
|
},
|
|
{
|
|
"id": "500003", "tag": "-1STG-", "name": "1st Armored Guards Division", "type": "normal",
|
|
"slogan": "Steel & Fire — Heavy Armor Historical Squadron",
|
|
"desc": "Classic and modern armored warfare squadron. Open auto-accept recruitment for all tank commanders.",
|
|
"announcement": "Squadron vehicles ready for research at full 20,000 RP per period.",
|
|
"region": "EU / Global", "autoAccept": true, "createdAfterDays": 24,
|
|
"rating": { "arc": 1920, "hist": 1980, "sim": 1510 },
|
|
"members": [
|
|
{ "uid": "900003001", "nick": "Kommissar_KVs", "role": "LEADER", "title": "title_hero", "icon": "cardicon_22", "unit": "ussr_t_90m", "activity": 360 },
|
|
{ "uid": "900003002", "nick": "PanzerMeyer_IV", "role": "OFFICER", "title": "title_tankman", "icon": "cardicon_12", "unit": "germ_pzkpfw_VI_ausf_h1_tiger", "activity": 340 },
|
|
{ "uid": "900003003", "nick": "DesertRat_UK", "role": "REGULAR", "title": "title_conqueror", "icon": "cardicon_18", "unit": "uk_challenger_2_black_night", "activity": 290 }
|
|
]
|
|
},
|
|
{
|
|
"id": "500004", "tag": "^82AB^", "name": "82nd Combined Task Force", "type": "normal",
|
|
"slogan": "All The Way — Air, Ground & Naval Task Force",
|
|
"desc": "需要审批模式的示例联队(用于测试发送与撤回入队申请流程)。若想立即加入联队,请选择 [WTOF]、=PLAF= 或 -1STG-。",
|
|
"announcement": "Manual application review enabled for testing request/cancel workflow.",
|
|
"region": "NA", "autoAccept": false, "createdAfterDays": 35,
|
|
"rating": { "arc": 1550, "hist": 1760, "sim": 1490 },
|
|
"members": [
|
|
{ "uid": "900004001", "nick": "Major_Winters", "role": "LEADER", "title": "title_brother_in_arms", "icon": "cardicon_03", "unit": "us_m1a2_sep2_abrams", "activity": 360 },
|
|
{ "uid": "900004002", "nick": "Mustang_Lead", "role": "OFFICER", "title": "title_ace", "icon": "cardicon_08", "unit": "p-51d-30_usaaf_korea", "activity": 315 }
|
|
]
|
|
},
|
|
{
|
|
"id": "500005", "tag": "**RCON**", "name": "Reconnaissance Battalion Alpha", "type": "battalion",
|
|
"slogan": "轻量级战术分队 · 侦察与快速反应",
|
|
"desc": "战斗群(Battalion)类型预置联队,开启自动加入,支持体验战斗群架构与联队扩编。",
|
|
"announcement": "轻装侦察分队常驻开放。",
|
|
"region": "Global", "autoAccept": true, "createdAfterDays": 48,
|
|
"rating": { "arc": 1410, "hist": 1610, "sim": 1320 },
|
|
"members": [
|
|
{ "uid": "900005001", "nick": "Ghost_Scout", "role": "LEADER", "title": "title_scout", "icon": "cardicon_15", "unit": "us_hstvl", "activity": 360 },
|
|
{ "uid": "900005002", "nick": "Lynx_Spotter", "role": "REGULAR", "title": "title_sniper", "icon": "cardicon_20", "unit": "it_centauro_rgo_120", "activity": 280 }
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|