美文网首页
出招分析_侍魂2

出招分析_侍魂2

作者: LiuJP | 来源:发表于2020-03-26 21:46 被阅读0次
分析过程
  • 从网上下载侍魂2简化出招的rom

  • 对比原版rom找到6cb22这个地方有修改
    原始6cb22:0F 08 00 00 0F 02 00 11 0F 0A 00 11 30 10 00 11 00 00 00 00
    修改6cb22:00 00 00 00 F0 A0 00 11 00 00 00 00 30 00 00 11 00 00 00 00


  • 0006 CB22 0026 0001
    6cb22是地址;0026是出招id;0001是标志判断目前不清楚;

  • 0F08 0000 0F02 0011 0F0A 0011 3010 0011 0000 0000
    0F08是右;0F02是下;0F0A是右下;3010是轻拳;0000 0000是结束

  • 人物出招列表 上边6CAAA不对应该是6CA7A

  • 回到mame 模拟器 wp 6cb22,1,r 监视并断点到3184e

  • 打开ida 开始分析



  • 通过mame单步调试分析到31884 地方时候,发现这个地方只有出招的时候才会走。

  • 进入318CE之后注意a3 会跳转到下边的代码的


    上边这段是关键分析,得出一下信息
  • a6或者是a3结构体的偏移f4的地方会被写入技能id 26


实现过程
  • 观察每个结构体结构


想到就是每个对象的占大小0x120,并且每个对象结构体第一位是表示类型,通过观察发现player0 的对象结构体开头是0002;然后是5314 302D是唯一,可以通过一个for循环判断

while (true) {
                                for (int i = 0x102fc0; i < 0x105de0; i = i + 0x120) {
                                    final int player0 = NativeUtils.readMemary(i + 1);
                                    if (player0 == 2) {
                                        int player = NativeUtils.readMemary(i + 4);
                                        if (player == 0x30) {
                                            currentAddr = i;
                                            break;
                                        }
                                    }
                                }
                                Logger.e("addr:" + currentAddr);
                                int ret = NativeUtils.readMemary(0x100D0B);
                                Logger.e("id:" + ret);
                                if (currentId != ret) {
                                    currentId = ret;
                                    combineView.post(new Runnable() {
                                        @Override
                                        public void run() {
                                            combineView.addDatas(pluginEntryView.getList(currentId + 100));
                                        }
                                    });
                                }
                                try {
                                    Thread.sleep(4000);
                                } catch (InterruptedException e) {
                                    e.printStackTrace();
                                }
                            }


"0x10801B, 0x09"="天霸封神斩"
"0x10802A, 0x09"="奥义烈震斩"

分析2从mame的金手指分析得出
<cheat desc="Infinite Energy PL2">
    <script state="run">
      <action>maincpu.pb@((maincpu.pd@100A4A)+BB)=80</action>
    </script>
  </cheat>

  <cheat desc="Drain All Energy Now! PL2">
    <script state="on">
      <action>maincpu.pb@((maincpu.pd@100A4A)+BB)=00</action>
    </script>
  </cheat>

  <cheat desc="Always have Maximum Power PL2">
    <script state="run">
      <action>maincpu.pb@((maincpu.pd@100A4A)+F0)=20</action>
    </script>
  </cheat>

  <cheat desc="Always have Minimum Power PL2">
    <script state="run">
      <action>maincpu.pb@((maincpu.pd@100A4A)+F0)=00</action>
    </script>
  </cheat>
image.png

105960 是对象player0;
所以实现方式

                                int big = NativeUtils.readMemary(0x100a47)<<16;
                                int medium = NativeUtils.readMemary(0x100a48)<<8;
                                int low = NativeUtils.readMemary(0x100a49);
                                currentAddr = big+medium+low;

相关文章

  • 出招分析_侍魂2

    分析过程 从网上下载侍魂2简化出招的rom 对比原版rom找到6cb22这个地方有修改原始6cb22:0F 08 ...

  • 出招分析_侍魂4

    出招函数 441C6->5E70C+8->5EBE0+704->601d8441CA->5E72C+8->5EBE...

  • 出招分析_饿狼传说3

    Fighter1 a3 100400a4 100500583d2 出招列表58c4e 出招代码 断下58C4E分析...

  • 出招分析_月华剑士2

    分析 10BD59选择人物10E344存着Player1和Player2A4是Player1 105E00 7A...

  • 《侍魂胧月传说》肝帝金判渠道来源大全

    经典侍魂武者齐聚,共同探索侍魂世界。好了,激动过后我们来聊一聊探索侍魂世界的经费吧。《侍魂胧月传说》已经上线两天了...

  • 出招分析_街头霸王2

    地址 0x37802 0x5c6 ff8000-74d8 保存这p1 p2 信息 83be86be fba金手指提...

  • 出招分析_饿狼传说特别版

    分析过程 在金手指未找到相关的信息进入出招简化rom对比 找到简化出招rom对比得到出招代码位置0x38B30 从...

  • 出招分析_饿狼传说9狼之印记

    分析 28fc4 出招进入 a4 Fighter1 100400 0 0002 8fc4 c2 8000 0...

  • 侍魂

    京都,一座繁华的大都市,充满神奇和未知的地方。 数百年来,四面八方的人从各地涌来,一睹其真容。 而在这个大...

  • 侍魂

    京都,一座繁华的大都市,充满神奇和未知的地方。 数百年来,四面八方的人从各地涌来,一睹其真容。 而在这个大...

网友评论

      本文标题:出招分析_侍魂2

      本文链接:https://www.haomeiwen.com/subject/cmehuhtx.html