Game/Editing : Firestaff/Amalgam mechanism crashes the game

Messages are moved here (should anyone ever want to see them again) once they are no longer applicable to the current version (e.g. suggestions that have been implemented or bugs that have been fixed).

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
User avatar
TheMormegil
Adept
Posts: 213
Joined: Thu Apr 10, 2003 10:23 am
Location: Wales

Game/Editing : Firestaff/Amalgam mechanism crashes the game

Post by TheMormegil »

A level of mine was causing the game to crash (after 0 compilation
errors) when an amalgam mechanism was supposed to release an item.
I couldn't see what the problem was so I made a new dungeon that
was just the firestaff mechanism cut and pasted from DM original.
(I altered the co-ords of course) It compiled with no errors too, but
when the fire staff with gem should be released it crashes.
I imagine an un-edited game of DM would crash because of this too, but
I haven't gone through the whole game to find out!



Code: Select all

/******************************************************************************/
/* Return To Chaos - Dungeon definition file: Orange                          */
/******************************************************************************/
/******************************************************************************/
/* Main Data                                                                  */
/*                                                                            */
/* The name of the dungeon as it will appear in the selection menu when       */
/* loading RTC and other basic details.                                       */
/******************************************************************************/
[Main Data]
NAME..........=(1 - ORANGE)
AUTHOR........=(GEORGE GILBERT)
DATE..........=(DECEMBER 2003)
ENTRANCE......=(0,0,0,EAST)
IMPORT_TO.....=(0,0,0,EAST)
END_OF_GAME...=(NONE)
RESTRICT_RUNES=(FALSE)

[New - Bitmaps]
ADD	BITMAP_ORANGE		FILE=(Modules\Examples\Orange.bmp)	SIZE=(38,24)	POSITION=(0,20)		SCALINGS=(6)
ADD	BITMAP_ORANGE_ICON	FILE=(Modules\Examples\Orange_icon.bmp)	SIZE=(32,32)	POSITION=(0,0)		SCALINGS=(1)

[New - Objects]
ADD	FOOD_ORANGE	CLONES=(FOOD_APPLE)	NAME=(ORANGE)	ICONS=(BITMAP_ORANGE_ICON,NULL)	BITMAPS=(DUNGEON:BITMAP_ORANGE)

/******************************************************************************/
/* Graphics - Entrance                                                        */
/*                                                                            */
/* Unique identifiers for the graphics that make up the dungeon entrance      */
/* screen.                                                                    */
/******************************************************************************/
[Graphics - Entrance]
BACKGROUND...=(BITMAP_ENTRANCE_BACKGROUND_DM)
FOREGROUND...=(NULL)
DOOR_LEFT....=(BITMAP_ENTRANCE_DOOR_LEFT_RAILINGS)
DOOR_RIGHT...=(BITMAP_ENTRANCE_DOOR_RIGHT_RAILINGS)
SWITCH_ENTER.=(BITMAP_ENTRANCE_SWITCH_ENTER_DM)
SWITCH_RESUME=(BITMAP_ENTRANCE_SWITCH_RESUME_DM)
SWITCH_QUIT..=(BITMAP_ENTRANCE_SWITCH_QUIT_DM)

/******************************************************************************/
/* Graphics - Wall Sets                                                       */
/*                                                                            */
/* Unique identifiers for the graphics that make up the user interface.       */
/******************************************************************************/
[Graphics - Interface]
BACKGROUND...=(NULL)
ARROWS_UP....=(BITMAP_INTERF_ARROWS_UP)
ARROWS_DOWN..=(BITMAP_INTERF_ARROWS_DOWN)
WEAPON_BOXES.=(BITMAP_INTERF_WEAPON_BOXES)
WEAPON_READY.=(BITMAP_INTERF_WEAPON_READY)
WEAPON_HIT...=(BITMAP_INTERF_WEAPON_HIT)
RUNE_SELECTOR=(BITMAP_INTERF_RUNE_SELECTOR)
CHAR_STATS...=(BITMAP_INTERF_CHAR_STATS)
CHAR_PORTRAIT=(BITMAP_INTERF_CHAR_PORTRAIT)
CHAR_DEAD....=(BITMAP_INTERF_CHAR_DEAD)

