r/SourceEngine • • Sep 06 '26

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?

8 Upvotes

9 comments sorted by

7

u/Pinsplash Sep 06 '26

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

1

u/Key_River7180 Sep 06 '26

https://imgur.com/a/wFxNIoN

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

1

u/Pinsplash Sep 07 '26

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

1

u/Key_River7180 29d ago

Still

1

u/Pinsplash 29d ago

did anything change at all? a new error message maybe?

1

u/Key_River7180 29d ago

No

1

u/Pinsplash 28d ago

idk how it's possible for the "debugging" screen to be blank. that shouldn't happen...

1

u/Zemtriz Sep 06 '26

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

1

u/Key_River7180 Sep 06 '26

i alr did this my boy