Having trouble running the map for testing.

Discussion in 'Mapping Questions & Discussion' started by GoneFishing, Jun 1, 2017.

  1. GoneFishing

    GoneFishing L1: Registered

    Messages:
    6
    Positive Ratings:
    0
    I'm making an arena map, (Yes, I know those maps aren't popular) but whenever I try to run it, I get a message that reads:

    "The command failed. Windows reported the error: "The system cannot find the file specified.""

    Hope you can solve this, because I really need to test out my map to see if it has issues.
     
  2. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    986
    Positive Ratings:
    1,114
    You have an error in your map that's causing the compile to fail. Can you share the compile log?
     
  3. GoneFishing

    GoneFishing L1: Registered

    Messages:
    6
    Positive Ratings:
    0
    What's the complie log? Sorry I'm just new to making maps.
     
  4. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    986
    Positive Ratings:
    1,114
    You can get it from the window that pops up when you compile, or from the your_mapname.log file in the same folder as your vmf.
     
  5. Diva Dan

    aa Diva Dan hello!

    Messages:
    749
    Positive Ratings:
    947
    Don't be afraid to use alt + P in hammer itself to bring up any errors. It won't catch everything, but the interlopers error checker will find even more if you hand it a compile log
     
    • Like Like x 1
  6. GoneFishing

    GoneFishing L1: Registered

    Messages:
    6
    Positive Ratings:
    0
    Alright, I think I found it.


    ** Executing...
    ** Command: "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vbsp.exe"
    ** Parameters: -game "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\sourcesdk_content\tf\mapsrc\arena_cap_two.vmf"

    Valve Software - vbsp.exe (Feb 17 2017)
    6 threads
    materialPath: C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\materials
    Loading C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\sourcesdk_content\tf\mapsrc\arena_cap_two.vmf
    fixing up env_cubemap materials on brush sides...
    ProcessBlock_Thread: 0...1...2...3...4...5...6...7...8...9...10 (0)
    **** leaked ****
    Entity info_player_teamspawn (-305.00 -127.00 136.00) leaked!
    Processing areas...done (0)
    Building Faces...done (0)
    FixTjuncs...
    PruneNodes...
    WriteBSP...
    done (0)
    *** Error: Skybox vtf files for skybox/sky_tf2_04 weren't compiled with the same size texture and/or same flags!
    Can't load skybox file skybox/sky_tf2_04 to build the default cubemap!
    *** Error: Skybox vtf files for skybox/sky_tf2_04 weren't compiled with the same size texture and/or same flags!
    Can't load skybox file skybox/sky_tf2_04 to build the default cubemap!
    Finding displacement neighbors...
    Finding lightmap sample positions...
    Displacement Alpha : 0...1...2...3...4...5...6...7...8...9...10
    Building Physics collision data...
    Displacement 2 has bad geometry near -396.00 -275.00 31.06
    Can't compile displacement physics, exiting. Texture is COALMINES/DIRTGROUND004


    ** 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\sourcesdk_content\tf\mapsrc\arena_cap_two"

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

    ** Executing...
    ** Command: "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vrad.exe"
    ** Parameters: -game "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\sourcesdk_content\tf\mapsrc\arena_cap_two"

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

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

    [56 texlights parsed from 'lights.rad']

    Loading c:\program files (x86)\steam\steamapps\common\team fortress 2\sourcesdk_content\tf\mapsrc\arena_cap_two.bsp
    Error opening c:\program files (x86)\steam\steamapps\common\team fortress 2\sourcesdk_content\tf\mapsrc\arena_cap_two.bsp

    ** Executing...
    ** Command: Copy File
    ** Parameters: "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\sourcesdk_content\tf\mapsrc\arena_cap_two.bsp" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\maps\arena_cap_two.bsp"

    The command failed. Windows reported the error:
    "The system cannot find the file specified."


    Plus I run it on normal settings, if that's any useful info.
     
  7. GoneFishing

    GoneFishing L1: Registered

    Messages:
    6
    Positive Ratings:
    0
    I've done that alt + P thing, apparently something is wrong with the point that's in the map from what I believe.

    It reads:
    Entitly (prop_dynamic) has bad 1/0 connections
    Entitly (trigger_capture_area) has bad 1/0 connections
    There is no player start


    The entity has one or more I/O connections that are invalid, target a nonexistent entity, or connect to invalid inputs in the target entity. Fixing this error deletes the bad connections.


    Which is strange for me, because it was running perfectly fine earlier.
     
  8. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    986
    Positive Ratings:
    1,114
    Alt+P is useful, but the log will tell you exactly what caused the compile to fail. The error message will be at the very end of the vbsp section, right before vvis starts. In this case, you have a displacement that's giving the compiler trouble - either smooth it out, or delete and remake it simpler.
     
    • Like Like x 1
  9. GoneFishing

    GoneFishing L1: Registered

    Messages:
    6
    Positive Ratings:
    0
    Mmm, alright I'll try fixing that, and see if there's any other issues. Thanks.
     
  10. Da Spud Lord

    Da Spud Lord L6: Sharp Member

    Messages:
    278
    Positive Ratings:
    207
    This means that the specified entities have outputs that are broken; you created an output in these entities but forgot to specify one or more data fields. Check these entities and either delete the broken outputs or add the missing data. Broken outputs will have a red symbol next to them, as seen here:
    Untitled.png
    The output on top is an example of a working output with all of the data properly filled in, the output on the bottom is an example of a broken output with missing data.

    However, this alone should not cause your map to fail compiling or break fatally- at worst, the outputs themselves just won't do anything, and the rest of the map should keep on running fine.
    This error can be ignored. Hammer is telling you that there's no info_player_start entity, which is used in other Source games but not in TF2, so you don't need one of those entities.

    To find the actual problem with your map, we turn to the Interlopers compile log checker, a super handy tool that checks your compile log for errors and tells you what's wrong. Here is a list of the errors that came up when I put your compile log in:
    I suspect this is the error that is causing your map to fail compiling. There's also another problem with your map:
    Now leaks won't cause your map to fail compiling, and you can technically run a leaking map in TF2, however it's best to remove these as this causes the compiler to not perform VVIS (because it can't separate the inside of your map from the outside), and the lighting will be very simple and weird. You should never, EVER release a map with a leak in it. The Valve Developer Wiki explains more about leaks and how to find them.
     
    • Like Like x 1
  11. GoneFishing

    GoneFishing L1: Registered

    Messages:
    6
    Positive Ratings:
    0
    I've tested that control point and it was working just fine, weird.

    And yeah that's probably the issues, I've gotten rid of them, and will try redoing that certain area.

    I already know it's leaking, I haven't gotten to that part yet.

    Thanks for the detailed help.
     
  12. MOCOLONI

    MOCOLONI L5: Dapper Member

    Messages:
    207
    Positive Ratings:
    42
    Also don't forget to fix this one, either it will create other issues in your map. To do so, go to "View>Go to Coordinates" and enter the origin numbers in it so it will teleport you to the leaked entity. It seems that this entity is somehow connected to the void (the black space outside the map), which should not.

    Once you performed a possible fix, compile your with the next compile settings:

    Run BSP: Normal
    Run VIS: No
    Run RAD: No
    Don't run the game after compile: (marked)

    This is a quick compile which lets you see the full compile log, but the map isn't really playable. Once you stop seeing the LEAK warning, you can set the compile settings back to Normal.
     
  13. henke37

    aa henke37

    Messages:
    1,718
    Positive Ratings:
    371
    Or get a better build system that detects leaks and halts the build when they occur. You can even do that with the advanced compile options in hammer.