wootguy / bspguy

Tool for editing GoldSrc maps without decompiling
The Unlicense
122 stars 28 forks source link

Add a Feature to Make Textures Weld Into Maps #90

Open ToxicHolyGrenade opened 2 years ago

ToxicHolyGrenade commented 2 years ago

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

wootguy commented 2 years ago

That can be done with the -textureimport option of ripent. I think Karaulov also added that feature to the master branch here.

ToxicHolyGrenade commented 2 years ago

The master branch? How do I get to use it?

wootguy commented 2 years ago

You'd need to build the source code. https://github.com/wootguy/bspguy#building-the-source

ToxicHolyGrenade commented 2 years ago

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".

wootguy commented 2 years ago

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" ..

ToxicHolyGrenade commented 2 years ago

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".

wootguy commented 2 years ago

You're sure you installed the "Desktop development with C++" component of Visual Studio? You might need to reboot before it works.

ToxicHolyGrenade commented 2 years ago

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.

wootguy commented 2 years ago

Alright, run the community installer again. You should see something like this: image

Click "Modify" on your install and you should see the C++ option there: image

ToxicHolyGrenade commented 2 years ago

Okay, I found it. :)

ToxicHolyGrenade commented 2 years ago

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]"

wootguy commented 2 years ago

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

ToxicHolyGrenade commented 2 years ago

Yup, this time it all worked. Thanks for the help BTW. :)