Resource centre for ZX Spectrum games
using Manic Miner and Jet Set Willy game engines
Archive of the
Manic Miner & Jet Set Willy Yahoo! Group
messages
|
|
||
|
|
Message: 6628
Author: john_elliott_uk
Date: 02/02/2010
Subject: Re: JSWED Portals crashing for Room > 99
--- In manicminerandjetsetwilly@yahoogroups.com, andrewbroad
> I too cannot visit a room above 99 in a JSW64 game in the Portals screen of JSWED v2.3.2 without it crashing.
Oh, rabbits. I think I can see what the problem is. It's a buffer overflow:
>
> You can, however, set the start-room in the hex-editor: it's at #87EB.
> e.g. To start in Room 100, set the byte at #87EB to #64.
char s[30];
sprintf(s, "Start position and portals [%d]", m_room);
The problem is that 30 characters are sufficient for "Start position and portals []" but not for the digits. Maybe it's working with 1- or 2- digit numbers, but not 3-digit. I'll try increasing the buffer size and rebuilding. Later. It's past my bedtime now.
