Re: The TrenchBroom Level Editor for Quake
Posted: Thu Sep 18, 2014 6:21 am
how do i set a minimum light level for a map in trenchbroom?
Oh BTW if you're using TyrUtils add a Worldspawn entry as "light" and a value of whatever you want as instructed in that readme:ceriux wrote:how do i set a minimum light level for a map in trenchbroom?
Code: Select all
Worldspawn Keys
The following keys can be added to the worldspawn entity:
"light" "n"
Set a global minimum light level of "n" across the whole map.
This is an easy way to eliminate completely dark areas of the
level, however you may lose some contrast as a result, so use
with care. Default 0.
Code: Select all
g++: error: /home/retro/compileme/TrenchBroom-master/wxWidgets-2.9.4/build-release/lib/libwx_gtk2u_gl-2.9.a: No such file or directory
g++: error: /home/retro/compileme/TrenchBroom-master/wxWidgets-2.9.4/build-release/lib/libwx_gtk2u_adv-2.9.a: No such file or directory
g++: error: /home/retro/compileme/TrenchBroom-master/wxWidgets-2.9.4/build-release/lib/libwx_gtk2u_core-2.9.a: No such file or directory
g++: error: /home/retro/compileme/TrenchBroom-master/wxWidgets-2.9.4/build-release/lib/libwx_baseu-2.9.a: No such file or directory
Process terminated with status 1 (0 minute(s), 1 second(s))
4 error(s), 4 warning(s) (0 minute(s), 1 second(s))
Code: Select all
Change into wxwidgets/build-release
- Run
../configure --disable-shared --with-opengl --with-gtk=2
- Run make (don't run make install!)
- Change into wxwidgets/build-debug
- Run
../configure --enable-debug --disable-shared --with-opengl --with-gtk=2
- Run make (don't run make install!)
AND still fails.qbism wrote:In windows, I compiled successfully with wx 3.0. Might try a newer version.
SleepwalkR wrote:Hey there. Please submit this on github and we can try to work it out. It's hard keeping track of problem reports when they're all over the place
When the libraries are built, a setup.h "should" be created in the right place. In the windows distribution I recall that setup.h existed but had to add the path manually. Also, order of include paths is important. This thread helped me https://forums.wxwidgets.org/viewtopic. ... 5&p=156680xaGe wrote:Choking out on /TrenchBroom-master/wxWidgets-3.0.2/include/wx/platform.h line 183 #include "wx/setup.h" No such file where its looking and that's because there isn't one. There is a setup.h file in the /include/msvc/wx/ for Windows builds and other places as well.
SleepwalkR wrote:OR just take the NewArchitecture branch, which is TB 2.0, and use cmake to build it.
Code: Select all
[retro@ToolBox build]$ cmake .. -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU 4.9.1
-- The CXX compiler identification is GNU 4.9.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - donenotthing
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Build type Release
-- Using static wxWidgets library
-- Found wxWidgets: TRUE
-- Found FREETYPE: /usr/lib64/libfreetype.so
-- Found FreeImage: /usr/lib64/libfreeimage.so
-- Compiler is GNU
-- Found Git: /usr/bin/git (found version "2.1.2")
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Found OpenGL: /usr/lib64/libGL.so
fatal: Not a git repository (or any of the parent directories): .git
-- Configuring done
-- Generating done
-- Build files have been written to: /home/retro/compileme/TrenchBroom-NewArchitecture/build
Code: Select all
[retro@ToolBox build]$ cmake --build
Usage: cmake --build <dir> [options] [-- [native-options]]
Options:
<dir> = Project binary directory to be built.
--target <tgt> = Build <tgt> instead of default targets.
--config <cfg> = For multi-configuration tools, choose <cfg>.
--clean-first = Build target 'clean' first, then build.
(To clean only, use --target 'clean'.)
--use-stderr = Ignored. Behavior is default in CMake >= 3.0.
-- = Pass remaining options to the native tool.
Code: Select all
git clone https://github.com/kduske/TrenchBroom.git
cd TrenchBroom
git checkout NewArchitecture
ericw wrote:yep, either download the zip after selecting the branch in the github web ui, orCode: Select all
git clone https://github.com/kduske/TrenchBroom.git cd TrenchBroom git checkout NewArchitecture