/******************************************************************************/
/* Graphics - Wall Sets                                                       */
/*                                                                            */
/* Unique identifiers for the graphics that make up the walls.                */
/******************************************************************************/
[Graphics - Wall Sets]
NAME=(WALLSET_DEFAULT)
WALL_01=(BITMAP_WALL_01_MAIN,BITMAP_WALL_01_ALT)
WALL_02=(BITMAP_WALL_02_MAIN,BITMAP_WALL_02_ALT)
WALL_03=(BITMAP_WALL_03_MAIN,BITMAP_WALL_03_ALT)
WALL_04=(BITMAP_WALL_04_MAIN,BITMAP_WALL_04_ALT)
WALL_05=(BITMAP_WALL_05_MAIN,BITMAP_WALL_05_ALT)
WALL_06=(BITMAP_WALL_06_MAIN,BITMAP_WALL_06_ALT)
WALL_07=(BITMAP_WALL_07_MAIN,BITMAP_WALL_07_ALT)
WALL_08=(BITMAP_WALL_08_MAIN,BITMAP_WALL_08_ALT)
WALL_09=(BITMAP_WALL_09_MAIN,NULL)
WALL_10=(BITMAP_WALL_10_MAIN,BITMAP_WALL_10_ALT)
WALL_11=(BITMAP_WALL_11_MAIN,NULL)
WALL_12=(BITMAP_WALL_12_MAIN,BITMAP_WALL_12_ALT)
WALL_13=(BITMAP_WALL_13_MAIN,NULL)
WALL_RF=(BITMAP_WALL_RF_MAIN,NULL,NULL,NULL)
WALL_FL=(BITMAP_WALL_FL_MAIN,NULL,NULL,NULL)

/******************************************************************************/
/* Description                                                                */
/*                                                                            */
/* Text description of the dungeon as it will appear in the game.             */
/******************************************************************************/
[Description]
BACKGROUND=(BITMAP_INTERF_DESCRIPTION)
TITLE.....=(ORANGE)
BODY......=(A SAMPLE DUNGEON SHOWING HOW TO\CLONE AN OBJECT)
CREDIT....=(BY GEORGE GILBERT\DECEMBER 2003)

/******************************************************************************/
/* Characters                                                                 */
/*                                                                            */
/* Definitions of all the champions for use in mirrors or the party.          */
/******************************************************************************/
[Characters]
CHARACTER_ZED	NAME=(ZED)	TITLE=(DUKE OF BANVILLE)	GENDER=(M)	STATS=(999,999,999)	EXP=(15.0,15.0,15.0,15.0)	ATTRS=(255,255,255,255,255,255)	PORTRAIT=(BITMAP_PORTRAIT_ZED)

/******************************************************************************/
/* Party                                                                      */
/*                                                                            */
/* Starting members of the party                                              */
/******************************************************************************/
[Party]
CHARACTER_ZED

/******************************************************************************/
/* Layout                                                                     */
/*                                                                            */
/* Definitions of all the levels in the dungeon.                              */
/******************************************************************************/
[Layout]
; Level 0
WALLSET=(WALLSET_DEFAULT)
LIGHT_LEVEL=(100)
OFFSET=(0,0)
SIZE=(3,1)
110

/******************************************************************************/
/* Items                                                                      */
/*                                                                            */
/* Definitions of all the items found in the dungeon.                         */
/******************************************************************************/
[Items]
100	FOOD_ORANGE			1	0	0	NORTHEAST
101	STAFF_FIRE			1	0	0	NORTHEAST
7503	WALLITEM_AMALGAM				2	0	0	WEST		OPBY=(MISC_SPELL_ZO_KATH_RA)	ACTION=(TOGGLE)	TARGET=(7503,7504,7505)	OPTIONS=(DESTROY_ITEM,DISABLE_SELF,SOUND:SOUND_OTHER_ZAP)
7504	WALLITEM_AMALGAM_BURNT			2	0	0	WEST		STATE=(INVISIBLE)	OPBY=(STAFF_FIRE)	ACTION=(TOGGLE)	TARGET=(7504,7505,7506)	OPTIONS=(DISABLE_SELF,DELAY:1,SOUND:SOUND_OTHER_EXPLODE)
7505	WALLITEM_AMALGAM_BURNT			2	0	0	WEST		STATE=(INVISIBLE)	OPBY=(STAFF_FIRE)	ACTION=(RELEASE)	TARGET=(7507)	OPTIONS=(DESTROY_ITEM,DISABLE_SELF)
7506	WALLITEM_AMALGAM_EMPTY			2	0	0	WEST		STATE=(INVISIBLE)
7507	STAFF_FIRE_PLUS_GEM			-1	-1	0	WEST
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Hi there,

Can I quickly check that you are running with V0.28? There was a bug in V0.27 that caused a crash when using a RELEASE trigger, but that's been fixed now. If you're still seeing the problem in V0.28 then just let me know and I'll look into it for you.
User avatar
TheMormegil
Adept
Posts: 213
Joined: Thu Apr 10, 2003 10:23 am
Location: Wales

Post by TheMormegil »

Didn't know 0.28 was out. Downloading it now.
I'll get my coat :D
Post Reply