Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Feature to Make Textures Weld Into Maps #90

Open
ToxicHolyGrenade opened this issue Apr 20, 2022 · 13 comments
Open

Add a Feature to Make Textures Weld Into Maps #90

ToxicHolyGrenade opened this issue Apr 20, 2022 · 13 comments
Labels
enhancement New feature or request

Comments

@ToxicHolyGrenade
Copy link

ToxicHolyGrenade commented Apr 20, 2022

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
Copy link
Owner

wootguy commented Apr 20, 2022

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

@ToxicHolyGrenade
Copy link
Author

ToxicHolyGrenade commented Apr 20, 2022

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

@wootguy
Copy link
Owner

wootguy commented Apr 20, 2022

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

@ToxicHolyGrenade
Copy link
Author

ToxicHolyGrenade commented Apr 21, 2022

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
Copy link
Owner

wootguy commented Apr 21, 2022

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
Copy link
Author

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
Copy link
Owner

wootguy commented Apr 21, 2022

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

@ToxicHolyGrenade
Copy link
Author

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
Copy link
Owner

wootguy commented Apr 21, 2022

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
Copy link
Author

Okay, I found it. :)

@ToxicHolyGrenade
Copy link
Author

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
Copy link
Owner

wootguy commented Apr 21, 2022

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
Copy link
Author

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

@wootguy wootguy added the enhancement New feature or request label Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants