Pakrat gets stuck on "textures"

Discussion in 'Mapping Questions & Discussion' started by Shadow Tyrant, Sep 3, 2009.

  1. Shadow Tyrant

    Shadow Tyrant L69: Deviant Member

    Messages:
    69
    Positive Ratings:
    3
    When I open my map in pakrat, whether I use "scan" or "auto" I always get stuck here:

    [​IMG]

    It only happens to my map. I tried some other maps, and they all worked fine. I tried recompiling my map, and that didn't help at all.

    I am at a loss.
     
  2. Terr

    aa Terr Cranky Coder

    Messages:
    1,591
    Positive Ratings:
    405
    There are enough niggling bugs in Pakrat I've been seriously considering decompiling it to debug and fix it for my own use. I guess the problem is I don't trust it, after it corrupted my PCFs the first time I ever used it...
     
  3. Shadow Tyrant

    Shadow Tyrant L69: Deviant Member

    Messages:
    69
    Positive Ratings:
    3
    What do you suggest as an alternative for packing in custom content?
     
  4. Terr

    aa Terr Cranky Coder

    Messages:
    1,591
    Positive Ratings:
    405
    I've been using bspzip with a list file.

    Batch file I wrote to run bspzip:
    Code:
    @echo off
    set bspzip=C:\Progra~1\Steam\steamapps\SteamUsernameHere\sourcesdk\bin\orangebox\bin\bspzip.exe
    set sourcefolder=C:\Progra~1\Steam\steamapps\SteamUsernameHere\sourcesdk_content\tf\mapsrc
    set destfolder=C:\Progra~1\Steam\steamapps\SteamUsernameHere\team fortress 2\tf\maps
    
    
    
    set fname=%1
    
    IF NOT EXIST %sourcefolder%\%fname%.bsp set /p fname=Enter a map name (ex. "ctf_thingy_a1"): 
    set src=%sourcefolder%\%fname%.bsp
    set listing=%sourcefolder%\%fname%.list  
    set dst=%destfolder%\%fname%.bsp
    
    IF NOT EXIST %src% GOTO END
    IF NOT EXIST %listing% GOTO END
    
    "%bspzip%" -addlist "%src%" "%listing%" "%dst%"
    pause
    GOTO EOF
    
    :END
    echo A required file could not be found
    pause
    :EOF
    
    ctf_example_a1.list file used by bspzip so it know what to change:

    Code:
    maps\ctf_example_a1_particles.txt
    c:\progra~1\Steam\steamapps\SteamUsernameHere\team fortress 2\tf\maps\ctf_example_a1_particles.txt
    scripts\soundscapes_ctf_example_a1.txt
    c:\progra~1\Steam\steamapps\SteamUsernameHere\team fortress 2\tf\scripts\soundscapes_ctf_example_a1.txt
    particles/2fort_revamp.pcf
    c:\progra~1\Steam\steamapps\SteamUsernameHere\team fortress 2\tf\particles/custom_particle_file_here.pcf
    Unlike Pakrat, there's no auto-scanning, I'm manually defining things to be packed in.
     
  5. Vigilante212

    Vigilante212 L7: Fancy Member

    Messages:
    481
    Positive Ratings:
    33
    I think it has something to do with the swamp pack. because I never had this issue before, but im using a few swamp tex and now it freezes just like yours.
     
  6. Shadow Tyrant

    Shadow Tyrant L69: Deviant Member

    Messages:
    69
    Positive Ratings:
    3
    Funny thing about that is, one of the maps I tested in pakrat was the swamp_vignette, and it worked fine.
     
  7. Vigilante212

    Vigilante212 L7: Fancy Member

    Messages:
    481
    Positive Ratings:
    33
    yea but i think some swamp stuff doesnt transfer over well for other maps. like grass and water.
     
  8. Vigilante212

    Vigilante212 L7: Fancy Member

    Messages:
    481
    Positive Ratings:
    33
    Ok I took the swamp_murky water out of my map and pakrat works now so at least now we know what causes it :)