PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

EasyCE 1.6 - PC version keyboard oddness

Bleaties!

I'm writing a couple of games (http://www.llamasoft.co.uk if you're curious), and I want to release the PC versions that run in a resizable window as well as the actual PPC games.

The games work fine on the PC, except that occasionally, when closing the window, one receives the message

HEAP[HoverBovver.exe]: Heap block at 00E80040 modified at 00E84088 past requested size of 4040

In attempting to track down the cause of this naughtiness, I ascertained that the knicker-twisting occurs when the PTC console is deleted. I also determined that the error only occurs if there have been many prolonged key-presses during the game (in the lawnmower game, for example, the cursor keys are held down for fairly long periods whilst mowing the lawn).

I thought that maybe the PTC console was buffering-up the keypresses, nothing was consuming them, and that therefore maybe after a while the buffer was overflowing, hence the naughtiness. I added a little bit of code to consume any buffered keypresses once per frame:

Code:
while (console->key())
{
Key key = console->read();
}


but it doesn't fix the problem, there's still the same heap naughtiness when the console gets deleted, but only if there have been long key-presses during the game.

Anyone encountered aught similar? Any ideas gratefully considered...

Cheerz...

\
(:-) - Yak
/
Hey! You're Jeff Minter! You're great, you are! I wanted to be just like you when i was about 10 - I wanted to make cool, funky games for Atari! I read a little while ago about your move to PPCs, can't wait for your new titles. :D

P.S Sorry, have never encountered the error you receieved, never actually used the PC much for prolonged testing. Just really wanted to say Hi! (And how's Flossie?)
Easy CE is not very suitable for doing a PC version. I'm sorry about that. The problem is OpenPTC; it's not completely bugfree.

EasyCE was never supposed to be used for Windows apps btw; the fact that you can compile on PC is merely intended to be used for debugging.
simonjacobs · 29 Mar 2002, 13:12 UTC
Llamatron, now that was a good game.

Simon.
Yeah, I know it would never be suitable for producing PC games as the primary target, that would just be silly ;-). But I just thought it would be rather nice to offer the PC versions as well as the PPC ones, since they come effectively "for free"; my two games play quite nicely in their PC versions, and I'm sure there will be a few people who would enjoy playing them even if they don't have a PPC.

Maybe I'll find some kludge to work around this keyboard problem; if I do, I'll mention it. Everything else works fine :-).

Oh, and Llamatron II is likely to be one of my upcoming PPC titles - right after I finish Hover Bovver and then do Gridrunner II :-).

\
(:-) - Yak
/
Llamatron II? LLAMATRON II??

*passes out*

I've also thought something like Mutant Camels would work beautifully on PPC. D-pad to move camel, stylus to aim & shoot...
haha, that llamatron game looks awsome. for some reason it reminds me of a fellow student, paul. here's his website: http://www.tzuecho-terror.de (that's an onomatopoetic spelling of psychoterror). Gee, just visited it. Soooooo many popups! Worth the visit though, especially if you can understand german!
-Eike
Yak · 23 Apr 2002, 02:10 UTC — Yak
Anyway, I found out how to get around the key weirdness problem. Since the prob was obviously related to the buffering of keystrokes, a trawl around the OpenPTC docs revealed that uttering

console->option("disable key buffering");

was sufficient to shut down the troublesome bit of PTC, and now everything is funky :-).

Consequently I have released both my PPC and PC versions on http://www.llamasoft.co.uk/ if anyone's interested ;-).

\
(:-) - Yak
/
Conan · 23 Apr 2002, 06:54 UTC — Welcome to Pocket Matrix Yak
Hope your PocketPC titles do well. I know your games from long ago & still remember how flash your development setup looked in a photo in one of the mags. You were writing games for Spectrum but there was this big row of all these different computers on a bench on the wall.

Is there a little iPaq on the end of the bench now :)

( Though I was coding on the Spectrum & Dragon I didn't get a title out until the Atari ST came along)