|
Post by jjensson on Jul 23, 2020 11:01:12 GMT -5
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...
|
|
|
Post by knightmare on Jul 23, 2020 21:18:10 GMT -5
That's a KMQuake2 bug with model loading that was fixed a while ago. It can also be fixed in Q2VR, but it will take a bit of work. You'll need to download the Q2VR source, and use Source Tree or VS Code to clone the latest public KMQ2 source here: bitbucket.org/Knightmare66/kmquake2_stable/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.
|
|
|
Post by jjensson on Jul 23, 2020 22:00:18 GMT -5
Interesting that nobody caught that until now. Seems no one ever played through the entire game in Q2VR...
I'm no programmer, but i think i can do the steps you suggested. It will probably take some time (playing a bit of FO4VR currently), but i'll report back.
Thanks for the help, KM, much appreciated!
|
|