Something to do with Areaportals:

Discussion in 'Mapping Questions & Discussion' started by Erk, Mar 8, 2017.

  1. Erk

    aa Erk erk

    Messages:
    298
    Positive Ratings:
    708
    Hey, so I thought to myself "Why dont I just make harvest medieval?" and so I added the tf_logic_medieval right into the frame. I didn't feel like that was enough to make it medieval however, so replaced the textures of the map and certain props with a more fitting version.


    On my first compile I got stuff like this:

    [​IMG]

    and

    [​IMG]


    No leaks, so I figured I'd go ahead and use the "-lights mylights.rad -staticproppolys -textureshadows -staticproplighting" for compiling to see if that's the origin of my problems.

    It did not work, so I figured out that my error must have something to do with areaportals, since the bugs do the job of not rendering certain things under certain conditions and they are around the area of the areaportals.

    All the hint brushes, areaportals, and occluders are untouched.

    I would be grateful for any help

    Edit: Heres the compile log in case that helps-

    ** Executing...
    ** Command: "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vbsp.exe"
    ** Parameters: -lights mylights.rad -staticproppolys -textureshadows -staticproplighting

    Valve Software - vbsp.exe (Feb 17 2017)
    VBSP: Unknown option "-lights"

    Command line: "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vbsp.exe" "-lights" "mylights.rad" "-staticproppolys" "-textureshadows" "-staticproplighting"

    usage : vbsp [options...] mapfile
    example: vbsp -onlyents c:\hl2\hl2\maps\test

    Common options (use -v to see all options):

    -v (or -verbose): Turn on verbose output (also shows more command
    line options).

    -onlyents : This option causes vbsp only import the entities from the .vmf
    file. -onlyents won't reimport brush models.
    -onlyprops : Only update the static props and detail props.
    -glview : Writes .gl files in the current directory that can be viewed
    with glview.exe. If you use -tmpout, it will write the files
    into the \tmp folder.
    -nodetail : Get rid of all detail geometry. The geometry left over is
    what affects visibility.
    -nowater : Get rid of water brushes.
    -low : Run as an idle-priority process.
    -embed <directory> : Use <directory> as an additional search path for assets
    and embed all assets in this directory into the compiled
    map

    -vproject <directory> : Override the VPROJECT environment variable.
    -game <directory> : Same as -vproject.


    ** Executing...
    ** Command: "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vvis.exe"
    ** Parameters: -game "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf" "c:\program files (x86)\steam\steamapps\common\team fortress 2\tf\maps\koth_medievalharvest_b1"

    Valve Software - vvis.exe (Feb 17 2017)
    4 threads
    reading c:\program files (x86)\steam\steamapps\common\team fortress 2\tf\maps\koth_medievalharvest_b1.bsp
    Error opening c:\program files (x86)\steam\steamapps\common\team fortress 2\tf\maps\koth_medievalharvest_b1.bsp

    ** Executing...
    ** Command: "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vrad.exe"
    ** Parameters: -lights mylights.rad -staticproppolys -textureshadows -staticproplighting -game "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf" "c:\program files (x86)\steam\steamapps\common\team fortress 2\tf\maps\koth_medievalharvest_b1"

    Valve Software - vrad.exe SSE (Feb 17 2017)

    Valve Radiosity Simulator
    4 threads
    [Reading texlights from 'lights.rad']
    unknown light specifier type - lights

    [56 texlights parsed from 'lights.rad']

    Warning: Couldn't open texlight file mylights.rad.
    Loading c:\program files (x86)\steam\steamapps\common\team fortress 2\tf\maps\koth_medievalharvest_b1.bsp
    Error opening c:\program files (x86)\steam\steamapps\common\team fortress 2\tf\maps\koth_medievalharvest_b1.bsp

    ** Executing...
    ** Command: Copy File
    ** Parameters: "c:\program files (x86)\steam\steamapps\common\team fortress 2\tf\maps\koth_medievalharvest_b1.bsp" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\maps\koth_medievalharvest_b1.bsp"


    ** Executing...
    ** Command: "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\hl2.exe"
    ** Parameters: -dev -console -allowdebug -game "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf" +map "koth_medievalharvest_b1"
     
    Last edited: Mar 8, 2017
  2. Blade x64

    aa Blade x64 Logical insanity

    Messages:
    200
    Positive Ratings:
    450
    You added vrad's arguments to vbsp. Most programs will just spit out their help info if they get unexpected arguments.

    Also, if that's a decompiled version, most often you'll have to fix up the areaportals since the decomplier can only tell where one face is. Sometimes it makes the brush on the wrong side, resulting in areaportal leaks.
     
    • Thanks Thanks x 1
    • Like Like x 1
  3. Erk

    aa Erk erk

    Messages:
    298
    Positive Ratings:
    708
    So just remake the areaportals entirely?
     
  4. Micnax

    aa Micnax I maek map

    Messages:
    2,056
    Positive Ratings:
    1,382
    Yup

    Happens on every decompiled map
     
    • Thanks Thanks x 1
  5. Blade x64

    aa Blade x64 Logical insanity

    Messages:
    200
    Positive Ratings:
    450
    Look for ones one unit thick, those are the ones on the wrong side. You'll just need to make them fit the hole they were intended to fill.
     
    • Thanks Thanks x 1