CommunityDragon / CDTB

A library containing everything to extract files from client files.
GNU Lesser General Public License v3.0
119 stars 33 forks source link

add export option for atlas info files #91

Closed Morilli closed 3 months ago

Morilli commented 10 months ago

Converts clientstates/*.cdtb files to a json-format including all relevant information. Those files are used to index atlas dds files, contained is information about all the atlas's subimages.

Example file clientstates/gameplay/ux/endofgame.cdtb gets converted to:

{
    "UIAutoAtlas/ClientStates/Gameplay/UX/EndOfGame/atlas_0.dds": {
        "ASSETS/UX/TFTMobile/Modal/TFTM_Modal_ContinueShroud.TFTmT1318.png": {
            "startX": 0.00390625,
            "startY": 0.015625,
            "endX": 0.853515625,
            "endY": 0.5703125
        }
    }
}

Open to suggestions about naming and stuff. This also will require basic testing to make sure all files parse cleanly.

benoitryder commented 10 months ago

Nice changes overall.

With proposed changes:

{
    "game/uiautoatlas/clientstates/gameplay/ux/endofgame/atlas_0.png": [
        {
            "path": "ASSETS/UX/TFTMobile/Modal/TFTM_Modal_ContinueShroud.TFTmT1318.png",
            "startX": 0.00390625,
            "startY": 0.015625,
            "endX": 0.853515625,
            "endY": 0.5703125
        }
    ]
}