Dear all,
I have a set of old scorecards downloaded from our league website. I'm working on a script to automatically convert these to MXP format so we can add them to Cricketstatz. I've extracted all the relevant data from the scorecard file, and now need to write the data out to an MXP file.
So far, I have been using an MXP file produced by Total Cricket Scorer as a template. However, I was wondering if anyone could point me to a schema for an MXP file, the available variables, possible values for each variable etc.
Kind regards,
Paul
Have you consider using this API instead?
https://www.cricketstatz.com/api-uploading-matches
Dear Mark,
Many thanks for your reply.
I had indeed looked at the api, and it could well be an option. My preference for mxp simply reflects how a deliminated text file (which is what the mxp files outputted by TCS appear to resemble) is easier to create in the package I am using to handle the old scorecards.
Is there an advantage to the api approach?
Best wishes,
Paul
There are a few of advantages to using the API:
1. It is our preferred method of publishing matches and will get a lot more development focus in the future (the MXP file import is more of a legacy thing that is there to allow import from older scoring programs)
2. It is real time in that it publishes immediately (rather than having to manually handle a file and then manually import it)
3. (Optionally) Players, teams, divisions and grounds will automatically be added to the online database when they can't be matched
Dear Mark,
Many thanks for your replies. I can see why the api would be the most appropriate method moving forward. However, it is a little overkill for the task I am doing just now. I'll drop an email to the support address just now. Thanks for all your help.
Paul