Difference between revisions of "AGI Command Reference - Commands to Load and unLoad Resources"

From AGI Wiki
Jump to navigationJump to search
(Blanked the page)
 
Line 1: Line 1:
[[Tutorials and Guides|Tutorials and Guides Table of Contents]]<br />
 
[[AGI Command Reference|AGI Command Reference Index]]<br />
 
  
<div align="center">
 
Page:
 
[[AGI Command Reference - Arithmetic Commands|1]] |
 
[[AGI Command Reference - Commands to Load and unLoad Resources|2]] |
 
[[AGI Command Reference - Program Control Commands|3]] |
 
[[AGI Command Reference - Object Control Commands|4]] |
 
[[AGI Command Reference - Object Description Commands|5]] |
 
[[AGI Command Reference - Object Motion Control Commands|6]] |
 
[[AGI Command Reference - Inventory Item Management Commands|7]] |
 
[[AGI Command Reference - Picture Resource Management Commands|8]] |
 
[[AGI Command Reference - Sound Resource Management Commands|9]] |
 
[[AGI Command Reference - Text Management Commands|10]] |
 
[[AGI Command Reference - String Management Commands|11]] |
 
[[AGI Command Reference - Initialization Commands|12]] |
 
[[AGI Command Reference - Menu Management Commands|13]] |
 
[[AGI Command Reference - Test Commands|14]] |
 
[[AGI Command Reference - Other Commands|15]] |
 
[[AGI Command Reference - Unknown Commands|16]]
 
</div><br />
 
 
<div align="center"><span style="font-size: 22pt">Commands to Load and unLoad Resources</span><br />
 
''By [[Chris Cromer]]''</div>
 
 
&nbsp;
 
 
Commands in this chapter load (into the interpreter's memory) and unload (discard, thus freeing interpreter's memory) [[Logic Resource|logic]], [[Picture Resource|picture]], [[View Resource|view]], and [[Sound Resource|sound]] resources. Always remember that the internal memory of the interpreter is 64K. This restriction is rarely a problem, but do not forget about it. When the internal memory is full, the program has to be broken into parts which are loaded and unloaded as the story unfolds in the given room, or Picture, View, and Sound resources have to be manipulated using the commands below. Remember that when a resource is unloaded, all resources loaded after it ARE ALSO AUTOMATICALLY UNLOADED!
 
 
&nbsp;
 
 
== <br />load.logic(n); ==
 
 
<blockquote>Load into memory the LOGIC resource number n, i.e. Logic(n)</blockquote>
 
 
== load.logic.v(n); ==
 
 
<blockquote>Load into memory the LOGIC resource number i, where i is the value of Var(n), i.e. Logic(Var(n))</blockquote>
 
 
== load.pic(n); ==
 
 
<blockquote>Loads into memory the Picture resource number i, where i is the value of Var(n), i.e. Picture(Var(n))</blockquote>
 
 
<blockquote>'''Notes:'''<br />
 
This may be a mistake in the original: I would expect this command to be 'load_pic_v', while 'load_pic n' would load resource number n..<br />
 
load_pic_v may be a more appropriate name for it, but the name above is what they gave it. There is no equivalent command that takes a number rather than a variable.</blockquote>
 
 
== load.view(n); ==
 
 
<blockquote>Loads into memory the View resource number n, i.e. View(n).</blockquote>
 
 
== load.view.v(n); ==
 
 
<blockquote>Loads into memory the View resource number i, where i is the value of Var(n), i.e. View(Var(n))</blockquote>
 
 
== load.sound(n); ==
 
 
<blockquote>Loads into memory the SOUND resource number n, i.e. Sound(n).</blockquote>
 
 
<blockquote>'''Notes:'''<br />
 
Note that there is no load_sound_v listed. I wonder if this is a mistake or there really is no way to load a sound with indirection (unlikely, I think).<br />
 
There really is no way of loading a sound with indirection. The command doesn't exist.</blockquote>
 
 
== discard.pic(n); ==
 
 
<blockquote>Unloads Picture resource number i where i is the value of Var(n).</blockquote>
 
 
== discard.view(n); ==
 
 
<blockquote>Unload View resource number n, i.e. View(n)</blockquote>
 
 
== discard.view.v(n); ==
 
 
<blockquote>Unloads View resource number i where i the value of Var(n), i.e. View(Var(n)).</blockquote>
 
 
<blockquote>'''Notes:'''<br />
 
What about discard_logic, discard_logic_v, discard_sound, and discard_sound_v?.<br />
 
There must be some other way that those commands are removed from memory, because the commands you mention above don't exist.</blockquote>
 
 
&nbsp;
 
 
<div align="center">
 
Page:
 
[[AGI Command Reference - Arithmetic Commands|1]] |
 
[[AGI Command Reference - Commands to Load and unLoad Resources|2]] |
 
[[AGI Command Reference - Program Control Commands|3]] |
 
[[AGI Command Reference - Object Control Commands|4]] |
 
[[AGI Command Reference - Object Description Commands|5]] |
 
[[AGI Command Reference - Object Motion Control Commands|6]] |
 
[[AGI Command Reference - Inventory Item Management Commands|7]] |
 
[[AGI Command Reference - Picture Resource Management Commands|8]] |
 
[[AGI Command Reference - Sound Resource Management Commands|9]] |
 
[[AGI Command Reference - Text Management Commands|10]] |
 
[[AGI Command Reference - String Management Commands|11]] |
 
[[AGI Command Reference - Initialization Commands|12]] |
 
[[AGI Command Reference - Menu Management Commands|13]] |
 
[[AGI Command Reference - Test Commands|14]] |
 
[[AGI Command Reference - Other Commands|15]] |
 
[[AGI Command Reference - Unknown Commands|16]]
 
</div><br />
 
 
[[Tutorials and Guides|Tutorials and Guides Table of Contents]]<br />
 
[[AGI Command Reference|AGI Command Reference Index]]
 
 
<span style="float: left">[[AGI Command Reference - Arithmetic Commands|&lt; Previous: Arithmetic Commands]]</span><span style="float: right">[[AGI Command Reference - Program Control Commands|Next: Program Control Commands &gt;]]</span>
 
 
&nbsp;
 
 
[[Category:Logic]]
 
[[Category:Commands]]
 
[[Category:References]]
 
[[Category:Tutorials]]
 
[[Category:Resources]]
 

Latest revision as of 19:52, 22 March 2019