AI generatedCode
1.52%- 0.21% matching
- 1.31% partially matching
- 98.48% to do
Data
95.15%- 2,051,296,606 done
- 104,594,082 to do
Functions
0.53%- 56 matching
- 10,530 to do
code ±0% · data ±0% ·
Matching: 56 functions (signed tests and unsigned counts as in the game)
Areas
- Matching
- Partially matching
- Not decompiled
All areas as a table
| Area | Matching | Partially matching | Data | Size (bytes) |
|---|---|---|---|---|
| (start-up and main loop) | 0.09% | 13.99% | — | 9,232 |
| Scenes (16) | 0.91% | 5.74% | — | 699,688 |
| StateInitialize.c | 0.00% | 0.00% | — | 76,760 |
| StateStartUp.c | 0.00% | 0.00% | — | 48,448 |
| StateDemo.c | 0.00% | 0.00% | — | 20,024 |
| StateBattleInitialize.c | 0.00% | 0.00% | — | 36,800 |
| StatePreBattle.c | 0.00% | 0.00% | — | 35,944 |
| StatePostBattle.c | 0.00% | 0.00% | — | 31,776 |
| StateConfig.c | 11.43% | 54.68% | — | 23,768 |
| StateTreasures.c | 19.44% | 80.26% | — | 9,360 |
| StateShop.c | 3.72% | 39.87% | — | 49,352 |
| StateConquest.c | 0.00% | 0.00% | — | 56,408 |
| StateEdit.c | 0.00% | 0.00% | — | 85,952 |
| StateSetupEmpMogi.c | 0.00% | 0.00% | — | 9,664 |
| SceneTitle.c | 0.00% | 0.00% | — | 80,632 |
| SceneLoading.c | 0.00% | 0.00% | — | 23,456 |
| ScenePreBattle.c | 0.00% | 0.00% | — | 75,264 |
| SceneTutorial.c | 0.00% | 0.00% | — | 36,080 |
| Empire mode (18) | 0.00% | 0.00% | — | 740,744 |
| emp_FldBase.c | 0.00% | 0.00% | — | 97,112 |
| emp_cq_main.c | 0.00% | 0.00% | — | 119,888 |
| emp_cq_text.c | 0.00% | 0.00% | — | 3,040 |
| emp_ending.c | 0.00% | 0.00% | — | 17,464 |
| emp_ending_nenpyou.c | 0.00% | 0.00% | — | 15,120 |
| emp_ev_predata.c | 0.00% | 0.00% | — | 73,256 |
| emp_ev_station.c | 0.00% | 0.00% | — | 60,472 |
| emp_ev_still.c | 0.00% | 0.00% | — | 69,536 |
| emp_free_setup.c | 0.00% | 0.00% | — | 53,256 |
| emp_sc.c | 0.00% | 0.00% | — | 5,192 |
| emp_war_fix.c | 0.00% | 0.00% | — | 45,000 |
| emp_war_tl.c | 0.00% | 0.00% | — | 23,600 |
| emp_war_wllt.c | 0.00% | 0.00% | — | 30,144 |
| emp_zuroku.c | 0.00% | 0.00% | — | 47,424 |
| emp_zuroku_bushou.c | 0.00% | 0.00% | — | 10,456 |
| emp_zuroku_graph.c | 0.00% | 0.00% | — | 33,928 |
| emp_zuroku_movie.c | 0.00% | 0.00% | — | 2,680 |
| StationEmp.c | 0.00% | 0.00% | — | 33,176 |
| Battlefield (12) | 0.00% | 0.00% | — | 513,712 |
| Field.c | 0.00% | 0.00% | — | 28,480 |
| Stage.c | 0.00% | 0.00% | — | 29,792 |
| StgAmbient.c | 0.00% | 0.00% | — | 26,048 |
| StgTexture.c | 0.00% | 0.00% | — | 76,040 |
| DistantView.c | 0.00% | 0.00% | — | 41,840 |
| BgManager.c | 0.00% | 0.00% | — | 59,024 |
| Bullet.c | 0.00% | 0.00% | — | 33,424 |
| Weapon.c | 0.00% | 0.00% | — | 55,936 |
| ObjAction.c | 0.00% | 0.00% | — | 47,224 |
| RelayCamera.c | 0.00% | 0.00% | — | 54,952 |
| MiniMap.c | 0.00% | 0.00% | — | 16,080 |
| effect.c | 0.00% | 0.00% | — | 44,872 |
| Models and motion (5) | 0.00% | 0.00% | — | 246,168 |
| ModelManager.c | 0.00% | 0.00% | — | 35,696 |
| MotionManager.c | 0.00% | 0.00% | — | 52,160 |
| HorseModel.c | 0.00% | 0.00% | — | 95,952 |
| FlagModel.c | 0.00% | 0.00% | — | 18,776 |
| ItemModel.c | 0.00% | 0.00% | — | 43,584 |
| Events and scripts (9) | 0.00% | 0.00% | — | 378,408 |
| ev_main.c | 0.00% | 0.00% | — | 14,480 |
| ev_config.c | 0.00% | 0.00% | — | 55,496 |
| ev_message.c | 0.00% | 0.00% | — | 26,760 |
| sc_ctrl.c | 0.00% | 0.00% | — | 31,784 |
| sc_sysmsg.c | 0.00% | 0.00% | — | 34,368 |
| sc_ubase.c | 0.00% | 0.00% | — | 42,880 |
| MovieTelop.c | 0.00% | 0.00% | — | 24,624 |
| SeasonAnime.c | 0.00% | 0.00% | — | 31,624 |
| BriefingCmnParts.c | 0.00% | 0.00% | — | 116,392 |
| Interface and system (6) | 0.05% | 0.02% | — | 578,424 |
| cmnparts.c | 0.00% | 0.00% | — | 47,192 |
| font.c | 0.00% | 0.00% | — | 193,992 |
| file.c | 0.22% | 0.06% | — | 141,496 |
| SeManager.c | 0.00% | 0.00% | — | 35,400 |
| JapanMap.c | 0.00% | 0.00% | — | 60,776 |
| SecretSorts.c | 0.00% | 0.00% | — | 99,568 |
| Game data (17) | 0.00% | 0.00% | 95.15% | 0 |
| ANS stream | 0.00% | 0.00% | 100% | 0 |
| MPEG2 | 0.00% | 0.00% | 100% | 0 |
| TIM2 | 0.00% | 0.00% | 100% | 0 |
| TMD2 | 0.00% | 0.00% | 100% | 0 |
| Unidentified | 0.00% | 0.00% | 0.00% | 0 |
| PS2 | 0.00% | 0.00% | 100% | 0 |
| Motion | 0.00% | 0.00% | 100% | 0 |
| Event motions | 0.00% | 0.00% | 100% | 0 |
| EFB | 0.00% | 0.00% | 0.00% | 0 |
| ADPCM sounds | 0.00% | 0.00% | 100% | 0 |
| tm3 | 0.00% | 0.00% | 100% | 0 |
| IPU | 0.00% | 0.00% | 0.00% | 0 |
| Containers | 0.00% | 0.00% | 100% | 0 |
| Event commands | 0.00% | 0.00% | 0.00% | 0 |
| PAC0 | 0.00% | 0.00% | 0.00% | 0 |
| PS2 variant | 0.00% | 0.00% | 0.00% | 0 |
| Motion (atypical) | 0.00% | 0.00% | 0.00% | 0 |
History
DecompiledMatchingDataClick the chart to see the project at that commit.
Reports up to this one (36)
| When | Decompiled | Matching | Data | Commit |
|---|---|---|---|---|
| 1.52% | 0.21% +0.04% | 95.15% | 1392aa4 Matching: 56 functions (signed tests and unsigned counts as in the game) | |
| 1.52% | 0.17% +0.02% | 95.15% | 76f6e15 Matching: 54 functions (controller values are int locals holding a 16-bit value) | |
| 1.52% | 0.16% | 95.15% | 0750a05 Progress: report function counts (53 of 10,586 matching) | |
| 1.52% | 0.16% +0.01% | 95.15% | 8957b46 Matching: 52 functions (controller array from its real base, split tests, early returns) | |
| 1.52% | 0.14% +0.01% | 95.15% | b350afc Matching: 50 functions (controller reads inlined as in the original) | |
| 1.52% | 0.13% | 95.15% | 8a58b26 Matching: 49 functions (local order, a helper that returns its argument by accident) | |
| 1.52% | 0.13% +0.08% | 95.15% | 3aeb421 Matching: 47 functions (globals grouped into objects, settings flags as bitfields, if/else shapes) | |
| 1.52% | 0.04% +0.03% | 95.15% | a5cd65e Matching: 30 functions byte-identical with CodeWarrior for PS2 3.0.1 build 210 (-O4, tailcall off, no_branch_likely) | |
| 1.52% | 0.02% +0.02% | 95.15% | 8a42885 Matching: first 18 functions verified byte-identical with CodeWarrior for PS2 3.0 (-O4, tailcall off) | |
| 1.52% +0.21% | 0.00% | 95.15% | d89e6bc Code: finish StateShop.c: skill purchase, offer lists (skills, mounts, officers), prices and bargains | |
| 1.32% +0.18% | 0.00% | 95.15% | 834a428 Code: shop hire, buy-mount and sell screens with their confirmation boxes; gold and price helpers | |
| 1.14% +0.15% | 0.00% | 95.15% | 93a48c3 Code: shop helpers and mode handlers (main menu, skill slots, skill list, two lists) | |
| 0.99% +0.14% | 0.00% | 95.15% | 28c2d1d Code: decompile scene 0x0E, the shop (StateShop.c): enter, leave, update, draw, mode switch | |
| 0.84% +0.16% | 0.00% | 95.15% | 8463f4a Code: finish StateTreasures.c: main menu, mode transitions, officer list, sub-menu, mount list and skill grid | |
| 0.68% +0.13% | 0.00% | 95.15% | 6e86617 Code: decompile scene 0x0D, the Treasures gallery (StateTreasures.c): enter, leave, update, draw, mode requests and small mode handlers | |
| 0.55% +0.08% | 0.00% | 95.15% | 5f28dfa Code: StateConfig.c settings helpers (copy, apply and compare the display, pad and sound settings) | |
| 0.47% +0.21% | 0.00% | 95.15% | ba98be4 Code: options menu pages 5, 7, 9 and 10 (display options, sound settings and sound test, controller settings, button set-up); all 11 page handlers done | |
| 0.26% +0.06% | 0.00% | 95.15% | b90e37b Code: options menu pages 1, 3, 6 and 8 (sub-menu, save/load settings, controller choice, screen position) | |
| 0.20% +0.08% | 0.00% | 95.15% | 1f1dd21 Code: options menu page 0, page opener and helpers (StateConfig.c); fix a call Ghidra showed without its argument | |
| 0.12% | 0.00% | 95.15% | d09dac8 Progress: split the code map into ~70 areas by original source file, grouped in 6 themes (estimated ranges) |
Badges
For your README. They show the default version and update with every report.
[](https://decompilati.onl/projects/samurai-warriors-2-empire)
[](https://decompilati.onl/projects/samurai-warriors-2-empire)
[](https://decompilati.onl/projects/samurai-warriors-2-empire)
[](https://decompilati.onl/projects/samurai-warriors-2-empire)