Tuesday 9 April 2019

PES 2019 [Sider module] Common Library v1.0 + v1.1 for Sider

Current version: 1.1
Minimum version of Sider required: 5.1.5+

Quick Start section:
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

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:

# checking if two teams belong to the same league (useful in exhibition mode)
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 - checking 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.
The same limitation applies by analogy to PLA and PAS leagues.


No comments:

Post a Comment