Hi guys,
I appreciate any help given. I've been playing a Racing Manager game where you get different cards that add stats Power; Aero; Grip; Aerodynamics. At first I was looking at ScaleAndSum to see if i could identify there stat weights on which is most important. Like how much does 1 power affect your car, 1 grip etc But i've given up on that even though i found where its at. I will post it anyway as you're all more knowledgeable than me. My old brain just doesn't want to work
. Thanks to @iAlex whos tutorials have helped me so far I was even able to increase my attack damage in a basic game and was so proud of myself 
Now to what im trying is I've found the Module it calls from however lets say i just wanted to set them all to 100 what would I need to change. I'm in IDA and can see the ADD and also a Branch it loads (most likely the item?) So what would I need to do here.
Now Aero, Grip all do the exact same however they just call a different Branch sub_xxxxx
Also if anyone wants to have a go at working the math for stat weights here is code for this.
Thank you all for any help.
I appreciate any help given. I've been playing a Racing Manager game where you get different cards that add stats Power; Aero; Grip; Aerodynamics. At first I was looking at ScaleAndSum to see if i could identify there stat weights on which is most important. Like how much does 1 power affect your car, 1 grip etc But i've given up on that even though i found where its at. I will post it anyway as you're all more knowledgeable than me. My old brain just doesn't want to work
Now to what im trying is I've found the Module it calls from however lets say i just wanted to set them all to 100 what would I need to change. I'm in IDA and can see the ADD and also a Branch it loads (most likely the item?) So what would I need to do here.
Code:
.text:0000000000A548D0 F1Simulation.CarStats$$Power ; DATA XREF: .data.rel.ro:0000000002700218↓o
.text:0000000000A548D0 ; __unwind {
.text:0000000000A548D0 ADD X0, X0, #0x10
.text:0000000000A548D4 B sub_1B73D68
.text:0000000000A548D4 ; } // starts at A548D0
.text:0000000000A548D4 ; End of function F1Simulation.CarStats$$Power
Now Aero, Grip all do the exact same however they just call a different Branch sub_xxxxx
Also if anyone wants to have a go at working the math for stat weights here is code for this.
Code:
il2cpp:0000000001B73EB8 F1Simulation.CarStats$$ScaleAndSum_0 ; CODE XREF: F1Simulation.CarStats$$ScaleAndSum↑j
il2cpp:0000000001B73EB8 ; sub_1B73D68+14C↑j ...
il2cpp:0000000001B73EB8 ; __unwind {
il2cpp:0000000001B73EB8 STR D8, [SP,#-0x10+var_40]!
il2cpp:0000000001B73EBC STP X24, X23, [SP,#0x40+var_30]
il2cpp:0000000001B73EC0 STP X22, X21, [SP,#0x40+var_20]
il2cpp:0000000001B73EC4 STP X20, X19, [SP,#0x40+var_10]
il2cpp:0000000001B73EC8 STP X29, X30, [SP,#0x40+var_s0]
il2cpp:0000000001B73ECC ADD X29, SP, #0x40
il2cpp:0000000001B73ED0 ADRP X20, #byte_2987AC5@PAGE
il2cpp:0000000001B73ED4 LDRB W8, [X20,#byte_2987AC5@PAGEOFF]
il2cpp:0000000001B73ED8 MOV X19, X1
il2cpp:0000000001B73EDC MOV V8.16B, V0.16B
il2cpp:0000000001B73EE0 TBNZ W8, #0, loc_1B73EFC
il2cpp:0000000001B73EE4 ADRP X8, #off_27E9990@PAGE
il2cpp:0000000001B73EE8 LDR X8, [X8,#off_27E9990@PAGEOFF]
il2cpp:0000000001B73EEC LDR W0, [X8]
il2cpp:0000000001B73EF0 BL sub_8DA114
il2cpp:0000000001B73EF4 MOV W8, #1
il2cpp:0000000001B73EF8 STRB W8, [X20,#byte_2987AC5@PAGEOFF]
il2cpp:0000000001B73EFC
il2cpp:0000000001B73EFC loc_1B73EFC ; CODE XREF: sub_1B73D68+178↑j
il2cpp:0000000001B73EFC CBNZ X19, loc_1B73F08
il2cpp:0000000001B73F00 MOV X0, XZR
il2cpp:0000000001B73F04 BL sub_9044CC
il2cpp:0000000001B73F08 ; ---------------------------------------------------------------------------
il2cpp:0000000001B73F08
il2cpp:0000000001B73F08 loc_1B73F08 ; CODE XREF: sub_1B73D68:loc_1B73EFC↑j
il2cpp:0000000001B73F08 LDR X8, [X19,#0x18]
il2cpp:0000000001B73F0C CBNZ W8, loc_1B73F24
il2cpp:0000000001B73F10 BL sub_9052A4
il2cpp:0000000001B73F14 MOV X1, XZR
il2cpp:0000000001B73F18 MOV X2, XZR
il2cpp:0000000001B73F1C BL sub_90443C
il2cpp:0000000001B73F20 ; ---------------------------------------------------------------------------
il2cpp:0000000001B73F20 LDR X8, [X19,#0x18]
il2cpp:0000000001B73F24
il2cpp:0000000001B73F24 loc_1B73F24 ; CODE XREF: sub_1B73D68+1A4↑j
il2cpp:0000000001B73F24 LDR W20, [X19,#0x20]
il2cpp:0000000001B73F28 CMP W8, #1
il2cpp:0000000001B73F2C B.HI loc_1B73F44
il2cpp:0000000001B73F30 BL sub_9052A4
il2cpp:0000000001B73F34 MOV X1, XZR
il2cpp:0000000001B73F38 MOV X2, XZR
il2cpp:0000000001B73F3C BL sub_90443C
il2cpp:0000000001B73F40 ; ---------------------------------------------------------------------------
il2cpp:0000000001B73F40 LDR X8, [X19,#0x18]
il2cpp:0000000001B73F44
il2cpp:0000000001B73F44 loc_1B73F44 ; CODE XREF: sub_1B73D68+1C4↑j
il2cpp:0000000001B73F44 LDR W21, [X19,#0x24]
il2cpp:0000000001B73F48 CMP W8, #2
il2cpp:0000000001B73F4C B.HI loc_1B73F64
il2cpp:0000000001B73F50 BL sub_9052A4
il2cpp:0000000001B73F54 MOV X1, XZR
il2cpp:0000000001B73F58 MOV X2, XZR
il2cpp:0000000001B73F5C BL sub_90443C
il2cpp:0000000001B73F60 ; ---------------------------------------------------------------------------
il2cpp:0000000001B73F60 LDR X8, [X19,#0x18]
il2cpp:0000000001B73F64
il2cpp:0000000001B73F64 loc_1B73F64 ; CODE XREF: sub_1B73D68+1E4↑j
il2cpp:0000000001B73F64 LDR W22, [X19,#0x28]
il2cpp:0000000001B73F68 CMP W8, #3
il2cpp:0000000001B73F6C B.HI loc_1B73F84
il2cpp:0000000001B73F70 BL sub_9052A4
il2cpp:0000000001B73F74 MOV X1, XZR
il2cpp:0000000001B73F78 MOV X2, XZR
il2cpp:0000000001B73F7C BL sub_90443C
il2cpp:0000000001B73F80 ; ---------------------------------------------------------------------------
il2cpp:0000000001B73F80 LDR X8, [X19,#0x18]
il2cpp:0000000001B73F84
il2cpp:0000000001B73F84 loc_1B73F84 ; CODE XREF: sub_1B73D68+204↑j
il2cpp:0000000001B73F84 LDR W23, [X19,#0x2C]
il2cpp:0000000001B73F88 CMP W8, #4
il2cpp:0000000001B73F8C B.HI loc_1B73FA4
il2cpp:0000000001B73F90 BL sub_9052A4
il2cpp:0000000001B73F94 MOV X1, XZR
il2cpp:0000000001B73F98 MOV X2, XZR
il2cpp:0000000001B73F9C BL sub_90443C
il2cpp:0000000001B73FA0 ; ---------------------------------------------------------------------------
il2cpp:0000000001B73FA0 LDR X8, [X19,#0x18]
il2cpp:0000000001B73FA4
il2cpp:0000000001B73FA4 loc_1B73FA4 ; CODE XREF: sub_1B73D68+224↑j
il2cpp:0000000001B73FA4 LDR W24, [X19,#0x30]
il2cpp:0000000001B73FA8 CMP W8, #5
il2cpp:0000000001B73FAC B.HI loc_1B73FC0
il2cpp:0000000001B73FB0 BL sub_9052A4
il2cpp:0000000001B73FB4 MOV X1, XZR
il2cpp:0000000001B73FB8 MOV X2, XZR
il2cpp:0000000001B73FBC BL sub_90443C
il2cpp:0000000001B73FC0 ; ---------------------------------------------------------------------------
il2cpp:0000000001B73FC0
il2cpp:0000000001B73FC0 loc_1B73FC0 ; CODE XREF: sub_1B73D68+244↑j
il2cpp:0000000001B73FC0 ADRP X8, #off_27F37D0@PAGE
il2cpp:0000000001B73FC4 LDR X8, [X8,#off_27F37D0@PAGEOFF]
il2cpp:0000000001B73FC8 LDR W19, [X19,#0x34]
il2cpp:0000000001B73FCC LDR X0, [X8] ; Class$System.Math
il2cpp:0000000001B73FD0 LDRB W8, [X0,#0x127]
il2cpp:0000000001B73FD4 TBZ W8, #1, loc_1B73FE4
il2cpp:0000000001B73FD8 LDR W8, [X0,#0xD8]
il2cpp:0000000001B73FDC CBNZ W8, loc_1B73FE4
il2cpp:0000000001B73FE0 BL il2cpp_runtime_class_init_0
il2cpp:0000000001B73FE4 ; ---------------------------------------------------------------------------
il2cpp:0000000001B73FE4
il2cpp:0000000001B73FE4 loc_1B73FE4 ; CODE XREF: sub_1B73D68+26C↑j
il2cpp:0000000001B73FE4 ; sub_1B73D68+274↑j
il2cpp:0000000001B73FE4 ADRP X8, #dword_1D6DF98@PAGE
il2cpp:0000000001B73FE8 LDR S3, [X8,#dword_1D6DF98@PAGEOFF]
il2cpp:0000000001B73FEC SCVTF S0, W20
il2cpp:0000000001B73FF0 SCVTF S1, W21
il2cpp:0000000001B73FF4 SCVTF S2, W22
il2cpp:0000000001B73FF8 FMUL S0, S0, S3
il2cpp:0000000001B73FFC FMUL S1, S1, S3
il2cpp:0000000001B74000 SCVTF S4, W23
il2cpp:0000000001B74004 FMUL S2, S2, S3
il2cpp:0000000001B74008 FMUL S0, S0, S8
il2cpp:0000000001B7400C FMUL S1, S1, S8
il2cpp:0000000001B74010 SCVTF S5, W24
il2cpp:0000000001B74014 FMUL S4, S4, S3
il2cpp:0000000001B74018 FADD S0, S0, S1
il2cpp:0000000001B7401C FMUL S1, S2, S8
il2cpp:0000000001B74020 SCVTF S6, W19
il2cpp:0000000001B74024 FMUL S5, S5, S3
il2cpp:0000000001B74028 FADD S0, S0, S1
il2cpp:0000000001B7402C FMUL S1, S4, S8
il2cpp:0000000001B74030 FMUL S3, S6, S3
il2cpp:0000000001B74034 FADD S0, S0, S1
il2cpp:0000000001B74038 FMUL S1, S5, S8
il2cpp:0000000001B7403C FADD S0, S0, S1
il2cpp:0000000001B74040 FMUL S1, S3, S8
il2cpp:0000000001B74044 FADD S0, S0, S1
il2cpp:0000000001B74048 FMOV S1, #1.0
il2cpp:0000000001B7404C MOV X0, XZR
il2cpp:0000000001B74050 BL System.Math$$Min_12242500
il2cpp:0000000001B74054 LDP X29, X30, [SP,#0x40+var_s0]
il2cpp:0000000001B74058 LDP X20, X19, [SP,#0x40+var_10]
il2cpp:0000000001B7405C LDP X22, X21, [SP,#0x40+var_20]
il2cpp:0000000001B74060 LDP X24, X23, [SP,#0x40+var_30]
il2cpp:0000000001B74064 FMOV S1, WZR
il2cpp:0000000001B74068 MOV X0, XZR
il2cpp:0000000001B7406C LDR D8, [SP+0x40+var_40],#0x50
il2cpp:0000000001B74070 B System.Math$$Max_12242252
il2cpp:0000000001B74070 ; } // starts at 1B73EB8
il2cpp:0000000001B74070 ; End of function sub_1B73D68
Thank you all for any help.