Homebrew [Release] Quake2CTR - Quake 2 port

  • Thread starter Thread starter MasterFeizz
  • Start date Start date
  • Views Views 105,352
  • Replies Replies 246
  • Likes Likes 48
For those who want use circle pad as mouse, just change the value 0 to 1 on this line:

set circlepad_look "1"
 
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,
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,
Your folder structure isn't good, should be like this :

View attachment 336376

Try to download the original FULL game from the '90 era.
Post automatically merged:

@MasterFeizz : I played the game during half an hour on O3DS with music activated, not a single freeze. Perfect and framerate is really good. You made really nice improvements here, thanks !
i have the same error and my foledr is like that, the game still deosn t work
Post automatically merged:

I am having this problem after trying to join a game no difference if singleplayer or multiplayer. It crashes after I try to click begin and says at the bottom screen Sys_Error: unable to allocate 16777216 bytes. Any help?
i hav ethe same error
 

Site & Scene News

Popular threads in this forum