YuehaiTeam / webstatic-extractor

一键从原神网页活动中提取spine模型及相关图片素材 Extract static resources from genshin web activity pages in one click!
https://webstatic.cocogoat.work
BSD 3-Clause "New" or "Revised" License
92 stars 8 forks source link

4.6版本前瞻 没能提取完所有资源 #8

Open HinanawiTenshi104 opened 5 months ago

HinanawiTenshi104 commented 5 months ago

https://act.mihoyo.com/ys/event/e20240413preview-pvtga2/ 提取不到spine等资源。 特地试了试以前其他活动网页,还能正常提取。

sabrisangjaya commented 5 months ago

it seems the data structure changes since this new version preview from SPINE_MANIFEST to Mr object var before t.SPINE_MANIFEST={Emoji:{atlas:n(105),json:n(170)},g1_L_xmh:{atlas:n(106) after Mr={aleiqilou:{atlas:Object.values(Object.assign(

HinanawiTenshi104 commented 5 months ago

https://act.mihoyo.com/ys/event/e20240419arlecchino-vn0wpz/ 看了下这次(2024.4.19)的新活动【午夜魅影】,好像数据结构又从Mr object var变回了 SPINE_MANIFEST 这次webstatic-extractor能正常提取。 不知道是不是原神那边不同小组分工的问题。

xytoki commented 5 months ago

看起来是fastscene的代码压缩方式有变,我去研究研究新的数据结构


看代码是用手写的部分替换了一些自动生成的部分,导致代码压缩后数据结构变了,他甚至把player挂window上了,之前没出现过的…… 前瞻的,看起来是手写: image 活动的,比较符合fastscene自动生成的逻辑: image


压缩方式变化原来是上了vite啊…… image 难怪没有__esModule了,不好办


Mr没有以任何方式向外暴露,这下得考虑上ast了