Crash using v0.20 on creating monsters on demand
Posted: Tue Aug 13, 2002 11:29 am
So I'm updating the kid dungeon to use relays instead of multiple switches. There's a place where you can create monsters by pressing a button on the wall. After i made the changes, it creates the monsters fine if you press the button steadily, and after the rechargetime has expired. However, if you repeatedly press it very quickly, RTC bombs:
Error:
an access violation exception.
Stack Dump:
RTC.TriggerMonsterGenerator(int 312, int 1);
RTC.EmptyTriggerQueue();
RTC.UpdateDungeon();
RTC.DoFrame(int 50);
RTC.WinMain();
Here's the dungeon code for this structure:
614        WALLITEM_RELAY                                1        18        1        SOUTH        ACTION=(ACTIVATE)        TARGET=(650)
615        WALLITEM_RELAY                                1        18        1        SOUTH        ACTION=(ACTIVATE)        TARGET=(618)         DELAY=(4)
617        WALLITEM_SWITCH_GREEN                        1        18        1        EAST        OPBY=(MOUSE)        ACTION=(ACTIVATE)        TARGET=(614,615)
618        FLOORITEM_GENERATOR_MONSTER                0        19        1        GENERATES=(MONSTER_ROCKPILE)        NUMBERS=(1)        HEALTH=(25)        OPTIONS=(SOUND:SOUND_STEP_ANIMAL,RECHARGE_TIME:12)
650        WALLITEM_SHOOTER                        0        20        1        NORTH        TYPE=(SINGLE)        SHOOTS=(DUNGEON_SPELL_DESEW)        STRENGTH=(100)
Incidentally, it also crashes using my old method of lots of green switches performing the actions themselves....but only if you very quickly press the button, so it appears to be a problem with RTC keeping up, not the method used to create the effect.
Error:
an access violation exception.
Stack Dump:
RTC.TriggerMonsterGenerator(int 312, int 1);
RTC.EmptyTriggerQueue();
RTC.UpdateDungeon();
RTC.DoFrame(int 50);
RTC.WinMain();
Here's the dungeon code for this structure:
614        WALLITEM_RELAY                                1        18        1        SOUTH        ACTION=(ACTIVATE)        TARGET=(650)
615        WALLITEM_RELAY                                1        18        1        SOUTH        ACTION=(ACTIVATE)        TARGET=(618)         DELAY=(4)
617        WALLITEM_SWITCH_GREEN                        1        18        1        EAST        OPBY=(MOUSE)        ACTION=(ACTIVATE)        TARGET=(614,615)
618        FLOORITEM_GENERATOR_MONSTER                0        19        1        GENERATES=(MONSTER_ROCKPILE)        NUMBERS=(1)        HEALTH=(25)        OPTIONS=(SOUND:SOUND_STEP_ANIMAL,RECHARGE_TIME:12)
650        WALLITEM_SHOOTER                        0        20        1        NORTH        TYPE=(SINGLE)        SHOOTS=(DUNGEON_SPELL_DESEW)        STRENGTH=(100)
Incidentally, it also crashes using my old method of lots of green switches performing the actions themselves....but only if you very quickly press the button, so it appears to be a problem with RTC keeping up, not the method used to create the effect.