ruarai / CompilePal

A tool to assist in the compiling of source engine maps
GNU General Public License v3.0
224 stars 26 forks source link

Failed to pack material only used on a func_brush that starts disabled (but is enabled later) #126

Closed bottiger1 closed 1 year ago

bottiger1 commented 4 years ago

Describe the bug I have a map that uses the material tools/climb_alpha on a func_brush that starts disabled and is enabled later on. The material is used nowhere else.

Compilepal does not pack the material.

On my other maps that use that material on brushes that don't start disabled (they also have ones that are disabled), compilepal packs it as expected.

Steps to reproduce Make a func_brush. Mark it as disabled. Put a texture on it that needs to be packed. Don't put that texture anywhere else. Pack the map.

Expected behavior Compilepal should pack the material on disabled func_brushes.

Here is the vmf of the brush.

entity
{
    "id" "42088"
    "classname" "func_brush"
    "angles" "0 0 0"
    "disablereceiveshadows" "0"
    "effects" "0"
    "invert_exclusion" "0"
    "origin" "8164 7564 444"
    "renderamt" "255"
    "rendercolor" "255 255 255"
    "renderfx" "0"
    "rendermode" "0"
    "solidbsp" "0"
    "Solidity" "0"
    "spawnflags" "2"
    "StartDisabled" "1"
    "targetname" "zeladder_zombie_gondola2"
    "texframeindex" "0"
    "vrad_brush_cast_shadows" "0"
    solid
    {
        "id" "42086"
        side
        {
            "id" "13022"
            "plane" "(8144 7568 688) (8184 7568 688) (8184 7560 688)"
            "material" "TOOLS/TOOLSNODRAW"
            "uaxis" "[1 0 0 53] 0.25"
            "vaxis" "[0 -1 0 0] 0.25"
            "rotation" "0"
            "lightmapscale" "16"
            "smoothing_groups" "0"
        }
        side
        {
            "id" "13021"
            "plane" "(8144 7560 200) (8184 7560 200) (8184 7568 200)"
            "material" "TOOLS/TOOLSNODRAW"
            "uaxis" "[-1 0 0 -11] 0.25"
            "vaxis" "[0 -1 0 0] 0.25"
            "rotation" "0"
            "lightmapscale" "16"
            "smoothing_groups" "0"
        }
        side
        {
            "id" "13020"
            "plane" "(8144 7568 688) (8144 7560 688) (8144 7560 200)"
            "material" "TOOLS/TOOLSNODRAW"
            "uaxis" "[0 -1 0 21] 0.25"
            "vaxis" "[0 0 -1 0] 0.25"
            "rotation" "0"
            "lightmapscale" "16"
            "smoothing_groups" "0"
        }
        side
        {
            "id" "13019"
            "plane" "(8184 7568 200) (8184 7560 200) (8184 7560 688)"
            "material" "TOOLS/TOOLSNODRAW"
            "uaxis" "[0 1 0 21] 0.25"
            "vaxis" "[0 0 -1 0] 0.25"
            "rotation" "0"
            "lightmapscale" "16"
            "smoothing_groups" "0"
        }
        side
        {
            "id" "13018"
            "plane" "(8184 7568 688) (8144 7568 688) (8144 7568 200)"
            "material" "TOOLS/TOOLSNODRAW"
            "uaxis" "[-1 0 0 -11] 0.25"
            "vaxis" "[0 0 -1 0] 0.25"
            "rotation" "0"
            "lightmapscale" "16"
            "smoothing_groups" "0"
        }
        side
        {
            "id" "13017"
            "plane" "(8184 7560 200) (8144 7560 200) (8144 7560 688)"
            "material" "TOOLS/CLIMB_ALPHA"
            "uaxis" "[1 0 0 48] 0.25"
            "vaxis" "[0 0 -1 0] 0.25"
            "rotation" "0"
            "lightmapscale" "16"
            "smoothing_groups" "0"
        }
        editor
        {
            "color" "220 30 220"
            "visgroupshown" "1"
            "visgroupautoshown" "1"
        }
    }
    editor
    {
        "color" "220 30 220"
        "visgroupshown" "1"
        "visgroupautoshown" "1"
        "logicalpos" "[0 1000]"
    }
}
Exactol commented 4 years ago

What version is this happening on?

bottiger1 commented 4 years ago

27.11x

Exactol commented 3 years ago

Compile Pal 027.14.zip Can you try this version? I just tested it and it worked for me, but if it doesn't please send the texture

Exactol commented 1 year ago

Closing stale issues, please try the latest prerelease and if the issue is still happening feel free to reopen