Page 1 of 1

Arcane Dimensions quake.rc overflows cmd_text

Posted: Mon Jan 25, 2021 1:21 am
by Joel B
Arcane Dimensions 1.8 ships with a quake.rc file that's fairly important for its correct operation, as does any mod made with the AD SDK (such as the recent Xmas jam and Halloween jam). This file is about 8500 bytes which unfortunately squeaks over the 8192 byte size for the cmd_text buffer.

This is more a faux pas with AD rather than a qbism bug, since the original buffer size was 8192. I would guess they didn't notice when developing AD since this buffer limit has been raised on many other engines though.

(Also previous AD config files were smaller; the 1.8 size increased.)

Just kind of reporting this as another FYI as I go through my testing. The egregious size of this quake.rc is down to it having a lot of comment lines, so there are ways to work around the issue in this case without losing functionality. But if you do ever plan another Super8 release, if it's harmless to raise that particular limit it might be worth it.

Re: Arcane Dimensions quake.rc overflows cmd_text

Posted: Wed Jan 27, 2021 12:28 am
by Joel B
Interestingly, it looks like I have to cut the filesize down to 5779 or fewer chars for it to execute correctly.

(edit: I guess because it is in turn exec'ing other cfgs that get inserted into the buffer. So this depends a bit on the size of my autoexec.cfg.)

At 5780, Super8 exits with the error:
SZ_GetSpace: overflow without allowoverflow set on cursize 2725 size 5542 maxsize 8192

...and larger sizes cause the same error with different cursize/size numbers, until the file actually gets bigger than 8192 at which point it seems to be more gracefully skipped over without stopping Quake.

Which means the pre-1.8 AD config files run into this problem; they are smaller than 8192 but bigger than 5779 (coming in at a little over 6 kB).