Hi guys, i'm new here, but my first ever 3D game was Q1 - it's been a wild ride since then.
I decided to post here, because i don't think this fits in any of these Quake 2 subforums. I have played the game for a couple of days, and i'm now in the Power Plant unit. As soon as the second map starts to load i get a CTD and the following error pops-up:
VirtualAlloc commit failed. Attempt to access invalid address.
I remember having allocation errors with different Q1 mods, so i presume it is something fixable. The problem is my specific case: I'm playing Quake 2 VR mod, which is based on KMQuake. There are no forums anywhere for this mod, and the creators are long done and gone, so i can't ask anybody for help there.
Maybe the issue is known, and someone can help me with suggestions here?
I'd appreciate any idea how to fix it. I tried to replay Q2 2 years ago and because of a game-breaking crashing bug i couldn't progress further than the first big boss. And now again, i can't replay Q2. It's like a curse...
Last Edit: Jul 23, 2020 11:23:21 GMT -5 by jjensson
Next use a diff util like Windiff to compare the file renderer/r_model.c in Q2VR's source with the same file from the KMQ2 repo and merge in the changes from the latter. Specifically, you're looking for the ModChunk_* and Mod_GetAllocSize* functions and the calls to them in the functions Mod_ForName(), Mod_LoadAliasMD2Model(), Mod_LoadAliasMD3Model(), and Mod_LoadSpriteModel() that replace the Hunk_* function calls. Make sure you include all changes to those 4 functions.
Finally, recompile it using Visual Studio 2012 or later.