Jump to content

Immediate game crash after any REPLACEMENT_CODE patch. Please help


FieryIce

Recommended Posts

Hello!
I'm trying to replace function bytecode but game goes to crash after any patching.
Maybe I missed something in UPK Mod File format?
Initial data:
  • Windows 10 x64
  • UPKUtils v 7_3-448-7-3
  • patching made with PatchUPK.exe
  • XCOM: EW with installed LW b15f mod.
  • I'm trying to patch "XGAbility_Targeted.RollForHit" function of ​XComGame.upk
  • The contents of the folder "steam\...\XCom-Enemy-Unknown\XEW\XComGame\CookedPCConsole" was copied to a separate working directory in which the patching is done.
  • After each try I'm restoring original XComGame.upk from the backup.
Problem:
Game crashes immediately after launch even when I'm trying to replace the code of "XGAbility_Targeted.RollForHit" function on itself
Reproduction:
Original "XGAbility_Targeted.RollForHit" function bytecode (extracted from the original​ XComGame.upk with LW b15f installed):

0f 00 34 8c 00 00 2e b1 c0 00 00 19 19 2e fb 55 00 00 12 20 35 fe ff ff 0a 00 91 f9 ff ff 00 1c d4 fb ff ff 16 09 00 92 55 00 00 00 01 92 55 00 00 13 00 25 be 00 00 00 1b 60 33 00 00 00 00 00 00 1f 58 47 50 61 72 61 6d 00 16 14 2d 01 c7 d4 00 00 28 07 b9 00 82 77 00 3b 8c 00 00 2a 16 18 0b 00 1b 06 46 00 00 00 00 00 00 16 16 0f 19 00 3b 8c 00 00 09 00 97 d3 00 00 00 01 97 d3 00 00 2a 07 95 07 84 82 77 00 3b 8c 00 00 2a 16 18 22 00 72 19 00 3b 8c 00 00 09 00 97 d3 00 00 00 01 97 d3 00 00 2a 16 16 18 20 00 82 1b 90 3d 00 00 00 00 00 00 24 22 16 18 0f 00 81 1b 66 3d 00 00 00 00 00 00 24 01 16 16 16 16 07 7f 06 1b 90 3d 00 00 00 00 00 00 24 2e 16 0f 00 32 8c 00 00 45 19 00 3b 8c 00 00 0a 00 37 d3 00 00 00 2d 01 37 d3 00 00 1e 00 19 00 3b 8c 00 00 0a 00 64 d3 00 00 00 01 64 d3 00 00 1f 00 19 00 3b 8c 00 00 0a 00 52 93 00 00 00 1b bb 3b 00 00 00 00 00 00 16 0f 01 f7 d4 00 00 00 32 8c 00 00 0f 00 33 8c 00 00 d8 00 32 8c 00 00 19 01 42 8b 00 00 0a 00 cd 37 00 00 00 1b 94 39 00 00 00 00 00 00 16 16 07 3c 06 19 01 42 8b 00 00 0a 00 ec 37 00 00 00 1b 25 45 00 00 00 00 00 00 16 0f 01 ff d4 00 00 e1 00 33 8c 00 00 16 0f 00 38 8c 00 00 12 20 fb 55 00 00 2a 00 ac 55 00 00 00 1c ae 55 00 00 a8 a8 38 57 01 c7 f9 ff ff 38 57 61 1c 16 16 38 57 1c 99 fc ff ff 16 16 16 0f 00 37 8c 00 00 12 20 fb 55 00 00 2a 00 ac 55 00 00 00 1c ae 55 00 00 a8 a8 38 57 01 c7 f9 ff ff 38 57 61 1c 16 16 38 57 1c 99 fc ff ff 16 16 16 0f 00 3a 8c 00 00 ab c1 ba ab 38 3f 2c 02 c0 00 38 8c 00 00 16 16 16 16 bc ab 1e db 0f c9 40 00 37 8c 00 00 16 16 16 0f 00 39 8c 00 00 ab c1 ba ab 38 3f 2c 02 c0 00 38 8c 00 00 16 16 16 16 bb ab 1e db 0f c9 40 00 37 8c 00 00 16 16 16 0f 00 37 8c 00 00 ab 12 20 32 87 00 00 09 00 ec 11 00 00 00 02 ec 11 00 00 ac 38 3f 93 2c 78 fb 92 92 19 01 42 8b 00 00 0a 00 61 c8 00 00 00 1b 71 3a 00 00 00 00 00 00 16 45 82 19 19 01 42 8b 00 00 09 00 60 3a 00 00 00 01 60 3a 00 00 0c 00 2f b8 00 00 00 1b b7 3d 00 00 00 00 00 00 2c 8d 16 18 22 00 9a 19 01 42 8b 00 00 09 00 f0 39 00 00 00 01 f0 39 00 00 25 16 16 02 00 2c 0a 01 00 25 16 45 82 19 19 01 42 8b 00 00 09 00 60 3a 00 00 00 01 60 3a 00 00 0c 00 2f b8 00 00 00 1b b7 3d 00 00 00 00 00 00 2c 72 16 18 22 00 9a 19 01 42 8b 00 00 09 00 f0 39 00 00 00 01 f0 39 00 00 25 16 16 02 00 2c 0a 01 00 25 16 25 2c 78 16 16 38 3f 2c 78 16 16 07 a8 04 97 19 01 42 8b 00 00 09 00 f0 39 00 00 00 01 f0 39 00 00 25 16 07 99 04 19 19 01 42 8b 00 00 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 0c 00 2f b8 00 00 00 1b b7 3d 00 00 00 00 00 00 2c 10 16 b6 00 37 8c 00 00 1e 00 00 a0 3f 16 06 a8 04 b6 00 37 8c 00 00 38 3f 2c 02 16 07 cf 05 81 19 19 00 3b 8c 00 00 09 00 96 d3 00 00 00 01 96 d3 00 00 0a 00 c8 8c 00 00 00 1b 83 44 00 00 00 00 00 00 16 16 0f 35 03 fa ff ff 19 f9 ff ff 00 01 00 31 8c 00 00 38 44 ab ab be ac 00 37 8c 00 00 38 3f 2c 14 16 16 00 3a 8c 00 00 16 1e e0 f8 22 46 16 0f 00 33 8c 00 00 61 14 00 33 8c 00 00 00 31 8c 00 00 16 0f 00 33 8c 00 00 e2 00 33 8c 00 00 16 b6 00 39 8c 00 00 ab 00 37 8c 00 00 ac 01 ff d4 00 00 38 3f 2c 14 16 16 16 b8 00 39 8c 00 00 01 ff d4 00 00 16 0f 01 f7 d4 00 00 d7 19 01 42 8b 00 00 0a 00 cd 37 00 00 00 1b 94 39 00 00 00 00 00 00 16 d4 00 33 8c 00 00 00 39 8c 00 00 16 16 19 01 42 8b 00 00 13 00 00 00 00 00 00 61 18 38 3f 26 28 21 a1 1c 00 00 00 00 00 00 4a 16 07 3c 06 b3 e1 d8 00 32 8c 00 00 01 f7 d4 00 00 16 16 1e 00 00 a8 43 16 19 01 42 8b 00 00 13 00 00 00 00 00 00 61 18 38 3f 2c 05 28 21 a5 1c 00 00 00 00 00 00 4a 16 19 00 3b 8c 00 00 13 00 00 00 00 00 00 1b 47 6f 00 00 00 00 00 00 01 f7 d4 00 00 16 14 2d 01 c7 d4 00 00 28 14 2d 01 07 d5 00 00 27 06 89 07 0f 01 ff d4 00 00 ac e1 d8 19 01 42 8b 00 00 0a 00 cd 37 00 00 00 1b 94 39 00 00 00 00 00 00 16 01 f7 d4 00 00 16 16 38 3f 2c 40 16 0f 01 fc d4 00 00 2c 64 14 2d 01 c7 d4 00 00 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 59 00 21 86 00 00 00 1b 77 6a 00 00 00 00 00 00 ab 38 3f 01 fc d4 00 00 1e 0a d7 23 3c 16 19 19 01 42 8b 00 00 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 09 00 03 b8 00 00 00 01 03 b8 00 00 00 3a 8c 00 00 16 1b d3 10 00 00 00 00 00 00 16 04 0b 07 e4 0c 1b 90 3d 00 00 00 00 00 00 24 21 16 07 06 08 84 19 2e 6f 80 00 00 19 1c 4b fc ff ff 16 09 00 72 f9 ff ff 00 01 72 f9 ff ff 0a 00 db 7b 00 00 00 2d 01 db 7b 00 00 18 0e 00 9a 01 3e 8b 00 00 2c 28 16 16 14 2d 01 c7 d4 00 00 27 06 ce 0c 07 56 08 19 2e 6f 80 00 00 19 1c 4b fc ff ff 16 09 00 72 f9 ff ff 00 01 72 f9 ff ff 0a 00 d8 7b 00 00 00 2d 01 d8 7b 00 00 14 2d 01 c7 d4 00 00 28 06 ce 0c 07 d7 08 9a 01 3e 8b 00 00 2c 3c 16 0f 00 36 8c 00 00 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 09 00 d5 11 00 00 00 01 d5 11 00 00 07 58 09 9a 01 3e 8b 00 00 2c 28 16 0f 00 36 8c 00 00 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 09 00 ed 11 00 00 00 01 ed 11 00 00 14 2d 01 c7 d4 00 00 19 01 42 8b 00 00 3f 00 14 ca 00 00 00 1b f1 63 00 00 00 00 00 00 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 cb 37 00 00 00 1b 43 3c 00 00 00 00 00 00 16 00 36 8c 00 00 28 1b f4 3a 00 00 00 00 00 00 16 4a 16 07 b5 0c 2d 01 c7 d4 00 00 07 b5 0c 77 2e eb b3 00 00 19 2e e4 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 f0 32 00 00 00 01 f0 32 00 00 2a 16 07 b5 0c 9a 01 3e 8b 00 00 2c 3c 16 19 2e 0f b9 00 00 19 01 42 8b 00 00 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 87 00 00 00 00 00 00 1b 90 02 00 00 00 00 00 00 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 1f 00 e8 85 00 00 00 1b 05 11 00 00 00 00 00 00 01 42 8b 00 00 2c 0b 1b f4 3a 00 00 00 00 00 00 16 16 16 07 b5 0c 84 9a 35 56 0f 00 00 58 0f 00 00 00 00 19 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 09 00 03 b8 00 00 00 01 03 b8 00 00 2c 0c 16 18 4d 00 9a 35 56 0f 00 00 58 0f 00 00 00 00 19 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 09 00 03 b8 00 00 00 01 03 b8 00 00 2c 13 16 16 19 2e c0 46 00 00 19 2e 2b fe ff ff 12 20 35 fe ff ff 0a 00 91 f9 ff ff 00 1c d4 fb ff ff 16 09 00 8d f9 ff ff 00 01 8d f9 ff ff 0c 00 00 00 00 00 00 1b 02 7b 00 00 00 00 00 00 24 02 16 a1 1a 2c 47 35 54 0f 00 00 58 0f 00 00 00 00 19 19 01 42 8b 00 00 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 13 00 00 00 00 00 00 01 03 b8 00 00 2c 02 16 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 07 ce 0c 1b 66 3d 00 00 00 00 00 00 24 01 16 1b d3 10 00 00 00 00 00 00 16 07 e1 0c 81 1b 66 3d 00 00 00 00 00 00 24 01 16 16 04 0b 06 65 19 07 79 0d 19 01 42 8b 00 00 0b 00 e4 3a 00 00 00 1b bb 45 00 00 00 00 00 00 4a 16 a2 01 fe d4 00 00 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 09 00 d6 11 00 00 00 01 d6 11 00 00 16 07 ba 0d 82 84 9a 01 fe d4 00 00 2c 64 16 18 0d 00 1b 90 3d 00 00 00 00 00 00 24 25 16 16 18 0d 00 81 2d 01 2e 8b 00 00 16 16 14 2d 01 c7 d4 00 00 27 06 65 19 07 0d 0e 19 2e 6f 80 00 00 19 1c 4b fc ff ff 16 09 00 72 f9 ff ff 00 01 72 f9 ff ff 0a 00 db 7b 00 00 00 2d 01 db 7b 00 00 0f 00 39 8c 00 00 1e 00 00 80 3f 06 9a 0e 07 60 0e 19 2e 6f 80 00 00 19 1c 4b fc ff ff 16 09 00 72 f9 ff ff 00 01 72 f9 ff ff 0a 00 d8 7b 00 00 00 2d 01 d8 7b 00 00 0f 00 39 8c 00 00 1e 00 00 00 00 06 9a 0e 0f 00 36 8c 00 00 1b f1 02 00 00 00 00 00 00 1b 2a 39 00 00 00 00 00 00 16 16 0f 00 39 8c 00 00 ac 38 3f 00 36 8c 00 00 1e 00 00 c8 42 16 07 65 19 77 1b f4 3a 00 00 00 00 00 00 16 2a 16 07 2a 15 2d 01 2e 8b 00 00 07 81 10 84 84 84 9a 35 56 0f 00 00 58 0f 00 00 00 00 19 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 09 00 03 b8 00 00 00 01 03 b8 00 00 2c 10 16 18 4d 00 9a 35 56 0f 00 00 58 0f 00 00 00 00 19 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 09 00 03 b8 00 00 00 01 03 b8 00 00 2c 15 16 16 18 21 00 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 e7 38 00 00 00 1b 68 44 00 00 00 00 00 00 16 16 18 21 00 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 ea 38 00 00 00 1b 70 44 00 00 00 00 00 00 16 16 07 81 10 81 19 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 0c 00 2f b8 00 00 00 1b b7 3d 00 00 00 00 00 00 2c 23 16 16 07 81 10 82 81 19 19 01 42 8b 00 00 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 0c 00 2f b8 00 00 00 1b b7 3d 00 00 00 00 00 00 2c 0a 16 16 18 3a 00 81 19 19 01 42 8b 00 00 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 0c 00 2f b8 00 00 00 1b b7 3d 00 00 00 00 00 00 2c 85 16 16 16 b7 00 39 8c 00 00 12 20 32 87 00 00 09 00 1a 11 00 00 00 02 1a 11 00 00 16 07 2a 15 19 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 0c 00 2f b8 00 00 00 1b b7 3d 00 00 00 00 00 00 2c 23 16 b6 00 39 8c 00 00 45 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 2e 3a 00 00 00 2d 01 2e 3a 00 00 05 00 1e 9a 99 99 3e 05 00 1e cd cc cc 3d 16 07 72 11 12 20 e2 10 00 00 54 00 77 10 00 00 00 1c 7a 10 00 00 35 55 0f 00 00 58 0f 00 00 00 01 19 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 09 00 03 b8 00 00 00 01 03 b8 00 00 2c 5e 16 b6 00 39 8c 00 00 1e 00 00 00 3f 16 14 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 2e 3a 00 00 00 2d 01 2e 3a 00 00 27 07 7d 13 84 19 01 42 8b 00 00 0a 00 a8 37 00 00 00 1b 96 45 00 00 00 00 00 00 16 18 6b 00 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 0c 00 1f 10 00 00 00 1b b4 45 00 00 00 00 00 00 24 1c 16 16 0f 00 30 8c 00 00 19 19 2e 66 75 00 00 19 2e b7 5f 00 00 19 01 a6 f9 ff ff 0a 00 ae f9 ff ff 00 1c 4b fc ff ff 16 09 00 9d 5e 00 00 00 01 9d 5e 00 00 0a 00 4a 74 00 00 00 1b 4a 3c 00 00 00 00 00 00 16 e3 00 fc 31 00 00 00 1b bc 5d 00 00 00 00 00 00 70 70 70 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 0c 00 b1 85 00 00 00 1b fa 3b 00 00 00 00 00 00 24 01 16 1f 3a 20 00 16 38 53 38 44 ab 1e 00 00 c8 42 00 39 8c 00 00 16 16 1f 25 00 16 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 cd 37 00 00 00 1b 94 39 00 00 00 00 00 00 16 24 03 4a 4a 19 01 42 8b 00 00 09 00 a8 fe ff ff 00 01 a8 fe ff ff 4a 4a 4a 20 f3 87 00 00 16 06 b1 14 0f 00 30 8c 00 00 19 19 2e 66 75 00 00 19 2e b7 5f 00 00 19 01 a6 f9 ff ff 0a 00 ae f9 ff ff 00 1c 4b fc ff ff 16 09 00 9d 5e 00 00 00 01 9d 5e 00 00 0a 00 4a 74 00 00 00 1b 4a 3c 00 00 00 00 00 00 16 c2 00 fc 31 00 00 00 1b bc 5d 00 00 00 00 00 00 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 0c 00 b1 85 00 00 00 1b fa 3b 00 00 00 00 00 00 24 01 16 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 cd 37 00 00 00 1b 94 39 00 00 00 00 00 00 16 24 03 4a 4a 19 01 42 8b 00 00 09 00 a8 fe ff ff 00 01 a8 fe ff ff 4a 4a 4a 20 f3 87 00 00 16 07 2a 15 77 00 30 8c 00 00 2a 16 19 2e f3 87 00 00 00 30 8c 00 00 4c 00 00 00 00 00 00 1b 9b 41 00 00 00 00 00 00 24 01 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 cd 37 00 00 00 1b 94 39 00 00 00 00 00 00 16 24 03 19 01 42 8b 00 00 09 00 a8 fe ff ff 00 01 a8 fe ff ff 16 14 2d 01 c7 d4 00 00 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 85 00 26 86 00 00 00 1b 76 6a 00 00 00 00 00 00 00 39 8c 00 00 19 19 01 42 8b 00 00 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 09 00 03 b8 00 00 00 01 03 b8 00 00 19 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 09 00 03 b8 00 00 00 01 03 b8 00 00 00 3a 8c 00 00 16 07 38 17 81 1b f8 45 00 00 00 00 00 00 16 16 14 2d 01 09 d5 00 00 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 a8 00 1a 86 00 00 00 1b e9 10 00 00 00 00 00 00 1b f0 3b 00 00 00 00 00 00 16 38 3a 19 01 cd d4 00 00 0a 00 e7 bb 00 00 00 1b e1 36 00 00 00 00 00 00 16 19 19 01 42 8b 00 00 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 09 00 03 b8 00 00 00 01 03 b8 00 00 19 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 09 00 03 b8 00 00 00 01 03 b8 00 00 2d 01 c7 d4 00 00 16 07 65 19 2d 01 09 d5 00 00 0f 19 00 34 8c 00 00 09 00 a9 c0 00 00 00 01 a9 c0 00 00 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 00 38 00 00 00 1b c0 6a 00 00 00 00 00 00 16 0f 00 30 8c 00 00 19 19 2e 66 75 00 00 19 2e b7 5f 00 00 19 01 a6 f9 ff ff 0a 00 ae f9 ff ff 00 1c 4b fc ff ff 16 09 00 9d 5e 00 00 00 01 9d 5e 00 00 0a 00 4a 74 00 00 00 1b 4a 3c 00 00 00 00 00 00 16 e2 00 fc 31 00 00 00 1b bc 5d 00 00 00 00 00 00 12 20 5e 5e 00 00 75 00 5a 5e 00 00 00 1b fa 30 00 00 00 00 00 00 1a 2c 02 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 09 00 ad 85 00 00 00 01 ad 85 00 00 4a 16 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 cd 37 00 00 00 1b 94 39 00 00 00 00 00 00 16 24 04 4a 4a 19 01 42 8b 00 00 09 00 a8 fe ff ff 00 01 a8 fe ff ff 4a 4a 4a 20 01 88 00 00 16 07 65 19 77 00 30 8c 00 00 2a 16 19 2e 01 88 00 00 00 30 8c 00 00 54 00 00 00 00 00 00 1b 9d 41 00 00 00 00 00 00 1b f4 3a 00 00 00 00 00 00 16 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 cd 37 00 00 00 1b 94 39 00 00 00 00 00 00 16 24 04 19 01 42 8b 00 00 09 00 a8 fe ff ff 00 01 a8 fe ff ff 16 14 2d 01 c7 d4 00 00 27 07 c6 19 84 82 2d 01 2e 8b 00 00 18 3a 00 81 19 19 01 42 8b 00 00 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 0c 00 2f b8 00 00 00 1b b7 3d 00 00 00 00 00 00 2c 0a 16 16 16 18 0f 00 9a 1b f0 3b 00 00 00 00 00 00 16 2c 35 16 16 06 39 1a 07 39 1a 82 82 82 82 2d 01 c7 d4 00 00 18 0d 00 81 2d 01 09 d5 00 00 16 16 18 0e 00 97 1b 4d 38 00 00 00 00 00 00 16 25 16 16 18 0e 00 77 1b f4 3a 00 00 00 00 00 00 16 2a 16 16 18 23 00 81 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 dd c6 00 00 00 1b 96 44 00 00 00 00 00 00 16 16 16 1b 75 6a 00 00 00 00 00 00 16 07 15 1b 82 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 0c 00 1f 10 00 00 00 1b b4 45 00 00 00 00 00 00 24 1c 16 18 0e 00 77 1b f4 3a 00 00 00 00 00 00 16 2a 16 16 19 2e 66 75 00 00 19 2e b7 5f 00 00 19 01 a6 f9 ff ff 0a 00 ae f9 ff ff 00 1c 4b fc ff ff 16 09 00 9d 5e 00 00 00 01 9d 5e 00 00 0b 00 00 00 00 00 00 1b e1 5e 00 00 00 00 00 00 17 16 07 7f 1b 2d 01 2e 8b 00 00 19 2e 66 75 00 00 19 2e b7 5f 00 00 19 01 a6 f9 ff ff 0a 00 ae f9 ff ff 00 1c 4b fc ff ff 16 09 00 9d 5e 00 00 00 01 9d 5e 00 00 0b 00 00 00 00 00 00 1b e9 5e 00 00 00 00 00 00 17 16 1b d3 10 00 00 00 00 00 00 16 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 04 0b 53

 

 

 

