lazy_chesnut
International Coach
yeah, you are right - would be easier in VB and much more detailed, but i think people would mostly want to use it in game, which means i will have to try and implement it within the existing framework...not impossible, but will take some work...
If you did want to help out, Tom, then maybe you could whip me up some pseudo code...? No big deal tho...i am keen to have lots of stats...hmm...actually we could probably hav both anyway...the 'ingame' version which reads from the flat (text) file and the 'offline' version which would be like an external VB app that would read in the data and you could print it out etc etc.
Could be cool??
As keen cricket fans, I'm sure we're all agreed that enough of us are sad enough to want all the juicy stats. Would it be at all possible to record every delivery that the user plays a part in and include the following data:
- is user batting team or fielding team
- bowler ID
- batsman ID
- ball speed
- ball pitch point
- ball 'passing the batsman' point
- runs scored from ball
- shot played (either just 'shot/no shot' or what actual shot was played)
- was it a no ball or a wide
- was it a wicket (and if so type of dismissal)
I'm sure there are some other things, too. If having every ball recorded would make a ridiculous amount of work, and take a ridiculous amount of disk space, then what about either just having an option to toggle stat tracking on/off, or having it turned on when playing a series, or a career, etc.?
Also, if the above stats are recorded, I believe it would be possible to work out averages, strike rates, etc. all from going through the balls and building up the scorecard again....
This could be mammoth, but it also could be awesome.
Finally, LM, did you have a read of (and a think about) my ideas for pitch cracks and stuff by reading a BMP into an array? I really think it could work.