NickHugi / PyKotor

A Python library that can read and modify most file formats used by the game Knights of the Old Republic and its sequel.
GNU Lesser General Public License v3.0
11 stars 3 forks source link

Error handling for when exceeding the game's hardcoded 2da row limits. #84

Open th3w1zard1 opened 5 months ago

th3w1zard1 commented 5 months ago

K1 at least has hardcoded 2da limits. This PR helps out modders by telling them when they've exceeded those limits. Is easier than diagnosing the game's behavior itself.

    hardcapped_row_limits = {
        "placeables.2da": 256,
        "upcrystals.2da": 256,
        "upgrade.2da": 32,
    }