Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

Screen->CreateNPC; [<=704]

46 replies · 7,681 views · Started 02 January 2008

What's a memory leak?

Would that cause the program to stay open on my start menu for a long time after I close it as like a ghost window, which won't close unless I exit it through task manage?

a memory leak is where your computers memory gets locked with nothing able to access it again thus the program will continue finding and using new memory which in turn means it uses more memory as the program is used. the locked memory is only locked while the program is running.

No; the problem you're describing is caused by a known Allegro bug where Allegro hangs when trying to reset the video resolution as part of program shutdown.

A memory leak is more subtle - if you pay attention to the task manager, you'd see ZC's memory footprint slowly grow over time, until ZC suddenly crashes because all of you computer's memory is used up.

Oh, so it's not something you can fix?

And I don't think I've experienced that, even when I've had ZC and ZQuest open for a number of hours at a time.

The memory leak definitely needs to be fixed; it's just very tricky to track down.

The hanging-on-close thing can't be fixed, at least not until the next stable build of Allegro is released.

Bad news...

I played it in 742 and the bug occured right at the start. The fire boss' graphics was just standing there without moving and the fires came from the upper left corner.

The thing is, Allegro didn't contain any error messages! I F6 retried, exited from ZC, looked into Allegro (Again developer feeling...) but found only these:

Script created NPC with UID = 226
Script created NPC with UID = 246
Script created NPC with UID = 247
Script created NPC with UID = 248

Other things are the usual "opening, decrypting, loading" things.

EDIT:

OK, now went through all bosses, all had the same bug. It was hard, because I could'n walk to the corner at the first boss, since the scripted lava pool was stronger than the "no walls" cheat. So I needed to jump there with roc's cape and quickly slash before I fall into the lava. However, Allegro wasn't much different:

Script created NPC with UID = 221
Script created NPC with UID = 243
Script created NPC with UID = 244
Script created NPC with UID = 245
Script created NPC with UID = 70890
Script created NPC with UID = 70891
Script created NPC with UID = 70892
Script created NPC with UID = 72393
Script created NPC with UID = 72394
Script created NPC with UID = 72395
Script created NPC with UID = 73754
Script created NPC with UID = 73755
Script created NPC with UID = 73756
Script created NPC with UID = 73757
Script created NPC with UID = 73810
Script created NPC with UID = 73811
Script created NPC with UID = 73812
Script created NPC with UID = 73813

Cast Chaos from PureZC.

Is this because I need to change the script now, or because of the bug still?

I forgot to update isValidNPC and isValidItem, but beyond that, I'm still seeing a problem where the boss rotates but the fireballs stay in the upper-left corner. Investigating.

I do have it equipped, according to Link Data, but still can't see the boss?
Let me know if it's still a bug with the script engine, or something else.

No no, it's an active item.

You have to select it and press the button you have it equipped on.
Nothing to do with the engine, don't worry about that.

I'm getting some problems with 742. There's only supposed to be 170 enemies on screen at a time, but it says I've got 266, and the ffc's are all whacked out to boot. :|

Script created NPC with UID = 257
Script created NPC with UID = 258
Script created NPC with UID = 259
Script created NPC with UID = 260
Script created NPC with UID = 261
Script created NPC with UID = 262
Script created NPC with UID = 263
Script created NPC with UID = 264
Script created NPC with UID = 265
Script created NPC with UID = 266
Script exceeded screen NPC limit!
Script created NPC with UID = 0
Script exceeded screen NPC limit!
Script created NPC with UID = 0
Script exceeded screen NPC limit!
Script created NPC with UID = 0
Script exceeded screen NPC limit!

...uno momento().......