Skip to content

Tools modules

Pival edited this page Jul 17, 2021 · 7 revisions

Before running any script, it is important to create some useful functions, which may be reuse several times. Well, here you can find a list of all files whose main goal is to be used by other files.

Of course, some of those files still have a main part, however do not expect it to do some awesome work.

Useful files

  1. util.py: Define several constants, globals variables and functions which are used by most (if not all) other files.
  2. wikiUtil.py: Define several functions which will perform some request to the Wiki's API.
  3. mapUtil.py: Define several functions which generate wikicode used on most pages.
  4. reward.py: Define a single function, parseReward and several constants used for reward generation.
  5. scenario.py: Define some functions for the scenario part of pages.

DerivedMapSettings.py

DerivedMapSettings.py is a file which simply holds two constants, and is only use by DerivedMap.py.


DERIVED_SETTINGS

A list of objects used to determined which kind of derived map is currently on look.

Each object is composed of three fields:

  • value: A list of object with the following fields:
    • name: The name of the type of derived map.
    • diff: A list of difficulties.
  • mapCond: A list of objects with the following fields. This list must have the same size as value.diff.
    • true_lv: The level of enemies on the map.
    • rarity: The rarity of enemies on the map.
    • promotion_tier: An unknown fields which seams to always be 1.
    • hp_factor: The percentage of enemies hp relativ to the original map.
  • extraCond: A list of lambda. This list must have the same size as value. Each lambdas take the id_tag of the group and the index of the battle.

REORGANIZED_DERIVED_SETTINGS

Same as DERIVED_SETTINGS, but value.name may differ.

This one shall not be used.


plistSplitter.py

plistSplitter.py is a file that only holds a main.


__main__

python3 plistSplitter.py [file [...]]

For each .plist files passed as parameters, look for the associated .png, and split it according to the plist. Save each files on the directory ../Cropped/.


wepMgSplitter.py

wepMgSplitter.py is a file that only holds a main.


__main__

python3 wepMgSplitter.py [wep_mgXXX.png [...]]

For each images passed as parameters split it according to 56x64 and 128x64+48+0. Save each files on the directory ../Cropped/ by appending _1 and _2 to the files.

  • REUtil.py
  • Reverse.py
  • Events
    • RevVG.py
    • RevTT.py
    • RevTB.py
    • RevGC.py
    • RevFB.py
    • RevRS.py
    • RevLL.py
    • RevHoF.py
    • RevMS.py
    • RevFP.py
    • RevPoL.py
  • Others
    • RevData.py
    • RevMap.py
    • RevQuests.py
    • RevSound.py
    • RevUnit.py
Clone this wiki locally