依据:导出 JSON 时每个 key 后面紧跟被读的字段,所以 key 名就是字段语义。 - 可读载荷 spine398.jar(DecAll 产出)javap -c sB 能直接看到 key 紧跟 getfield; - 未解密载荷用 strings.tsv(class sB, method D) 的密文顺序核对,281 条顺序逐条一致(三段解密器各自成组)。 新增:Gp(骨骼) length/transform/skin;GU(插槽) color/dark/attachment/blend(注意是 B 不是 D); 各附件 GO/GE/Gx/Gr/Gs 与附件基类 Gn;约束 Gw/GX/GD。 修正:删掉被导出器证伪的 Gp.Class=length 与'静姿态 setup 组'推断(C:F 就是 length)。 同步:names.tsv 合并成 297 条,payload-named.zip 重新产出。
11 KiB
11 KiB
| 1 | # 名字映射锚点(只放**已确定**的;每条都要能说清依据,依据写进 混淆名对照表.md) | |||
|---|---|---|---|---|
| 2 | # 列:owner | name | desc | newName (desc 写 * 表示该 owner 下所有同名成员) |
| 3 | # | |||
| 4 | # ---- libGDX:Table(载荷名 et);依据 Obf.java + 直读字节码 ---- | |||
| 5 | et | D | (Ldl;)LdR; | add |
| 6 | et | D | ([Ldl;)Let; | addAll |
| 7 | et | I | ()LdR; | row |
| 8 | et | Z | (Z)V | setFillParent |
| 9 | et | SourceFile | ()V | clearChildren |
| 10 | et | D | (Ljava/lang/CharSequence;)LdR; | addLabel |
| 11 | # ---- libGDX:Cell(载荷名 dR)---- | |||
| 12 | dR | StackMapTable | ()LdR; | expand |
| 13 | dR | D | ()LdR; | fill |
| 14 | dR | C | ()LdR; | left |
| 15 | dR | S | ()LdR; | top |
| 16 | # ---- libGDX:Button / Label(保名类)---- | |||
| 17 | com/badlogic/gdx/scenes/scene2d/ui/Button | String | ()Z | isChecked |
| 18 | com/badlogic/gdx/scenes/scene2d/ui/Button | I | (Z)V | setChecked |
| 19 | com/badlogic/gdx/scenes/scene2d/ui/Button | B | (ZZ)V | setCheckedAndFire |
| 20 | com/badlogic/gdx/scenes/scene2d/ui/Button | a_ | (Z)V | setDisabled |
| 21 | com/badlogic/gdx/scenes/scene2d/ui/Label | D | (Ljava/lang/CharSequence;)V | setText |
| 22 | com/badlogic/gdx/scenes/scene2d/ui/Label | D | ()Ljava/lang/StringBuilder; | getTextBuilder |
| 23 | # ---- libGDX:SelectBox(载荷名 KP);依据 DumpSites 解出的 (Ljava/lang/String;)V ---- | |||
| 24 | KP | B | (Ljava/lang/String;)V | setSelected |
| 25 | KP | B | ()Ljava/lang/String; | getSelected |
| 26 | KP | B | (I)V | setSelectedIndex |
| 27 | # ---- 场景模型:Gp = 骨骼;依据 gp_2.java 的 toString()/D(String,boolean)V ---- | |||
| 28 | Gp | D | Ljava/lang/String; | name |
| 29 | Gp | D | (Ljava/lang/String;Z)V | setName |
| 30 | # ---- 场景模型:Gp = 骨骼的变换字段 ---- | |||
| 31 | # 证据:用户在编辑器里把 root 转到 341.456 / 平移(-168,-116) / 缩放(0.8799,0.572) / 斜切(-52.221,-28.63), | |||
| 32 | # 面板 Inspector 同步显示 Z=-168.00009 V=-116.0 F=33.676704 Code=0.8799178 SourceFile=0.5720396 | |||
| 33 | # StackMapTable=-52.220505 LineNumberTable=-28.629883 —— 一一对应,故确定语义。 | |||
| 34 | Gp | Z | F | x |
| 35 | Gp | V | F | y |
| 36 | Gp | F | F | rotation |
| 37 | Gp | Code | F | scaleX |
| 38 | Gp | SourceFile | F | scaleY |
| 39 | Gp | StackMapTable | F | shearX |
| 40 | Gp | LineNumberTable | F | shearY |
| 41 | # C 只能是 length,故整组推断不成立;这些字段的语义**目前未定**,不写进表里(宁可显示混淆名也不写错名)。 | |||
| 42 | # Gp | D | F | setupX |
| 43 | # Gp | B | F | setupY |
| 44 | # Gp | L | F | setupRotation |
| 45 | # Gp | I | F | setupScaleX |
| 46 | # Gp | S | F | setupScaleY |
| 47 | # 引用类字段:skeleton 由 hd.D(set, bone.D)+GP.D(LGp;) 的用法确定;parent 由创建骨骼时 bone.D=parent 确定 | |||
| 48 | Gp | D | LGP; | skeleton |
| 49 | Gp | D | LGp; | parent |
| 50 | Gp | B | Lcom/badlogic/gdx/graphics/Color; | color |
| 51 | # ---- 2026-10-16 setup pose 实测补充(用户拍照:root/bone/slot/region 四种对象)---- | |||
| 52 | # 其中 length 已被 JSON 导出器改成 Gp.C:F(导出器写 length 时读的就是 C)。 | |||
| 53 | # 剩下 Class/Ljava/java/init/String 这几个 float 导出器一个都没用,语义未定,不写进表。 | |||
| 54 | # GU(插槽):面板 Slot 属性只有 Name/Color;Inspector 里 String D=mega_dg4、Gp D=所属骨骼 | |||
| 55 | GU | D | Ljava/lang/String; | name |
| 56 | GU | D | LGp; | bone |
| 57 | # GO(region 附件 mega_dg4):面板只有 Image path/Color;Inspector 六个 float 与 | |||
| 58 | # Region 附件的 旋转49.00014 / 缩放(1.997,1.335) / 宽高(157,154) 一一对应 | |||
| 59 | GO | S | F | rotation |
| 60 | GO | L | F | scaleX |
| 61 | GO | I | F | scaleY |
| 62 | GO | C | F | width |
| 63 | GO | Z | F | height |
| 64 | # ---- ScrollPane(保名类 com/badlogic/gdx/scenes/scene2d/ui/ScrollPane)---- | |||
| 65 | # 依据:MapMethods 对 gdx-1.11.0 指纹比对(tools/deobf/anchors-libgdx.tsv 自动生成), | |||
| 66 | # 并且**踩过一次**:一直以为 B(ZZ)V 是 setForceScroll,传了 (false,true), | |||
| 67 | com/badlogic/gdx/scenes/scene2d/ui/ScrollPane | B | (ZZ)V | setScrollingDisabled |
| 68 | com/badlogic/gdx/scenes/scene2d/ui/ScrollPane | L | (FFFF)V | scrollTo |
| 69 | com/badlogic/gdx/scenes/scene2d/ui/ScrollPane | D | (Ldl;)V | addActor |
| 70 | com/badlogic/gdx/scenes/scene2d/ui/ScrollPane | D | (Ldl;Z)Z | removeActor |
| 71 | # ---- ScrollPane / Cell 的滚动与尺寸方法(用于把面板列表改成可滚动;依据:MapMethods 指纹比对)---- | |||
| 72 | # ScrollPane:B(ZZ)V=setScrollingDisabled、I(ZZ)V=setForceScroll、L(ZZ)V=setOverscroll | |||
| 73 | #(候选顺序 size/… 已核对;踩坑:把 B(ZZ) 当 setForceScroll 用,等于关掉纵向滚动) | |||
| 74 | com/badlogic/gdx/scenes/scene2d/ui/ScrollPane | I | (ZZ)V | setForceScroll |
| 75 | com/badlogic/gdx/scenes/scene2d/ui/ScrollPane | L | (ZZ)V | setOverscroll |
| 76 | # Cell 的 (F)LdR; 成组按声明顺序:B=size L=width I=height S=minWidth C=minHeight Z=prefWidth V=prefHeight | |||
| 77 | dR | B | (F)LdR; | size |
| 78 | dR | L | (F)LdR; | width |
| 79 | dR | I | (F)LdR; | height |
| 80 | dR | S | (F)LdR; | minWidth |
| 81 | dR | C | (F)LdR; | minHeight |
| 82 | dR | Z | (F)LdR; | prefWidth |
| 83 | dR | V | (F)LdR; | prefHeight |
| 84 | # ---- Actor 的 Touchable(点击/进入命中相关;用于让 ScrollPane 收到鼠标进入→拿到 scroll focus)---- | |||
| 85 | # 定位方式(不靠名字):`Actor.getTouchable()` = **无参且返回枚举**的那个方法;枚举类 = dv; | |||
| 86 | # libGDX Touchable 声明顺序 enabled/disabled/childrenOnly → 第 0 个常量就是 enabled。 | |||
| 87 | # 现象佐证:ScrollPane 默认 childrenOnly 时自己不是命中目标,收不到 enter → 滚轮事件不会送到它, | |||
| 88 | # 但程序化 scrollY() 是生效的(实测 before=0 after=200)。 | |||
| 89 | dl | L | (Ldv;)V | setTouchable |
| 90 | # ---- Cell.height(2026-10-16 实测确认)---- | |||
| 91 | # Cell.I(900) -> root 高度 580 -> 1080(其它候选 L/B/Z/V/C/S/F 都没这个效果) | |||
| 92 | # => Cell.I(float) 就是 height(float);现象佐证:设了它之后列表区出现滚动条、可滚。 | |||
| 93 | dR | I | (F)LdR; | height |
| 94 | # ---- Stage 宽高(2026-10-16 实测)---- | |||
| 95 | # 依据:编辑器窗口 4K 下读 Stage 的无参 float 只有两个:B=2044、D=3726(高<宽), | |||
| 96 | # 故 B()F = getHeight、D()F = getWidth。 | |||
| 97 | dt | B | ()F | getHeight |
| 98 | dt | D | ()F | getWidth |
| 99 | # ---- 图片附件 GO 的 7 个 float 字段(2026-10-16 确认,两条独立证据)---- | |||
| 100 | # 证据 1:编辑器自己的 JSON 写入器 sb_0.java:669-675(写 region 时依次读) | |||
| 101 | # x=GO.D y=GO.B scaleX=GO.L scaleY=GO.I rotation=GO.S width=GO.C height=GO.Z | |||
| 102 | # 旁证:width/height 与图片实际像素一致(mega_dg4.png = 157x154,运行时读到的 C=157.0 Z=154.0) | |||
| 103 | # 证据 2:GO 自己的 setTransform 字节码 javap -c GO 的 D(FFFFF)V: | |||
| 104 | # putfield D(第1个参数) -> putfield B(2) -> putfield S(3) -> putfield L(4) -> putfield I(5) | |||
| 105 | # => D(float) = x、B(float) = y(这两个字段名与别的字段重复,必须按类型取 float 那个) | |||
| 106 | GO | D | F | x |
| 107 | GO | B | F | y |
| 108 | GO | D | (FFFFF)V | setTransform |
| 109 | # 图片附件没有 shear 字段:region 只有 x/y/rotation/scaleX/scaleY(+ 只读的 width/height) | |||
| 110 | # ---- 附件删除(编辑器自己的删除流程)---- | |||
| 111 | # 证据:javap -c Gn 的 L()V => this.GU.skeleton.removeAttachment(this, true, true) | |||
| 112 | # GP 的 D(Gn,ZZ)V 字节码里 getfield L:LfI; fI.B(Object,boolean) 把它从附件表移除, | |||
| 113 | # 并同步清掉 GU 上指向它的引用(同一方法里遍历 Z:LfI 即插槽表)。 | |||
| 114 | Gn | L | ()V | delete |
| 115 | GP | L | (LGn;ZZ)V | removeAttachment |
| 116 | GP | L | LfI | attachments |
| 117 | GP | Z | LfI | slots |
| 118 | # ---- 附件种类 / 占位附件 ---- | |||
| 119 | Gn | I | ()Ljava/lang/String; | type |
| 120 | # 附件上指向自己所属占位附件的引用:GP.removeAttachment 的占位分支按它级联删除 | |||
| 121 | Gn | D | LHi; | placeholderRef |
| 122 | # ============================================================================ | |||
| 123 | # 【权威来源】编辑器自带的 JSON 导出器(载荷类 sB,2026-10-16) | |||
| 124 | # ---------------------------------------------------------------------------- | |||
| 125 | # 为什么权威:导出 JSON 时**每个 key 后面紧跟被读的那个字段**,key 名就是字段语义。 | |||
| 126 | # 证据链(两处独立,顺序逐条一致): | |||
| 127 | # 1) 可读载荷 ~/Desktop/spine398/spine398.jar(DecAll 产出:ldc 密文已换明文、解密调用已换 nop) | |||
| 128 | # 2) 未解密载荷 (payload-public.zip) 的 strings.tsv(class sB, method D):同一(类,方法)内 | |||
| 129 | # 密文顺序 = 字节码顺序,281 条与可读副本里的 key 顺序逐条对得上(含三组解密器)。 | |||
| 130 | # 导出器方法:sB.D(GP,boolean,boolean,gy,StringBuilder)=骨架;sB.D(gy,String,Gn,boolean)=附件。 | |||
| 131 | # 字段名重复(D/B/L/I/S…)时**必须按描述符取**,表里已经带描述符。 | |||
| 132 | # ============================================================================ | |||
| 133 | Gp | C | F | length |
| 134 | # ^ length 是 C(之前写的 Class:F 是错的,已作废) | |||
| 135 | Gp | D | LiC; | transform |
| 136 | # ^ iC = 继承模式枚举(normal/onlyTranslation/noScale…) | |||
| 137 | Gp | String | Z | skinOverride |
| 138 | GU | B | Lcom/badlogic/gdx/graphics/Color; | color |
| 139 | GU | I | Lcom/badlogic/gdx/graphics/Color; | darkColor |
| 140 | GU | I | Z | hasDarkColor |
| 141 | GU | B | LGn; | attachment |
| 142 | GU | D | Liz; | blend |
| 143 | # ^ iz = 混合模式枚举 | |||
| 144 | # ---- Gn = 附件基类 ---- | |||
| 145 | Gn | D | Ljava/lang/String; | name |
| 146 | # ---- GO = 图片(region)附件 ---- | |||
| 147 | GO | D | Lcom/badlogic/gdx/graphics/Color; | color |
| 148 | GO | B | Ljava/lang/String; | path |
| 149 | # ---- GE = 点(point)附件 ---- | |||
| 150 | GE | B | Lcom/badlogic/gdx/graphics/Color; | color |
| 151 | GE | D | F | x |
| 152 | GE | B | F | y |
| 153 | GE | L | F | rotation |
| 154 | # ---- Gx = 网格(mesh / linkedmesh)附件 ---- | |||
| 155 | Gx | B | Lcom/badlogic/gdx/graphics/Color; | color |
| 156 | Gx | B | Ljava/lang/String; | path |
| 157 | Gx | D | Lga; | uvs |
| 158 | Gx | D | Lhp; | triangles |
| 159 | Gx | B | LHl; | vertices |
| 160 | Gx | L | I | hull |
| 161 | # ^ 导出器写 hull = Gx.L / 2 | |||
| 162 | Gx | D | Lgf; | edges |
| 163 | Gx | StackMapTable | Z | deform |
| 164 | Gx | D | F | width |
| 165 | # ^ 只在导出器带 extra 标志时写 | |||
| 166 | Gx | B | F | height |
| 167 | Gx | D | LGx; | parentMesh |
| 168 | Gx | D | LGT; | skin |
| 169 | Gx | D | LHi; | parentPlaceholder |
| 170 | # ^ 父网格的占位附件(Hi) | |||
| 171 | Gx | D | Ljava/lang/String; | parentName |
| 172 | # ---- Gr = 包围盒(boundingbox)附件 ---- | |||
| 173 | Gr | I | Lga; | vertexCount |
| 174 | Gr | B | LHl; | vertices |
| 175 | Gr | B | Lcom/badlogic/gdx/graphics/Color; | color |
| 176 | # ---- Gs = 裁剪(clipping)附件 ---- | |||
| 177 | Gs | I | Lga; | vertexCount |
| 178 | Gs | B | LHl; | vertices |
| 179 | Gs | B | Lcom/badlogic/gdx/graphics/Color; | color |
| 180 | Gs | B | LGU; | end |
| 181 | # ^ 裁剪结束的那个插槽 | |||
| 182 | # ---- Gw = IK 约束 ---- | |||
| 183 | Gw | D | Ljava/lang/String; | name |
| 184 | Gw | D | LGp; | target |
| 185 | Gw | D | F | mix |
| 186 | Gw | L | F | softness |
| 187 | Gw | F | Z | uniform |
| 188 | Gw | S | Z | stretch |
| 189 | Gw | Z | Z | compress |
| 190 | # ---- GX = 变换(transform)约束 ---- | |||
| 191 | GX | D | Ljava/lang/String; | name |
| 192 | GX | B | LGp; | target |
| 193 | GX | SourceFile | F | rotation |
| 194 | GX | S | Z | local |
| 195 | GX | C | Z | relative |
| 196 | GX | L | F | x |
| 197 | GX | I | F | y |
| 198 | GX | StackMapTable | F | scaleX |
| 199 | GX | init | F | scaleY |
| 200 | GX | LineNumberTable | F | shearY |
| 201 | GX | S | F | rotateMix |
| 202 | GX | D | F | translateMix |
| 203 | GX | Z | F | scaleMix |
| 204 | GX | F | F | shearMix |
| 205 | # ---- GD = 路径(path)约束 ---- | |||
| 206 | GD | D | Ljava/lang/String; | name |
| 207 | GD | D | LGU; | target |
| 208 | GD | D | Ljm; | positionMode |
| 209 | GD | D | Ljo; | spacingMode |
| 210 | GD | D | Ljn; | rotateMode |
| 211 | GD | Z | F | rotation |
| 212 | GD | D | F | position |
| 213 | GD | V | F | spacing |
| 214 | GD | S | F | rotateMix |
| 215 | GD | L | F | translateMix |