bspguy
bspguy copied to clipboard
Add a Feature to Make Textures Weld Into Maps
Ever since I was attempting to run the retail maps of Half-Life on the 0.52 prototype, I was thinking of an idea to 'weld/bake' textures into a specific BSP map, like most of the Half-Life retail maps do, e.g c0a0. In other words, make the maps have textures without having the need to use .wad files. What do you think W00tguy?
https://www.youtube.com/watch?v=o9VKhq40LLE
That can be done with the -textureimport
option of ripent. I think Karaulov also added that feature to the master branch here.
The master branch? How do I get to use it?
You'd need to build the source code. https://github.com/wootguy/bspguy#building-the-source
Unfortunately, despite following exactly what has been said in the instructions, I ran into this error when I typed in and entered "cmake .." To be quite honest with you, I don't think this is the right way to do it. Probably the instructions need to be reworked for the most part.
C:\bspguy-master\build>cmake .. -- Building for: NMake Makefiles CMake Error at CMakeLists.txt:8 (project): Running
'nmake' '-?'
failed with:
The system cannot find the file specified
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! See also "C:/bspguy-master/build/CMakeFiles/CMakeOutput.log".
I don't know what's wrong but I guess something went wrong with the visual studio install. It looks like CMake can't find the compliers.
I'd try this to force it to configure for VS instead of NMake:
cmake -G "Visual Studio 17 2022" ..
Sadly, it resulted in this error too.
C:\bspguy-master\build>cmake -G "Visual Studio 17 2022" .. CMake Error at CMakeLists.txt:8 (project): Generator
Visual Studio 17 2022
could not find any instance of Visual Studio.
-- Configuring incomplete, errors occurred! See also "C:/bspguy-master/build/CMakeFiles/CMakeOutput.log".
You're sure you installed the "Desktop development with C++" component of Visual Studio? You might need to reboot before it works.
To be honest, I looked through the three versions, Enterprise, Community, and Professional, but all three doesn't have the "Desktop development with C++" section.
Alright, run the community installer again. You should see something like this:
Click "Modify" on your install and you should see the C++ option there:
Okay, I found it. :)
But now I've ran into this error here.
"glfw3.lib(input.obj) : error LNK2019: unresolved external symbol __imp_strspn referenced in function glfwUpdateGamepadM appings [C:\bspguy-master\build\bspguy.vcxproj] C:\bspguy-master\build\Release\bspguy.exe : fatal error LNK1120: 1 unresolved externals [C:\bspguy-master\build\bspguy. vcxproj]"
I guess something changed in the new version of GLFW. Try this one: https://github.com/glfw/glfw/releases/download/3.3.2/glfw-3.3.2.zip
Yup, this time it all worked. Thanks for the help BTW. :)