> ## Documentation Index
> Fetch the complete documentation index at: https://lastwar.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Client 1.0.371

> What changed for the Go client with Last War 1.0.371 (iOS 922), live Lua 845, 847 and 848 and tables 40863, 40931 and 40962: the build numbers, the DllRes hot update, new commands, Season 7 table data, the user's decisions, four new opt-in Season 7 claims, which opt-ins could be enabled once Season 7 starts, and what to check on the first runs.

`goclient` follows Last War **1.0.371** (Mac/iOS app build 922; the newest Android build seen is still 1.0.370, build 1911) and the live content of 2026-12-03: Lua 845 (iOS) and 850 (Android, the same code), tables **40863**, locale 23735, GameRes 2179 (iOS) / 2363 (Android) and DllRes 1516 (iOS) / 1514 (Android). The 1.0.371 app itself ships Lua 839 (tag `20261123_922_App`, 19,009 chunks), tables 40589, locale 23700, DllRes 1515 and GameRes 2175. A December 2026 audit compared the client with the decompiled Lua 845, tables 40863, the 1.0.371 C# and the live C# hot update. **All of it is static analysis: none of these changes has been sent to a game server yet.** The only live observations are the anonymous check-version and CDN requests of 2026-12-03 and 2026-12-04. Late that day the live content moved again, to Lua 847 and tables 40931, and on 2026-12-04 to Lua 848 and tables **40962**; `goclient` now follows those (see [Lua 847 and tables 40931](#lua-847-and-tables-40931) and [Lua 848 and tables 40962](#lua-848-and-tables-40962)). For the previous update see [Client 1.0.370](https://lastwar.tech/client-1-0-370.md).

## Build and tables

* check-version answered `updateType` 3 (no forced update) for iOS 1.0.370/918, iOS 1.0.371/922 and Android 1.0.370/1911 in anonymous requests on 2026-12-03. The two iOS replies were byte-identical.
* From those replies `goclient` derives `resVersion` `2179.1516_845F_40863.23735` (iOS) or `2363.1514_850F_40863.23735` (Android), see [resVersion](https://lastwar.tech/bootstrap.md#resversion). The 1.0.371 app's own baseline, before any hot update, is `2175.1515_839F_40589.23700`. With the later content it derives `2181.1517_847F_40931.23737` (iOS) or `2365.1515_852F_40931.23737` (Android), and on 2026-12-04 `2181.1517_848F_40962.23741` (iOS) or `2365.1515_853F_40962.23741` (Android); it builds `resVersion` from each run's reply, so this needs no code change.
* The built-in iOS build is now the 1.0.371 app's, 1.0.371/922 (see [The user's decisions](#the-users-decisions)). Android stays 1.0.370/1911, the newest Android build seen. Fresh binds, `-own-device-session` and runs without a session config claim these builds. A session config that names its build keeps claiming it: one captured from 1.0.370/918 still claims 918, and a capture from the 1.0.371 app with `cmd/pcap -session-out` records 1.0.371/922.
* Every generated table now comes from tables 40962, and `tableVersion` in `internal/game/tables.go` names it. Against 40413, which 1.0.370 used, the rows below are what 40863 changed; 40931 and 40962 change none of them:
  * activities: 1,455 rows. New are the Season 7 sign-in calendars 1071033 and 1071034, the Season 7 Alliance Drill 94323 and the Zombie Rush rows 94320 and 94321; 1201020 is gone. 14 task events (1000288, 1000290, 1000292, 1000294, 1000312, 1000509, 1010235, 1010236, 1010239, 1010240, 1020215, 1030215, 1041013 and 1051013) moved from stage 4 to stage 200.
  * `lw_season`: 1,721 configs, with new Season 7 rows.
  * `lw_season_trends`: 269 rows, with new Season 7 targets.
  * dig: 508 maps and 120 blocks, with the Season 7 relic blocks 700001-700020.
  * duel scores: 1,486 score rows, 401 `lw_hero` rows (three new heroes) and 30 `officer_recruit` pools.
  * production, radar events, alliance science, visitor types and mail groups: only the header stamp changed.
* The 1.0.371 app bundles tables 40589, which lacks the new sign-in calendars, the Season 7 drill row, the relic blocks and some of the new Season 7 configs, so `goclient` follows the live tables instead (40863, then 40931 and 40962).
* The hand-copied lists follow the tables too. `stage-quests` maps the 14 task events to stage 200, and `red-packets` knows red packets 349-352 (Season 7 trade packets, up to 20 claimers) and 503-507 (up to 50). A drift test now compares the red-packet list with the table dump.

## C# and the hot update

* The 1.0.371 app's C# is 1.0.370's plus one hunk. 119 of its 120 assemblies are byte-identical to 1.0.370's, and `Assembly-CSharp` differs only where AIHelp's user id now prefers the account's server `uid` over the device's (`Assembly-CSharp.decompiled.cs:7921-7926`, 1.0.371).
* The live `DllRes` hot update replaces `Assembly-CSharp` again: iOS 1516 over the app's 1515, and Android 1514 over the 1.0.370 APK's 1511. Relative to the 1.0.370 C#, Android 1514 carries the same hunks as iOS 1516: over the APK's 1511 it adds the AIHelp hunk above plus the four changes that 1516 makes over 1515:
  * The parallel-init gray bucket grows from 60% to 80% of devices. It gates only local start-up steps.
  * `client_config` switch 30, named `IMG_DOWNLOAD` before, is now `ENABLE_DALOG_UPLOAD`.
  * A new uploader copies every ThinkingData event to `https://dalog.lastwar.com/sync` while switch 30 is on. It was on in the 2026-12-03 replies.
  * Chat and moment photos upload through `api/upload/img/chat/v2` and are addressed by photo id.
* Lua 845 calls C# methods that only DllRes 1516 (iOS) and 1514 (Android) have, for example `UploadImageManager.GenAssetKeyById` (`UI/UIChatNew/Component/ChatItem/ChatItemSendPhoto.lua:83-84`). The live Lua and the live C# hot update go together.
* Nothing `goclient` mirrors changed. The check-version parser (`CheckResVersionState`), the URL config, the GSL (Gate Server List) request, `GetResVersion`, both `Login` builders and the `BaseUtils` framing are the same in 1.0.370, 1.0.371 and DllRes 1516. `goclient` sends neither the ThinkingData nor the dalog stream.
* check-version's `warmup` field named the next hot update: DllRes 1517 (iOS) and 1515 (Android). On iOS, 1517 adds one more xLua wrapper to `Assembly-CSharp`, which no Lua 845 module calls, and changes the `heightfog` bundle.

## Lua 847 and tables 40931

Asked again between 21:38 and 21:45 PST on 2026-12-03, check-version named newer content for iOS 1.0.370/918, iOS 1.0.371/922 and Android 1.0.370/1911, all still `updateType` 3: `lwfile2` 847 (iOS) and 852 (Android), tables 40931, locale 23737, GameRes 2181 (iOS) and 2365 (Android), and DllRes 1517 (iOS, the hot update the earlier `warmup` named) and 1515 (Android). I compared the iOS Lua 847 and tables 40931 with 845 and 40863; I didn't decompile Android 852.

* **Lua 847** (19,032 chunks) adds one module and changes 11. The desert battlefield gains a cooldown on helping to heal an ally's soldiers, with a new push, `push.battle.help.heal.cd` (`Net/Msgs/Activity/Dragon/PushBattleHelpHealCdMessage.lua`, `DataCenter/ActDragonManager/ActDragonManager.lua`). In a MummyV2 season the sand-worm fishing event asks `season.rank.reward.info` for rank ids 770 and 771 instead of 370 and 371 (`DataCenter/SandWorm/SandWormFishingDataManager.lua`, `Net/Msgs/Season/GetSeasonRankRewardInfoMessage.lua`). The rest is UI. `goclient` sends neither command, so no request it sends changed.
* **Tables 40931** change 10 tables over 40863: `activity` (one row's `season_activity_banner_new`), `battle_plan`, `battle_plan_pool`, `battlefield_rules`, `battlefield_season_config` (three new help-heal columns), `goods` (23 rows' `drop_info_para` and `linked_item`), `lw_title` (4 new rows), `lw_zone_war` (16 rows' `server_ids`), `mail` (4 rows' `message` and `title_reward`, which now point at the new titles) and `season_city_s7` (30 rows' `city_big_icon`). None of the changed values is one `goclient` reads: activity 1200227 changed only its banner column, and goods 668001-668023 aren't letter items. Regenerating every table from 40931 changed only the version headers, and the hand-copied lists still match the dump.
* The other Lua citations on this page are Lua 845, and none of the modules they cite changed in 847.

## Lua 848 and tables 40962

Asked at 12:13 PST on 2026-12-04, check-version named newer content for iOS 1.0.371/922 and Android 1.0.370/1911, both still `updateType` 3: `lwfile2` 848 (iOS) and 853 (Android), tables 40962 and locale 23741. GameRes and DllRes didn't change: 2181 and 1517 on iOS, 2365 and 1515 on Android. I compared the iOS Lua 848 and tables 40962 with 847 and 40931; I didn't decompile Android 853.

* **Lua 848** (19,033 chunks) adds one module and changes 6, all for Winter Storm battle plans. A new push, `push.winter.battle.plan.state` (`Net/Msgs/WinterBattlePlanWorldMap/PushWinterBattlePlanStateMessage.lua`), updates an active plan's expiry, formation and battles remaining (`DataCenter/ActWinterStormManager/ActWinterStormManager.lua`), and a plan whose skill has a positive `cd_max_times` drops out of the active list once it has no battles left. The march view inside Winter Storm now lists that battlefield's plans, and the formation tips refresh on the push. `goclient` uses no battle plan and doesn't handle the push, so no request it sends changed.
* **Tables 40962** change 2 tables over 40931: `item` (row `season_new_s7_station`, whose `k6` and `k8` id lists move from 80605-80608 and 15080-15083 to 80725-80728 and 15176-15179) and `red_packet` (packets 349-352, whose `show_id_list` moves from 351 to 201). `goclient` reads other `item` rows but not that one, and `red-packets` reads only a packet's `num` and `send_receive_condition`. Regenerating every table from 40962 changed only the version headers, and the hand-copied lists still match the dump.
* Of the Lua 845 modules this page cites, only `ActWinterStormManager.lua` changed in 848. Its cited lines 40-159 and 207-230 are 40-182 and 255-278 in Lua 848.

## Lua 845 changes that touch `goclient`

* **No sent request changed.** No request `goclient` sends changed its parameters, its message module or its reply handler between Lua 835 and 845. The changes reach it through table data and one client constant.
* **Visitor queues.** 1.0.371 moved BattlePlanCaptive (queue type 9) from queue 1 to queue 2 (`Scene/CityVisitor/Const.lua:42`, Lua 839 and 845). `goclient`'s `visitor-fresh` now follows it (see [The user's decisions](#the-users-decisions)).
* **Season 7 sign-in.** A new `SignInType.S7SeasonTower` (3) is handled by the tactical-weapon sign-in's view class (`UITacticalWeaponSignIn`) with its own prefab (`Global/EnumType.lua:14527-14544`). Its Claim All sends the same `sign.receive.day.reward {activityId, day}` that `sign-in` already sends (`UITacticalWeaponSignIn.lua:219-247`, `LWActSignInManager.lua:37-52`), so the regenerated activity table is all `sign-in` needs.
* **Stage-200 task events and red packets.** See [Build and tables](#build-and-tables).
* **Ban reason 703.** Since Lua 839 (the 1.0.371 app; live 845) the ban dialog labels code `703` "Using prohibited tools" (`operate_notice_10007`, `UI/UIAccount/UIAccountBan/View/UIAccountBanView.lua:114-120`; the text is from the app's English locale 23700). This is the client's label only; it says nothing about what triggered a ban. See [Reading a ban](https://lastwar.tech/auth.md#reading-a-ban).

## New commands

Lua 845 adds ten commands and changes the parameters of one (static-analysis-only):

| Command | Params | Reply and use | `goclient` |
| - | - | - | - |
| `shooting.task.info` | `activityId: Int` | `{activityId, taskArr[{taskId, num, state, reward}], extra}`. The client sends it for every type-163 (TaskATTblActivity) entry in the activity list (`ActivityListDataManager.lua:377-379`). `push.activity.tasks` with `type` 163 updates `num` and `state` | Doesn't claim it: tables 40863 have no type-163 activity |
| `shooting.task.reward` | `activityId: Int, taskId: UtfString` | Claims a task whose `state` is 1 (`TaskATTblActivityItem.lua:139-170`). The reply carries `reward`, and the client reads the info again. No cost or march is involved | Doesn't claim it, as above |
| `rq.new.photo.version` | `funcType: Int`, now also `chatType: UtfString` (`""`, `privatechat`, `moment` or `custom`) | `photoVersion` and `funcType`; for chat, moment and alliance-notice photos also `photoId` and `chatType` (`Net/Msgs/PhotoAlbum/FetchNewPicVerMessage.lua:5-54`; sent from `ChatSendPhotoManager.lua:117, 135, 254, 459`) | Never sent: `goclient` doesn't post to chat |
| `push.common.log.append.record`, `push.common.log.remove.record` | push | One handler for both (`PushCommonLogChangedMessage.lua`, `BattlePlanManager.lua:75-107`). The payload is `data` (an array of logs), else `record`, else the message itself. A log `{type, uuid}` with type 14 (use history) or 15 (received history) marks that Battle Plan history unread; an entry without a type that is an array of ids removes those records | Ignored: replies are paired with requests by `_id`, so a push is never taken for a reply |
| `winter.storm.battle.plan.info`, `.select`, `.state`, `.use` | none; `plans: IntArray`; none; `planId: Int, formationUuid: Long` | Winter Storm gained battle plans: a loadout picked before the battle, and plans used on a formation inside it (`ActWinterStormManager.lua:40-159, 207-230`; `UI/LWSeason7/UIBattlePlan/WinterSelect/View/UIWinterSelectBattlePlanView.lua:19, 241-274`) | Not automated: picking and using battle plans is out of scope. The Winter Storm reward requests `goclient` sends are unchanged |
| `battle.plan.received.record.list` | none | The Season 7 Battle Plan's received history, `data[{uuid, timestamp, subType, content}]` | Not sent |
| `push.sandworm.daily.first.kill` | push | The day's first sandworm kill for the hunt panel (`DataCenter/SandWorm/SandWormHuntDataManager.lua:64-70`). Its reward arrives by mail after a kill | Ignored |

## Season 7 on tables 40863

* **New configs.** `lw_season` gains Season 7 configs (type 4, type1 1, MummyV2) for more server groups, with achievements group 9000 and trends group 70, plus two Season 1 rows. With them `season-dailies` logs the Season 7 config instead of a Warn, and `season-achievements` finds its row.
* **Dig relics.** The Season 7 dig maps 17001-17062 now place their relics on blocks 700001-700020, which have the sizes of blocks 10001-10020. Maps 17001-17042 are group 7000 (single, type 1), 17043-17052 group 7001 (alliance, type 2) and 17053-17062 group 7002 (single, type 3). Without the new blocks `season-dig` can't place a relic in an alliance vault and claims none. The Season 7 hammer is item 666903 (activity 1201010's `para_1`); earlier seasons keep 650054.
* **Trend targets.** Trends 600, 601, 602, 606 and 613 now need 1,000,000 (they needed 2,000,000 or 3,000,000), and 607, 612, 618 and 623 need 500,000 (they needed 100,000). The client compares the table's target with the current count (`LWSeasonTrendsManager.lua:491-513`), and so does `season-trends`.
* **Sign-in and Alliance Drill.** Two Season 7 sign-in calendars, 1071033 and 1071034, cover different server ranges. Each runs 7 days from HQ 20, opening on season day 8 or day 4 depending on the range. The Season 7 Alliance Drill also has two rows for complementary server ranges: 40863 narrows 94318, which opens on season day 1, to one range and adds 94323, which opens on season day 3, for the rest. The drill uses the sandworm boss table (`AllyDrillDataManager.lua:397-402`), and the client flags a drill dig vault only for the RoadHog boss (`:836-838`), so `alliance-boss-dig` likely lists the drill and finds no vault. These day numbers are the table's plan (`timeType` 200, `para1` the season day); the server's `init` push carries the real window.
* **How the client picks its season row.** The client reads `seasonConfigId` and `nextSeasonConfigId`, the season's start, settle and end times, and the next season's preview and start times from the season info (static-analysis-only; no captured `init` has shown the two config ids yet). `SeasonInfoTemplate.lua:5-71` turns them into a mode: 1 during the season, with the current config (also 1 before the start, but with no config row loaded); 2 after its end (the halt); 3 from the next season's preview time, with the next config; 0 otherwise.
* **Encoded server lists.** The `lw_season` server lists (`server`, `camp_group`, `camp_sever`) ship in `*_local` columns as `lw:` followed by hex, XOR'd with a fixed key (`DataCenter/SeasonManager/ConfigFieldCodec.lua:1-27`). `SeasonTemplateData.lua:3-7` decodes them when it parses a row, so a plain read of the table doesn't show which servers a row covers. Lua 835 already worked this way.
* **Events by season condition.** Season 7 events also open through the activity table's `season_condition` (such as `7-7` or `7-7;1`), not only through the season row's `activity`, `pre_activity` and `truce_activity` lists. Every such row in 40863 is in the regenerated table. Some feed existing features, such as `sign-in` (158) and `battle-pass` (142); others, such as Zombie Rush (303), have no feature.
* **Season 7 opt-ins.** These are all off by default and static-analysis-only: `season-week-card`, `season-achievements`, `military-rank-up`, `season-trends`, `season-mummies`, `sand-worm-tasks`, `counter-attack-rounds`, `stage-quests` and `captive-visitors`, plus the four claims this update added (see [New opt-in features](#new-opt-in-features)). `season-achievements`, `season-trends` and `stage-quests` need the 40863 tables. Check each one's first reply on a config copy before you enable it. [Before and after Season 7 starts](#before-and-after-season-7-starts) lists from about which season day each one has something to claim.

## The user's decisions

The user ruled on the audit's open questions on 2026-12-03, and a follow-up built them. All of it is static analysis, like the rest of this page. The user's rule for this round: nothing new is turned on before Season 7 starts. No feature's default changed, and no opt-in was added to the production config.

* **Battle Plan captives no longer fill visitor queue 1.** As in 1.0.371, `visitor-fresh` counts only queue types 0, 1, 5, 6, 12, 18 and 20 against `maxNum`, and leaves the Battle Plan captives (queue type 9, now queue 2) out (`Scene/CityVisitor/Const.lua:42`, Lua 845). With captives waiting it can now send a `visitor.fresh` it used to skip; the client sends one there too. This undoes the 1.0.370 change that counted them in queue 1, because the client undid it. The opt-in `captive-visitors` still accepts captives, but accepting one no longer frees a queue 1 slot.
* **The core collect takes the Season 6 and 7 farms only as the current week card's.** The client's production lines are `ProductLineBuilds` plus the current season week card's `season_weekcard` row (`GetAllBuildIds`, `ProductLineManager.lua:55-80`, Lua 845). The core collect now follows that rule for the two families only a week card adds: Season 6 (842000-845000 and the card farm 846000) and Season 7 (853000-856000 and the card farm 857000). The Season 1-5 families, card farms included, are in `ProductLineBuilds`, so they are collected in any season, as before.
  * **The current card** is the `week_card` of the season config that init `playerServerSeasonInfo` makes active: `seasonConfigId` during the season and its halt, `nextSeasonConfigId` from the next season's preview time (`SeasonInfoTemplate.lua:5-71`, Lua 845). The client builds its collect set once, at init, and keeps it for the session (`ProductLineManager.lua:55-80`, Lua 845). It builds the set while handling the `init` push, before it loads the activity list (`InitMessage.lua:22`, `:52` and `:70`), so `GetCurWeekCardId` finds no week-card activity (type 228) yet and takes the config's card (`SeasonPeriodicCardManager.lua:115-123`). An open week-card activity that names another card doesn't change the set. Under Season 7's card (10014) the Season 6 family is skipped, the card farm 846000 included; under Season 6's (10007) the Season 7 family is.
  * **The fallback.** When the card can't be read, the run logs one Warn and collects every Season 6 and 7 farm, as before, because skipping them all would also skip the current season's farms. That happens when init has no `playerServerSeasonInfo` or it makes no config active, when `lw_season` lacks the active config or the config has no `week_card`, and when `season_weekcard` lacks the card. No captured `init` has shown `seasonConfigId`, `nextSeasonConfigId` or the preview times yet.
  * The run reads the card once, from the `init` push, and only when its building list holds a Season 6 or 7 farm. It doesn't apply a later `push.season.info.update`; the client also builds its production-line set once per launch.
  * The settle gate is unchanged: once the running season's settle time has passed, no week-card farm is collected, whichever season's card it belongs to (`ProductLineManager.lua:585-592`).
* **The built-in iOS build is 1.0.371/922.** Fresh binds, `-own-device-session` and runs without a session config claim the build the 1.0.371 app sends. Android stays 1.0.370/1911. A session config that names its build is unaffected, so one captured from 1.0.370/918 keeps claiming 918, since its token was issued under that build. A config without the two fields keeps claiming 1.0.344/786 (iOS) or 1.0.364/1892 (Android). A `-cs-ios` reconnect from bare flags with no session config now claims 922, so a token issued under 918 no longer matches the build it claims that way: use a session config that names the build.
* **The ban label in the README.** The README's risk line quotes the client's label for reason `703` and nothing more. See [Reading a ban](https://lastwar.tech/auth.md#reading-a-ban).
* **Four Season 7 claims.** Each is a new opt-in feature, off by default; see [New opt-in features](#new-opt-in-features).

## New opt-in features

Four features, each off by default with a summary ending "(static-only, not validated live)". They only claim: none of them marches, fights, uses a battle plan, spends anything or sends a chat message. Each logs its first reply at Info and registers no benign error code. An error code stops the feature's remaining claims for that run. To try one, turn it on in the session config's `features` map, for example `{"features": {"season-photo-tasks": true}}`; `-list-features` prints every feature. The Lua citations below are Lua 845.

* **`season-photo-tasks`** claims the season photo activity's completed tasks (type 253; Season 7's row is 1201029).
  * Sends `view.season.photo.taskList {activityId: Int}`, then `season.photo.task.get.reward {activityId: Int, taskId: Int}` for each task in state 1 (CanReceive), one by one (`SeasonPhotoManager.lua:27-33`, `SeasonPhotoTaskCell.lua:132-137`). It never sends the claim-all form, `taskId` -1.
  * Gates: the activity is open (its window, and `startTime <= now < endTime`) and the account is in season. The client also opens it in a truce; `goclient` has no truce reader and sends nothing then.
  * In tables 40863 the Season 7 row reads `season_alliance_photo` 30002, whose tasks are 30001 and 30002.
* **`season-green-rewards`** claims the Season Green progress rewards the green city count has reached (type 246; Season 7's row is 1201013).
  * Sends `season.green.city.activity.progress.info` with no params. The reply carries `greenCityNumber`, `rewardRecord` (the claimed indexes) and `rewardInfo[{index, num, reward}]`; the claimed state isn't on the wire, and the client works it out from `rewardRecord` (`SeasonGreenManager.lua:377-421`). For each reward not in `rewardRecord` whose `num` the count has reached, it sends `season.green.city.activity.progress.get.reward {index: Int}` (`GreenRewardItem.lua:83-87`).
  * Gates: the activity is open, the account is in season and the season config is a Mummy season (type 4: Season 3 and Season 7's MummyV2), as in the client (`SeasonGreenManager.lua:67-69`).
  * A `rewardRecord` that isn't a list of numbers claims nothing, with a Warn. It never sends the greening march.
* **`season-last-war-tasks`** claims the Season Last War ("eve of the decisive battle") task rewards (type 250; Season 7's row is 1201026, HQ 12).
  * Sends `lw.season.activity.eve.decisive.battle.info {needReward: Bool true}`, then `lw.season.activity.eve.decisive.battle.task {activityId: Int, taskId: UtfString}` with the task id the season's panel names, as the client does. The Mummy-season panel (Seasons 3 and 7) has one task box, for the first `activity_task` row of the activity's task type (100808001 for Season 7's row). It reads only the reply's first task and claims when that task is in state 1 (CanReceive), so it sends at most one claim (`Season3LastWarItem.lua:57-63, 145-158, 171-204`). The Darkness panel (Season 4) claims its `para_1` and `para_4` tasks, each when the reply task with that id is in state 1 (`Season4LastWarItem.lua:36-49, 153-191`).
  * `goclient` carries these task ids as hand-copied tables from tables 40863, checked against the dump by a test, and skips an open activity they lack with a Warn.
  * Gates: the activity is open, the account is in season and the season config's subdivision type is one whose hub shows a Last War panel: Mummy (4), MummyV2 (40001) or Darkness (5) (`SeasonActivityManager.lua:172-175, 182-185, 388-390`).
  * The tasks fill from the player's own fights. This feature never fights; it only claims.
* **`season-tower-rewards`** claims the season tower's reached group score rewards and stage floor rewards.
  * Sends `season.tower.info` with no params, as the client does on every `init` (`InitMessage.lua:587-589`). No claimed state is on the wire: the reply's `scoreRewardList` and each stage's `stageRewardList` list what is claimed, and the client works out the rest from `season_tower_group.score_reward` and `season_tower_stage.stage_reward`. `goclient` carries both as hand-copied tables (groups 6011-6014, 6021-6024 and 7011-7014), checked against the dump by a test. For each tab with a reached, unclaimed reward it sends one `season.tower.reward {stageId: Int}`, -1 for the group tab, as the client's claim-all button does (`LWUISeasonTowerRewardView.lua:123-130`).
  * Gates: none before the info request, as in the client. It claims only when the reply is a running tower (`startTime`, `endTime`, `group` and `score` present, before `endTime`) with a non-empty `stageList`, and only where the client's entrance leads to the reward window: not in a summary group (6014, 6024 and 7014, where it opens the finish-reward view), and only once a stage's `openTime` has passed (before that it opens the preview) (`LWSeasonTowerManager.lua:244-273, 748-760`). A group or stage the tables lack claims nothing, and a claimed list that isn't a `;`-joined list of numbers skips its tab with a Warn.
  * It never sends `season.tower.battle` or the safe box, `season.tower.box.award`, whose precondition is untraced.

## Before and after Season 7 starts

This section is information only. The user's rule is that nothing is enabled before Season 7 starts on your server: every feature below is off by default, and this update enabled none.

**Before the start.** Leave these opt-ins off. Eight of them check for a running season: `season-week-card`, `season-achievements`, `military-rank-up`, `season-trends`, `season-mummies`, `season-green-rewards`, `season-last-war-tasks` and `season-photo-tasks`. Whether the preview's `init` passes that check has never been observed. The other five have no season check. `sand-worm-tasks` and `counter-attack-rounds` act on any open activity of their type, `stage-quests` also claims Strongest Commander, task-event and King quests in any season, and `captive-visitors` acts on any captive visitor. `season-tower-rewards`, like the client, sends `season.tower.info` on every run, in season or not. One production feature already acts differently in the preview, with no opt-in: from the preview time, the core collect's week-card rule takes the next season's config's card (Season 7's 10014, which skips the Season 6 farms). When `init` lacks those fields, it keeps collecting as before, with a Warn.

**Once Season 7 is in season,** these could be enabled one at a time, reading each one's first logged reply before you add the next. The days come from the activity table 40863, where a `timeType` 200 row opens on season day `para1`. They are the table's plan: the server's `init` push carries the real window.

| Feature | What it keys on | Something to claim from about |
| - | - | - |
| `season-week-card` | The week-card activity 1201008 (type 228, card 10014, HQ 4) | Season day 1 |
| `season-achievements` | The config's achievements group 9000, HQ 3 | Season day 1 |
| `military-rank-up` | The military activity 1200224 (type 389) and the merit score | While 1200224 is open; it isn't a season-day row (`timeType` 205) |
| `sand-worm-tasks` | Sand Worm Hunt 1201009 (type 240) | Season day 1 |
| `season-trends` | Trends group 70. Each trend unlocks on its own day, up to day 50, and pays once its server or alliance count reaches the target | Season day 1 |
| `season-green-rewards` | Season Green 1201013 (type 246), in a Mummy-type season | Season day 3 |
| `counter-attack-rounds` | Counter Attack 1201011 (type 226), in an alliance | Season day 8 |
| `stage-quests` | The Lockhart quest 2400008 (activity 1201025, type 106). It also claims Strongest Commander, task-event and King quests outside the season | Season day 22 |
| `season-last-war-tasks` | Season Last War 1201026 (type 250, HQ 12) | Season day 43 |
| `season-photo-tasks` | The photo activity 1201029 (type 253) | Season day 50 |
| `season-mummies` | The Season 7 mummy yard 858000 and waiting fallen troops. It changes the army's composition | Once the yard is built; no table day |
| `captive-visitors` | Battle Plan captive visitors (type 40) | When captives arrive; no table day |
| `season-tower-rewards` | `season.tower.info`; the Season 7 tower groups are 7011-7014 | The server's tower schedule; no table day |

`season-achievements`, `season-trends` and `stage-quests` need the 40863 tables (see [Season 7 on tables 40863](#season-7-on-tables-40863)). `season-green-rewards` and `season-last-war-tasks` read the season config from `lw_season` too, and skip with a Warn when the tables lack the config's row.

## Alliance trains

From 2026-12-07 02:00 UTC the client allows one alliance train purchase a day instead of two. DataConfig `alliance_train_newswitch` holds the switch time (k2) and the new limit (k3) (`DataCenter/LWRailway/Station/LWAllyStationDataManager.lua:43-56, 516-574`). `goclient` never buys trains. See [World map](https://lastwar.tech/world-map.md#railway-trucks-and-alliance-trains).

## Windows PC client

The Windows PC client is a separate build: 1.0.372, build 1122. A Rust launcher downloads the game from a signed manifest on the CDN, `https://lastwar-cdn.akamaized.net/hotupdate/pc/micro/manifest/{channel}/manifests/{version}.json`, and fetches each file as `{url}/files/{name}.{hash}.bin`. `https://lastwar-serverlist-cf.lastwarapp.net/gameservice/getversion.php?pc_channel=all&server=0&gm=0` answered `all,1124` on 2026-12-03. `GameAssembly.dll` is the same FM\_Mono bridge over Mono as on mobile. The non-game assemblies such as `mscorlib` still use the mobile `.mdl` XOR, but the game assemblies ship as `.rdl`. The Lua bundle is `LWLF` file version 3, and every chunk in it is wrapped in `LENC`. The PC `xlua.dll` reports almost every load failure as the opaque `E8472`. The mobile builds (Android 1.0.370 and iOS/Mac 1.0.371) have none of this (static-analysis-only).

## What to check on the first runs

These apply to the first runs once Season 7 starts on your server:

* A run at the season opening may exit 1 on `E015`. The session is kept, and the next run retries.
* `season-dailies` logs the Season 7 config, type 4 / type1 1, instead of the missing-config Warn.
* `sign-in` lists the Season 7 calendar from about season day 4 or 8 (HQ 20).
* `alliance-boss-dig` lists a Season 7 drill from about season day 1 or day 3, depending on the server range (rows 94318 and 94323), probably without a vault.
* `season-dig` logs relic claims in alliance vaults from about day 8.
* `season-output`'s stronghold info and output, and the `alliance-tasks` season list (`isSeason: true`), send their first in-season requests. An error code in either exits the run 1, except the already-claimed `120289` (and `season_s2_tips_004` on a stronghold output).
* The core collect lists the Season 7 farms 853000-857000 once they exist.

These apply from the first run of this build, before and after the start:

* The core collect logs `season week card for the collect` with the card (10014 in Season 7) and the season config it came from, then `skipping season farm: not a farm of the current season week card` for each Season 6 farm the account still has. A Warn `current season week card unknown; collecting every Season 6 and 7 farm as before` means `init` lacked what the rule needs, and the run collected as before. `skipping week-card farm: the season has settled` is the unchanged settle gate.
* With Battle Plan captives waiting, `visitor-fresh` may send a `visitor.fresh` that it used to skip, because captives no longer count against visitor queue 1.

## Citations

Go comments cite 1.0.370 line numbers (Lua 835 and the 1.0.370 `Assembly-CSharp.decompiled.cs`) unless they say otherwise. Lua 845 moves some of them:

* `SeasonUtil.lua`: +30 lines.
* `ActWinterStormManager.lua`: 733-796 is now 974-1037 (1022-1085 in Lua 848).
* `SandWormHuntDataManager.lua`: +8 after about line 63.
* `MasteryManager.lua`: +9 from line 203. The new lines come before Lua 835's line 203, which is line 212 in Lua 845.
* `SeasonInfoTemplate.lua`: +1 from line 544.
* The Season 7 stronghold list's batch send (`UILWSeasonCityOccupyListS7View.lua`): 452 is now 454.

In the 1.0.371 `Assembly-CSharp.decompiled.cs`, every line after 7921 is 5 higher than in 1.0.370. The DllRes 1516 C# shifts again after its own hunks.

## Not done

* **Not enabled:** no opt-in was added to the production config, by the user's rule. See [Before and after Season 7 starts](#before-and-after-season-7-starts).
* **Not built:** the season tower's safe box (`season.tower.box.award`; its precondition is untraced), shooting tasks (no table row yet) and the Bounty Hunter event shop's free items (untraced).
* **Out of scope:** Winter Storm and Season 7 battle plans, the sandworm first kill, the greening march, season tower battles, alliance train purchases, chat photos and the analytics uploads.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.