从 1.19.24 升级到 1.20 Migration from 1.19.24 to 1.20
1.19.24 → 1.20 · baked assets, fragments, Blueprint surface
先做什么 Do These Four Things First
1.20 不是一次参数微调:动画表、瞄准、生成时机、渲染状态这四块都换了承载结构。绝大多数改动在打开资产的那一刻自动完成,但有四件事必须你亲手做。
1.20 is not a parameter tweak: animation tables, aiming, spawn timing and render state all changed their carrier structure. Most of it is applied automatically when an asset loads, but four things are yours to do.
1. 重新生成并重烘 Regenerate and re-bake
1.20 的烘焙产物是新的资产类型,1.19 烘出来的那一份认不出来。用烘焙面板重新生成每个单位的动画资产,再重烘它的配置——这一步没有旁路,瞄准偏移、布娃娃、脚部同步、插槽附着、逐片段通知都靠它。The bake output is a new asset type in 1.20; the one 1.19 produced will not be recognised. Regenerate each unit's animation asset in the bake panel and re-bake its config — there is no way around this, and aim offsets, ragdoll, foot sync, socket attachment and per-clip notifies all depend on it.
2. 读一次加载日志 Read the load log once
打开旧资产时,日志里出现 AnimData 12003、AnimData 12102、Notify 12105 之类的警告,说明迁移已经跑过并告诉你它做了什么。看到就按本页对应章节处理。When you open an old asset, warnings such as AnimData 12003, AnimData 12102 or Notify 12105 tell you which migration ran and what it did. Handle them per the matching section of this page.
3. 检查蓝图写入 Check your Blueprint writes
生成数组已经搬进通知表,瞄准参数搬进了独立的瞄准块。蓝图里对这些字段的运行时写入不再生效——引脚还在的能编译但没效果,引脚没了的直接报错。Spawn arrays moved into the notify table and the aim values into their own block. Run-time writes from Blueprint no longer apply — pins that survived still compile but do nothing, and pins that are gone fail to compile.
4. 补三处不会带过来的值 Restore three values by hand
远距剔除、子体生成偏移、逐片段命中时刻——这三处的旧值不会迁移,也不会报错。具体做法见「渲染与宿主」一节。Far culling, child spawn offsets and per-clip hit timing: their old values are neither migrated nor reported. See the render / host section for what to do.
你的资产属于哪一种 Which Case Is Your Asset In
判断只需要回答一个问题:这个值是存在资产里的,还是运行时由蓝图/C++ 写进实体的?前者在加载时被迁移,后者不会。三种结果对应三种处理方式。
One question decides it: is the value stored in the asset, or written into the entity at run time by Blueprint or C++? The first is migrated on load; the second is not. Three outcomes, three responses.
| 情形Case | 你会看到What You See | 要做什么What To Do |
|---|---|---|
| 自动Automatic | 打开资产即生效,日志可能有一条提示Takes effect when the asset loads; the log may carry one warning | 什么都不用做;重新保存一次就把新值固化到磁盘Nothing; saving the asset once writes the new shape to disk |
| 需要重配Re-configure | 值读进了新位置,或者烘焙载荷被作废,日志提示重新烘焙The value landed in its new home, or the baked payload was invalidated with a re-bake warning | 按章节重新填写,或重新烘焙一次Re-enter it, or run the bake once |
| 静默丢失Silently lost | 什么都不报,旧值读不回来Nothing is reported and the old value cannot be read back | 按「不会带过来的值」逐条补Work through the lost-values table and restore each one |
为什么蓝图里的写入会失效 Why Blueprint Writes Stop Applying
加载期迁移只处理资产里那一份。蓝图在运行时直接写实体,不经过加载,也不知道这个值已经换了地方——于是同一个参数会同时存在两份可能的值,只有资产那份是对的。具体表现有三种。
Load-time migration only handles the copy stored in the asset. A Blueprint writing into the entity at run time never goes through loading and has no idea the value moved — so the same parameter can exist twice, and only the asset's copy is right. It shows up in three shapes.
| 形态Shape | 例子Example | 蓝图侧表现What You See in Blueprint |
|---|---|---|
| 搬走了Moved | 瞄准窗口与两个到位容差:从攻击片段搬进瞄准块Aim window and the two on-target tolerances: from the attack fragment into the aim block | 引脚还在、能编译,写进去但读的是新位置Pin still there, still compiles, writes where nobody reads |
| 退役了Retired | 五个行为的生成数组;旧的宿主解算字段The five behaviours' spawn arrays; the old host resolve fields | 同上:能写,不生效Same: writable, ineffective |
| 删除了Removed | 远距剔除距离、逐片段命中时刻、四个查询过滤器Cull distance, per-clip hit timing, the four query filters | 编译报错,必须改节点Compile error; the node must change |
改名类(结构体改名、属性改名、枚举条目改名)由插件自带的资产重定向兜底,蓝图与资产会一起被修好,这一层是可靠的。
Renames — of structs, properties and enum entries — are covered by the asset redirects the plugin ships, so Blueprints and assets are both repaired on load. That layer is reliable.
新东西在哪、怎么用 Where the New Things Live, and How to Use Them
升级不只是"数据搬到哪",还要知道以后去哪儿改。下表把 1.20 的每个新能力对到三件事:作者面在哪个面板或哪个字段、要不要重烘才生效、教程里哪一节手把手讲它。
An upgrade is not only where the data went — it is also where you change it from now on. The table maps every new 1.20 capability to three things: the panel or field that authors it, whether it needs a re-bake to take effect, and the tutorial section that walks through it.
| 新能力Capability | 在哪作者化Where You Author It | 要重烘?Re-bake? | 教程Tutorial |
|---|---|---|---|
| 动画槽表(64 行扁平)Animation slot table (flat 64 rows) | 归属在 Mesh Prep 改;播放速度在 Agent Config 的 Anim Data ▸ Entries 里改Ownership in Mesh Prep; playback speed in the Agent Config's Anim Data ▸ Entries |
归属要Yes, for ownership | 动画集合Animation sets |
| 移动采样曲线Locomotion sample curve | Mesh Prep 的曲线编辑器(加点、拖点、三类着色)The curve editor in Mesh Prep (add keys, drag keys, three-kind colouring) | 要Yes | 画移动曲线Draw the locomotion curve |
| 跳跃三段相位Three jump phases | Mesh Prep 的跳跃区;时序在相位引用上The jump block in Mesh Prep; timings sit on the phase refs | 要Yes | 配跳跃Set up jumping |
| 每 agent 动画套Per-agent animation sets | Mesh Prep 的动画集合;出生时按 UID 抽签Animation sets in Mesh Prep; drawn from the uid at birth | 要Yes | 动画集合Animation sets |
| 通知表(出生/攻击/受击/死亡/选择)Notify table (birth / attack / hit / death / select) | Agent Config 的 Notify Shared 表;逐片段的通知名字在 Persona 的片段上挂The Agent Config's Notify Shared table; per-clip notify names are attached in Persona |
要(片段通知要重烘才进表)Yes — clip notifies reach the baked table only via a re-bake | 通知与同步标记Notifies and sync markers |
| 瞄准块(偏航/俯仰两半)Aim block (yaw and pitch halves) | Agent Config 的 Aim:每半挑一根骨、限位、速度、加速度、到位容差The Agent Config's Aim: per half a bone, limits, speed, acceleration and the on-target tolerance |
要(骨下标由烘焙写)Yes — the bone indices are baked | 重烘会填什么What a re-bake fills in |
| 瞄准成为独立行为Aiming as its own behaviour | Agent Config 的 Behavior:On Aim Aligned 与 On Aim Timeout 决定下一步去哪The Agent Config's Behavior: On Aim Aligned and On Aim Timeout decide the next state |
不要No | 瞄准成为行为Aiming becomes a behaviour |
| 骨骼插槽Bone sockets | 骨架插槽工具增删;烘焙把落点写成实体附着的锚Add or remove them with the skeleton socket tools; the bake writes the anchors attachments resolve to | 要Yes | 骨架 socketSkeleton sockets |
| 布娃娃参数Ragdoll parameters | Agent Config 的三个参数;物理资产在 Mesh Prep 里识别或覆盖Three parameters on the Agent Config; the physics asset is detected or overridden in Mesh Prep | 要Yes | 填模型源Fill the mesh source |
| 渲染档的模式与 None 档剔除Render-band mode, and culling as a None band | 烘焙的渲染档设置(每档一个模式);没重烘的旧配置按原表示继续画The bake's render-band settings (one mode per band); a config never re-baked keeps drawing with its stored representation | 要Yes | 制作与烘焙Authoring & baking |
| 移动驻停与障碍支撑Movement dormancy and obstacle support | Agent Config 的 Move;两个新开关默认开The Agent Config's Move; both new switches default on |
不要No | 你的资产属于哪一种Which case is your asset in |
上面所有"要重烘"的项,都可以在一次烘焙里一起完成——它们是同一份烘焙产物的不同表。只想批量处理已有资产、不改动画时,用命令层Command layer的维护工具组。
Everything marked "re-bake" above is filled by one bake — they are different tables of the same baked asset. When you only need to process existing assets without touching animation, use the maintenance tools in the command layer.
动画配置换了骨架 The Animation Config Was Rebuilt
1.19.24 的动画配置是八组桶:Idle / Move / Fall / Appear / Attack / Hit / Death / Other,每组装着若干条片段,运行时按用途去对应桶里抽。1.20 把它换成一张 64 行的扁平槽表加相位段:片段归哪一组由表里每行自带的相位说明,桶退成历史数据。
In 1.19.24 the animation config was eight buckets — Idle, Move, Fall, Appear, Attack, Hit, Death and Other — each holding a list of clips the runtime drew from by purpose. 1.20 replaces that with one flat 64-row slot table plus phase bands: a row's own phase says which group it belongs to, and the buckets survive only as legacy data.
好消息是旧资产不用先重烘就能继续播:打开时能自动搬的都搬了,没有新烘焙数据时运行时按旧路径解析同样的片段。坏消息是有几项只有重烘或重新配置才会生效——移动的 Run、跳跃的起跳与落地、以及所有依赖新烘焙数据的表。
The good news is that an old asset keeps playing without a re-bake: everything that can be carried over is carried over when the asset loads, and with no new baked data the runtime resolves the same clips through the legacy path. The bad news is that a few things only take effect after a re-bake or a re-author — Run in the locomotion curve, the takeoff and landing jump phases, and every table that needs the new bake.
| 部分Part | 1.19.241.19.24 | 1.201.20 | 你要做什么What you do |
|---|---|---|---|
| 动画槽表Animation slots | 八组桶,每桶最多 5 槽,合计 40 条Eight bucket groups, up to five slots each — forty clips in all | 一张 64 行的扁平表 Entries,每行自带相位与槽号One flat 64-row table, Entries, each row carrying its own phase and slot |
片段归属在 Mesh Prep 改;只想改播放速度就在表的 PlayLength 列改Change where a clip belongs in Mesh Prep; to change only playback speed, edit the row's PlayLength |
| 移动混合Locomotion blend | 一条两点速度对 BS_IdleMove,加一个倒退开关A single two-point speed pair, BS_IdleMove, plus a reverse toggle |
速度采样曲线:每个采样点自带动画,另加可选的左右转身片段A speed-key curve where each key owns its clip, plus an optional turn pair | 补速度采样点并各自选动画;要 Run 就加一个 Run 采样点Add speed keys and pick each one's clip; add a Run key for running |
| 跳跃Jump | 只有一个坠落动画延迟,没有跳跃块Only a falling-animation delay — no jump block existed | 一行 Jump Cycle,起跳 / 下落 / 落地三段各带片段与时序One Jump Cycle row: takeoff, falling and landing phases, each with its clip and timing |
打开起跳与落地、选片段;两段要实现必须有片段,得重烘Enable takeoff and landing and pick clips; their bands only hold clips after a re-bake |
| 行为生成Behavior spawning | 五个行为片段各带一组生成数组Five behavior fragments, each with its own spawn arrays | notify 表里的 Event 行,行上有事件族与阶段掩码Event rows in the notify table, each row carrying an event family and a stage mask | 以后在 Notify Shared 里按行加;升级时自动生成Add rows in Notify Shared from now on; the upgrade generates the initial rows for you |
| 命中时刻Hit timing | 逐片段的命中时刻表A per-clip hit-time table | 只剩一个标量 TimeOfHitA single scalar, TimeOfHit |
重新填;逐槽数值不会迁过来Re-enter it; the per-slot values do not carry over |
| 烘焙载荷Baked payload | 按桶排布,配置里没有逐片段表Bucket-major, with no per-clip tables on the config | 按相位排布,另加逐片段通知、同步标记、socket 轨迹与集合表Phase-major, plus per-clip notify timings, sync markers, socket tracks and set tables | 重烘Re-bake |
升级只跑一次。第一次在 1.20 里打开一份旧配置时完成全部搬运,并把配置标脏;之后每次打开都不会再跑。看到日志里的 AnimData 12003、Notify 12105 这类行,说明那份配置刚被搬过。
The upgrade runs once. The first time 1.20 opens an old config it performs the whole move and marks the config dirty; later loads skip it. Log lines such as AnimData 12003 or Notify 12105 mean that config was just migrated.
一张 64 行的动画槽表 One Flat 64-Row Slot Table
打开一份升级后的配置,Anim Shared 下面的 Anim Data 里只有一张 Entries 表:64 行,每个桶预留 8 行。1.19.24 的八组桶行(Idle Anim Data、Move Anim Data 一直到 Other Anim Data)在面板上已经看不见了——那些值仍在文件里、仍会被读,只是不再显示、也不再有作者入口。
On an upgraded config, Anim Data under Anim Shared holds exactly one Entries table: 64 rows, with eight rows reserved per bucket. The eight bucket rows of 1.19.24 (Idle Anim Data, Move Anim Data through Other Anim Data) no longer appear in the panel — their values are still in the file and still read, but they are neither shown nor authored.
每一行里,只有 PlayLength 是你改的;其余列是烘焙写进来的只读标签。也就是说归属与帧区间在 Mesh Prep 里决定,播放速度在这张表里决定。
Inside a row only PlayLength is yours to edit; the other columns are read-only labels the bake wrote. In other words belonging and frame range are decided in Mesh Prep, playback speed is decided in this table.
| 列Column | 可改Editable | 含义Meaning |
|---|---|---|
Bucket |
只读Read-only | 本行属于哪个桶(Idle / Move / Fall / Appear / Attack / Hit / Death / Other)。由烘焙按模型源的行写入;要改归属请在 Mesh Prep 改那一行的相位并重烘。Which bucket the row belongs to (Idle, Move, Fall, Appear, Attack, Hit, Death, Other). The bake writes it from the model-source row; to change it, edit that row's phase in Mesh Prep and re-bake. |
Phase |
只读Read-only | 本行所在相位,界面上显示成 Locomotion: Idle、Jump: Falling Loop、Montage: Attack 这样的名字。运行时正是按相位加槽号取片段。The phase this row lives in, shown as names like Locomotion: Idle, Jump: Falling Loop or Montage: Attack. The runtime resolves a clip by phase plus slot. |
Slot |
只读Read-only | 本行在它所属桶内的位置。这个号是烘焙分配的,不要把它当成手填的索引。The row's position inside its bucket. The bake assigns this number; do not treat it as a hand-entered index. |
AnimIndex |
只读Read-only | 指向模型源片段列表的下标;-1 表示这一行是空的。Index into the model source's clip list; -1 marks an empty row. |
PlayLength |
可改(秒)Editable (seconds) | 片段时长,也就是运行时采用的播放速度。改短 = 播得更快。Clip length in seconds — the playback speed the runtime uses. Shorter means faster. |
StartFrame / EndFrame |
只读Read-only | 实际播放的帧区间。走自定义区间的行来自 Mesh Prep 的帧范围设置,要改就回那里改并重烘。The frame range actually played. Rows on a custom range take it from the Mesh Prep frame settings; change it there and re-bake. |
升级不丢片段。旧的一桶最多 5 条,而新表每桶留了 8 行,所以八桶的内容能整份落进扁平表,一条不少。丢条目只会发生在「同一桶超过 8 条」的资产上,而那种资产在 1.19.24 里不存在。
No clip is lost by the upgrade. A legacy bucket held at most five clips and the flat table reserves eight rows per bucket, so all eight buckets land in the flat table with nothing dropped. Entries could only fall away for an asset with more than eight clips in one bucket — a shape that did not exist in 1.19.24.
蓝图这边也收紧了:AnimData 仍然可以在 Details 里编辑,但不再能从蓝图读写;八个桶成员、以及 Anim Shared 上原有的平铺字段(两个随机偏移、两点速度对、倒退开关、坠落延迟)都失去了蓝图节点,转向贡献字段已整体删除。替代面是新的 Locomotion 与 Jump 块,它们是新的蓝图可读写节点。
Blueprint access tightened as well: AnimData is still editable in Details but can no longer be read or written from Blueprint, and the eight bucket members plus the flat fields that used to sit directly on Anim Shared (the two random offsets, the two-point speed pair, the reverse flag, the falling delay) all lose their Blueprint nodes; the turn-contribution field is gone entirely. Their replacement is the new Locomotion and Jump blocks, which are new Blueprint read/write nodes.
移动混合:两点速度对变成速度曲线 Locomotion: Two Points Became a Speed Curve
1.19.24 只有一条两点速度对 BS_IdleMove(默认 (0, 150),界面名 BlendSpace_Idle-Move):Idle 片段对 Move 片段,按当前速度在两者之间插值权重。1.20 把它换成速度键曲线:Locomotion 的 Options 里每个选项各有一条键表,旧单块的数据仍在 BlendSpace1D 里被读。
1.19.24 had only a two-point speed pair, BS_IdleMove (default (0, 150), shown as BlendSpace_Idle-Move): the Idle clip against the Move clip, with the blend weight interpolated by current speed. 1.20 replaces it with a speed-key curve: every option under Locomotion → Options carries its own key list, and the old single block is still read from BlendSpace1D.
曲线上的每条采样点回答三件事:锚在哪个有符号速度(cm/s,负值表示向后)、这一点的播放速率倍数(1 = 片段原速,负值倒放)、以及它自己播哪条片段(每个速度键直接引用一个 AnimSequence)。相邻两点各播自己的片段、按速度交叉淡化,段宽就是切换时长;两点指向同一条片段时只插速率。
Each key on the curve answers three things: the signed speed it is anchored at (cm/s, negative meaning backwards), the play-rate multiplier at that point (1 = the clip's natural rate, negative plays it backwards), and which clip it plays (every speed key references its own AnimSequence). Two adjacent keys cross-fade their own clips across the span, so the span width is the switch duration; two keys naming the same clip only interpolate the rate.
| 字段Field | 默认值 / 上限Default / limit | 含义Meaning |
|---|---|---|
LocoSamples |
升级后两条;上限 64 条(前 16 条内联)Two after the upgrade; up to sixty-four (the first sixteen inline) | 速度键曲线,按速度升序。每个采样点直接持有自己的动画;一个 Idle 键、一个 Walk 键就是升级后的形状。要 Run、要倒退、要更多中间档,自己补键。The speed-key curve, ascending by speed. Every key owns its clip; one Idle key and one Walk key is the post-upgrade shape. Add keys for Run, for reverse travel, or for more intermediate steps. |
每个速度键的 ClipEach speed key's Clip |
空 = 该键没有动画Empty = this key plays nothing | 该采样点播哪条动画。换动画就换这一格,不影响其他键;旧键在烘焙时按遗留类别解析。Which animation this key plays. Change this cell to change the clip without touching other keys; legacy keys resolve by their retired kind at bake time. |
Turn Left / Turn Right |
可选;留空 = 该侧不原地转身Optional; empty = no in-place turn that side | 原地转身片段,挂在运动 item 上。turn 键的角速度只决定权重与速率,片段由这两行统一指定。The in-place turn clips, carried by the motion item. A turn key's rate only drives weight and speed; these two rows name the clips. |
Idle Random Time Offset / Move Random Time Offset |
(0, 0)(0, 0) | 片段起始时间的随机偏移范围(秒);避免同兵种整齐划一地摆同一个姿势。Random start-time offset range in seconds — keeps a squad from bob in lockstep. |
升级后的实际形状:曲线只拿到两条采样点(Idle 锚在原 BS_IdleMove 的 X、Walk 锚在 Y)。如果旧配置里 Idle 与 Move 用的是同一条片段,Idle 采样点的播放速率会写成 0,复现旧版「站住时腿不摆」的手感;两条片段不同则写 1。加载日志会写出转换出的速度值与 Idle 速率(converted the released locomotion pair into samples)。加载后这条曲线出现在 Locomotion 的 Options 第一项;BlendSpace1D 里的单块是历史副本,仍作旧寻址的回退来源。
What the upgrade actually produces: two keys only, Idle anchored at the old BS_IdleMove X and Walk at Y. When the legacy config used one clip for both Idle and Move, the Idle key's play rate is written as 0, reproducing the old "legs stop while standing" feel; different clips give 1. The load log records the converted speeds and the idle rate (converted the released locomotion pair into samples). The curve appears as the first entry under Locomotion → Options; the single block in BlendSpace1D is its historical copy and stays the fallback for the old addressing.
Run 要自己补采样点。转换只生成两个速度采样点:Idle 锚在原 BS_IdleMove 的 X、Walk 锚在 Y。没有 Run 点,没有「RunClip 相位」要改——要奔跑就在曲线上加一个速度采样点(锚在奔跑速度)并给它自己的 Run 片段。Walk 键到 Run 键的那一段宽度,就是行走切奔跑的过渡时长。
Run is yours to add. The conversion produces exactly two speed keys: Idle at the old BS_IdleMove X and Walk at Y. There is no Run key and no RunClip phase to move — for running, add a speed key anchored at the run speed and give it its own Run clip. The span from the Walk key to the Run key is your walk-to-run transition time.
bMoveCanReverse 已退役。它不再被读取,也不再出现在面板上;旧配置如果开着它,每次加载都会打一条告警。倒退播放现在是作者化数据:在曲线里加一个负速度的键,把它的 PlayRate 设成负值。负数速度键缺席时,倒退运动会被读成曲线的最低端,看起来像「倒着走却播正着走的动画」。
bMoveCanReverse is retired. Nothing reads it any more and it no longer appears in the panel; a legacy config that had it on logs a warning on every load. Reverse travel is authored data now: add a key at a negative speed and give it a negative PlayRate. With no negative-speed key the backwards motion reads as the bottom of the curve, which looks like "walking backwards with a forward clip".
清空采样表不等于关掉混合。LocoSamples 为空时,求值器回落到退役的两点对,用的是资产里存着的旧值(默认 0 / 150)。想让两点行为可用,就留空表并确认那两个旧速度是对的;想彻底走曲线,就至少留两条采样点。
An empty sample list does not disable blending. With LocoSamples empty the evaluator falls back to the retired two-point pair, using whatever old values sit on the asset (default 0 / 150). To keep the two-point behaviour, leave the list empty and make sure those two legacy speeds are right; to go fully curve-driven, keep at least two keys.
曲线也可以在模型源上作者化:ATT 的 Locomotion 块保存同一套速度键(每个采样点自带动画)与可选的转身片段,烘焙会把它发布进配置;ATT 的键表留空时,烘焙不动配置里已有的曲线。
The curve can also be authored on the model source: the ATT's locomotion block carries the same speed keys (each owning its clip) and the optional turn clips, and the bake publishes them into the config; an empty key list on the ATT leaves the config's existing curve untouched.
跳跃:三段相位,真正的起跳与落地覆盖 Jump: Three Phases, Real Takeoff and Landing Overlays
1.19.24 没有跳跃块,只有一个坠落动画延迟 FallingAnimDelay。1.20 在 Anim Shared 里新增一行 Jump Cycle:它下面的 Options 行列出每个可用的跳跃循环,每个循环是一组三个相位片段——Jump Start(起跳)、Falling Loop(下落)、Landing(落地)。每个相位自带自己的时序:起跳与落地带 Duration,下落带启动前的 Delay,所以时序值就住在你调的那个片段旁边。
1.19.24 had no jump block, only a falling-animation delay, FallingAnimDelay. 1.20 adds a Jump Cycle row to Anim Shared: its Options row lists every jump cycle the config offers, and each cycle is a set of three phase clips — Jump Start (takeoff), Falling Loop (airborne) and Landing (touchdown). Each phase carries its own timing — a Duration on takeoff and landing, a start Delay on falling — so the timing sits next to the clip you tune.
| 字段Field | 默认Default | 含义Meaning |
|---|---|---|
Jump Start |
关闭;Duration 0.1 秒Off; Duration 0.1 s |
起跳相位播什么、播多久。关闭时该相位的覆盖轨为空,单位照常移动、不播起跳片段。What the takeoff phase plays and for how long. Off leaves this phase's overlay track empty — the unit still moves, it just plays no takeoff clip. |
Falling Loop |
升级时自动打开;Delay 0.1 秒Turned on by the upgrade; Delay 0.1 s |
空中循环片段。Delay 是必须持续在空中的秒数,物理离地立刻进入坠落,这个延迟纯粹是抗台阶与斜坡抖动的动画滞回。旧配置的坠落动画因此继续播。The airborne loop clip. Delay is how long the unit must stay airborne before the clip starts — physics enters falling instantly, so the delay is pure animation hysteresis against bumps and slopes. This is why a legacy config keeps its falling animation. |
Landing |
关闭;Duration 0.15 秒Off; Duration 0.15 s |
落地尾巴播什么、播多久。给足时长,落地片段才播得完。What the landing tail plays and for how long. Give it enough time for the landing clip to finish. |
| 片段字段Clip field | 按资产填写;空 = 该相位不播An asset reference; empty = the phase plays nothing | 每个相位直接从模型源的片段列表里选一条动画,烘焙把它解析成相位段内的槽号;槽 255 = 出生时抽到的变体,多个单位不会整齐同步。Each phase picks one animation from the model source's clip list; the bake resolves it to a slot inside that phase band. Slot 255 draws a per-agent variant, so units do not step in lockstep. |
旧的坠落延迟会搬到新位置。1.19.24 只有这一个跳跃时序:它被写进 Falling Loop 的 Delay,加载末尾再折进 Options 第一项的同一字段。起跳与落地是 1.20 新增的相位,旧资产没有对应值,保持构造默认时长(起跳 0.1 秒、落地 0.15 秒)。
The one legacy jump timing moves to its new home. 1.19.24 carries only the falling delay; it is written into Falling Loop's Delay and then folded into the same field on the first Options entry. Takeoff and landing are phases 1.20 added; an old asset has no values for them, so they keep their constructed defaults (0.1 s takeoff, 0.15 s landing).
起跳与落地要重烘才有片段。这两段是新增的相位,旧数据里没有对应内容,所以它们的相位段在重新烘焙之前是空的。日志里的 AnimData 12102 就是在说这件事。做法:在 Mesh Prep 里给这两段排好片段、在 Jump Cycle 里勾上 bEnabled 并选槽,然后重烘。
Takeoff and landing need a re-bake before they can hold clips. Both are new phases with nothing behind them in the old data, so their bands stay empty until the next bake — that is what AnimData 12102 reports. The path is: put clips into those two bands in Mesh Prep, tick bEnabled on the two Jump Cycle rows and pick their slots, then re-bake.
五种行为生成变成 notify 行 Behavior Spawning Became Notify Rows
1.19.24 的生成配置散在五个行为片段里:Appear / Attack / Hit / Death 各带自己的 SpawnActor、SpawnFx、PlaySound(攻击还有 SpawnProjectile、死亡还有 SpawnLoot),Select 则分「正在被选中」和「已被选中」两套。1.20 把它们收进一张 notify 表:配置上新增成员 Notify Shared,一个 bEnable 总开关加一张 Actions 行表,原来的数组在升级后清空。
In 1.19.24 spawning was scattered across five behavior fragments: Appear, Attack, Hit and Death each carried their own SpawnActor, SpawnFx and PlaySound (attack also SpawnProjectile, death also SpawnLoot), while Select had one set for "being selected" and one for "selected". 1.20 gathers them into one notify table: a new Notify Shared member with a bEnable master switch and an Actions row list, and the old arrays are emptied by the upgrade.
每行先选触发来源:Anim 行响应该片段上的 notify 名字;Event 行响应 agent 事件的族与阶段。来源决定下面读哪组字段,一行不会同时响应两种触发。选好来源再选动作:生成 Actor、生成特效、播音效、生成抛射物、生成战利品、触发事件、切换行为、驱动一条反应通道(选中 / 取消选中 / 受击反应 / 死亡)、启动布娃娃。每行的生成载荷只在对应动作下显示。
A row first picks its trigger source: Anim rows answer a notify name on the clip, Event rows answer an agent event family and stage. The source decides which fields below are read, so one row never answers both. Then pick the action: spawn an actor, spawn an effect, play a sound, spawn a projectile, spawn loot, raise an event, switch behavior, drive one reaction channel (select, deselect, hit reaction, death), or start the ragdoll. The spawn payload only appears for the action that uses it.
升级时,旧数组里每条启用的条目变成一条 Event 行;关掉的条目不生成(行上没有逐条目开关)。行的顺序就是执行顺序,所以升级按固定次序搬:Appear、Attack、Hit、Death、Select,每个数组内部保持你当年写的顺序。触发阶段按下表落到对应的阶段位上:
The upgrade turns every enabled entry in the old arrays into one Event row; disabled entries produce nothing, since rows have no per-entry switch. Row order is execution order, so the move runs in a fixed sequence — Appear, Attack, Hit, Death, Select — and each array keeps the order you originally wrote. Stages land on the bits below:
| 旧数组Legacy array | 新行的 Event FamilyEvent Family | 新行的阶段Stage |
|---|---|---|
Appear 的 SpawnActor / SpawnFx / PlaySoundAppear's SpawnActor / SpawnFx / PlaySound |
Appear |
BeginBegin |
Attack 的 SpawnProjectile / SpawnActor / SpawnFx / PlaySoundAttack's SpawnProjectile / SpawnActor / SpawnFx / PlaySound |
Attack |
BeginBegin |
Hit 的 SpawnActor / SpawnFx / PlaySoundHit's SpawnActor / SpawnFx / PlaySound |
Hit |
BeginBegin |
Death 的 SpawnActor / SpawnFx / PlaySound / SpawnLootDeath's SpawnActor / SpawnFx / PlaySound / SpawnLoot |
Death |
任意阶段(不过滤)Any stage (no filter) |
Select 的 SpawnOnBeingSelect 三套Select's three SpawnOnBeingSelect sets |
Select |
BeingSelectBeingSelect |
Select 的 SpawnOnSelected 三套Select's three SpawnOnSelected sets |
Select |
SelectedSelected |
于是表现上一切照旧:出现、攻击、受击还是各自一开始就触发,死亡不分死因、一律跑同一批行。日志里的 Notify 12105 会按族报出各生成了多少行。
Visually nothing changes: appear, attack and hit still fire at their own start, and death runs the same rows whatever the cause. Notify 12105 reports how many rows each family produced.
按片段门控要换一种写法。旧数组条目上那个「只在这个动画下标里生成」的过滤字段,已没有作者入口——行表里看不到它,也不该再依赖它。要按片段限定,正确做法有两条:用 Anim 行匹配片段 notify 的名字,或用 Event 行的事件族加阶段。
Gating by clip needs a different shape now. The old "only inside this animation index" filter on array entries has no authoring surface — the row table does not show it and nothing should depend on it. There are two correct ways to narrow by clip: an Anim row matching a clip notify's name, or an Event row's family plus stage.
要按片段触发,先在 Persona 里挂通知。给片段添加本插件的动画通知类型(Details 里显示为 MassBattle Notify),在它的 NotifyId 里写一个名字,这个名字就是轨道上显示的名字、烘焙记录的名字、以及 Anim 行 Name 要填的名字。挂好后重烘。通知在运行时不会执行代码,烘焙只读它的名字。
Clip-triggered rows start in Persona. Add the plugin's notify type to a clip (its Details header reads MassBattle Notify) and type a name into NotifyId — that name is what the track shows, what the bake records, and what an Anim row's Name must match. Re-bake once the notifies are in place. The notify runs no code at runtime; the bake only reads its name.
总开关关闭会跳过所有动作,但保留行。整张 notify 表因此可以原地停用、调试、再打开,不用重建配置。
The master switch skips every action but keeps the rows. A table can be parked in place, debugged and switched back on without rebuilding it.
烘焙有两条硬上限。同一片段最多采集 4 条通知事件、16 个同步标记;超出的烘焙会直接失败并点名那个片段,绝不会悄悄截断。
Two hard bake limits. A clip may carry at most four notify events and sixteen sync markers; a bake that harvests more fails and names the clip instead of silently truncating.
命中时刻:只剩一个标量 Hit Timing: One Scalar Left
1.19.24 在「用动画长度作为回合时长」时,会给每个动画槽单独配一个命中时刻;1.20 整张逐槽命中表被删除,只剩攻击配置上的一个标量 TimeOfHit(默认 0.5 秒),它恒定显示、恒定生效。
In 1.19.24, when the round length came from the animation, each animation slot carried its own hit time. 1.20 deletes the whole per-slot table; what remains is one scalar, TimeOfHit (default 0.5 s), on the attack config, and it is always shown and always used.
| 字段Field | 1.19.241.19.24 | 1.201.20 |
|---|---|---|
TimeOfHit |
只在「不用动画长度」时显示Shown only when the round ignored the clip length | 恒显示、恒生效:命中发生在回合开始后这么多秒Always shown, always used: the hit lands this many seconds into the round |
| 逐槽命中时刻表Per-slot hit-time table | 勾选「用动画长度」时显示,可为每个槽单独调Shown when clip length drove the round; tunable per slot | 删除,没有替代字段Gone, with no replacement field |
bAnimAsDuration |
决定回合时长Decided the round length | 仍决定回合时长:开 = 用片段 PlayLength,关 = 用 DurationPerRoundStill decides round length: on = the clip's PlayLength, off = DurationPerRound |
逐槽数值静默消失,没有任何日志。一份「每个槽都是 0.5 秒」的配置升级后看起来一模一样;但当年把某一槽单独调到 0.32 秒的那份手感就没了——所有槽统一回落到 TimeOfHit。升级后请复看那些原本命中偏早的兵种。
The per-slot values vanish silently, with no log at all. A config where every slot sat at 0.5 s looks identical after the upgrade; but if one slot had been tuned to 0.32 s, that snap is gone and every slot now shares TimeOfHit. After upgrading, revisit units whose hits used to land early.
命中不受片段通知影响。片段上的通知只执行它自己那条 notify 行动作;命中时刻永远由这个标量决定。所以不要为了改命中时机去挂一条通知——那块地方没有伤害动作可挂,伤害只有一个归属。
Clip notifies never drive the hit. A notify on a clip only runs its own notify-table action; the hit instant always comes from this scalar. So do not hang a notify to move the hit — there is no damage action to hang there, and damage has exactly one home.
升级后:哪些自动完成,哪些要你动手 After the Upgrade: Automatic vs. Your Move
第一次加载会自动完成下面这些,不需要你做任何事:
The first load performs the following with no action from you:
| 自动完成Automatic | 结果Result |
|---|---|
| 八桶派生扁平槽表Buckets derive the flat table | Entries 装满,一条片段不丢;日志 AnimData 12003Entries fills in with nothing dropped; log line AnimData 12003 |
| 两点速度对拆成速度曲线The two-point pair becomes the curve | 两条采样点(Idle 与 Walk)与三个片段引用;加载日志记录转换出的速度与 Idle 速率Two keys (Idle and Walk) plus the three clip refs; the load log records the converted speeds and idle rate |
随机偏移搬到 LocomotionThe random offsets move into Locomotion |
新位置里就是你原来的值,旧位置此后不再生效;转向贡献字段已删除Your original values sit in their new home; the old location stops mattering, and the turn-contribution field is gone |
坠落延迟搬进 Jump CycleThe falling delay moves into Jump Cycle |
Falling Loop 被打开并指向坠落段,旧的坠落动画继续播Falling Loop turns on against the falling band, keeping the old falling animation |
| 五个行为的生成数组变成 notify 行The five spawn arrays become notify rows | 每族生成一排 Event 行,数组清空;日志 Notify 12105One group of Event rows per family, arrays emptied; log line Notify 12105 |
| 扁平表按相位重排The flat table is permuted to phase order | 旧行按相位段重新落位,两条跳跃段暂空;日志 AnimData 12102Old rows land in their phase bands, the two jump bands stay empty for now; log line AnimData 12102 |
必须重烘才有的内容(不重烘就是空的,但不会报错):
Content that only a re-bake produces (empty until then, without an error):
| 烘焙产物Bake product | 拿它做什么What it is for |
|---|---|
| 相位段布局Phase-band layout | 运行时按相位加槽号取片段;含起跳与落地两段How the runtime resolves a clip by phase plus slot, the two jump bands included |
| 片段通知时刻Clip notify timings | Anim 行靠它触发;没有它,按名字匹配的行不会响What Anim rows fire on; without it, name-matched rows stay silent |
| 同步标记Sync markers | 落脚对齐用的片段内标记In-clip markers used for footfall alignment |
| socket 轨迹Socket tracks | 生成点(抛射物、特效)按动画取 socket 位置Spawn points (projectiles, effects) resolving socket positions from the clip |
| 逐集合动画表Per-set animation tables | 单位在出生时抽一个动画集合,移动与跳跃片段按集合解析;集合表为空时走旧的槽位路径A unit draws an animation set at spawn and resolves locomotion and jump clips through it; an empty set table falls back to the old slot path |
必须重配的四处(重烘不解决,因为源头就是作者数据):
Four things you must re-author — a re-bake does not fix them, because the source is author data:
| 项目Item | 怎么做How |
|---|---|
| Run 的片段Run's clip | 在曲线上加一个速度采样点(锚在奔跑速度),给它自己的 Run 片段Add a speed key anchored at the run speed and give it its own Run clip |
| 倒退播放Reverse travel | 在曲线里加负速度键、把 PlayRate 设成负值Add a negative-speed key and give it a negative PlayRate |
| 命中时刻Hit timing | 重新填 TimeOfHitRe-enter TimeOfHit |
| 跳跃的起跳与落地Jump takeoff and landing | 勾 bEnabled、选槽、排片段,再重烘Tick bEnabled, pick slots, put clips in the bands, then re-bake |
蓝图里消失的入口 Blueprint entry points that disappear
| 节点/类型Node or type | 现在如何Now | 替代Replacement |
|---|---|---|
AnimShared.AnimData |
仍可在 Details 编辑,蓝图读写节点消失Still editable in Details; the Blueprint read/write nodes are gone | 没有同名蓝图入口No same-name Blueprint surface |
| 八个桶成员The eight bucket members | 面板与蓝图都不显示,仅参与加载Hidden from the panel and Blueprint alike; load-only | AnimData.Entries(面板面)AnimData.Entries (the panel row) |
| 六个平铺移动字段The six flat locomotion fields | 节点消失,旧位置改动无效Nodes gone; edits at the old location do nothing | AnimShared.Locomotion |
| 五个行为的生成数组The five behavior spawn arrays | 节点消失,升级后数组清空Nodes gone; the arrays are emptied by the upgrade | AnimShared.NotifyShared.Actions |
| 逐槽命中时刻类型The per-slot hit-time type | 类型整体删除;把它当变量类型的蓝图无法编译The type is gone; Blueprints that use it as a variable type will not compile | Attack.TimeOfHit |
AnimShared.Locomotion · AnimShared.Jump · NotifyShared |
全新蓝图可读写节点Brand-new Blueprint read/write nodes | —— |
相关页面:Authoring & Baking · Features · 相关 API:MassBattleAgentConfigDataAsset
Related pages: Authoring & Baking · Features · Related API: MassBattleAgentConfigDataAsset
瞄准成为独立行为 Aiming Becomes Its Own Behaviour
1.19.24 把「对准」写在攻击回合的第一段:单位先进瞄准相位,把身子转到目标身上,然后挥出这一下;没转到位就在同一个回合里吃冷却惩罚。1.20 把这一段整块拆了出来,成了和巡逻、追击并列的一条行为 Aim。
In 1.19.24 alignment was the opening phase of the attack round: the unit entered its aim phase, turned onto the target, then swung; failing to line up meant eating the cooldown penalty inside that same round. 1.20 takes that whole stretch out and makes it a behaviour in its own right, Aim, sitting beside patrol and chase.
拆开之后,两件事各归各处。转多少、转多快、什么算到位,全在新的 Aim 块里填;到位以后去哪、窗口到期以后去哪,是 Behavior 面板上的两行。攻击回合本身不再有瞄准相位,它从 PreCast_FirstExec 直接开始。
The split gives each question its own home. How far the joint turns, how fast, and what counts as on target are all authored in the new Aim block; where to go once aligned and where to go when the window expires are two rows on the Behavior panel. The attack round itself has no aim phase left — it opens straight at PreCast_FirstExec.
On Aim Aligned 与 On Aim Timeout 的默认值都是 Attack,这个默认值是刻意选的:它让一份从没碰过新行的旧配置继续走「先对准、再开打、超时罚冷却」那条老路。想让单位只瞄准不出手,把 On Aim Aligned 改成 Aim;想让超时不受罚,把 On Aim Timeout 改成 Idle——Attack 之所以会罚,是因为它进入回合后要走完那段冷却。
Both On Aim Aligned and On Aim Timeout default to Attack, and that default is deliberate: an old config that never touches the new rows keeps the familiar "align, then strike, cool down on timeout" flow. To make a unit aim without acting, set On Aim Aligned to Aim; to drop the timeout penalty, set On Aim Timeout to Idle — Attack only punishes because entering the round runs that cooldown.
| 行名Row | 默认值Default | 走哪一条Where it leads |
|---|---|---|
On Aim Aligned |
Attack |
关节已对准目标、并且已经过了瞄准窗口的最短时间之后走哪一条。默认就是旧行为:对准了就打。改成 Aim 即停在瞄准里不出手。Where to go once the joint is on target and the window's minimum time has elapsed. The default is the old behaviour: line up, then strike. Switching it to Aim keeps the unit aiming without acting. |
On Aim Timeout |
Attack |
窗口到期仍未对准时走哪一条。Attack 会进入攻击回合并把那段冷却走完,这就是超时惩罚;改成 Idle 就不惩罚,直接收手。Where to go when the window expires unaligned. Attack enters the round and runs that cooldown to the end — that is the timeout penalty; Idle skips the penalty and simply stops. |
有一处容易让人意外:任何「去攻击」的请求都会先被改写成 Aim,除非上一个行为本身就是 Aim(刚对准完),或者攻击已经在冷却中(那正是超时惩罚的那一步)。所以蓝图任务或片段 notify 里直接切 Attack,实际看到的顺序仍然是先对准、再出手。这里没有要你改的东西——知道它,才不会以为切了 Attack 就跳过了瞄准。
One thing surprises people: every request to attack is rewritten into Aim first, unless the previous behaviour was already Aim (the joint just aligned) or the attack is already in Cooling (which is exactly the timeout penalty). So a Blueprint task or a clip notify that switches straight to Attack still produces align-then-strike in that order. Nothing to change here — knowing it keeps you from expecting a direct switch to skip the aim step.
Aim 这一块填什么 What the Aim Block Holds
这块配置分三层:最上面是瞄准窗口,下面偏航与俯仰各占一半,每半自带限位、速度、加速度、静止角和自己那一份容差。默认值按人形弓手取——腰转得比肩抬得快,所以两半不共用一组速率。面板上 Aim 排在 Attack 之前,读起来是先瞄准、再攻击。
The block has three levels: the aim window on top, then a yaw half and a pitch half, each carrying its own limits, speed, acceleration, rest angle and its own tolerance. The defaults model a humanoid archer — the waist turns faster than the shoulder lifts, so the two halves do not share one set of rates. On the panel Aim sits before Attack, so it reads aim first, attack second.
| 行名Row | 默认值Default | 说明Notes |
|---|---|---|
Aim Time Range (s) |
0 – 3 | 瞄准窗口,X 是最短、Y 是最长。关节到位且已过最短时间即算对准达成;到最长仍未到位即窗口超时。旧版填在 Attack 上的那个窗口会自动带过来。The aim window; X is the minimum and Y the maximum. Alignment counts as achieved once the minimum has elapsed with the joint on target; the window times out when the maximum elapses unaligned. The window you authored on Attack is carried over automatically. |
Yaw → Min / Max |
-90 / 90 | 偏航能转到哪里,相对身体计(度)。放到 -180 与 180 就是整圈不限位。How far the yaw can travel, in degrees relative to the body. Set to -180 and 180 for a full turn with no limit. |
Yaw → Speed |
120 °/s | 追目标时能用的最大偏航速度;填 0 就瞬时到位。Maximum yaw speed used to chase the target; 0 snaps straight to it. |
Yaw → Acceleration |
720 °/s² | 偏航的加速斜坡;填 0 即角速度立刻取到目标速度,不做斜坡。The yaw acceleration ramp; 0 lets the angular velocity take the target speed immediately, with no ramp. |
Yaw → Rest |
0° | 没有可用目标时停住的角度(Advanced 下的行,一般不用填)。The angle held while no target is available (an Advanced row; usually left alone). |
Yaw → Yaw Tolerance |
15° | 到位判定:偏航与目标的夹角在此度数以内才算对准。旧面板上的 Attack Angle 这一行消失了,那个数就搬到这里。The on-target test: the yaw counts as aligned only within this many degrees of the target. The old Attack Angle row is gone and its number lands here. |
Pitch → Min / Max |
-30 / 60 | 俯仰的上下限,同样相对身体计。The pitch bounds, also relative to the body. |
Pitch → Speed / Acceleration |
60 °/s · 360 °/s² | 抬压炮口的速度与斜坡,填法与偏航那一半相同。Barrel elevation speed and ramp, authored the same way as the yaw half. |
Pitch → Rest |
0° | 没有目标时保持的俯仰角(Advanced 下的行)。The pitch held with no target (an Advanced row). |
Pitch → Pitch Tolerance |
10° | 俯仰的到位判定。1.19.24 没有这一半,所以旧资产取的就是这个默认值。The on-target test for pitch. 1.19.24 had no such half, so an old asset simply takes this default. |
Attack 上原来的瞄准窗口与容差两行已经不在面板上了,数值自动带到新家;以后要改,请到 Aim 里改。这块配置和攻击配置一样对蓝图可读写。
The aim window and tolerance rows that used to sit on Attack are no longer on the panel; their values moved over automatically. From now on, change them in Aim. Like the attack config, this block is readable and writable from Blueprints.
旧资产不动也能跑 What an Old Config Gets for Free
一份没重烘过的单位,身体就是它的瞄准轴:判定把身体正前方当作基准,只看水平夹角,目标落在 Yaw Tolerance 度以内就算到位,俯仰不参与。这正是 1.19.24 的判法,而 Yaw Tolerance 拿的又是旧 Attack Angle 的那个数——所以同一份资产在升级前后,对准的难易完全一样。
On a unit that has not been re-baked, the body itself is the aim axis: the test takes the body's forward direction as its datum, compares only the horizontal angle, and counts the joint as aligned while the target is within Yaw Tolerance degrees — pitch takes no part. That is exactly how 1.19.24 judged it, and Yaw Tolerance carries the number the old Attack Angle held, so the same asset is neither easier nor harder to line up after the upgrade.
要让单位像炮塔一样只转上半身、炮口还能抬起来,需要做两件事:给网格源(那份模型源资产)指定瞄准偏置(Aim Offset)混合空间,然后重烘这个单位的模型源。只有烘焙真的产出了逐骨网格,偏航与俯仰才会分开判定,Pitch Tolerance 也才开始起作用。哪几根骨跟着动完全由那份混合空间决定,配置里不填骨名。
To give a unit a turret — a joint that turns on its own while the barrel can also elevate — do two things: assign an Aim Offset blend space on the mesh source (the model-source asset), then re-bake that unit's model source. Only a bake that actually produces the per-bone grid splits yaw from pitch, and only then does Pitch Tolerance start to matter. Which bones follow is decided entirely by that blend space; no bone names are authored in the config.
不重烘就是零风险。没有烘焙网格的单位继续用身体朝向判定,命中判定也不看俯仰,升级后手上那份配置的瞄准与命中表现和以前一致。
Not re-baking means zero risk. A unit without the baked grid keeps using its body direction, and the hit test ignores pitch — the config in your hands aims and hits exactly as it did before.
重烘之后会多出一条约束。Attack 上的 Hit Pitch Angle(默认 15°)此时开始参与命中判定,它会否决「偏航对着目标、但炮口抬得不够」的那些命中。要打高处或远处的目标,就得把这个容差放宽,或者让关卡给出足够的仰角。
Re-baking adds one constraint. Once the grid exists, Hit Pitch Angle on Attack (default 15°) joins the hit test and rejects shots where the yaw is on target but the barrel is not raised enough. To hit targets high or far away, widen that tolerance or give the level enough elevation.
索敌过滤器换了位置 The Enemy Filter Moved
1.19.24 的索敌过滤器是 Trace 块里的 Query——每个单位各带一份。1.20 删掉了这个字段,过滤器搬到 Query Shared 块里的 Trace Query:这一块是整份配置共用一份,不再逐单位各存。
In 1.19.24 the enemy filter was Query inside the Trace block — one copy per unit. 1.20 removes that field and moves the filter to Trace Query in the Query Shared block, which holds one copy for the whole config instead of one per unit.
必须重新填。新字段默认是空的,而空的意思是「不过滤」:凡进入索敌范围的单位都会成为候选。升级后如果某个兵种突然见谁都往上扑,第一个要看的就是这里。旧过滤器不会被搬过来——它没有可对照的新家。
You must fill it in again. The new field starts empty, and empty means "no filter": anything inside trace range becomes a candidate. If a troop type suddenly goes for everything on the field after the upgrade, this is the first place to look. The old filter is not carried over — it has no counterpart to land in.
| 行名Row | 1.19.241.19.24 | 1.201.20 | 你要做什么What to do |
|---|---|---|---|
Trace Query |
Trace → Query,逐单位一份Trace → Query, one per unit |
Query Shared 块,整份配置共用一份The Query Shared block, one copy per config |
重新填过滤器。留空 = 匹配一切。Re-author the filter. Empty = match everything. |
Query Shared 里同时放着伤害过滤器 Damage Query 与拾取过滤器 Gather Query,三者都是整份配置共用一份。这意味着同一个单位不能再靠 SetMassFragment 单独改自己的索敌过滤——要给不同兵种不同的过滤条件,就做几份配置,让它们各自填自己的 Trace Query。
Query Shared also carries the damage filter Damage Query and the loot filter Gather Query; all three are one copy for the whole config. That means a single unit can no longer override its own trace filter through SetMassFragment — to give troop types different filters, make separate configs and author a Trace Query in each.
索敌模式改名,玩家不止一个 Trace Modes Renamed, More Than One Player
Trace 里 Mode 的两个条目换了名字:TargetIsPlayer_0 现在叫 IsPlayer,SectorTraceByTraits 现在叫 ByQuery(更早的 TargetIsPlayer 也认)。资产里存的是条目名,新旧对应关系已经内置,所以打开旧资产时模式会落在正确的那一项上,不需要手工改资产。
The two entries of Mode on Trace are renamed: TargetIsPlayer_0 is now IsPlayer, and SectorTraceByTraits is now ByQuery (the older TargetIsPlayer is recognised too). Assets store the entry name and the mapping is built in, so an old asset opens on the right entry with no manual edit.
资产有兜底,蓝图没有。蓝图里手选过旧条目名的节点需要重新选一次;那条内置映射只管资产里的数据,管不到图上的引用。
Assets are covered, Blueprints are not. Any Blueprint node where you hand-picked an old entry name needs to be re-picked; the built-in mapping covers data inside assets, never references on a graph.
Mode 选 IsPlayer 时会多出一行 Player Index(0–3,默认 0)。1.19.24 没有这一行,因为那个模式本身就写死了「第一个玩家」——所以默认 0 正好等于旧行为。现在索敌可以同时跟踪最多四个本地玩家,Player Index 决定这个单位锁哪一位。
Choosing IsPlayer reveals a Player Index row (0–3, default 0). 1.19.24 had no such row because that mode was hard-wired to the first player — so the default of 0 is exactly the old behaviour. Trace can now follow up to four local players at once, and Player Index picks which one a unit locks onto.
| 行名Row | 默认值Default | 说明Notes |
|---|---|---|
Mode |
ByQuery |
ByQuery 按 Query Shared 里的 Trace Query 过滤候选;IsPlayer 直接锁人,不看过滤器。ByQuery filters candidates through Trace Query in Query Shared; IsPlayer targets a player directly and ignores the filter. |
Player Index |
0 | 只在 Mode 为 IsPlayer 时出现,取 0–3。0 是第一个本地玩家,也就是旧行为。Appears only while Mode is IsPlayer, taking 0–3. 0 is the first local player, which is the old behaviour. |
逐行为索敌形状 Per-Behaviour Trace Shapes
1.19.24 的 Shape 是一棵树:Common 一份共享形状,再加休眠、巡逻、追击、支援四份专用形状,每份带自己的开关——勾了用专用,没勾用共享。
In 1.19.24 Shape was a tree: one shared shape under Common, plus four behaviour-specific shapes (sleep, patrol, chase, reinforce), each with its own switch — on means the specific shape applies, off means the shared one does.
1.20 只搬了共享那一份,落在 Trace 的 Shape 上。四份专用形状换了家:现在挂在各自行为的配置里,行名 Trace Shape,默认关闭(关闭即用共享形状)。Shape 下那个旧的嵌套块已经退役,只为读旧存盘而留,填进去不再有任何效果。
1.20 carries over only the shared one, landing on Shape in Trace. The four behaviour-specific shapes moved house: they now hang off each behaviour's own config as a Trace Shape row, off by default (off means the shared shape applies). The old nested block under Shape is retired and kept only to read pre-upgrade saves; filling it in has no effect.
| 数据Data | 1.19.24 位置1.19.24 location | 1.20 位置1.20 location | 结果Outcome |
|---|---|---|---|
| 共享形状Shared shape | Trace → Shape → Common |
Trace → Shape |
自动搬过来Carried over automatically |
| 休眠专用Sleep-specific | Trace → Shape → Sleep |
Sleep → Trace Shape |
数值不恢复Values are not recovered |
| 巡逻专用Patrol-specific | Trace → Shape → Patrol |
Patrol → Trace Shape |
数值不恢复Values are not recovered |
| 追击专用Chase-specific | Trace → Shape → Chase |
Chase → Trace Shape |
数值不恢复Values are not recovered |
| 支援专用Reinforce-specific | Trace → Shape → Reinforce |
Reinforce → Trace Shape |
数值不恢复Values are not recovered |
这四处是静默失效:不报错、不弹窗。那些填过专用形状的单位,升级后直接改用共享 Shape 的半径、角度与频率。如果某个兵种本来靠专用形状拉开差别(巡逻看得远、休眠看得近),升级后会明显不对——去对应行为里把 Trace Shape 打开重填。
These four fail quietly: no error, no dialog. Units that had specific shapes authored simply fall back to the shared Shape's radius, angle and frequency. If a troop type used a specific shape to stand apart — long sight while patrolling, short while asleep — it will read wrong after the upgrade. Open that behaviour's Trace Shape and author it again.
顺带一提,新资产的默认数变大了:共享形状的半径 3000、专用形状的半径 600(旧默认都是 1000)。已经存盘的资产保留自己填过的数值,只有新建的配置会看到这组新默认。
Worth knowing: a new asset's defaults are larger — 3000 for the shared shape and 600 for a specific one, where both used to default to 1000. Saved assets keep the numbers you authored; only freshly created configs see these defaults.
攻击状态机少了两个 Aim 状态 The Attack Machine Lost Its Aim States
攻击回合的相位从七个变成五个。旧的 Aim 与 Aim_FirstExec 两个值不存在了:瞄准现在是行为层的 Aim,不再是攻击回合内部的一个状态。
The attack round drops from seven phases to five. The old Aim and Aim_FirstExec values are gone: aiming is now the Aim behaviour, no longer a state inside the attack round.
| 1.19.24 条目1.19.24 entry | 1.20 对应1.20 counterpart |
|---|---|
Aim_FirstExec |
没有对应值,瞄准由行为 Aim 承担No counterpart; the Aim behaviour owns it |
Aim |
同上Same as above |
PreCast_FirstExec |
保留,名字不变Kept under the same name |
PreCast |
保留,面板显示 BeginKept, shown as Begin |
PostCast |
保留,面板显示 HitKept, shown as Hit |
Cooling |
保留Kept |
Completed |
保留Kept |
这是本次升级里少数没有兜底的地方。蓝图(或 C++)里拿攻击状态去和 Aim / Aim_FirstExec 比较的节点会直接编译失败。改写方式是把问题换掉:问行为而不是问回合——Behaving 的 ActiveBehavior 等于 Aim,就是这个单位正在瞄准。
This is one of the few places without a safety net. Blueprint (or C++) nodes that compare the attack state against Aim / Aim_FirstExec fail to compile outright. The fix is to change the question: ask the behaviour, not the round — ActiveBehavior on Behaving equal to Aim means the unit is aiming.
瞄准进度也跟着搬了家:读 Behaving 的 AimTime(进入瞄准时归零,单位是秒),拿它和 Aim Time Range (s) 比,就知道这次瞄准还能撑多久。旧的攻击回合内瞄准时钟已经不再推进,照旧读它只会拿到一个不动的数。
Aim progress moved too: read AimTime on Behaving (reset on entry, in seconds) and compare it against Aim Time Range (s) to see how much window this shot has left. The old in-round aim clock no longer advances, so reading it only ever yields a frozen number.
同一批改动还牵到两个战斗旗标:EBattleFlags 的 Flag46 / Flag47 现在叫 Jumping / Aiming。位没挪,还是第 46 位与第 47 位,所以已经勾好的模板旗标含义不变,只有蓝图里按旧名字引用的地方要改名。
Two combat flags move in the same batch: Flag46 / Flag47 on EBattleFlags are now Jumping / Aiming. The bits did not shift — still 46 and 47 — so already-ticked template flags keep their meaning; only Blueprint references written with the old names need renaming.
| 旧名Old name | 新名New name | 含义Meaning |
|---|---|---|
Flag46 |
Jumping |
起跳冲量施加时置位,保持到落地那一帧。Set when the takeoff impulse fires and held until the landing frame. |
Flag47 |
Aiming |
瞄准行为持有这个单位时置位。要问「是否在瞄准」,用它或 Behaving.ActiveBehavior 都对;问攻击状态则不再有意义。Set while the Aim behaviour owns the unit. To ask "is it aiming", this flag or Behaving.ActiveBehavior both work; the attack state no longer means anything here. |
除了蓝图里的改名之外,只有一种情况需要动手:如果某个模板以前用第 46 / 47 位做的是别的事,那位现在归了起跳与瞄准,得换一个空位。
Apart from renaming in Blueprints, one case needs work: if a template previously used bits 46 / 47 for something else, those now belong to jump and aim, so move that use to a free bit.
这一章的迁移清单 Chapter Checklist
| 项Item | 自动还是动手Automatic or manual | 动作Action |
|---|---|---|
| 瞄准窗口与到位容差Aim window and tolerances | 自动Automatic | 无。数值已搬到 Aim;以后在那里改。None. The values live on Aim now; change them there from here on. |
On Aim Aligned / On Aim Timeout |
自动(默认 Attack)Automatic (defaults to Attack) |
只在要改流程时动:只瞄准、或超时不惩罚。Only if you want a different flow: aim only, or no timeout penalty. |
| 索敌过滤器Enemy filter | 需重配Manual | 到 Query Shared → Trace Query 重新填;留空等于不过滤。Re-author it at Query Shared → Trace Query; empty means no filter. |
Mode 条目名Mode entry names |
自动Automatic | 资产不用改;蓝图里手选过旧条目名的节点要重选。No asset edit; Blueprint nodes with hand-picked old entry names need re-picking. |
Player Index |
自动(默认 0)Automatic (default 0) | 要锁第一个以外的本地玩家才填。Fill it only to lock onto a local player other than the first. |
| 休眠 / 巡逻 / 追击 / 支援的专用形状Sleep / patrol / chase / reinforce shapes | 静默失效Fails quietly | 按需到各自行为的 Trace Shape 重填。Re-author them on each behaviour's Trace Shape where needed. |
EAttackState 的 Aim / Aim_FirstExecAim / Aim_FirstExec of EAttackState |
需重配Manual | 蓝图改写为 Behaving.ActiveBehavior == Aim;进度读 Behaving.AimTime。Rewrite to Behaving.ActiveBehavior == Aim; read progress from Behaving.AimTime. |
| 瞄准网格(炮塔式两轴瞄准)Aim grid (turret-style two-axis aim) | 需重烘Manual re-bake | 给网格源指定 Aim Offset 混合空间,再重烘该单位;此后 Pitch Tolerance 与 Hit Pitch Angle 开始参与判定。Assign an Aim Offset blend space on the mesh source, then re-bake the unit; after that Pitch Tolerance and Hit Pitch Angle join the tests. |
相关页面:烘焙与资产制作Baking and asset authoring · 功能简介Features · 相关 API:MassBattleAgentConfigDataAsset
Related pages: Authoring & Baking · Features · Related API: MassBattleAgentConfigDataAsset
生成动作搬进 notify 表 Spawn Actions Moved into the Notify Table
1.19.24 里,「生成什么」分散在五个行为组上:Agent Behaviors 下的 Appear 与 Attack,Agent Reactions 下的 Hit、Death 与 Select。每组各挂一串数组,五种载荷(Actor / 特效 / 音效 / 抛射物 / 战利品)按组各取所需。1.20 把这些数组整体收进一张表:Agent Capabilities → NotifyShared → Actions。一行只说一件事——什么时候、做什么、用哪份载荷。
In 1.19.24 the "spawn what" settings were spread over five behaviour groups: Appear and Attack under Agent Behaviors, Hit, Death and Select under Agent Reactions. Each group carried its own arrays, taking the payload kinds it needed from actor, effect, sound, projectile and loot. 1.20 gathers all of it into one table: Agent Capabilities → NotifyShared → Actions. A row says one thing — when, what to do, with which payload.
原来的数组在面板和蓝图里都不见了:它们退成只用来读旧资产的序列化字段,编辑器不再显示,也不再是蓝图引脚。新建或改造生成动作只有一个入口,就是下面这张表。
The old arrays are gone from both the panel and Blueprints: they survive only as serialized fields the loader reads, no longer drawn in the editor and no longer exposed as Blueprint pins. The table below is now the single place to create or change a spawn action.
一行的形状 What a row holds
| 字段Field | 作用What it does |
|---|---|
Source |
Anim 或 Event。Anim 由已烘的片段 notify 按名字触发;Event 由 agent 事件的族与阶段触发。迁移出来的行全部是 Event。Anim or Event. An Anim row answers a baked clip notify by name; an Event row answers an agent event by family and stage. Every migrated row is an Event row. |
EventFamily |
只有 Event 行读它:这一行响应哪个事件族(Appear / Attack / Hit / Death / Select 等)。族决定阶段掩码的每一位对应哪个阶段。Read by Event rows only: which event family this row answers (Appear, Attack, Hit, Death, Select and so on). The family decides which stage each mask bit refers to. |
EventStageMask |
只有 Event 行读它:勾选该族的哪些阶段触发本行。可以同时勾多个;一个都不勾等于 任意阶段(掩码 0)。Read by Event rows only: which stages of that family fire this row. Tick several at once; ticking none means any stage (mask 0). |
Action |
触发时做什么:Spawn Actor / Spawn FX / Spawn Sound / Spawn Projectile / Spawn Loot / Trigger Event / Switch Behavior / Cause Reaction / Ragdoll。What fires: Spawn Actor, Spawn FX, Spawn Sound, Spawn Projectile, Spawn Loot, Trigger Event, Switch Behavior, Cause Reaction or Ragdoll. |
| 载荷Payload | Projectile / Fx / Actor / Sound / Loot / Behavior / Reaction,只在对应的 Action 下显示。载荷本身的结构与它原本的生成路径完全一致,配一份生成动作和配一条生成路径手感相同。Projectile, Fx, Actor, Sound, Loot, Behavior or Reaction, each shown only under its own Action. A payload is the same struct its original spawn path takes, so configuring a notify effect feels exactly like configuring that spawn path. |
整张表有一个总开关:NotifyShared.bEnable。关掉它,所有行原样保留但一条也不执行——可以整表停用而不丢配置。刻意没有伤害动作:命中伤害只有一个归属,就是攻击上的 TimeOfHit;片段 notify 只执行自己的动作,不移动也不门控那次命中。
The whole table has a master switch, NotifyShared.bEnable: turn it off and every row stays but none runs, so a table can be parked without losing its configuration. There is deliberately no damage action: hit damage has exactly one owner, TimeOfHit on the attack; clip notifies only run their own actions and never move or gate that hit.
五个行为组各自的去向 Where each family lands
| 1.19.24 的组Group in 1.19.24 | 搬成哪些行Becomes which rows | 阶段Stage |
|---|---|---|
| Appear(Agent Behaviors)Appear (Agent Behaviors) | Spawn Actor · Spawn FX · Spawn SoundSpawn Actor · Spawn FX · Spawn Sound |
BeginBegin |
| Attack(Agent Behaviors)Attack (Agent Behaviors) | Spawn Projectile · Spawn Actor · Spawn FX · Spawn SoundSpawn Projectile · Spawn Actor · Spawn FX · Spawn Sound |
BeginBegin |
| Hit(Agent Reactions)Hit (Agent Reactions) | Spawn Actor · Spawn FX · Spawn SoundSpawn Actor · Spawn FX · Spawn Sound |
Begin(受击族只有这一个阶段)Begin (the hit family has no other stage) |
| Death(Agent Reactions)Death (Agent Reactions) | Spawn Actor · Spawn FX · Spawn Sound · Spawn LootSpawn Actor · Spawn FX · Spawn Sound · Spawn Loot |
任意死因(掩码 0;OutOfHealth / OutOfLifeSpan / SuicideAttack / KillZ / ActorDestroyed 都会触发)Any cause of death (mask 0; OutOfHealth, OutOfLifeSpan, SuicideAttack, KillZ and ActorDestroyed all fire it) |
| Select(Agent Reactions)Select (Agent Reactions) | Spawn Actor · Spawn FX · Spawn Sound,拆成两批Spawn Actor · Spawn FX · Spawn Sound, split into two batches |
BeingSelect 一批,Selected 一批One batch for BeingSelect, one for Selected |
搬动时的六条规则 Six rules the migration follows
- 只搬启用的条目。每条当年被关掉的生成条目不会变成行,也不会留下任何痕迹——日志只统计搬成功的行数。如果你记得自己曾把某条特效关过,现在场上没有它;要恢复就在表里按原载荷重建一行。Only enabled entries move. An entry that was disabled produces no row and leaves no trace — the log counts only the rows it moved. If you remember switching an effect off, it is simply not there any more; rebuild that row with its original payload if you want it back.
- 顺序就是执行顺序。族按固定次序搬入(Appear → Attack → Hit → Death → Select 的
BeingSelect→ Select 的Selected),每个数组内部保持你当年的排列。新行追加在表尾;行的执行顺序就是表中顺序,各端一致。Order is execution order. Families move in a fixed sequence (Appear → Attack → Hit → Death → SelectBeingSelect→ SelectSelected), and each array keeps the order you authored. New rows are appended at the end of the table; rows execute in table order, identically on every peer. - 逐条目的片段过滤跟着行走。当年在条目上设的「只在这个动画索引下触发」原样搬到行上,行为不变——但它从面板上消失了,蓝图里也没有对应引脚。要取消这层过滤,只能删掉那行、按原载荷重建。The per-entry clip filter moves onto the row. A filter you set as "fire only on this animation index" carries over unchanged and still applies — but it is no longer drawn on the panel and has no Blueprint pin. To drop the filter, delete the row and rebuild it from its payload.
- 搬完清空原数组,不会双发。数组与它搬出的行同时存在会让同一份载荷生成两遍,所以每个数组搬完即被清空。再次加载不会重复搬动。The arrays are emptied as they move, so nothing fires twice. An array living beside the rows it produced would spawn every payload twice, so each array is cleared right after it is consumed. Loading the asset again never re-runs the move.
- Select 的行一律是端侧本地视觉。选中/取消选中本来就是本地表现,不参与网络同步;迁移把这一点写进每一行的载荷,正好是旧路径的实际语义。你自己新建的 Select 行不受这条规则改写,按载荷上的开关走。Select rows are always peer-local visuals. Selection was always local presentation and never part of network sync, and the migration writes that into each row's payload — which is exactly what the old path meant. Select rows you author by hand are not rewritten; they follow the switch on the payload.
- 旧载荷上不存在的东西取默认。旧的基类生成配置里没有「原点」与「socket」这两个概念,因此搬出来的行取
AtSelf与None——与旧路径的实际表现一致,不会凭空多出一个生成点。What the old payload never had takes its default. The old base spawn structs had no notion of an origin or a socket, so migrated rows takeAtSelfandNone— matching what the old path actually did, with no surprise spawn point appearing.
迁移在加载配置时自动完成,并在日志里报账。一行 Notify 12105 记录这次搬了多少条 Event 行(按 Appear / Attack / Hit / Death / Select 分列),以及删掉了多少条永远无法触发的 Anim 行。看到这行日志就说明这篇配置已经搬过,不需要你再做任何搬迁动作。
The migration runs by itself when the config loads, and reports in the log. One Notify 12105 line records how many Event rows this config gained (broken down by Appear / Attack / Hit / Death / Select) and how many permanently inert Anim rows were dropped. Seeing that line means the asset has already moved — there is no migration step left for you to perform.
蓝图里会掉引脚。五个行为组上被搬走的数组,以及 Select 上的 SpawnOnBeingSelect 与 SpawnOnSelected(两整组结构,各含自己的一套生成配置),都不再是蓝图引脚。任何对这些数组做 Break 结构、SetMassFragment 或逐元素添加的节点都会失去引脚。替换入口是配置上的 NotifyShared.Actions——它仍是蓝图可读写,但语义从「逐单位改生成数组」变成「改这份配置的整张表」。
Blueprint pins will disappear. The arrays lifted off the five behaviour groups — and SpawnOnBeingSelect plus SpawnOnSelected on Select (two whole blocks, each with its own spawn configs) — are no longer Blueprint pins. Any node that broke those structs, set them through SetMassFragment or added elements one by one loses its pins. The replacement is NotifyShared.Actions on the config: still readable and writable from Blueprints, but it now means "edit this config's table" rather than "edit one agent's spawn arrays".
四种查询过滤器没有迁移 The Four Query Filters Were Not Migrated
索敌、伤害、拾取、弹体这四类过滤条件,在 1.19.24 里是每个单位各存一份,1.20 改成每 chunk 一份的共享块。这次搬动不做迁移:旧值不会落到任何地方,也不会报错或写日志。空的查询等于不过滤、匹配一切——所以症状是「战利品被无条件捡走」「伤害打到所有东西」「弹体的筛选消失」,而不是一条明确的失败信息。
The four filters — target acquisition, damage, loot pickup and projectile — used to be stored once per unit in 1.19.24 and now live in a shared block with one copy per chunk. That move does not migrate anything: the old values land nowhere, and nothing fails or logs. An empty query means no filter at all, so the symptom is "loot gets picked up regardless", "damage hits everything" or "the projectile's filtering is gone" — not an error message.
| 1.19.24 填在Authored on in 1.19.24 | 现在填在Author it here now |
|---|---|
Trace 上的 Query(索敌过滤)Query on Trace (target acquisition) |
单位配置的 Agent Properties → QueryShared → TraceQueryAgent Properties → QueryShared → TraceQuery on the unit config |
Damage 与三种伤害形状各自的 QueryThe Query on Damage and on each of its three shape variants |
同一个 QueryShared 的 DamageQuery——一份同时服务四种伤害配置DamageQuery in the same QueryShared — one value serving all four damage configs |
Gather 上的 LootQuery(拾取过滤)LootQuery on Gather (pickup filter) |
同一 QueryShared 的 GatherQueryGatherQuery in the same QueryShared |
弹体配置里的 QueryQuery on a projectile's config |
该弹体数据资产自己的 Params → QueryShared:TraceQuery 与 DamageQuery(弹体没有拾取过滤)That projectile data asset's own Params → QueryShared: TraceQuery and DamageQuery (a projectile has no pickup filter) |
填完要清楚一件事:旧值还在 1.19.24 的资产里,但 1.20 的结构不读它,所以照着旧值抄过来是唯一的路,没有自动过桥。
One thing to be clear about: the old values still sit inside the 1.19.24 assets, but the 1.20 structures never read them. Copying them across by hand is the only route — there is no automatic bridge.
共享块的边界:过滤按 chunk 生效,不再逐单位。QueryShared 在运行期每 chunk 一份,同 chunk 的单位共用同一个值,SetMassFragment 也不能再按单位覆盖它。给不同兵种不同过滤仍然可行——每份配置填自己的值,它们会落进不同的 chunk;但如果你的项目以前靠运行期逐单位改查询,那条路已经不存在了。
The shared block's boundary: filtering is per chunk, no longer per unit. At runtime QueryShared holds one value per chunk, shared by every agent in it, and SetMassFragment can no longer override it per agent. Different troop types can still filter differently — each config carries its own value and they land in different chunks — but a project that used to rewrite a unit's query at runtime has lost that route.
弹体这一块还有一个继承细节:继承生成时,弹体的 TraceQuery 会被射击者的值替换,所以「谁开的枪」决定了弹体用哪套过滤;DamageQuery 仍取弹体数据资产自己的值。
One inheritance detail for projectiles: on an inheriting spawn the projectile's TraceQuery is replaced by the shooter's value, so the shooter decides which filter the projectile uses; DamageQuery still comes from the projectile data asset itself.
每个行为上的新增字段 New Fields on Each Behaviour
1.20 给生成、攻击、受击、死亡、战利品与弹体各加了若干字段。下面这张表把它们一次列清:需要你填的只有几项,其余是运行期自己写的状态——它们能在 Details 里看到,也能在蓝图里读,但你手填的值会在下一个 tick 被覆盖。
1.20 adds a handful of fields to appearance, attack, hit, death, loot and projectiles. The table below lists them all at once: only a few are yours to fill; the rest are runtime state — visible in Details and readable from Blueprints, but a value you type there is overwritten on the next tick.
| 位置Where | 字段Field | 默认值Default | 说明Notes |
|---|---|---|---|
| Appear 的运行时状态Appear runtime state | RealDuration · NotifyCursor |
0 · -1 |
本次出生实际运行的时长(解析过「用动画长度还是配置时长」之后的结果),与该阶段已处理到的片段 notify 时刻。运行期写入,不用填。The duration this appearance actually runs at (after resolving clip length versus authored duration), and the clip-notify time already handled this cycle. Written at runtime; nothing to fill in. |
| 攻击配置Attack config | bCanAttackWhileMoving |
false |
需要你决定。开启后整轮攻击都保持移动、goal 一直锁在目标身上,并让出站定攻击者的通行优先权(战斗路权、跳过避障、抑制侧让)。关闭就是旧行为:前摇与后摇站定,只在冷却期向前压进。Yours to decide. On, the agent keeps moving through the whole round with its goal pinned to the target, and gives up the planted attacker's traffic privileges (combat right-of-way, the avoidance skip and idle side-step suppression). Off is the old behaviour: planted through wind-up and follow-through, pressing forward only while cooling. |
| 攻击的运行时状态Attack runtime state | RealDuration · SpeedMultiplier · NotifyCursor |
0 · 1 · -1 |
本回合实际时长、本轮时钟的减速乘数、已处理到的片段 notify 时刻。三者都由行为处理器写入,notify 处理读同一份值,不再各自重算规则。The round's resolved duration, the slow multiplier its clock runs at, and the clip-notify time already handled. All three are written by the behaviour solver, and the notify pass reads them instead of re-deriving the rules. |
| 受击的运行时状态Hit runtime state | RealDuration · NotifyCursor |
0 · -1 |
解析后的受击反应时长与 notify 时刻。受击反应重新开始时游标会复位到 -1。The resolved hit-reaction duration and its notify time. The cursor resets to -1 whenever the reaction restarts. |
| 死亡的运行时状态Death runtime state | NotifyCursor · bRagdollRequested |
-1 · false |
死亡阶段的 notify 时刻;布娃娃请求由 notify 表的 Ragdoll 动作置位——要尸体变布娃娃就在表里加一行。置位后不清除,尸体一直拥有布娃娃直到消亡。The death-phase notify time; the ragdoll request is latched by the table's Ragdoll action — add a row there to make a corpse ragdoll. Once set it is never cleared: the corpse owns the ragdoll until it despawns. |
| 战利品参数Loot params | GridRegisterMode |
Multiple CellsMultiple Cells |
默认值有代价。战利品默认按拾取半径注册进战利品网格,落在半径内任意位置的空间查询都能找到它。不需要这份注册就改成 None;只要按点匹配就选 Single Cell。旧资产没有这个字段,加载后拿到的就是 Multiple Cells。The default has a cost. Loot registers into the loot grid by its pickup radius, so a spatial query landing anywhere inside that radius finds it. Set None if you do not need it, or Single Cell to register the point only. Old assets have no such field and load with Multiple Cells. |
| 弹体参数Projectile params | HitShape · HitHalfHeight · HitExtent |
Sphere · 50 · (25, 25, 25)Sphere · 50 · (25, 25, 25) |
命中体形状:Sphere 是历史行为;Capsule 用沿本地 Z 的半高,Box 用三轴半尺寸。后两个字段只在对应形状下出现。不填就是球。The hit volume's shape: Sphere is the historical behaviour; Capsule uses a half-height along local Z, Box uses three half-extents. The latter two only appear under their own shape. Leave it alone and it stays a sphere. |
| 弹体参数Projectile params | GridRegisterMode |
NoneNone |
弹体默认不进弹体网格,与以前一致、零开销。要让「护盾球内有哪些敌方弹丸」这类查询成立,才改成 Single Cell 或 Multiple Cells。Projectiles stay out of the projectile grid by default, as before, at zero cost. Change it to Single Cell or Multiple Cells only when you need queries like "which enemy shots are inside this shield sphere". |
| 生成载荷(生成 Actor / 特效 / 音效 的攻击版,以及抛射物)Spawn payloads (attack-side actor, effect and sound, plus projectile) | SocketName |
None |
从该 socket 的已烘变换生成:自身原点用本单位的片段解析,目标原点用目标单位自己的已烘 socket。载荷的 Transform 在 socket 空间里叠加。留空就是普通原点,旧配置加载后行为不变。Spawn from that socket's baked transform: at the self origin it resolves against this unit's clip, at the target origin against the target unit's own baked socket. The payload's Transform is applied in socket space. Empty means the normal origin, so old configs load unchanged. |
除了 bCanAttackWhileMoving、战利品与弹体的网格注册、以及可选的 socket,其余新增字段都不需要作者动作——它们的默认值就是旧行为,运行期会写入正确的值。
Apart from bCanAttackWhileMoving, the loot and projectile grid registration, and the optional socket, none of the new fields needs authoring: their defaults are the old behaviour, and the runtime writes the correct values.
命中体积:飞出去的弹体与握在手上的武器 Hit Volumes: Fired Projectiles and Held Weapons
命中判定分成两条路,不要混在一起看。
Hit detection takes two separate routes; do not read them as one.
飞出去的弹体Fired projectile
判定体由弹体配置自己的 HitShape 决定,默认是球,半径取 Radius——这就是历史行为。Capsule 与 Box 是为了让近战武器那种「刀身形状」的体积能带上弹体:刀有长度、有宽度,球判不准。每发弹体各自判定,与发射者是谁无关。The volume comes from that projectile's own HitShape, a sphere of Radius by default — the historical behaviour. Capsule and Box exist so a melee weapon's blade-shaped volume can ride a projectile at all: a blade has length and width, and a sphere judges neither. Each shot is judged on its own, whoever fired it.
握在手上的武器Held weapon
被握持的武器实体走另一张表:最多四个武器本地空间的判定体,配最多四个命中窗口(按攻击回合的比例开合)。这张表不在 Details 里,由武器烘焙写入;它的作用是回答「宿主这次挥击走到 32% 时,刀身扫到了谁」。A held weapon entity uses a different table: up to four weapon-local hit volumes paired with up to four hit windows that open by fraction of the attack round. That table is not in Details — the weapon bake writes it — and it answers "whose body is the blade across when the host's swing is at 32%".
两张表由计数分开:武器命中体表的条数为 0 时整段分支跳过,普通弹体永远走不到那里,只按 HitShape 判定。所以一份 1.19.24 的弹体配置加载后是这个样子——球体判定、不进弹体网格、不跑命中体表、不做 socket 解析,逐项都与以前一样。真正会变的只有过滤条件(上一节)。
A count keeps the two tables apart: when the weapon hitbox table's count is 0 the whole branch is skipped, so an ordinary projectile never reaches it and is judged by HitShape alone. That is exactly what a 1.19.24 projectile config looks like after loading — sphere judgement, out of the projectile grid, no hitbox table, no socket resolution, the same as before on every count. Only its filters change (see the previous section).
一句话分工:弹体用 HitShape 判一次命中;手上的武器用烘焙出的判定体表按回合比例判一段挥击。要改飞出去的子弹形状就打开那份弹体数据资产;要改刀身的判定就重烘武器,不要在弹体参数里找。
In one sentence: a projectile judges one hit through HitShape; a weapon in hand judges a swing through the baked volume table, driven by round fraction. To change the shape of a bullet, open that projectile data asset; to change what a blade hits, re-bake the weapon — do not look for it in the projectile params.
新建资产的默认值变了 New Assets Start From Different Defaults
这是一批默认值改动,不是迁移问题:已存盘的资产带着它当年作者化的值,一个数字都不会变。你只有在新建配置、或者把某个属性 Reset to Default 时才会看到新默认值。列在这里是为了避免把它误判成迁移失败——同一个兵种新建一份,手感确实会和旧的那份不同。
These are default value changes, not migration issues: a saved asset keeps the values it was authored with, digit for digit. You only meet the new defaults when you create a config or Reset to Default on a property. They are listed so nobody mistakes the difference for a failed migration — a freshly created unit of the same type does play differently from the old one.
| 参数Parameter | 1.19.241.19.24 | 1.201.20 |
|---|---|---|
Attack Range / Hit Range / Hit Angle |
200 / 400 / 180200 / 400 / 180 | 50 / 75 / 9050 / 75 / 90 |
受击动画时长 AnimLengthHit animation length AnimLength |
1 秒1 s | 0.4 秒0.4 s |
伤害 Damage(主伤害配置与点伤害变体)Damage Damage (master config and the point variant) |
100100 | 2525 |
bExcludeFromHashGrid |
关Off | 开——死亡即退出网格On — a dying unit leaves the grid |
bDisableCollisionWithAgent |
关Off | 开——死亡即关闭单位间碰撞On — a dying unit stops colliding with other units |
后两行值得留意:新建的兵种默认「一死就退出网格、一死就关掉与其他单位的碰撞」,尸体不再挡路、也不再被索敌与空间查询看见。这套手感对大批量小兵合适,对需要尸体阻挡的玩法不合适——那就把这两个开关关掉。
Watch the last two rows: a new unit type leaves the grid and drops agent-vs-agent collision the moment it dies, so a corpse no longer blocks movement or shows up in target acquisition and spatial queries. That suits massed troops; if your design wants corpses to block, turn both switches back off.
升级后先确认这几件事 Check These First After Upgrading
上面的内容收成一份可以照着走的清单。前四步是必须做的,后两步只在你的项目用到对应能力时才有意义。
Everything above, reduced to a checklist you can walk through. The first items are mandatory; the last ones only matter if your project uses that capability.
- 看日志,确认 notify 表已建好。加载单位配置时出现
Notify 12105的行数统计,说明这次搬迁已经跑过。打开 Agent Capabilities → NotifyShared → Actions,按族核对行数与当年一致。Read the log and confirm the table exists. ANotify 12105row-count line on load means the move already ran. Open Agent Capabilities → NotifyShared → Actions and check the per-family counts against what you used to have. - 补回当年被关掉的条目。那些条目不会变成行,也不会有提示。如果你记得某条 FX 或音效曾经存在但没启用,现在它彻底没了,按原载荷重建一行即可。Re-create entries you had switched off. Those become no rows and raise no warning. If you remember an effect or sound that existed but was disabled, it is now gone entirely — rebuild one row with its payload.
- 重填四类查询过滤。按上一节的表,把旧的索敌 / 伤害 / 拾取过滤填进单位配置的
QueryShared,把旧的弹体过滤填进每份弹体数据资产的QueryShared。不填就是「匹配一切」,战利品会被无条件捡走。Re-enter the four query filters. Using the table above, put the old acquisition, damage and pickup filters into the unit config'sQueryShared, and each projectile's old filter into that projectile data asset'sQueryShared. Left empty, everything matches — loot is picked up unconditionally. - 修蓝图。凡是 Break 过被搬走的数组、或对
SpawnOnBeingSelect/SpawnOnSelected做过读写的节点,都要改接到NotifyShared.Actions;查询相关的节点改接QueryShared。Fix Blueprints. Any node that broke the moved arrays, or read/wroteSpawnOnBeingSelect/SpawnOnSelected, must be rewired toNotifyShared.Actions; query nodes must be rewired toQueryShared. - 决定要不要加布娃娃与命中体。尸体要变布娃娃,就在表里加一行
Ragdoll;要让弹体参与空间查询,才把弹体配置的GridRegisterMode从None改开。反过来的方向也要顺一次:战利品默认入网格,不需要就把GridRegisterMode设成None。Decide on ragdolls and hit volumes. Add aRagdollrow if corpses should ragdoll; change a projectile'sGridRegisterModeaway fromNoneonly when shots must appear in spatial queries. Check the opposite direction too: loot is in the grid by default, so setGridRegisterModetoNonewhere you do not want it. - 核对手感数字。新建的兵种从更紧的默认值出发(攻击距离 50、命中半径 75、命中角 90、伤害 25、受击动画 0.4 秒)。旧资产不受影响;如果你是把旧配置的值推到新配置上,注意这些默认值不同。Check the feel numbers. New unit types start from tighter defaults (attack range 50, hit range 75, hit angle 90, damage 25, hit animation 0.4 s). Saved assets are untouched; keep the difference in mind when you carry old values into a new config.
相关页面:烘焙与作者流程Baking and the authoring flow · 功能简介Features · 相关 API:MassBattleAgentConfigDataAsset
Related pages: Authoring & Baking · Features · Related API: MassBattleAgentConfigDataAsset
烘焙产物的资产类换了 The Baked Animation Asset Changed Class
升级之后最要紧的一件事在这里。1.19.24 的烘焙把动画数据写成一个引擎 AnimToTexture 插件的资产,渲染器直接持有它;1.20 换成了插件自己的 ATT 资产类(UMassBattleATTDataAsset)。两者不是同一条继承链上的父子,所以旧资产不能当新资产用——把它填进 1.20 的渲染器,那个槽会读成空。
The most important item after upgrading sits here. A 1.19.24 bake wrote animation data as an engine AnimToTexture plugin asset, held directly by the renderer; 1.20 uses the plugin's own ATT class (UMassBattleATTDataAsset). The two are not parent and child on one chain, so an old asset cannot stand in for a new one — point a 1.20 renderer at it and the slot reads as empty.
没有重定向、没有迁移、加载时也没有任何告警,所以这一项只能手工补。每个单位重新生成一份动画数据,再重烘一次配置:在 Mesh Prep 里重新生成 ATT,然后在 Agent Creator 里对这份单位配置按 Generate。1.20 的烘焙配方里 MeshSource 槽只接受新类,这一步没有旁路。
No redirect, no migration, and nothing in the log at load time — so this one is manual. Regenerate each unit's animation data, then re-bake the config: regenerate the ATT in Mesh Prep, then press Generate on that unit config in the Agent Creator. The 1.20 bake recipe's MeshSource slot accepts only the new class; there is no way around it.
重烘不会打乱你的引用:生成的资产按同名原位覆盖,关卡里已经摆好的渲染器实例跟着更新,此后新生成出去的单位才用上新产物。它有一个副作用——画面表现改由烘焙决定,见下方《没重烘过的 LOD 表照旧画》。
Re-baking does not break your references: generated assets are overwritten in place under the same names, renderer instances already in the level follow, and only units spawned afterwards use the new products. It has one side effect — the draw representation now comes from the bake; see Legacy LOD Tables Keep Drawing below.
远距剔除:一条 None 渲染带 Far Culling Is a None Render Band
1.19.24 的 CullDistance 是"相机距离超过多少厘米就不再画",0 表示永不剔除。1.20 删掉了这个字段,也没有迁移:设过非零值的单位会一直画到最远。
In 1.19.24, CullDistance meant "stop drawing beyond this camera distance in centimetres", with 0 meaning never cull. 1.20 removes the field with no migration: a unit that set a non-zero value now draws all the way out.
替代它的不是另一个距离参数,而是渲染 LOD 里的一档:把某条带的 RenderMode 设为 None,这条带什么都不画。带是按占屏比选的,不看相机距离——每条带有一个 ScreenSize 下界,单位在屏幕上的投影尺寸大于等于它时就用这条带。所以旧的距离数字换算不过来:一个是厘米,另一个是随 FOV、分辨率和单位尺寸变化的投影比例,两者没有一一对应。
What replaces it is not another distance parameter but one band of the render LOD: set a band's RenderMode to None and that band draws nothing. Bands are picked by projected screen size, not camera distance — each band carries a ScreenSize lower bound and applies when the unit's projected size is at or above it. The old distance number therefore does not convert: one is centimetres, the other a projected fraction that moves with FOV, resolution and unit size.
做法:打开单位配置的 LOD Shared → RenderLOD,在 Data0 到 Data4 里挑一条已经启用的带(ScreenSize 不小于 0),通常是最远的 Data4,把它的 RenderMode 设为 None,再确认这条带的 ScreenSize 就是你想要的分界占屏比。原来填 0 的单位什么都不用做——1.19.24 的语义本来就是"永不剔除"。
How: open the unit config's LOD Shared → RenderLOD, pick an enabled band among Data0 to Data4 (one whose ScreenSize is not negative) — usually the farthest, Data4 — set its RenderMode to None, and confirm that band's ScreenSize is the boundary you want. Units that used 0 need no work at all: in 1.19.24 that already meant "never cull".
顺带一个旧 CullDistance 做不到的效果:None 档连 actor 都不生成,不只是不画。
One effect the old CullDistance could not give you: a None band does not even spawn the actor, rather than merely skipping the draw.
| 字段Field | 默认值Default | 说明Notes |
|---|---|---|
RenderLOD 的 Data0..Data4Data0..Data4 of RenderLOD |
五条固定带Five fixed bands | 按占屏比从近到远使用,运行时不看排列顺序,按尺寸选档。Used near to far by projected size; the runtime picks by size, not by order. |
ScreenSize |
-1 |
该带的下界:占屏大于等于它时用这条带,越远的值越小,最后一条给 0。负值表示这条带没配好。The band's lower bound: the band applies at or above it; farther bands carry smaller values and the last one is 0. A negative value means the band is not set up. |
RenderMode |
BoneCS |
这条带怎么画:Actor / BoneCS / VatVert / Sprite / None,一档一种。填 None 就是这一档什么都不画。How the band draws: Actor / BoneCS / VatVert / Sprite / None, one per band. None draws nothing at all. |
LODIndex |
-1 |
-1 表示该带未启用,运行时跳过。几何 LOD 由系统按网格自选,不要再手填;重烘后由烘焙写入有效值。-1 means the band is not enabled and is skipped at runtime. Geometry LOD is chosen by the system from the mesh, so do not hand-fill this; a re-bake writes a valid value. |
没重烘过的 LOD 表照旧画 Legacy LOD Tables Keep Drawing
一份从没在 1.20 里重烘过的配置,LOD 表不用动:渲染器会走遗留分支,按每条带里存着的表现方式(Representation)与混合层级画,完全绕开新的 RenderMode。升级后画面不变,也不需要任何操作。
A config that has never been re-baked in 1.20 needs no LOD work: the renderer takes the legacy path and draws from each band's stored representation (Representation) and blend level, bypassing the new RenderMode entirely. The picture does not change after upgrading, and nothing is required of you.
判别只看一个开关:单位配置上的 bComposedFromLegacyBands,默认是开的。它是开的,说明这份配置仍按存着的表现方式画;重烘一次会把它关掉,同时烘焙给每条带写下真实的 RenderMode——从那一刻起只有 RenderMode 说话。所以要改 LOD,就在烘焙面板的 1.RenderBands 里改,不要再回配置里手改带。
One flag tells you which regime a config is in: bComposedFromLegacyBands, on by default. While it is on, the config keeps drawing with the stored representation; a re-bake turns it off and the bake writes a real RenderMode into every band — from that point only RenderMode speaks. So to change LOD, change it in the bake panel's 1.RenderBands, not by hand on the config's bands.
重烘前先把每档的渲染方式重选一遍。升级前存下的带表里,每档的渲染方式会回落到默认的 BoneCS——没有日志、不报错,一条原来是顶点方式的带会悄悄变成骨骼方式。按 Generate 之前,在烘焙面板里逐档重选 Render Mode:原来的 VertexMode 对应现在的 VatVert。混合层级也不用手填了,它按渲染方式固定(图集一轨、顶点两轨、骨骼三轨)。
Re-pick every band's render mode before re-baking. In a band table saved before the upgrade, each band's render mode falls back to the default BoneCS — no log, no error, so a band that used to be vertex quietly becomes bone. Before pressing Generate, re-select Render Mode per band on the bake panel: the old VertexMode is today's VatVert. Blend level is no longer yours to fill either; it follows the render mode (one track for atlas, two for vertex, three for bone).
| 字段Field | 1.19.241.19.24 | 1.201.20 | 你要做什么What you do |
|---|---|---|---|
Representation |
带上的可编辑字段An editable field on the band | 只服务遗留分支,不再可编辑、蓝图也不可读写Legacy path only; no longer editable or Blueprint-readable | "画什么"改用 RenderMode;旧值仍在文件里,重烘后不再被读Use RenderMode for "what to draw"; the old value stays on disk but is not read after a re-bake |
RenderMode |
不存在Did not exist | 每档一个,默认 BoneCSOne per band, default BoneCS |
每档选一次Pick once per band |
AnimBlendLevel |
可填 1–3,默认 2Fillable 1–3, default 2 | 由渲染方式派生,不再可填Derived from the render mode; not fillable | 不填。旧资产上存的值在遗留分支里仍照旧使用Nothing. On a legacy asset the stored value is still used as before |
LogicLOD |
可编辑,结构体可对蓝图开放Editable, its struct exposed to Blueprint | 不再对蓝图开放,结构体也没有可填的字段Not exposed to Blueprint, and the struct has no authorable fields | 没有可配内容;引用该结构体的蓝图变量会失效Nothing to configure; Blueprint variables typed on that struct break |
子体生成偏移要重填 Child Spawn Offsets Must Be Re-entered
会生小兵的单位(挂件、骑乘、分裂出来的子体)在生成列表的每一项上都带一个"父体坐标系下的偏移"。1.20 把这个偏移改成单精度存,属性名没变,也没有重定向。引擎反序列化遇到类型不符的属性会跳过它、把值留在默认——于是偏移回落成单位变换,所有子体都叠在父体原点上生成。
Units that spawn children (attachments, riders, split-off bodies) carry an offset in the parent's space on every entry of the spawn list. 1.20 stores that offset in single precision, and the property name did not change, nor is there a redirect. The engine skips a property whose type no longer matches and leaves it at its default — so the offset falls back to identity and every child spawns stacked at the parent's origin.
做法:打开每个挂了子体的单位配置,在 SpawnAgent 列表里逐项重填 Transform。这是本版唯一"类型变了、名字没变、也没有重定向"的字段,所以它不会有任何提示——只能靠这条清单。
How: open every unit config that has children and re-enter each entry's Transform in the SpawnAgent list. This is the only field in this release whose type changed while its name stayed and nothing redirects — so nothing will warn you; this checklist is the warning.
外观寻址:两个整数 Style Addressing: Two Integers
单位"穿成什么样"在 1.20 由 StyleType 上的两个整数决定:Index 选装配组合的行,SubIndex 在这行里选具体变体(0 表示该行的第一个合法变体,-1 表示出生时掷一次并回写)。旧文档里"用风格枚举挑外观"的写法已经不成立:Style0 到 Style31 那个枚举仍然存在,但只是给旧资产反序列化用的载体,不是作者面。它在 1.19.24 里就已经不对面板和蓝图公开,所以"枚举被删了、要重配"是个误判。
In 1.20, how a unit looks is decided by two integers on StyleType: Index picks the assembly combination row, and SubIndex picks the variant inside that row (0 = the row's first legal variant, -1 = rolled once at spawn and written back). The old "pick a look with a style enum" wording no longer holds: the Style0–Style31 enum still exists, but purely as a carrier for deserializing old assets, not as an authoring surface. It was already closed to the details panel and to Blueprint in 1.19.24, so "the enum was deleted, reconfigure it" is a misreading.
另外两个字段管"同一套搭配怎么分给一群人":StyleSeed(默认 0,表示由批次自己的组合配方派生,并与单位 UID 混合;填非 0 就把整群的外观固定下来)与 bForceDeterministic(默认开:即使关掉模拟确定性,-1 的随机样式也按确定性解,只有两者同时关才允许真随机)。四个字段都可编辑,不丢任何蓝图引脚。
Two more fields govern how one outfit set is spread across a crowd: StyleSeed (default 0, meaning "derive from the batch's own combination recipe and mix in the unit's unique id"; a non-zero value pins the whole crowd's look) and bForceDeterministic (on by default: even with simulation determinism off, a -1 random style still resolves deterministically; only with both off do you get true randomness). All four are editable and no Blueprint pin is lost.
别把两个"Index"当成一回事。特效宿主上的 StyleType_Index(0–255)是一个整数,原样交给合批的 Niagara 系统当筛选键,框架自己不解释它;StyleType.Index 加 SubIndex 是一对整数,决定渲染侧穿成什么样。两者没有数值对应关系,也不能互相赋值。
Do not confuse the two "Index" fields. The FX host's StyleType_Index (0–255) is one integer handed to the batched Niagara system as a filter key that the framework does not interpret; StyleType.Index plus SubIndex is a pair deciding what the render side wears. They have no numeric correspondence and cannot be assigned to one another.
| 字段Field | 默认值Default | 含义Meaning |
|---|---|---|
StyleType.Index |
0 |
装配组合的行。旧资产存的值原样加载。The assembly combination row. A stored value from an older asset loads unchanged. |
StyleType.SubIndex |
0 |
行内变体;0 是该行第一个合法变体,-1 表示出生时掷一次并回写。要同一行里挑不同变体时才填。The variant within the row; 0 is that row's first legal variant and -1 means "roll once at spawn and write back". Fill it only when one row must cover several variants. |
StyleType.StyleSeed |
0 |
0 表示由批次配方派生并与单位 UID 混合;非 0 固定整群的外观一致性。0 derives the seed from the batch recipe mixed with the unit's id; a non-zero value pins the crowd's look. |
StyleType.bForceDeterministic |
开On | 随机样式是否强制走确定性解。除非故意要非确定性外观,否则保持默认。Whether a random style must still resolve deterministically. Keep the default unless you deliberately want non-deterministic looks. |
StyleType_Index |
— | 特效侧的风格筛选键(0–255),直接传给合批系统。与上面两个整数无关。The FX-side style filter key (0–255), passed straight to the batched system. Unrelated to the two integers above. |
移动:默认打开的新开关 Movement: New Switches That Default On
这是旧配置里唯一"你没动过、行为却变了"的地方。新增的开关存的是默认值,所以旧资产加载后就带着它们。
This is the one place where an old config changes behaviour without you touching it: the new switches ship with defaults, so an old asset loads with them on.
| 字段Field | 默认值Default | 含义Meaning |
|---|---|---|
Move → Z → bEnableObstacleSupport |
开On | 盒障碍物可以当可站立支撑:agent 站在盒顶,而不是穿下去。关掉即回到 1.19.24 的行为。Box obstacles count as standable support: an agent stands on the box top instead of sinking through. Turn it off to get 1.19.24 behaviour back. |
Move → Z → bEnableObstacleCeiling |
开On | 用盒障碍物的天花板面夹住 agent,不再顶穿悬挑。关掉即回到 1.19.24 的行为。The box obstacle's ceiling face clamps the agent, which can no longer push up through an overhang. Turn it off to get 1.19.24 behaviour back. |
Move → Freq → bEnableDormancy |
开,周期 4On, period 4 | 静止的 agent 只在部分帧推进,其余帧沿用上一帧结果。设 DormancyPeriod 调周期。Idle agents advance only on some frames and reuse the previous result otherwise. DormancyPeriod sets the cycle. |
Move → Freq → bEnableCruiseThrottle |
开,周期 2On, period 2 | 稳定巡航时按周期节流,CruisePeriod 与 CruiseDeviationRatio(0.1)决定节奏与允许的偏差。Steady cruising is throttled on a cycle; CruisePeriod and CruiseDeviationRatio (0.1) set the cadence and the allowed drift. |
要保住 1.19.24 的手感:把 bEnableObstacleSupport 与 bEnableObstacleCeiling 都关掉(关掉就是旧行为),再把 bEnableDormancy 与 bEnableCruiseThrottle 也关掉,恢复逐帧推进。
To keep the 1.19.24 feel: turn off both bEnableObstacleSupport and bEnableObstacleCeiling (off is the legacy behaviour), then turn off bEnableDormancy and bEnableCruiseThrottle to restore per-frame stepping.
节流不会让你失步:哪些帧推进由已同步的逐单位状态算出,两端的判断一致。变的只是移动结果与旧版不同。
Throttling does not desync you: which frames advance is computed from synchronized per-unit state, so both peers decide alike. What differs is the movement result compared with 1.19.24.
顺带提醒一个容易误判的现象:1.20 新建配置的移速、转向、加速度默认值也和 1.19.24 不同(例如 MoveSpeed 从 1000 变 500)。已存盘的资产保留自己的值,所以别拿一份新配置当基线去比对,否则会以为自己被改了参数。
One easily misread side note: fresh 1.20 configs also differ from 1.19.24 in speed, turn and acceleration defaults (for example MoveSpeed 1000 → 500). Saved assets keep their own values, so do not use a new config as a baseline for comparison or you will think your parameters were rewritten.
宿主与附着:状态搬出了 agent Host and Attachment State Left the Agent
1.19.24 把树链接、附着来源和整块逐帧解算结果都塞在 agent 的 Parenting 上,每个 agent 一辈子背着这份解算帧。1.20 把它拆开:agent 只留关系(Parent 与挂载状态),解算帧搬到宿主记录上——也就是带宿主控制器标记的那个实体。
1.19.24 kept the tree links, the attachment source and the whole per-tick resolved frame on the agent's Parenting block, so every agent carried that frame for life. 1.20 splits it: the agent keeps only the relationship (Parent plus mount state) and the resolved frame moves to the host record — the entity that carries the host controller marker.
资产数据没有损失。这些字段在 1.19.24 的配置面板上本来就不允许填(那一块是只读展示),所以丢的是蓝图读写的引脚,不是作者填过的值。会坏的是读过这些引脚的蓝图逻辑。
No authored data is lost. Those fields were never editable on the 1.19.24 config panel (the block was a read-only display), so what disappears is the Blueprint pins, not values you entered. What breaks is Blueprint logic that read them.
| 丢失的引脚Pins that are gone | 原来是什么What it was | 现在读哪里Where to read it now |
|---|---|---|
AttachmentEntity · AttachmentSource |
父级是谁、附着关系从哪来Who the parent is and where the attachment came from | agent 上的 Parent;关系的建立与拆解改走宿主的 Attach / Detach 入口,不再直接写字段Parent on the agent; relations are built and torn down through the host's Attach / Detach entries instead of writing fields |
FirstChildHost · NextSiblingHost · PrevSiblingHost |
宿主记录之间手工连的父子/兄弟链表A hand-linked parent/child and sibling chain between host records | 宿主记录上同名字段;只对带宿主控制器标记的实体有效,agent 模板永远不带它们Same-named fields on the host record; they exist only on entities carrying the host controller marker, never on an agent template |
ResolvedWorldTransform · ResolvedLinearVelocity · ResolvedAngularVelocity · ResolvedWorldScale · ResolvedInterpParams · bResolvedThisTick |
父级每帧解算出的世界变换、两个速度、缩放、插值参数与"本帧算过"标记The parent's per-tick world transform, two velocities, scale, interp parameters and the "resolved this tick" marker | 宿主记录上的同名字段。要"父级的解算帧",找那个带宿主控制器标记的实体读它,不要再从子体身上找Same-named fields on the host record. For "the parent's resolved frame", read the entity with the host controller marker — no longer the child |
关系拆开后,树父级不再是一个独立字段:附着来源为父级时,树父级就是那个父实体本身。判断某个实体是不是宿主记录,用的判据与 1.19.24 相同(宿主控制器标记)。agent 侧要读"挂在谁身上",用 Parent 与 bMountedToParent、MountYaw、RecenterDelay 这组挂载字段。
With the split, the tree parent is no longer its own field: when the attachment source is the parent, the tree parent is that parent entity itself. Whether an entity is a host record is decided by the same marker as in 1.19.24 (the host controller). To read "what is this attached to" on the agent side, use Parent together with bMountedToParent, MountYaw and RecenterDelay.
socket 附着与布娃娃 Socket Attachment and Ragdoll
从骨骼 socket 生成特效是 1.20 新增的作者面,而 socket 清单是烘焙产物(只读):一个单位有哪些 socket、每段动画里 socket 跟在哪根骨上,都由烘焙写进资产。所以拿 1.19.24 的旧烘焙去接 socket 附着,没有可绑的 socket——附着会回退到胶囊体坐标系。做法只有一个:重烘这个单位,再填 socket 名。
Spawning effects from a bone socket is new authoring in 1.20, and the socket list is a bake product (read-only): which sockets a unit has, and which bone each socket rides in every clip, are written by the bake. So rigging socket attachment against a 1.19.24 bake leaves nothing to bind to — the attachment falls back to the capsule frame. The only fix is to re-bake the unit and then fill the socket name.
socket 是按名字匹配的:改名或换骨架之后,旧烘焙里的轨迹指向的东西已经不存在,查找就是未命中。所以 socket 名与骨骼绑定必须来自同一次烘焙——改过 socket 名就要重烘。
Sockets match by name: after a rename or a skeleton swap, the tracks from an old bake point at something that no longer exists and simply miss. Socket names and their bone binding must therefore come from the same bake — rename a socket and you re-bake.
布娃娃也是本版新增的:它不是单位级开关,而是通知表里的一行 Ragdoll 动作触发的。作者面很小——每单位三个参数,渲染器上两个池参数。旧资产没有这一块,所以从默认值开始,没有值会丢。
Ragdoll is new in this release too: it is not a unit-level toggle but a Ragdoll action in the notify table. Its authoring surface is small — three parameters per unit and two pool parameters on the renderer. Old assets have no such block, so they start from defaults and nothing is lost.
| 参数Parameter | 默认值Default | 含义Meaning |
|---|---|---|
RagdollMaxSeconds |
5.0 |
布娃娃最长持续秒数,0 表示不设上限。Longest time a ragdoll runs, in seconds; 0 means no limit. |
RagdollDamping |
0.2 |
线速度每秒的衰减比例;角速度按两倍衰减。Fraction of linear velocity lost per second; angular velocity decays at twice that rate. |
RagdollLaunchSpeed |
300 |
沿命中方向附加的初速度,决定尸体被推出去多远。Extra launch speed along the hit direction, which sets how far the body is thrown. |
MaxRagdollsPerBatch |
512 |
渲染器上:一批最多同时模拟多少具布娃娃。On the renderer: how many ragdolls one batch simulates at once. |
RagdollPairMaxDistance |
800 cm |
渲染器上:跨尸体的配对距离门限,超出即不再互相作用。On the renderer: the pairing distance between bodies, beyond which they stop interacting. |
相关页面:烘焙与制作Baking and authoring · 功能简介Features · 相关 API:MassBattleAgentConfigDataAsset。
Related pages: Authoring & Baking · Features · Related API: MassBattleAgentConfigDataAsset.
升级后要做的四件事 Four Things to Do After Upgrading
装上 1.20 之后,除了配置资产上的字段变化,只有四件事需要你亲自动手:重新生成项目文件、重编、把每个单位的动画资产重烘一遍、核对配置资产上失去蓝图暴露的字段。其余都是装好即用。
Once 1.20 is installed, four things are yours to do: regenerate your project files, recompile, re-bake every unit's animation asset, and review the config-asset fields that lost Blueprint exposure. Everything else works as soon as the plugin loads.
| 步骤Step | 做什么What to do | 漏了会怎样If you skip it |
|---|---|---|
| 重新生成项目文件Regenerate project files | 插件在 1.20 里多了两个模块——一个运行期、一个仅编辑器。.uproject 不用改,但 IDE 的工程文件必须重新生成才看得见它们;之后做一次整工程重编。The plugin now ships two extra modules, one runtime and one editor-only. Your .uproject needs no change, but the IDE project files must be regenerated for the new modules to appear, followed by a full rebuild. |
新模块不参与编译,编辑器启动时报模块找不到。The new modules never build, and the editor fails to start with a missing module. |
| 重编并检查动画纹理依赖Recompile and check your animation-texture dependency | 插件不再公开依赖引擎的 AnimToTexture 插件——那部分源码已经内置进本插件。如果你自己的模块曾靠传递依赖用过 UAnimToTextureDataAsset 这类类型,给该模块自己加上 AnimToTexture,或改用 UMassBattleATTDataAsset。The plugin no longer publicly depends on the engine's AnimToTexture plugin — that code now lives inside MassBattle. If your own module used types such as UAnimToTextureDataAsset through that transitive dependency, add AnimToTexture to your module or switch to UMassBattleATTDataAsset. |
你自己的模块编译失败,报找不到类型。插件没有迁移提示,这一步只能自己查。Your own module fails to compile on unresolved types. There is no migration warning from the plugin; this one is yours to catch. |
| 重烘每个单位的动画资产Re-bake every unit's animation asset | 对每个单位的动画资产(ATT)完整跑一次烘焙。这一趟会补上哪些表,见下一张表。Run one full bake on every unit's animation asset (ATT). The tables a bake fills in are listed in the next table. | 旧资产照常加载,但这些表全是空的:瞄准偏置、布娃娃、脚部同步、socket 挂点、片段通知全部不出效果,而且不报错。Old assets still load, but those tables are empty: aim offset, ragdoll, foot sync, socket attachment and clip notifies all do nothing, with no error anywhere. |
| 核对失去蓝图暴露的字段Review fields that lost Blueprint exposure | 一批原本可编辑、可被蓝图读写的配置字段变成只读或在 Details 里不再出现,见《配置资产上失去蓝图暴露的字段》。A batch of config fields that used to be editable and readable from Blueprints are now read-only or gone from Details — see Fields That Lost Blueprint Exposure below. | 读或写这些字段的蓝图节点编译失败;习惯在 Details 里改的字段会找不到。Blueprint nodes that read or set them stop compiling, and fields you used to edit in Details are no longer there. |
重烘会给资产补上什么 What a Re-bake Fills In
1.20 的动画资产比 1.19.24 多了一整套烘焙产物。旧资产能照常打开、照常加载,不会有一条警告——空表看起来和「这个单位本来就没配」一模一样,所以下表按「不重烘会发生什么」来排,方便你对号入座。
A 1.20 animation asset carries a whole set of products that a 1.19.24 asset never had. Old assets open and load without a single warning — an empty table looks exactly like "this unit never had that feature", so the table below is ordered by what goes missing without a re-bake.
| 烘焙产物Bake product | 不重烘的后果What you lose without it |
|---|---|
| 瞄准偏置网格Aim offset grid | 瞄准时没有逐骨偏置变形:炮塔照旧按偏航与俯仰转,但肩膀、上身不会跟着动,视觉上看不到瞄准动作。No per-bone offset while aiming: the turret still yaws and pitches, but shoulders and torso no longer follow, so there is no visible aiming motion. |
| 布娃娃刚体与关节Ragdoll bodies and joints | 没有刚体可摆,死亡时的布娃娃倒地形态不出现,尸体不会以布娃娃方式倒下。There are no bodies to simulate, so the ragdoll death pose never appears and the corpse never falls as a ragdoll. |
| 尸体姿势表Ragdoll pose table | 取尸体姿势的查询拿不到数据(常规渲染不受影响)。Queries that read a corpse pose come back empty; ordinary rendering is unaffected. |
| 去重片段池Deduplicated clip pool | 按相位找片段的读取方读不到东西,只能回退到旧的八槽动画表:动画还能放,但相位视图相关的特性拿不到数据。Anything that looks a clip up by phase finds nothing and falls back to the old eight-slot table: animation still plays, but phase-view features get no data. |
| 命名动画集合Named animation sets | 每 agent 动画套的相位视图读不到片段,要等一次真正的重烘。The per-agent animation-set phase view has no clips to read until a real bake runs. |
| 逐片段通知事件Per-clip notify events | 片段上的通知(受击反应、跳跃相位切换等)全部不触发。Notifies on clips — hit reactions, jump phase switches and the rest — never fire. |
| 同步标记Sync markers | 换片段时没有同名标记可对齐,左右脚踩空,脚部同步失效。Nothing to align on when clips switch, so the feet slip and foot sync stops working. |
| 插槽轨迹Socket tracks | 挂在 socket 上的武器与挂件没有轨迹可用,位置不再跟随骨骼。Weapons and props attached to a socket have no track to follow, so they stop tracking the bone. |
| 移动速度键Locomotion speed keys | 烘焙不会把速度键发布进单位配置:旧配置保持旧行为,你在面板上新画的曲线不生效。The bake does not publish speed keys into the unit config: old configs keep their old behaviour and a curve you draw on the panel has no effect. |
| 跳跃三段片段Jump clip trio | 空项不会覆盖配置:跳跃相位仍用旧条目,新填的起跳 / 下落 / 落地片段不生效。Empty entries never overwrite the config: the jump phase keeps its old entries and the new takeoff / falling / landing clips do nothing. |
Save 不等于烘焙。在建模面板上按 Save 只写作者面数据,不会产出上面这些表,还会把资产的烘焙标记清掉——烘完之后不要再用一次 Save 收尾。另外,资产里的旧八槽动画表与新的片段池在烘焙时会逐项比对,只烘一半会得到一份自相矛盾的资产——一次烘完,不要分几次。
Save is not a bake. Pressing Save on the modelling panel writes authoring data only, produces none of the tables above, and clears the asset's bake marker — do not finish a session with a Save after baking. The bake also cross-checks the legacy eight-slot table against the new clip pool, so baking half of the asset leaves it contradicting itself: bake it in one pass, not several.
插槽轨迹是在动画烘焙之后由另一道 socket 烘焙写进去的。改过骨骼 socket 之后,除了重烘动画资产,还要重跑写插槽轨迹的那一步,否则挂件的轨迹还是旧的。
Socket tracks are written by a separate socket bake that runs after the animation bake. After changing a skeleton's sockets, re-run that step as well as the animation bake, or the props keep following the old tracks.
会直接报错的蓝图与 C++ What Breaks at Compile Time
这一节的共同点是失败得很大声:蓝图节点编译不过、C++ 编译不过,不会静默失效。1.20 删掉或改名的条目都没有重定向兜底,所以升级后第一件事是让工程编译通过,再谈运行效果。
Everything here fails loudly: Blueprint nodes and C++ both refuse to compile rather than silently doing nothing. Nothing removed or renamed in 1.20 is covered by a redirect, so the first job after upgrading is to get the project compiling again.
消失与改名的枚举条目 Enum Entries That Vanished or Renamed
| 枚举Enum | 1.19.241.19.24 | 1.201.20 | 你要做什么What to do |
|---|---|---|---|
EAttackState |
最前两态是 Aim_FirstExec 与 Aim,之后才是 PreCast_FirstExec、PreCast、PostCast、Cooling、Completed。The first two entries were Aim_FirstExec and Aim, followed by PreCast_FirstExec, PreCast, PostCast, Cooling, Completed. |
两个瞄准态删除(瞄准升级成独立行为 Aim),其余五态整体前移两位。Both aim states are gone (aiming became the separate Aim behaviour) and the remaining five shifted two slots earlier. |
Switch 上对 Aim / Aim_FirstExec 的分支会编译失败,改接到 Aim 行为。把状态按序号存过的地方(存档、蓝图变量)会整体错位两位,要对一遍。Switch branches on Aim / Aim_FirstExec fail to compile — rewire them to the Aim behaviour. Anywhere the state was stored as a number (saves, Blueprint variables) is now two entries off and needs re-checking. |
EBattleFlags |
第 46、47 位叫 Flag46 / Flag47。Bits 46 and 47 were named Flag46 / Flag47. |
就地改名为 Jumping / Aiming,位号不变(仍是第 46、47 位),其后的条目编号与位号都没动。Renamed in place to Jumping / Aiming; the bit numbers are unchanged (still bits 46 and 47) and every later entry keeps its index and bit. |
C++ 里写 EBattleFlags::Flag46 / Flag47 会编译失败,换成新名字。蓝图枚举按整数存,引脚不会断,只是显示名变了;磁盘上存过的旗标掩码含义不变。C++ that writes EBattleFlags::Flag46 / Flag47 fails to compile — use the new names. Blueprint enum pins are integer-backed, so they survive; only the label changes. Stored flag masks keep their meaning. |
运行期片段改名 Runtime Fragment Renames
六个运行期片段的类型名在 1.20 统一从 _Final 后缀改成 RT 后缀,没有重定向。
Six runtime fragment types changed their suffix from _Final to RT in 1.20, with no redirect.
| 1.19.241.19.24 | 1.201.20 |
|---|---|
FAgentHostConfig_Final | FAgentHostConfigRT |
FActorSpawnConfig_Final | FActorSpawnConfigRT |
FFxConfig_Final | FFxConfigRT |
FProjectileConfig_Final | FProjectileConfigRT |
FLootConfig_Final | FLootConfigRT |
FSoundConfig_Final | FSoundConfigRT |
这六个都是运行期片段:值在单位出生时从你的作者配置拷出来,数据资产里不存它们。所以改名之后只要把 Break Struct / Set Struct 节点换成新名字,行为不需要补任何数据。
All six are runtime-only: their values are copied from your authoring config when a unit spawns, and no data asset stores them. After the rename, the only work is pointing Break Struct / Set Struct nodes at the new types — no data needs filling in.
配置资产上失去蓝图暴露的字段 Fields That Lost Blueprint Exposure
1.20 重排了不少配置资产字段的暴露级别:一批原本可编辑、可被蓝图读写的属性变成只读,或者不再出现在 Details 里。值本身照旧生效——运行时还是读它们,「你能改什么」变了。
1.20 reworked exposure on many config-asset properties: a batch that used to be editable and readable from Blueprints is now read-only, or no longer shows in Details. The values still take effect at runtime — what changed is what you can change.
受影响的只有两类东西:蓝图里读取或写入这些属性的节点会编译失败;习惯在 Details 里直接改的字段要改走对应面板或命令。逐条清单不在这里重复,见配置资产字段参考:MassBattleAgentConfigDataAsset。
Only two things are affected: Blueprint nodes that read or set those properties fail to compile, and fields you used to edit straight in Details have to move to the matching panel or command. The itemised list lives in the field reference rather than here: MassBattleAgentConfigDataAsset.
编辑器侧的同类变化也要留意:LOD 数据上的旧 Mode 选择器换成了 RenderMode,LODIndex 也不再能在 Details 里直接改。这类字段请改走 LOD 面板。
One same-shaped change sits on the editor side: the LOD data's old Mode selector is now RenderMode, and LODIndex is no longer editable in Details. Fields like these are edited from the LOD panel now.
编辑器面板里能用的新东西 What You Can Use on the Panels
烘焙相关的面板在 1.20 里被重做过一遍。下面四件事是你在升级后立刻用得上的;面板的整体布局与操作方式见 Authoring & Baking。
The baking panels were rebuilt in 1.20. These four are the things you will use right after upgrading; the overall layout is covered in Authoring & Baking.
移动曲线编辑器 Locomotion Curve Editor
Locomotion 区是一条 1D 曲线:横轴速度、纵轴播放速率,关键帧按 Idle / Walk / Run 三色区分,同类两点之间保持同一片段、跨类两点交叉淡化。拖动关键帧、双击加点、右键菜单、右键拖动平移、Ctrl + 右键拖拽缩放两个轴;松手才发命令,所以一次拖动只产生一条命令。不想画曲线就填 idle / walk / run 三个速度。The Locomotion area is a 1D curve: speed on the X axis, play rate on the Y, keys colour-coded Idle / Walk / Run — two keys of the same class hold one clip, two of different classes cross-fade. Drag keys, double-click to add, right-click for the menu, right-drag to pan, Ctrl + right-drag to zoom both axes; a command is sent on release, so one drag is one command. Fill in the idle / walk / run speeds instead if you would rather not draw.
预览 Actor Preview Actor
面板按钮在场景里起一个预览模型,循环播 Locomotion 或 Jump:真的走动、真的转身,带转向与加减速。用来调脚滑步最省事。起停与切换模式都能从面板按钮或命令做。A panel button drops a preview model into the level and loops Locomotion or Jump on it: it really walks, really turns, with steering and acceleration. It is the quickest way to tune foot sliding. Start, stop and mode switching all work from the panel button or a command.
先画草稿,后有资产 Draft Before the Asset
动画资产还没建也能开工:未绑定 ATT 时,速度键与三个片段(起跳 / 下落 / 落地)存成草稿,首次 Save 一次性写进新建的动画资产。绑到一份已有资产上时草稿会被丢弃并给出提示——先定好这块要落到哪个单位,再画。You can start before the animation asset exists: with no ATT bound, speed keys and the three jump clips (takeoff / falling / landing) are kept as a draft, and the first Save writes them into a newly created asset in one go. Bind an existing asset instead and the draft is discarded with a message — decide which unit the block belongs to before drawing.
每个动作都有命令 Every Action Is a Command
面板的主要动作各自有一条稳定 ASCII id 的命令,返回值是 bOk / Code / Message / Outputs / Data,可带 dry run。关卡脚本、批处理与控制台都能直接调,不必点控件——比按坐标点按钮稳得多。Each main panel action has a command with a stable ASCII id, returning bOk / Code / Message / Outputs / Data, with optional dry run. Level scripts, batch jobs and the console can call them directly instead of clicking — far steadier than driving buttons by position.
另外两处顺手改动:作者面数值行直接标单位(cm / cm/s / ° / s);动画数据与骨骼数据这类烘焙产物改为只读,免得把烘出来的值当配置改掉。
Two smaller conveniences: authoring rows label their units (cm / cm/s / ° / s), and baked products such as animation data and bone data are read-only, so you cannot mistake a baked value for a setting.
1.20 新增一览 What's New in 1.20
下面几条是 1.20 里最直接影响你日常制作与调参的新增,每条一行;细节见对应特性说明。
What follows is what most affects day-to-day authoring and tuning in 1.20, one line each; the details live in the feature pages.
- 瞄准关节——瞄准从攻击回合里拆出来成为独立行为:偏航与俯仰各有自己的限位、速度、加速度与容差,先对准再交给攻击,结果经
OnAimAligned/OnAimTimeout回传。Aim joint — aiming is no longer part of the attack turn: yaw and pitch each carry their own limits, speed, acceleration and tolerance, aim completes before the attack starts, and the result comes back throughOnAimAligned/OnAimTimeout. - 通知表——一张表回答「什么时候触发、做什么」:生成 actor / 特效 / 音效 / 弹体 / 战利品,切行为,触发受击与死亡反应,起布娃娃。触发来源可以是片段上的 notify 名,也可以是事件族加阶段。Notify table — one table answers "when to fire, and what to do": spawn an actor, FX, sound, projectile or loot, switch behaviour, trigger hit and death reactions, start a ragdoll. The trigger is either a clip notify name or an event family plus stage.
- 武器命中体——手持武器最多带 4 个判定体(球 / 胶囊 / 盒)与 4 条命中通道,按攻击回合比例开窗;武器就是握在手上的弹体,丢出即沿自己的弹道飞,不重生成。Weapon hit volumes — a held weapon carries up to four volumes (sphere, capsule, box) and four hit channels that open by attack-turn ratio; the weapon is a projectile held in hand, and throwing it flies the same entity, no respawn.
- 骨骼 socket——攻击、特效、音效、弹体四类生成配置都能指定 socket,生成物从烘焙出的骨骼 socket 出生;逐骨命中单独记录。Bone sockets — attack, FX, sound and projectile spawn configs can name a socket, and the spawn comes out of a baked bone socket; per-bone hits are recorded separately.
- 布娃娃——死亡时按动画资产烘出的刚体与关节表播种尸体,作者只填三个参数:模拟时长、阻尼、抛出初速。Ragdoll — on death the corpse is seeded from the rigid-body and joint tables baked into the animation asset, and you author just three values: simulation duration, damping and launch speed.
- 每 agent 动画套——一份配置可以烘多套片段,每个 agent 出生时各抽一套;移动与跳跃各自成套。Per-agent animation sets — one config can bake several clip sets and each agent draws one at spawn; locomotion and jump are drawn independently.
- 15 种语言——面板标签、tooltip 与结构体说明共用同一套键,含简体与繁体中文。Fifteen languages — panel labels, tooltips and struct descriptions share one key set, Simplified and Traditional Chinese included.
- 命令层——面板每个主要动作都有一条命令,稳定 ASCII id,返回
bOk/Code/Message/Outputs/Data,可带 dry run。Command layer — every main panel action has a command with a stable ASCII id returningbOk/Code/Message/Outputs/Data, with dry run available.
相关页面:Authoring & Baking · 功能简介Features · 相关 API:MassBattleAgentConfigDataAsset
Related pages: Authoring & Baking · Features · Related API: MassBattleAgentConfigDataAsset
升级自检清单 Upgrade Checklist
| # | 检查Check | 通过标准Passes When |
|---|---|---|
| 1 | 每个单位的动画资产都重新生成并重烘过一次Every unit's animation asset was regenerated and re-baked once | 烘焙面板里选中单位能看到新的烘焙表与瞄准数据The bake panel shows the new baked tables and aim data for the unit |
| 2 | 加载旧资产时的迁移警告都处理过了Every migration warning seen on load was handled | 日志里没有 AnimData / Notify 开头的迁移警告No AnimData / Notify migration warning in the log |
| 3 | 蓝图里对生成数组、瞄准参数的写入已迁移到新入口Blueprint writes to spawn arrays and aim values were moved to the new authoring surface | 通知表与瞄准块里的值 = 你期望的值The notify table and aim block hold the values you expect |
| 4 | 远距剔除、子体生成偏移、命中时刻三处已重填Cull, child spawn offsets and hit timing were re-entered | 远处单位会消失;子体生在正确位置;命中在预期帧发生Distant units disappear, children spawn where they should, hits land on the expected frame |
| 5 | 一份代表性单位跑过待机 / 移动 / 跳跃 / 瞄准击发 / 死亡掉落One representative unit ran idle / move / jump / aimed shot / death drop | 五段表现都与 1.19.24 一致,或差异是你想要的All five look like 1.19.24, or differ the way you intended |