How to use:
- Unpack v1.1 archive and copy the contents of the unpacked modules folder into modules folder of your sider (overwrite if asked)
- Add lua.module = "lib\CommonLib.lua" as the top-most lua.module entry in sider.ini file
Minimum version of PES 2019 Sider required: 5.1.5+
This is not a traditional module that adds new content or does any switching. It is a utility library, containing some common pieces of code that are (for the moment) useful for Scoreboard Server, Ball Server and Referee Kit Server scripts.
Currently, it only has the code which checks if two teams selected in exhibition mode belong to the same league, so that e.g. their league's ball (or scoreboard or referee kit) can automatically be selected in exhibition match.
Important : Since this is a library, which is used by other scripts, it needs to be listed as the first lua.module entry, so that it gets initialized before other "normal" scripts do!
Since the "do teams belong to same league" code in this library is extracted from ScoreboardServer v1.2, I'll also repeat its limitations here:
# automatic selection of league-mode scoreboard(s) in exhibition mode if both teams belong to the same league
applies only to LEAGUES - cups and other competitions are ignored
library reads CompetitionEntry.bin file to determine whether two teams belong to the same league - selection may not be 100% accurate if teams have been moved to different leagues only in EDIT mode
Everything should be working in exhibition mode as intended with patches that use properly created CompetitionEntry.bin files to modify which teams belongs to which league - i.e. Bayer Leverkusen and Schalke 04 being moved to PEU league (Bundesliga) within CompetitionEntry.bin file, not only in-game using league editor in EDIT mode.
If you use only lightweight option files with Bundesliga, then most likely Bayer and Schalke won't be recognized as members of Bundesliga, because your game still uses default Konami's version of CompetitionEntry.bin file, where those two teams belong to Others Europe. In this case, manual scoreboard/ball/refkit selection is still your best friend ;)
The same limitation applies by analogy to PLA and PAS leagues.