r/SourceEngine 1d ago

HELP How do I build the Source engine?

Post image

I'm trying to build the engine from source with VS2022, I got the repo from git and used the createallprojects.bat script, when I launch the Client (HL2MP) project it just loads the splash screen and I get an exception, how do I fix this?

The same happens with the TF client project. Has anybody experienced this problem?

Upvotes

5 comments sorted by

u/Pinsplash 1d ago

please give a screenshot of your client project settings, specifically the "debugging" page

u/Key_River7180 1d ago

https://imgur.com/a/wFxNIoN

Didn't change anything but the default startup project to HL2MP's client in the solution

u/Pinsplash 1d ago

copy resource/serverevents.res from tf2 into your mod_tf folder

u/Zemtriz 1d ago

by default client (tf) is marked as startup project. If you want to build client (hl2dm), mark it as startup project, then change project from build (debug) to (release) and right click on solution in project tree and click build solution

u/Key_River7180 1d ago

i alr did this my boy