[Sider module] Common Library v1.0 for Sider

[Sider module] Common Library

Current version:
Minimum version of Sider required: 6.1.0+

Quick Start section:
How to use:

  1. Unpack v1 archive and copy the contents of the unpacked modules folder into modules folder of your sider (overwrite if asked)
  2. Add lua.module = "lib\CommonLib.lua" as the first lua.module entry (above all others) 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!

Link [v1.0]

Please, do not re-upload to other services

# 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. have Bayern, 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 Bayern, 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

Post a Comment

Previous Post Next Post