Test mod file content with original "XGAbility_Targeted.RollForHit" function bytecode inside:

MOD_NAME=New Hit Damage Calculation
AUTHOR=FieryIce
DESCRIPTION=Better hit damage algorithm
UPK_FILE=XComGame.upk
OBJECT=XGAbility_Targeted.RollForHit:AUTO
[REPLACEMENT_CODE]
0f 00 34 8c 00 00 2e b1 c0 00 00 19 19 2e fb 55 00 00 12 20 35 fe ff ff 0a 00 91 f9 ff ff 00 1c d4 fb ff ff 16 09 00 92 55 00 00 00 01 92 55 00 00 13 00 25 be 00 00 00 1b 60 33 00 00 00 00 00 00 1f 58 47 50 61 72 61 6d 00 16 14 2d 01 c7 d4 00 00 28 07 b9 00 82 77 00 3b 8c 00 00 2a 16 18 0b 00 1b 06 46 00 00 00 00 00 00 16 16 0f 19 00 3b 8c 00 00 09 00 97 d3 00 00 00 01 97 d3 00 00 2a 07 95 07 84 82 77 00 3b 8c 00 00 2a 16 18 22 00 72 19 00 3b 8c 00 00 09 00 97 d3 00 00 00 01 97 d3 00 00 2a 16 16 18 20 00 82 1b 90 3d 00 00 00 00 00 00 24 22 16 18 0f 00 81 1b 66 3d 00 00 00 00 00 00 24 01 16 16 16 16 07 7f 06 1b 90 3d 00 00 00 00 00 00 24 2e 16 0f 00 32 8c 00 00 45 19 00 3b 8c 00 00 0a 00 37 d3 00 00 00 2d 01 37 d3 00 00 1e 00 19 00 3b 8c 00 00 0a 00 64 d3 00 00 00 01 64 d3 00 00 1f 00 19 00 3b 8c 00 00 0a 00 52 93 00 00 00 1b bb 3b 00 00 00 00 00 00 16 0f 01 f7 d4 00 00 00 32 8c 00 00 0f 00 33 8c 00 00 d8 00 32 8c 00 00 19 01 42 8b 00 00 0a 00 cd 37 00 00 00 1b 94 39 00 00 00 00 00 00 16 16 07 3c 06 19 01 42 8b 00 00 0a 00 ec 37 00 00 00 1b 25 45 00 00 00 00 00 00 16 0f 01 ff d4 00 00 e1 00 33 8c 00 00 16 0f 00 38 8c 00 00 12 20 fb 55 00 00 2a 00 ac 55 00 00 00 1c ae 55 00 00 a8 a8 38 57 01 c7 f9 ff ff 38 57 61 1c 16 16 38 57 1c 99 fc ff ff 16 16 16 0f 00 37 8c 00 00 12 20 fb 55 00 00 2a 00 ac 55 00 00 00 1c ae 55 00 00 a8 a8 38 57 01 c7 f9 ff ff 38 57 61 1c 16 16 38 57 1c 99 fc ff ff 16 16 16 0f 00 3a 8c 00 00 ab c1 ba ab 38 3f 2c 02 c0 00 38 8c 00 00 16 16 16 16 bc ab 1e db 0f c9 40 00 37 8c 00 00 16 16 16 0f 00 39 8c 00 00 ab c1 ba ab 38 3f 2c 02 c0 00 38 8c 00 00 16 16 16 16 bb ab 1e db 0f c9 40 00 37 8c 00 00 16 16 16 0f 00 37 8c 00 00 ab 12 20 32 87 00 00 09 00 ec 11 00 00 00 02 ec 11 00 00 ac 38 3f 93 2c 78 fb 92 92 19 01 42 8b 00 00 0a 00 61 c8 00 00 00 1b 71 3a 00 00 00 00 00 00 16 45 82 19 19 01 42 8b 00 00 09 00 60 3a 00 00 00 01 60 3a 00 00 0c 00 2f b8 00 00 00 1b b7 3d 00 00 00 00 00 00 2c 8d 16 18 22 00 9a 19 01 42 8b 00 00 09 00 f0 39 00 00 00 01 f0 39 00 00 25 16 16 02 00 2c 0a 01 00 25 16 45 82 19 19 01 42 8b 00 00 09 00 60 3a 00 00 00 01 60 3a 00 00 0c 00 2f b8 00 00 00 1b b7 3d 00 00 00 00 00 00 2c 72 16 18 22 00 9a 19 01 42 8b 00 00 09 00 f0 39 00 00 00 01 f0 39 00 00 25 16 16 02 00 2c 0a 01 00 25 16 25 2c 78 16 16 38 3f 2c 78 16 16 07 a8 04 97 19 01 42 8b 00 00 09 00 f0 39 00 00 00 01 f0 39 00 00 25 16 07 99 04 19 19 01 42 8b 00 00 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 0c 00 2f b8 00 00 00 1b b7 3d 00 00 00 00 00 00 2c 10 16 b6 00 37 8c 00 00 1e 00 00 a0 3f 16 06 a8 04 b6 00 37 8c 00 00 38 3f 2c 02 16 07 cf 05 81 19 19 00 3b 8c 00 00 09 00 96 d3 00 00 00 01 96 d3 00 00 0a 00 c8 8c 00 00 00 1b 83 44 00 00 00 00 00 00 16 16 0f 35 03 fa ff ff 19 f9 ff ff 00 01 00 31 8c 00 00 38 44 ab ab be ac 00 37 8c 00 00 38 3f 2c 14 16 16 00 3a 8c 00 00 16 1e e0 f8 22 46 16 0f 00 33 8c 00 00 61 14 00 33 8c 00 00 00 31 8c 00 00 16 0f 00 33 8c 00 00 e2 00 33 8c 00 00 16 b6 00 39 8c 00 00 ab 00 37 8c 00 00 ac 01 ff d4 00 00 38 3f 2c 14 16 16 16 b8 00 39 8c 00 00 01 ff d4 00 00 16 0f 01 f7 d4 00 00 d7 19 01 42 8b 00 00 0a 00 cd 37 00 00 00 1b 94 39 00 00 00 00 00 00 16 d4 00 33 8c 00 00 00 39 8c 00 00 16 16 19 01 42 8b 00 00 13 00 00 00 00 00 00 61 18 38 3f 26 28 21 a1 1c 00 00 00 00 00 00 4a 16 07 3c 06 b3 e1 d8 00 32 8c 00 00 01 f7 d4 00 00 16 16 1e 00 00 a8 43 16 19 01 42 8b 00 00 13 00 00 00 00 00 00 61 18 38 3f 2c 05 28 21 a5 1c 00 00 00 00 00 00 4a 16 19 00 3b 8c 00 00 13 00 00 00 00 00 00 1b 47 6f 00 00 00 00 00 00 01 f7 d4 00 00 16 14 2d 01 c7 d4 00 00 28 14 2d 01 07 d5 00 00 27 06 89 07 0f 01 ff d4 00 00 ac e1 d8 19 01 42 8b 00 00 0a 00 cd 37 00 00 00 1b 94 39 00 00 00 00 00 00 16 01 f7 d4 00 00 16 16 38 3f 2c 40 16 0f 01 fc d4 00 00 2c 64 14 2d 01 c7 d4 00 00 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 59 00 21 86 00 00 00 1b 77 6a 00 00 00 00 00 00 ab 38 3f 01 fc d4 00 00 1e 0a d7 23 3c 16 19 19 01 42 8b 00 00 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 09 00 03 b8 00 00 00 01 03 b8 00 00 00 3a 8c 00 00 16 1b d3 10 00 00 00 00 00 00 16 04 0b 07 e4 0c 1b 90 3d 00 00 00 00 00 00 24 21 16 07 06 08 84 19 2e 6f 80 00 00 19 1c 4b fc ff ff 16 09 00 72 f9 ff ff 00 01 72 f9 ff ff 0a 00 db 7b 00 00 00 2d 01 db 7b 00 00 18 0e 00 9a 01 3e 8b 00 00 2c 28 16 16 14 2d 01 c7 d4 00 00 27 06 ce 0c 07 56 08 19 2e 6f 80 00 00 19 1c 4b fc ff ff 16 09 00 72 f9 ff ff 00 01 72 f9 ff ff 0a 00 d8 7b 00 00 00 2d 01 d8 7b 00 00 14 2d 01 c7 d4 00 00 28 06 ce 0c 07 d7 08 9a 01 3e 8b 00 00 2c 3c 16 0f 00 36 8c 00 00 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 09 00 d5 11 00 00 00 01 d5 11 00 00 07 58 09 9a 01 3e 8b 00 00 2c 28 16 0f 00 36 8c 00 00 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 09 00 ed 11 00 00 00 01 ed 11 00 00 14 2d 01 c7 d4 00 00 19 01 42 8b 00 00 3f 00 14 ca 00 00 00 1b f1 63 00 00 00 00 00 00 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 cb 37 00 00 00 1b 43 3c 00 00 00 00 00 00 16 00 36 8c 00 00 28 1b f4 3a 00 00 00 00 00 00 16 4a 16 07 b5 0c 2d 01 c7 d4 00 00 07 b5 0c 77 2e eb b3 00 00 19 2e e4 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 f0 32 00 00 00 01 f0 32 00 00 2a 16 07 b5 0c 9a 01 3e 8b 00 00 2c 3c 16 19 2e 0f b9 00 00 19 01 42 8b 00 00 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 87 00 00 00 00 00 00 1b 90 02 00 00 00 00 00 00 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 1f 00 e8 85 00 00 00 1b 05 11 00 00 00 00 00 00 01 42 8b 00 00 2c 0b 1b f4 3a 00 00 00 00 00 00 16 16 16 07 b5 0c 84 9a 35 56 0f 00 00 58 0f 00 00 00 00 19 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 09 00 03 b8 00 00 00 01 03 b8 00 00 2c 0c 16 18 4d 00 9a 35 56 0f 00 00 58 0f 00 00 00 00 19 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 09 00 03 b8 00 00 00 01 03 b8 00 00 2c 13 16 16 19 2e c0 46 00 00 19 2e 2b fe ff ff 12 20 35 fe ff ff 0a 00 91 f9 ff ff 00 1c d4 fb ff ff 16 09 00 8d f9 ff ff 00 01 8d f9 ff ff 0c 00 00 00 00 00 00 1b 02 7b 00 00 00 00 00 00 24 02 16 a1 1a 2c 47 35 54 0f 00 00 58 0f 00 00 00 00 19 19 01 42 8b 00 00 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 13 00 00 00 00 00 00 01 03 b8 00 00 2c 02 16 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 07 ce 0c 1b 66 3d 00 00 00 00 00 00 24 01 16 1b d3 10 00 00 00 00 00 00 16 07 e1 0c 81 1b 66 3d 00 00 00 00 00 00 24 01 16 16 04 0b 06 65 19 07 79 0d 19 01 42 8b 00 00 0b 00 e4 3a 00 00 00 1b bb 45 00 00 00 00 00 00 4a 16 a2 01 fe d4 00 00 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 09 00 d6 11 00 00 00 01 d6 11 00 00 16 07 ba 0d 82 84 9a 01 fe d4 00 00 2c 64 16 18 0d 00 1b 90 3d 00 00 00 00 00 00 24 25 16 16 18 0d 00 81 2d 01 2e 8b 00 00 16 16 14 2d 01 c7 d4 00 00 27 06 65 19 07 0d 0e 19 2e 6f 80 00 00 19 1c 4b fc ff ff 16 09 00 72 f9 ff ff 00 01 72 f9 ff ff 0a 00 db 7b 00 00 00 2d 01 db 7b 00 00 0f 00 39 8c 00 00 1e 00 00 80 3f 06 9a 0e 07 60 0e 19 2e 6f 80 00 00 19 1c 4b fc ff ff 16 09 00 72 f9 ff ff 00 01 72 f9 ff ff 0a 00 d8 7b 00 00 00 2d 01 d8 7b 00 00 0f 00 39 8c 00 00 1e 00 00 00 00 06 9a 0e 0f 00 36 8c 00 00 1b f1 02 00 00 00 00 00 00 1b 2a 39 00 00 00 00 00 00 16 16 0f 00 39 8c 00 00 ac 38 3f 00 36 8c 00 00 1e 00 00 c8 42 16 07 65 19 77 1b f4 3a 00 00 00 00 00 00 16 2a 16 07 2a 15 2d 01 2e 8b 00 00 07 81 10 84 84 84 9a 35 56 0f 00 00 58 0f 00 00 00 00 19 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 09 00 03 b8 00 00 00 01 03 b8 00 00 2c 10 16 18 4d 00 9a 35 56 0f 00 00 58 0f 00 00 00 00 19 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 09 00 03 b8 00 00 00 01 03 b8 00 00 2c 15 16 16 18 21 00 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 e7 38 00 00 00 1b 68 44 00 00 00 00 00 00 16 16 18 21 00 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 ea 38 00 00 00 1b 70 44 00 00 00 00 00 00 16 16 07 81 10 81 19 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 0c 00 2f b8 00 00 00 1b b7 3d 00 00 00 00 00 00 2c 23 16 16 07 81 10 82 81 19 19 01 42 8b 00 00 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 0c 00 2f b8 00 00 00 1b b7 3d 00 00 00 00 00 00 2c 0a 16 16 18 3a 00 81 19 19 01 42 8b 00 00 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 0c 00 2f b8 00 00 00 1b b7 3d 00 00 00 00 00 00 2c 85 16 16 16 b7 00 39 8c 00 00 12 20 32 87 00 00 09 00 1a 11 00 00 00 02 1a 11 00 00 16 07 2a 15 19 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 0c 00 2f b8 00 00 00 1b b7 3d 00 00 00 00 00 00 2c 23 16 b6 00 39 8c 00 00 45 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 2e 3a 00 00 00 2d 01 2e 3a 00 00 05 00 1e 9a 99 99 3e 05 00 1e cd cc cc 3d 16 07 72 11 12 20 e2 10 00 00 54 00 77 10 00 00 00 1c 7a 10 00 00 35 55 0f 00 00 58 0f 00 00 00 01 19 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 09 00 03 b8 00 00 00 01 03 b8 00 00 2c 5e 16 b6 00 39 8c 00 00 1e 00 00 00 3f 16 14 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 2e 3a 00 00 00 2d 01 2e 3a 00 00 27 07 7d 13 84 19 01 42 8b 00 00 0a 00 a8 37 00 00 00 1b 96 45 00 00 00 00 00 00 16 18 6b 00 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 0c 00 1f 10 00 00 00 1b b4 45 00 00 00 00 00 00 24 1c 16 16 0f 00 30 8c 00 00 19 19 2e 66 75 00 00 19 2e b7 5f 00 00 19 01 a6 f9 ff ff 0a 00 ae f9 ff ff 00 1c 4b fc ff ff 16 09 00 9d 5e 00 00 00 01 9d 5e 00 00 0a 00 4a 74 00 00 00 1b 4a 3c 00 00 00 00 00 00 16 e3 00 fc 31 00 00 00 1b bc 5d 00 00 00 00 00 00 70 70 70 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 0c 00 b1 85 00 00 00 1b fa 3b 00 00 00 00 00 00 24 01 16 1f 3a 20 00 16 38 53 38 44 ab 1e 00 00 c8 42 00 39 8c 00 00 16 16 1f 25 00 16 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 cd 37 00 00 00 1b 94 39 00 00 00 00 00 00 16 24 03 4a 4a 19 01 42 8b 00 00 09 00 a8 fe ff ff 00 01 a8 fe ff ff 4a 4a 4a 20 f3 87 00 00 16 06 b1 14 0f 00 30 8c 00 00 19 19 2e 66 75 00 00 19 2e b7 5f 00 00 19 01 a6 f9 ff ff 0a 00 ae f9 ff ff 00 1c 4b fc ff ff 16 09 00 9d 5e 00 00 00 01 9d 5e 00 00 0a 00 4a 74 00 00 00 1b 4a 3c 00 00 00 00 00 00 16 c2 00 fc 31 00 00 00 1b bc 5d 00 00 00 00 00 00 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 0c 00 b1 85 00 00 00 1b fa 3b 00 00 00 00 00 00 24 01 16 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 cd 37 00 00 00 1b 94 39 00 00 00 00 00 00 16 24 03 4a 4a 19 01 42 8b 00 00 09 00 a8 fe ff ff 00 01 a8 fe ff ff 4a 4a 4a 20 f3 87 00 00 16 07 2a 15 77 00 30 8c 00 00 2a 16 19 2e f3 87 00 00 00 30 8c 00 00 4c 00 00 00 00 00 00 1b 9b 41 00 00 00 00 00 00 24 01 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 cd 37 00 00 00 1b 94 39 00 00 00 00 00 00 16 24 03 19 01 42 8b 00 00 09 00 a8 fe ff ff 00 01 a8 fe ff ff 16 14 2d 01 c7 d4 00 00 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 85 00 26 86 00 00 00 1b 76 6a 00 00 00 00 00 00 00 39 8c 00 00 19 19 01 42 8b 00 00 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 09 00 03 b8 00 00 00 01 03 b8 00 00 19 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 09 00 03 b8 00 00 00 01 03 b8 00 00 00 3a 8c 00 00 16 07 38 17 81 1b f8 45 00 00 00 00 00 00 16 16 14 2d 01 09 d5 00 00 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 a8 00 1a 86 00 00 00 1b e9 10 00 00 00 00 00 00 1b f0 3b 00 00 00 00 00 00 16 38 3a 19 01 cd d4 00 00 0a 00 e7 bb 00 00 00 1b e1 36 00 00 00 00 00 00 16 19 19 01 42 8b 00 00 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 09 00 03 b8 00 00 00 01 03 b8 00 00 19 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 09 00 03 b8 00 00 00 01 03 b8 00 00 2d 01 c7 d4 00 00 16 07 65 19 2d 01 09 d5 00 00 0f 19 00 34 8c 00 00 09 00 a9 c0 00 00 00 01 a9 c0 00 00 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 00 38 00 00 00 1b c0 6a 00 00 00 00 00 00 16 0f 00 30 8c 00 00 19 19 2e 66 75 00 00 19 2e b7 5f 00 00 19 01 a6 f9 ff ff 0a 00 ae f9 ff ff 00 1c 4b fc ff ff 16 09 00 9d 5e 00 00 00 01 9d 5e 00 00 0a 00 4a 74 00 00 00 1b 4a 3c 00 00 00 00 00 00 16 e2 00 fc 31 00 00 00 1b bc 5d 00 00 00 00 00 00 12 20 5e 5e 00 00 75 00 5a 5e 00 00 00 1b fa 30 00 00 00 00 00 00 1a 2c 02 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 09 00 ad 85 00 00 00 01 ad 85 00 00 4a 16 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 cd 37 00 00 00 1b 94 39 00 00 00 00 00 00 16 24 04 4a 4a 19 01 42 8b 00 00 09 00 a8 fe ff ff 00 01 a8 fe ff ff 4a 4a 4a 20 01 88 00 00 16 07 65 19 77 00 30 8c 00 00 2a 16 19 2e 01 88 00 00 00 30 8c 00 00 54 00 00 00 00 00 00 1b 9d 41 00 00 00 00 00 00 1b f4 3a 00 00 00 00 00 00 16 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 cd 37 00 00 00 1b 94 39 00 00 00 00 00 00 16 24 04 19 01 42 8b 00 00 09 00 a8 fe ff ff 00 01 a8 fe ff ff 16 14 2d 01 c7 d4 00 00 27 07 c6 19 84 82 2d 01 2e 8b 00 00 18 3a 00 81 19 19 01 42 8b 00 00 0a 00 d0 c9 00 00 00 1b e5 37 00 00 00 00 00 00 16 0c 00 2f b8 00 00 00 1b b7 3d 00 00 00 00 00 00 2c 0a 16 16 16 18 0f 00 9a 1b f0 3b 00 00 00 00 00 00 16 2c 35 16 16 06 39 1a 07 39 1a 82 82 82 82 2d 01 c7 d4 00 00 18 0d 00 81 2d 01 09 d5 00 00 16 16 18 0e 00 97 1b 4d 38 00 00 00 00 00 00 16 25 16 16 18 0e 00 77 1b f4 3a 00 00 00 00 00 00 16 2a 16 16 18 23 00 81 19 1b f4 3a 00 00 00 00 00 00 16 0a 00 dd c6 00 00 00 1b 96 44 00 00 00 00 00 00 16 16 16 1b 75 6a 00 00 00 00 00 00 16 07 15 1b 82 19 19 2e 54 32 00 00 19 12 20 35 fe ff ff 0a 00 92 f9 ff ff 00 1c d5 fb ff ff 16 09 00 50 f9 ff ff 00 01 50 f9 ff ff 09 00 46 32 00 00 00 01 46 32 00 00 0c 00 1f 10 00 00 00 1b b4 45 00 00 00 00 00 00 24 1c 16 18 0e 00 77 1b f4 3a 00 00 00 00 00 00 16 2a 16 16 19 2e 66 75 00 00 19 2e b7 5f 00 00 19 01 a6 f9 ff ff 0a 00 ae f9 ff ff 00 1c 4b fc ff ff 16 09 00 9d 5e 00 00 00 01 9d 5e 00 00 0b 00 00 00 00 00 00 1b e1 5e 00 00 00 00 00 00 17 16 07 7f 1b 2d 01 2e 8b 00 00 19 2e 66 75 00 00 19 2e b7 5f 00 00 19 01 a6 f9 ff ff 0a 00 ae f9 ff ff 00 1c 4b fc ff ff 16 09 00 9d 5e 00 00 00 01 9d 5e 00 00 0b 00 00 00 00 00 00 1b e9 5e 00 00 00 00 00 00 17 16 1b d3 10 00 00 00 00 00 00 16 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 04 0b 53

 

 

 

PatchUPK.exe log:

 

 

PatchUPK
Installing mod: New Hit Damage Calculation
by FieryIce
Mod description:
Better hit damage algorithm
Opening package ...
Package file: M:\XCOM Modding\ForPatching/xcomgame.upk
Package opened successfully!
Searching for object named XGAbility_Targeted.RollForHit ...
Object found!
New script memory size: 5116 (0x000013FC)
New script serial size: 5116 (0x000013FC)
Writing data chunk of size 0x00001404 (5124) at
Scope: Object Data
Offset (absolute): 0x0089E6EA (9037546)
Offset (scope-relative): 0x00000028 (40)
Write successful!
Uninstall script saved to new_hit_damage_calc.txt.uninstall25.txt
0​

 

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...