r/SourceEngine 3d ago

Resolved SDK Build Crashes

(SOLVED / FIXED )

Hello again Src Reddit, I have come to ask about several bugs (DEV QUESTIONS I SWEAR I HOPE THIS ISNT CONSIDERED TECH SUPPORT) with the SDK build of Half Life 1, as my immature and horrible modding skills keep creating game crashes during certain events, such as, when playing the tutorial, demo, or intro to the game, or anywhere the game has to display text, the game hard crashes with the "destRed initialized without variable" (image 2) and, when playing some multiplayer or singeplayer maps, when reaching certain areas, the "flovl varible used" (image 1) similar to the destred error occurs, I have tested this with a fresh copy of the SDK, and it does the same thing, any fixes or help? I assume flovl is audio related, but I have only changed weapon sounds, not environment, and destRed seems to be text related, and I have no Idea why it does this, as the normal builds of Half Life work fine. any form of help appreciated like my other post!

Upvotes

3 comments sorted by

u/Pinsplash 3d ago

are you using visual studio 2019?

u/Xaero-Fuze8132641 3d ago edited 3d ago

Hi again! yes, I currently am, but I just realized I was compiling with debug on, so I will come back later if the issue still persists, thanks for providing help!

Edit, I fixed it debug compiling was the cause, sorry for the useless post, this was entirely my fault, and i apologize, If anyone wants I will cooperate and delete the post.

u/Pinsplash 3d ago

we'd rather you not delete posts because information is useful for others.

solving the problem by only ever using release mode is. bad. i don't feel like giving an analogy, but it's bad. it's been a long time since i compiled the HL SDK but i think i remember having this problem. the solution is pretty simple, just initialize the variables it tells you about. this is not an uncommon error in c++ so if you're not familiar with it then you could definitely stand to look at some tutorials. also, googling things is necessary. (you may think it's dumb that they would ship the SDK with these problems right there, and yes, it is stupid. valve is stupid.)