Homebrew [Release] Quake2CTR - Quake 2 port

MLdB

New Member
Newbie
Joined
Nov 1, 2023
Messages
2
Trophies
0
Age
42
XP
23
Country
Netherlands
No expert here, but browsing through the code and reviewing the commits, I think the error originates in:

gl_model.c line 261
r_model.c line 166

A call to Hunk_Begin() was changed between versions 0.1 and 1.0:
Code:
loadmodel->extradata = Hunk_Begin (0xC00000);
became:
Code:
loadmodel->extradata = Hunk_Begin (0x1000000);

Which changed the amount of memory being allocated from 12MiB to 16MiB, the exact number reported in the Sys_Error.

Hunk_Begin(int maxsize) in sys_ctr.c is the only function containing a Sys_Error call with the line "unable to allocate %d bytes".

I do not have a build environment set up to test whether changing this to a lower value will prevent the error, but maybe someone else has an insight?

Edit:
I now do have the environment set up, but I run into a compile error:

Code:
game/q_shared.h, line 46:

typedef enum {false, true} qboolean
expected identifier before numeric constant

The error points to 'false'.
 
Last edited by MLdB,

Datbo

Active Member
Newcomer
Joined
Jun 18, 2023
Messages
35
Trophies
0
Age
19
XP
291
Country
United States
hopefully this issue can be ironed out later on
Post automatically merged:

if you press start repeadeatly during bootup you can boot the game before the demo plays. The error didnt show up when I did that and the game runs fine
Post automatically merged:

Thank you!
Here's the latest builds, Merry Christmas everyone.
how exactly do you get these to work. Every time I download it and boot it up it just boots me to the normal original story
 
Last edited by Datbo,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Lol rappers still promoting crypto