Difference between revisions of "Error Code Tutorial - Introduction"

From AGI Wiki
Jump to navigationJump to search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[AGI Tutorials|Tutorials Table of Contents]]<br />
+
[[Tutorials and Guides|Tutorials and Guides Table of Contents]]<br />
[[AGI Error Code Tutorial|AGI Error Code Index]]
+
[[Error Code Tutorial|Error Code Index]]
  
 
<div align="center">
 
<div align="center">
 
Page:  
 
Page:  
[[AGI Error Code Tutorial - Introduction|1]] |  
+
[[Error Code Tutorial - Introduction|1]] |  
[[AGI Error Code Tutorial - Logic Errors|2]] |  
+
[[Error Code Tutorial - Logic Errors|2]] |  
[[AGI Error Code Tutorial - Interpreter Errors|3]] |  
+
[[Error Code Tutorial - Interpreter Errors|3]] |  
[[AGI Error Code Tutorial - Unacknowledged Errors|4]] |  
+
[[Error Code Tutorial - Unacknowledged Errors|4]] |  
[[AGI Error Code Tutorial - Debugging Techniques|5]] |
+
[[Error Code Tutorial - Debugging Techniques|5]]
[[AGI Error Code Tutorial - Revision History|6]] |
 
 
</div><br />
 
</div><br />
  
Line 20: Line 19:
 
{| align="right"
 
{| align="right"
 
|[[File:errt_roach.gif]]
 
|[[File:errt_roach.gif]]
| align="center"|Your error could be caused by this very friendly roach.
+
|-
 +
| align="center"|Your error could be caused by<br />this very friendly roach.
 
|}Lots of people ask questions like "I got this error when I ran my AGI game, and I don't know how to get around it.".  This document's aim is to list all the known errors that you can generate through the AGI interpreter and possible workarounds.
 
|}Lots of people ask questions like "I got this error when I ran my AGI game, and I don't know how to get around it.".  This document's aim is to list all the known errors that you can generate through the AGI interpreter and possible workarounds.
  
Line 42: Line 42:
 
<div align="center">
 
<div align="center">
 
Page:  
 
Page:  
[[AGI Error Code Tutorial - Introduction|1]] |  
+
[[Error Code Tutorial - Introduction|1]] |  
[[AGI Error Code Tutorial - Logic Errors|2]] |  
+
[[Error Code Tutorial - Logic Errors|2]] |  
[[AGI Error Code Tutorial - Interpreter Errors|3]] |  
+
[[Error Code Tutorial - Interpreter Errors|3]] |  
[[AGI Error Code Tutorial - Unacknowledged Errors|4]] |  
+
[[Error Code Tutorial - Unacknowledged Errors|4]] |  
[[AGI Error Code Tutorial - Debugging Techniques|5]] |
+
[[Error Code Tutorial - Debugging Techniques|5]]
[[AGI Error Code Tutorial - Revision History|6]] |
 
 
</div><br />
 
</div><br />
  
&nbsp;
+
[[Tutorials and Guides|Tutorials and Guides Table of Contents]]<br />
 
+
[[Error Code Tutorial|Error Code Index]]
[[AGI Tutorials|Tutorials Table of Contents]]<br />
 
[[AGI Error Code Tutorial|AGI Error Code Index]]
 
  
<span style="float: left"><span class="Inactive">&lt; Previous: </span></span><span style="float: right">[[AGI Error Code Tutorial - Logic Errors|Next: Logic Errors &gt;]]</span>
+
<span style="float: left"><span class="Inactive">&lt; Previous: </span></span><span style="float: right">[[Error Code Tutorial - Logic Errors|Next: Logic Errors &gt;]]</span>
  
 
&nbsp;
 
&nbsp;

Latest revision as of 11:56, 28 December 2013

Tutorials and Guides Table of Contents
Error Code Index

Page: 1 | 2 | 3 | 4 | 5


Introduction

by Nick Sonneveld

Last updated 9th March, 2002

 

Errt roach.gif
Your error could be caused by
this very friendly roach.

Lots of people ask questions like "I got this error when I ran my AGI game, and I don't know how to get around it.". This document's aim is to list all the known errors that you can generate through the AGI interpreter and possible workarounds.

There are basically two different types of errors:

  • Logic errors - These are caused by sending incorrect parameters to a logic command. Error messages are required to be printed by additional logic code.
  • Interpreter errors - Files missing, stack overflow, out of memory, etc - these are errors that can pop up any time. You can't use logic code to generate an error message so the interpreter takes over and does it itself.

Both types of errors aren't recoverable and the game will have to exit shortly after displaying the error. The reason for this is because it's got a quick hack to run logic.0 again but it's not expecting to return from logic.0, just exit.

NAGI, based very heavily on the original Sierra interpreter, shares a lot of the same errors. NAGI has it's own bunch of helpful warnings which are documented in it's own documentation. If there's demand, I'll document the errors/warnings of AGIL, NAGI and Sarien as well.

The tutorial will go through all the known available errors, suggest ways of getting around the majority of them and finally will have a list of helpful debugging techniques. The debugging techniques will be essential whenever you encounter a strange bug, but you are unsure of the whereabouts.

 

Page: 1 | 2 | 3 | 4 | 5


Tutorials and Guides Table of Contents
Error Code Index

< Previous: Next: Logic Errors >