Support SFMLab on Patreon

Map Recompiler

Warning: BETA content

This file is marked as "BETA" which means that the contents might be unfinished, outdated or incompatible with the most recent version of Source Filmmaker.


Description

A simple tool that allows you to recompile a map quickly and easily, with no setup required! (Ignore the horrible images, was tired when I created this... Hope I'll get something better soon.)

Its main purpose is to remove a map's lighting completely, leaving it fully black, but it also includes options to remove the fog and props of a map as well (if you want to do manual scenebuilding)!

Requires .NET Framework 4 or higher and Java 7 or higher! Included the source code

Please check the included "notice.txt" file if you are having any issues.

Simple how-to-use:

  • Download and extract ZIP anywhere
  • Open MapRecompiler.exe
  • Press the ... button in the top right to browse for a map file (note that this file has to be inside of any of SFM's maps folders, else you will get errors!)
  • Select what you want to remove
  • Add a suffix, else you will overwrite your original map file
  • Press Go! Expect some lag for a few minutes (you're free to minimize the program during this time - it can be set to notify you when it is done)

If you got any issues, ideas or feedback, lemme know! :)



Comments

Im getting errors and the bsp file isnt made. Read the bottom. Starting BSPsrc for Map "D:\SteamLibrary\steamapps\common\SourceFilmmaker\game\tf\maps\koth_king.bsp" Editing VMF data Saving new VMF Preparing compiling materialPath: D:\SteamLibrary\steamapps\common\SourceFilmmaker\game\usermod\materials Loading D:\SteamLibrary\steamapps\common\SourceFilmmaker\game\tf\maps\koth_king_no lights.vmf Could not locate 'GameData' key in d:\steamlibrary\steamapps\common\sourcefilmmaker\game\usermod\gameinfo.txt Patching WVT material: maps/koth_king_no lights/nature/blendgroundtograss008_wvt_patch fixing up env_cubemap materials on brush sides... 0...1...2...3...4...5...6...7...8...9...10 FindPortalSide: Couldn't find a good match for which brush to assign to a portal near (-440.0 2660.0 452.0) Leaf 0 contents: Leaf 1 contents: CONTENTS_SOLID viscontents (node 0 contents ^ node 1 contents): CONTENTS_SOLID This means that none of the brushes in leaf 0 or 1 that touches the portal has CONTENTS_SOLID Check for a huge brush enclosing the coordinates above that has contents CONTENTS_SOLID Candidate brush IDs: Brush 10507: Brush 10514: FindPortalSide: Couldn't find a good match for which brush to assign to a portal near (-440.0 2660.0 132.0) Leaf 0 contents: Leaf 1 contents: CONTENTS_SOLID viscontents (node 0 contents ^ node 1 contents): CONTENTS_SOLID This means that none of the brushes in leaf 0 or 1 that touches the portal has CONTENTS_SOLID Check for a huge brush enclosing the coordinates above that has contents CONTENTS_SOLID Candidate brush IDs: Brush 10486: Brush 10493: FindPortalSide: Couldn't find a good match for which brush to assign to a portal near (-440.0 2660.0 292.0) Leaf 0 contents: Leaf 1 contents: CONTENTS_SOLID viscontents (node 0 contents ^ node 1 contents): CONTENTS_SOLID This means that none of the brushes in leaf 0 or 1 that touches the portal has CONTENTS_SOLID Check for a huge brush enclosing the coordinates above that has contents CONTENTS_SOLID Candidate brush IDs: Brush 10486: Brush 10493: FindPortalSide: Couldn't find a good match for which brush to assign to a portal near (-1540.0 0.0 660.0) Leaf 0 contents: Leaf 1 contents: CONTENTS_SOLID viscontents (node 0 contents ^ node 1 contents): CONTENTS_SOLID This means that none of the brushes in leaf 0 or 1 that touches the portal has CONTENTS_SOLID Check for a huge brush enclosing the coordinates above that has contents CONTENTS_SOLID Candidate brush IDs: Brush 6678: Brush 6664: Brush 6657: Brush 6608: Brush 6594: Brush 6587: Brush 6573: FindPortalSide: Couldn't find a good match for which brush to assign to a portal near (-1540.0 0.0 500.0) Leaf 0 contents: Leaf 1 contents: CONTENTS_SOLID viscontents (node 0 contents ^ node 1 contents): CONTENTS_SOLID This means that none of the brushes in leaf 0 or 1 that touches the portal has CONTENTS_SOLID Check for a huge brush enclosing the coordinates above that has contents CONTENTS_SOLID Candidate brush IDs: Brush 6678: Brush 6664: Brush 6657: Brush 6608: Brush 6594: Brush 6587: Brush 6573: FindPortalSide: Couldn't find a good match for which brush to assign to a portal near (-1540.0 0.0 340.0) Leaf 0 contents: Leaf 1 contents: CONTENTS_SOLID viscontents (node 0 contents ^ node 1 contents): CONTENTS_SOLID This means that none of the brushes in leaf 0 or 1 that touches the portal has CONTENTS_SOLID Check for a huge brush enclosing the coordinates above that has contents CONTENTS_SOLID Candidate brush IDs: Brush 6678: Brush 6664: Brush 6657: Brush 6608: Brush 6594: Brush 6587: Brush 6573: FindPortalSide: Couldn't find a good match for which brush to assign to a portal near (-1540.0 0.0 180.0) Leaf 0 contents: Leaf 1 contents: CONTENTS_SOLID viscontents (node 0 contents ^ node 1 contents): CONTENTS_SOLID This means that none of the brushes in leaf 0 or 1 that touches the portal has CONTENTS_SOLID Check for a huge brush enclosing the coordinates above that has contents CONTENTS_SOLID Candidate brush IDs: Brush 6678: Brush 6664: Brush 6657: Brush 6608: Brush 6594: Brush 6587: Brush 6573: FindPortalSide: Couldn't find a good match for which brush to assign to a portal near (-1540.0 0.0 20.0) Leaf 0 contents: Leaf 1 contents: CONTENTS_SOLID viscontents (node 0 contents ^ node 1 contents): CONTENTS_SOLID This means that none of the brushes in leaf 0 or 1 that touches the portal has CONTENTS_SOLID Check for a huge brush enclosing the coordinates above that has contents CONTENTS_SOLID Candidate brush IDs: Brush 6678: Brush 6664: Brush 6657: Brush 6608: Brush 6594: Brush 6587: Brush 6573: *** Suppressing further FindPortalSide errors.... *** 0...1...2...3...4...5...6...7...8...9...10**** leaked **** Entity prop_static (1453.00 -1919.00 -448.00) leaked! Processing areas...done (0) Building Faces...done (0) Chop Details...done (5) Find Visible Detail Sides... Merged 4200 detail faces...done (9) Merging details...done (1) FixTjuncs... PruneNodes... WriteBSP... done (4) Finding displacement neighbors... Finding lightmap sample positions... Displacement Alpha : 0...1...2...3...4...5...6...7...8...9...10 Building Physics collision data... done (2) (2815271 bytes) 8 threads reading d:\steamlibrary\steamapps\common\sourcefilmmaker\game\tf\maps\koth_king_no lights.bsp Error opening d:\steamlibrary\steamapps\common\sourcefilmmaker\game\tf\maps\koth_king_no lights.bsp [Reading texlights from 'lights.rad'] [45 texlights parsed from 'lights.rad'] Loading d:\steamlibrary\steamapps\common\sourcefilmmaker\game\tf\maps\koth_king_no lights.bsp Error opening d:\steamlibrary\steamapps\common\sourcefilmmaker\game\tf\maps\koth_king_no lights.bsp Done after 0:37!

Doomsday_Orange posted 3 years, 4 months ago

How difficult would it be to have an option for props: Create a propless map verseion and also create a .dmx with the map's props re-added as animation sets? This might be possible with lights, too, at least map lights and not sky lights.

Cufflux posted 3 years, 3 months ago

Correction: Version, not verseion.

Cufflux posted 3 years, 3 months ago

Not working. It crashes as soon i try to load a map... I put every thing in usermod, is it right?

this_guy_93 posted 3 years ago

GORYGIRL1996

WILL THIS WORK FOR L4D2/1 MAPS? I TRIED OADING "CRASH COURSE'S" "ALLY" MAP AND THE FIRST TIME IT CRASHED MY SFM THEN I PUT THE BSP IN A NEW FOLDER AND THAT TIME IT ALMOST WORKED BUT THEN IT SAID "NO MAP LOADED" IS THERE A WAY I CAN FIX THIS?

GORYGIRL1996 posted 2 years, 11 months ago

Simmographer

Could a map (and potentially its props) scale be potentially changed by a tool like this? I always want to use CS:GO maps for movies, but the models need to be scaled up to fit with the environment, and some models lose certain functionality when the scale is adjusted - I'm talking more than just losing functioning jigglebones.

Simmographer posted 2 years, 8 months ago

> Could a map (and potentially its props) scale be potentially changed by a tool like this? I always want to use CS:GO maps for movies, but the models need to be scaled up to fit with the environment, and some models lose certain functionality when the scale is adjusted - I'm talking more than just losing functioning jigglebones. I was thinking the same thing. Scaling donw or up mpas would be extremly useful. Scaling models can break some models, and there are interesting SFM maps that are too big/small for the usual size of Source models. Being able to scale those maps would be great.

bioniman posted 2 years, 7 months ago

Where's the .bsp file? I can only find the .vmf file after the recompiler is done.

Layston posted 1 year, 11 months ago

RampizTheGamer

Stuck on "loading map" screen

RampizTheGamer posted 5 months, 4 weeks ago

RedMser

This tool is outdated, use this instead: https://sfmlab.com/item/3321/

RedMser posted 5 months, 4 weeks ago


Leave a reply

You need to be logged in to leave a comment.

Support SFMLab on Patreon