Skip to content

rhomble/counterattack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

counterattack

Now you can generate your own Counter Attack player cards for real-life players!

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.

User Guide

Windows

Download the Windows User Guide here

Mac

Download the Mac User Guide here

Quirks

Neymar can't tackle

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.

Potential Issues

Specific country names

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

Documentation

Find any documentation on usage of the different modules in the docstrings of their corresponding files.

Want to contribute?

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.

About

This package creates custom player card data for 'Counter Attack: The Football Strategy Game' from Football Manager data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages