cwtools / cwtools-hoi4-config

.cwt config for Hearts of Iron IV
MIT License
16 stars 20 forks source link

DLC GFX files not recognised #177

Open Zankoas opened 2 years ago

Zankoas commented 2 years ago

When defining GFX files such as this:

    SpriteType = {
        name = "GFX_HAW_armored_car1_medium"
        texturefile = "gfx/interface/technologies/usa_armored_car_equipment_1.dds"
    }

The files can either be in the mod files like so: <MOD_NAME>/gfx/interface/technologies/usa_armored_car_equipment_1.dds

Or in the main mod files like so: Hearts of Iron IV/gfx/interface/technologies/usa_armored_car_equipment_1.dds

Or - and this is the one that isn't working - in the DLC folder like so: Hearts of Iron IV/dlc/<DLC_NAME>/gfx/interface/technologies/usa_armored_car_equipment_1.dds

Zankoas commented 2 years ago

Note this also applies to .gfx. files; something defined in a DLC .gfx. files (such as here: Hearts of Iron IV\dlc\dlc028_la_resistance\gfx\entities\_LaR_meshes_vehicles.gfx), will throw an error for not existing

BiscuitCookies commented 8 months ago

I've managed to have a workaround by to doing stuff like filepath[dlc/dlc038_arms_against_tyranny/], but it only works when working with in the vanilla files, when doing it while working in a mod folder it doesn't check in vanilla files for it.

I've also had probably a related issue where I added paths for spriteType to read the dlc files, and those worked fine when working vanilla, but acts like they don't exist when working in mod files