flash页游seer2折腾日记3-资源附录表

in 折腾一下 with 0 comment

在折腾日记1中,简单介绍了利用chrome的控制台捕获请求来获取游戏资源的问题。很有效,但也很有限。于是有了这篇折腾日记-3。

注:s2折腾系列所涉及的游戏文件所有权归上海淘米公司所有,仅供大家学习交流使用。,如需商业用途请联系淘米,以避免不必要的误会!

前言

从1开始获取资源,2开始尝试反编译资源。反编译后发现了一个很有用的数据类URLUtil,这个类中,包含了游戏中出现的绝大多数资源。

ennn,为什么说绝大多数呢?

猜测,刚开始游戏规划时将所有需要请求的res资源全部经由这个类处理,但是后来随着游戏高管的离职、游戏的改名,开发人员没人管了,开始放飞自我了!不在拘泥于条条框框了,哪里需要就直接在哪里加!

1566813482660.png

经过对URLUtil的简单分析,发现资源有以下特征。

文件类型

xml, swf, mp3, jpg

文件目录

/config/
/dll/
/ip/
/module/app/
/res/*
/version/

除了res之外,其余均为配置文件,游戏数据相关内容都由这些文件处理,而res文件专门负责游戏的显示,与用户交互。

怎么用

游戏链接+附表数据+数字或字母+文件后缀名

其中[s]代表字符串,[i]代表数字。字符串没有统一规则,随缘吧;数字一般都连续,具体范围可参考表一(范围表)

例如:http://seer2.61.com/res/pet/demo/1.swf

附表:

附1:范围表

数据来自: com.taomee.seer2.app.inventory.constant.ItemIdRange

BASIC:[1,100000];
COLLECTION:[400001,499999];
EMBLEM:[300001,399999];
EQUIP:[100001,199999];
MEDAL:[500001,500500];
PET_RELATE:[200001,299999];
PET_SPIRT_TRAIN:[800001,805999];
SPECIAL_ITEM:[500501,610000];

附2:路径表

以下数据整合自com.taomee.seer2.core.utils.URLUtil和chrome控制台捕获的数据

com/config/
com/dll/
com/ip/
com/module/
com/module/app/
com/res/
com/res/activity/
com/res/activity/animation/[i]/[s].swf
com/res/activity/animation/intro/
com/res/activity/animation/leagueCruise/
com/res/activity/animation/planet/
com/res/activity/animation/planet/animation/
com/res/activity/character/
com/res/activity/dialog/
com/res/activity/dialog/biluo/
com/res/activity/fullScreen/
com/res/activity/icon/
com/res/activity/mobile/
com/res/activity/monster/
com/res/activity/moreEnjoy/
com/res/activity/notice/
com/res/activity/noticeNew/
com/res/activity/npcTalk/
com/res/activity/petInfo/
com/res/activity/wwbattle/
com/res/activity/xml/
com/res/animation/
com/res/caving/
com/res/cavingnotice/
com/res/common/
com/res/common/home/
com/res/common/team/
com/res/common/team/boss/
com/res/common/team/boss/bossPreview/
com/res/common/team/effect/icon/[s].swf
com/res/common/team/shop/
com/res/copy/animation/
com/res/copy/fullScreen/
com/res/copy/npcTalk/
com/res/dream/
com/res/dream/closeOpenEye.swf
com/res/emotion/
com/res/firstTeach/
com/res/game/
com/res/game/icon/
com/res/game/intro/
com/res/game/sound/
com/res/game/swf/
com/res/item/
com/res/item/collection/
com/res/item/collection/icon/
com/res/item/collection/swf/
com/res/item/emblem/
com/res/item/emblem/icon/
com/res/item/emblem/swf/
com/res/item/equip/
com/res/item/equip/icon/
com/res/item/equip/preview/
com/res/item/equip/swf/
com/res/item/feature/
com/res/item/feature/icon/
com/res/item/icon/
com/res/item/medal/
com/res/item/medal/icon/
com/res/item/medal/swf/
com/res/item/meeIcon/
com/res/item/pet/
com/res/item/pet/icon/
com/res/item/pet/swf/
com/res/item/petSpirtTrain/icon/
com/res/item/special/
com/res/item/special/icon/
com/res/itemGroup/[s]/[i].swf
com/res/loaderLibrary/
com/res/loaderLibrary/rightToolbar/
com/res/login/
com/res/map/
com/res/map/config/
com/res/map/data/
com/res/map/decoration/[s].swf
com/res/map/dice/
com/res/map/dice/config
com/res/map/dice/tiles
com/res/map/mine/
com/res/map/pics/
com/res/map/sign/[i].swf|.xml
com/res/map/sound/
com/res/map/swf/
com/res/module/[s].swf
com/res/nono/
com/res/nono/nonoEquip/
com/res/nono/nonoEquipIcon/
com/res/nono/nonoPreview/
com/res/notice/
com/res/npc/
com/res/npc/preview/
com/res/npc/sound/
com/res/npc/swf/
com/res/pet/
com/res/pet/decoration/
com/res/pet/demo/
com/res/pet/dictionary/
com/res/pet/fight/
com/res/pet/icon/
com/res/pet/normal/
com/res/pet/potential/
com/res/pet/potential/icon/
com/res/pet/primary/
com/res/pet/sound/
com/res/quest/
com/res/quest/fullScreen/
com/res/quest/sound/
com/res/quest/spt/
com/res/sharePic/
com/res/shoot/
com/res/shoot/icon/
com/res/shoot/sound/
com/res/shoot/swf/
com/res/skill/
com/res/skill/effect/
com/res/skill/sideEffect/
com/res/skill/sound/
com/res/timenews/[i]/[i].swf
com/res/train/
com/res/ui/
com/res/vip/
com/version/
上一篇: 如何为typecho添加独立友链页面
下一篇: flash页游seer2折腾日记4-通信协议
Responses