;Error registry

;Prefix Module     	Name
;------------------------------
; 0    	mem		memory
; 1    	registry	registry
; 2    	wscript		woodscript
; 4    	kernel		kernel
; 5 	graphics	graphics
; 6 	video		video
; 7 	database	database
; 8 	fileclas	fileclasses	
; 9     exceptn		exception handler

;Module 00 is for special cases
0000,PROGRAMMER REQUESTED DEBUG STOP (misc data in sspec, ispec)





[1m[36m(Rn)[0m [32;40mY:\ATG\M4\LIB [1;32;40m[0;36;40mtype MASTER.M4E 

; 0 memory
; 1 registry
; 2 woodscript
; 4 kernel
; 5 graphics
; 6 video
; 7 database
; 8 fileclasses


[1m[36m(Rn)[0m [32;40mY:\ATG\M4\LIB\ADV_DB_R [1;32;40m[0;36;40mtype DATABASE.M4E 

0701,Asset not found
0702,Env open error
0703,No MADS variable error

[1m[36m(Rn)[0m [32;40mY:\ATG\M4\LIB\ADV_DB_T [1;32;40m[0;36;40mtype DATABASE.M4E 

0701,Asset not found
0702,Env open error
0703,No MADS variable error

[1m[36m(Rn)[0m [32;40mY:\ATG\M4\LIB\MEM [1;32;40m[0;36;40mtype MEM.M4E 

0001,Out of Memory -OR- allocation failed -OR- zero sized allocation request
0002,List integrity failure
0003,Heap Corruption - someone wrote something out of bounds
0004,Too little amount of memory is requested in mem_initcore()
0005,Initial allocation failed in mem_initcore()
0006,Attempt at freeing an already free block
0007,Can't find memory block in heap
0008,Internal error in memory manager - can't allocate arena despite enough free memory
0009,Internal error in memory manager - can't lock allocated arena
000a,Internal error in memory manager - can't find arena to be freed in arena chain
000b,Attempt to allocate unnamed block - ispec has size requested
000c,Internal error in memory manager - can't allocate block within fitting arena
000d,BlockPtr doesn't point to valid memory block in BlockSize(void *BlockPtr)
000e,Internal error in relocatable memory manager - can't find Master Pointer Block to free
000f,Internal error in relocatable memory manager - can't find handle to toss
0010,Attempt to reallocate previously disposed relocatable block
0011,Relocatable memory manager couldn't allocate master ptr block
0012,get_file() crapped out
0013,do_file() crapped out
0014,Unknown resource


[1m[36m(Rn)[0m [32;40mY:\ATG\M4\LIB\PARAM [1;32;40m[0;36;40mtype PARAM.M4E 
;Errors for PARAM module (registered as 0x01)

0101,PARAM_GET: Index out of range
0102,PARAM_INIT: Too many parameters (maxparams in ispec)
0103,PARAM_INIT: Specified parameter is too long (maxlen in ispec)
0104,PARAM: PARAM module not initialized
0105,PARAM_INIT: Too many unmarked parameters (max in ispec)
0106,PARAM_GET: Keystring too long (maxlen in ispec)
0107,PARAM_GET_UNMARKED: Index out of range (index in ispec)
0108,PARAM_INIT: Module has already been initialized
0109,PARAM_INIT: Could not allocate memory for param list



[1m[36m(Rn)[0m [32;40mY:\ATG\M4\LIB\REGISTRY [1;32;40m[0;36;40mtype REGISTRY.M4E 

0101,Registry Failure
0102,Registry No Error Everything OKay Error
0103,Registry Table Full
0104,Registry Table Empty
0105,Registry Item not found
0106,Registry Index out of range
0107,Registry Name too long
0108,Duplicate Registration

[1m[36m(Rn)[0m [32;40mY:\ATG\M4\LIB\VIDEO [1;32;40m[0;36;40mtype VIDEO.M4E 

0600,VESA driver not found, please load one and run the game again
0601,Failure while simulating real mode interrupt
0602,No VESA BIOS detected
0603,VESA driver doesn't have 0101 mode
0604,VESA driver doesn't support 0101 mode
0605,VESA driver doesn't return a 64K window
0606,VESA driver won't cough up the video card's memory granularity
0607,VESA driver won't cough up window segment
0608,VESA driver doesn't have a window position function available
0609,VESA driver status request failed
060A,VESA driver doesn't support the query

060B,DPMI Selector alloc failure
060C,DPMI Base address change failure
060D,DPMI set segment upper limit failure
060E,DPMI set access rights failure
060F,DOS memory allocation failure


[1m[36m(Rn)[0m [32;40mY:\ATG\M4\LIB\WSCRIPT [1;32;40m[0;36;40mtype WSCRIPT.M4E 

0201,LoadWSAssets() failed - WS loader has not been initialized.
0202,LoadWSAssets() failed - rget() out of memory error.
0203,LoadWSAssets() failed - premature end of file found.
0204,LoadWSAssets() failed - asset number was > 255, must be between 0 and 255.
0205,LoadWSAssets() failed - ProcessCELS() failed.
0206,LoadWSAssets() failed - invalid asset type.

0210,AddWSAssetCELS() failed - WS loader has not been initialized.
0211,AddWSAssetCELS() failed - series number was > 255, must be between 0 and 255.
0212,AddWSAssetCELS() failed - rget() out of memory error.
0213,AddWSAssetCELS() failed - ProcessCELS() failed.
0214,AddWSAssetCELS() failed - 256 sprite series already loaded, table is full.

0240,LoadSpriteSeries() failed - rget() out of memory error.
0241,LoadSpriteSeries() failed - ProcessCELS() failed.

0250,Sequence instruction requires at least 1 arguments.
0251,Sequence instruction requires at least 2 arguments.
0252,Sequence instruction requires 3 arguments.
0253,Sequence instruction - Divide by 0 error.
0254,Sequence instruction - Stack overflow.
0255,Sequence instruction - Stack underflow.
0256,Sequence instruction - subroutines nested too deep.
0257,Sequence instruction - return found while not in a subroutine.
0258,Sequence instruction - unable to open stream.
0259,Sequence instruction - unable to get the next stream sprite.
025a,Sequence instruction - unable to close stream.
025b,Sequence instruction - sprite series error.
025c,Sequence instruction - unable to process instruction arguments.
025d,Sequence instruction - unable to initCCB().
025f,Sequence instruction failed.

0260,Machine Conditional instruction - missing count - corrupted stream.
0261,Machine Conditional instruction - requires at least 1 arguments.
0262,Machine Conditional instruction - requires 2 arguments.
0263,Machine Immediate instruction - requires at least 1 argument.
0264,Machine Immediate instruction - requires at least 2 argument.
0265,Machine Immediate instruction - requires 3 argument.
0266,Machine instruction - unable to process instruction arguments.
0267,Machine instruction - unable to trigger a machine

02f0,Cruncher has not been initialized.
02f2,Invalid machine* passed.
02f3,Invalid Anim8* passed.
02f4,ws_InitCruncher() failed - unable to register memtypeEOS.
02f5,ws_InitCruncher() failed - cruncher already initialized.
02f6,InitWSAssets() failed - WS loader already initialized.
02f7,Invalid CCB* passed.
02fe,Out of memory error.
02ff,INTERNAL ERROR







[1m[36m(Rn)[0m [32;40mY:\ATG\M4\LIB\ADV_R [1;32;40m[0;36;40mtype KERNEL.M4E 
0401,A trigger can back that was NOT OF THIS SCENE (orphan trigger)
0402,That is not a valid Trigger you tried to pull there, buster (invalid trigger creation error)
0403,woodscript InitDebugger failed
0404,couldn't find show engine - check project
0405,couldn't find walker engine - check project
0406,game_systems_initialize failed
0407,command line parse failure
0408,mem_initcore fail
0409,getcwd failed. Bad DOS juju!
040A,VESA driver not found, please load one and run the game again
040B,gui_osb_init failure
040C,mouse driver not recent enough, or no mouse driver found
040D,player_been_init failure
040E,unable to allocate global shared variables
040F,unable to allocate global control variablesx
0410,GUI system init failure
0411,vmng init failure
0412,gui_mouse_init failure
0413,InitDialogs failure
0414,InitItems failure
0415,gui_buffer_system_init failure
0416,timer_install failure - check project then run M4config
0417,MIDI error - check project then run M4config
0418,digi_install - check project then run M4config
0419,woodscript_init - tell tinman
041A,strm_init - tell tinman
041B,unable to read DEF file
041C,couldn't find background picture (scene#, picture name)
041D,failed while loading background picture


[1m[36m(Rn)[0m [32;40mY:\ATG\M4\LIB\EXCEPTN [1;32;40m[0;36;40mtype EXCEPTN.M4E 
;Exception handler errors (MSB=0x09)

;First 50 error codes are reserved for unhandled exceptions
;  These codes are 0x0900+Exception code.

0900,EXCEPTION_THROW: Unhandled exception: EXCEPTION_DEBUG_STOP
0901,EXCEPTION_THROW: Unhandled exception: EXCEPTION_WRONG_MEDIA

;The following are normal error messages:

0951,EXCEPTION_REGISTER_HANDLER: Too many handlers registered (max=32)
0952,EXCEPTION_REGISTER_HANDLER: Exception code is out of range (ispec=code)
0953,EXCEPTION_UNREGISTER_HANDLER: Exception code is out of range (ispec=code)
0954,EXCEPTION_UNREGISTER_HANDLER: Exception handler could not be found
0955,EXCEPTION_THROW: Exception code is out of range (ispec=code)
0956,EXCEPTION_REGISTER_HANDLER: Handler address is NULL




[1m[36m(Rn)[0m [32;40mY:\ATG\M4\LIB\FILEIO [1;32;40m[0;36;40mtype FCLASS.M4E 

0800,File not found
0801,Filename maximum length exceeded
0802,Null handle passed to read or write
0803,Attempt to read past End of File

[1m[36m(Rn)[0m [32;40mY:\ATG\M4\LIB\GRAPHICS [1;32;40m[0;36;40mtype GRAPHICS.M4E 

0500,No destination buffer specified (ptr or ptr->data was NULL)
0501,Series load failure
0502,Sprite not found (is it in the database?)
0503,Show machine failed (is global.wss available in your project?)
0504,Null buffer error (ptr or ptr->data was NULL)
0505,Error - can't recycle Buffer structures like that.
0506,Font load failure
0507,Series module not initialized yet. Call series_init();
0508,Scale sprite failed
0509,src or dest palette is NULL
050a,first palette entry > last palette entry

[1m[36m(Rn)[0m [32;40mY:\ATG\M4\LIB\GUI [1;32;40m[0;36;40mtype GUI.M4E 
0a00,no RectClass parm
0a01,no ButtonClass parm
0a02,too many buttons added
0a03,Cells don't fit in Inventory - they're cumulatively too wide
0a04,Too many inventory cells

Done with all directories


