This python package creates a .xlsx file with Counter Attack player card stats for any real-life footballers from their Football Manager attributes. This .xlsx file is intended to be used with the Counter Attack Custom Card Generator created by Konrad Frac. The Football Manager data is scraped from FMInside.
Download the Windows User Guide here
Download the Mac User Guide here
If a player's Football Manager skills translate to a Counter Attack skill score of 0, that skill is given a value of 1 instead. This is due to Counter Attack not using 0s for skill values. According to the current translation (and not adjusting the result to 1), Neymar's tackling rounds down to a Counter Attack tackling score of 0.
If you get the error below when loading a .xlsx file to the Custom Card Generator, the issue is the country name on FMInside does not match any of the countries recognized by the Custom Card Generator. Both FMInside's version and the generator's version of the country name need to be added to the NATION_CONV dictionary in the fminside.py module. If you come across this error, let me know and I'll update the code.
Error during player file uploading. Player has wrong country in row: xx
Find any documentation on usage of the different modules in the docstrings of their corresponding files.
Fork this repository to make any changes you see fit! In particular, the FM_TO_CA_DICT in the player.py module. This is what translates Football Manager stats to Counter Attack stats (and is currently just my opinion on which should be considered for which). Fun fact: skill.

