Hi,
Here is some stuff I've worked out about the .atr files :
Firstly this is what each file corresponds to each different shot: All files have a-cc in front of them.
17c Forward Defence1
18 Forward Defence2
19 Backfoot Defence
20 Backfoot Defence(avoiding ball with 1 hand on bat)
21 Cover drive(slashing shot)
22 Cover Drive(Straight bat)
23b 6-Hit Straight drive
24 Normal straight-drive
25 6-Hit on-Drive
26 Normal on-drive
27 6-Hit sweep over mid-wicket
28 Backfoot on-Drive
29b Paddle sweep
30 Normal sweep
31 Pull
32 Hook1
33 Hook2(Ducking into the shot)
34a Square Drive
35 Sq. Cut
36 Cut(rare shot -usually played by CPU)
37 Front-foot Leg-Glance
38 Normal Leg-Glance
39 Backfoot Leg-glance(Jumping back)
53 Normal on-Drive(Not sure the difference from other)
61 Mid-wicket Heave(6-Hit shot 6+ctrl)
66 Leg Glance
I think that is right.
inside each file is this text: here is the Square Cut:
StrokeAttr
Type Aggressive(maybe for more defensive CPU batting we could change some Moderate shots to Aggressive)
Faceing 264437760(Don't know what this means)
Difficulty 33216 Reward 65536
Difficulty6 43456 Reward6 65536(I think shots are graded by difficullty - I don't know what reward means)
Difficulty3 0 Reward3 0(I think the 3 is for the CMBRLARA cheat)
EdgeProb 0 EdgeProb6 5184 EdgeProb3 0(How likely the CPU is to edge Normal or 6-Hit)
BowlerTypes 15(The type of bowler the CPU plays each shot off - 15 is all types,9 is fast and swing,1 is fast only,6 is spin only)
StumpPosition 1(The stump position that the CPU will play each shot off - I think 1 means outside off,0 means outside leg,3 means all round the wicket,I'm not sure about 2)
BatsmanPosition 0(Not sure about this)
PitchPosition 0(The length of the ball - don't know what each number means)
Name NoName Variation NoName
Then there are five stages in the shot:
Mode Normal KeyFrame 0
Frame 31
Vertical 107347968(How high he hits it)
Direction 45481984(Direction for perfectly timed shot) Range 9502720(General area of the shot - I'm not sure what number equals what in vertical,direction,range;but I'm sure we could with some experimenting)
Power 815104(How hard the shot is hit) Range 435200(Don't know why range appears again)
Mode Normal KeyFrame 1
Frame 32
Vertical 120979456
Direction 48889856 Range 9371648
Power 1343488 Range 453632
I know a lot of the stuff is obvious - maybe someone else knows more about it(maybe Shailesh).
Also I can't workout how I changed the late cut...
I could change the direction,but I don't know whether that would be any good,as it would have to go almost square to beat the wicket-keeper.
Here is some stuff I've worked out about the .atr files :
Firstly this is what each file corresponds to each different shot: All files have a-cc in front of them.
17c Forward Defence1
18 Forward Defence2
19 Backfoot Defence
20 Backfoot Defence(avoiding ball with 1 hand on bat)
21 Cover drive(slashing shot)
22 Cover Drive(Straight bat)
23b 6-Hit Straight drive
24 Normal straight-drive
25 6-Hit on-Drive
26 Normal on-drive
27 6-Hit sweep over mid-wicket
28 Backfoot on-Drive
29b Paddle sweep
30 Normal sweep
31 Pull
32 Hook1
33 Hook2(Ducking into the shot)
34a Square Drive
35 Sq. Cut
36 Cut(rare shot -usually played by CPU)
37 Front-foot Leg-Glance
38 Normal Leg-Glance
39 Backfoot Leg-glance(Jumping back)
53 Normal on-Drive(Not sure the difference from other)
61 Mid-wicket Heave(6-Hit shot 6+ctrl)
66 Leg Glance
I think that is right.
inside each file is this text: here is the Square Cut:
StrokeAttr
Type Aggressive(maybe for more defensive CPU batting we could change some Moderate shots to Aggressive)
Faceing 264437760(Don't know what this means)
Difficulty 33216 Reward 65536
Difficulty6 43456 Reward6 65536(I think shots are graded by difficullty - I don't know what reward means)
Difficulty3 0 Reward3 0(I think the 3 is for the CMBRLARA cheat)
EdgeProb 0 EdgeProb6 5184 EdgeProb3 0(How likely the CPU is to edge Normal or 6-Hit)
BowlerTypes 15(The type of bowler the CPU plays each shot off - 15 is all types,9 is fast and swing,1 is fast only,6 is spin only)
StumpPosition 1(The stump position that the CPU will play each shot off - I think 1 means outside off,0 means outside leg,3 means all round the wicket,I'm not sure about 2)
BatsmanPosition 0(Not sure about this)
PitchPosition 0(The length of the ball - don't know what each number means)
Name NoName Variation NoName
Then there are five stages in the shot:
Mode Normal KeyFrame 0
Frame 31
Vertical 107347968(How high he hits it)
Direction 45481984(Direction for perfectly timed shot) Range 9502720(General area of the shot - I'm not sure what number equals what in vertical,direction,range;but I'm sure we could with some experimenting)
Power 815104(How hard the shot is hit) Range 435200(Don't know why range appears again)
Mode Normal KeyFrame 1
Frame 32
Vertical 120979456
Direction 48889856 Range 9371648
Power 1343488 Range 453632
I know a lot of the stuff is obvious - maybe someone else knows more about it(maybe Shailesh).
Also I can't workout how I changed the late cut...
I could change the direction,but I don't know whether that would be any good,as it would have to go almost square to beat the wicket-keeper.