<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.sierrahelp.com/index.php?action=history&amp;feed=atom&amp;title=SCI_Programming_Language%2FFiles</id>
	<title>SCI Programming Language/Files - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.sierrahelp.com/index.php?action=history&amp;feed=atom&amp;title=SCI_Programming_Language%2FFiles"/>
	<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=SCI_Programming_Language/Files&amp;action=history"/>
	<updated>2026-11-27T20:01:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>http://wiki.sierrahelp.com/index.php?title=SCI_Programming_Language/Files&amp;diff=71203&amp;oldid=prev</id>
		<title>Andrew Branscom: 2 revisions imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=SCI_Programming_Language/Files&amp;diff=71203&amp;oldid=prev"/>
		<updated>2025-02-16T21:00:48Z</updated>

		<summary type="html">&lt;p&gt;2 revisions imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:00, 16 February 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Andrew Branscom</name></author>
	</entry>
	<entry>
		<id>http://wiki.sierrahelp.com/index.php?title=SCI_Programming_Language/Files&amp;diff=71202&amp;oldid=prev</id>
		<title>Andrew Branscom: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=SCI_Programming_Language/Files&amp;diff=71202&amp;oldid=prev"/>
		<updated>2024-06-03T05:14:22Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:14, 3 June 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Andrew Branscom</name></author>
	</entry>
	<entry>
		<id>http://wiki.sierrahelp.com/index.php?title=SCI_Programming_Language/Files&amp;diff=71201&amp;oldid=prev</id>
		<title>Andrew Branscom: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=SCI_Programming_Language/Files&amp;diff=71201&amp;oldid=prev"/>
		<updated>2018-03-02T23:12:27Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Official SCI Documentation]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
Chapter: &lt;br /&gt;
[[SCI Programming Language/Introduction|1]] | &lt;br /&gt;
[[SCI Programming Language/Primitive Procedures|2]] | &lt;br /&gt;
[[SCI Programming Language/Primitive_Procedures#Arithmetic_Primitives|3]] | &lt;br /&gt;
[[SCI Programming Language/Primitive_Procedures#Boolean_Primitives|4]] | &lt;br /&gt;
[[SCI Programming Language/Primitive_Procedures#Assignment_Primitives |5]] | &lt;br /&gt;
[[SCI Programming Language/Data Types and Variables|6]] | &lt;br /&gt;
[[SCI Programming Language/Definitions|7]] | &lt;br /&gt;
[[SCI Programming Language/Control Flow|8]] | &lt;br /&gt;
[[SCI Programming Language/Control Flow#Conditionals|9]] | &lt;br /&gt;
[[SCI Programming Language/Control Flow#Iteration|10]] | &lt;br /&gt;
[[SCI Programming Language/Procedures|11]] | &lt;br /&gt;
[[SCI Programming Language/Files|12]] | &lt;br /&gt;
[[SCI Programming Language/Compiling SCI|13]] | &lt;br /&gt;
[[SCI Programming Language/Index|Index]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-size: 22pt&amp;quot;&amp;gt;Files&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;Author: [[Jeff Stephenson]]&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
== Files ==&lt;br /&gt;
&lt;br /&gt;
Source files for the script compiler traditionally have the extension &amp;#039;&amp;#039;&amp;#039;.sc&amp;#039;&amp;#039;&amp;#039;. Header (include) files traditionally have the extension &amp;#039;&amp;#039;&amp;#039;.sh&amp;#039;&amp;#039;&amp;#039;. Message editor header files traditionally have the extension &amp;#039;&amp;#039;&amp;#039;.shm&amp;#039;&amp;#039;&amp;#039;. Source files may have any filename; two examples are banner.sc and castle.sc. The two output files from the compilation will have the names &amp;#039;&amp;#039;&amp;#039;number.scr&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;number.hep&amp;#039;&amp;#039;&amp;#039; where number is the &amp;#039;&amp;#039;&amp;#039;script#&amp;#039;&amp;#039;&amp;#039; (defined below) of the module. Following are other files (besides the source file and any user-defined header files) which are involved in a compilation.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;br /&amp;gt; classdef ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;This file contains the information about the structure of the classes which have been defined in the application. It is read automatically by the compiler and is rewritten by the compiler after a successful compilation in order to keep it up to date.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;br /&amp;gt; selector ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;This file contains definitions of selectors which are used in object-oriented programming. It is automatically included in a compile and, like classdef, is rewritten after a successful compile. Any symbol in a properties or methods statement or in the selector position in a send to an object is assumed to be a selector and is assigned a selector number included in selector.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;br /&amp;gt; system.sh ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;This contains the definitions for interfacing with the various system classes and procedures. It also contains the system global variable definitions and defines for keycodes, script numbers, etc. It is automatically included in all compiles.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;br /&amp;gt; kernel.sh ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;This contains the definitions for interfacing with the kernel.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;br /&amp;gt; game.sh ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;This is the game-specific header file. It contains global variables, procedure declarations, and definitions for an individual game. It is automatically included in the compile after system.sh.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;br /&amp;gt; classes.txt ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;This is a text file produced by the compiler that is used by a BRIEF macro to browse the SCI class system.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;br /&amp;gt; offsets.txt ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;This is a text file that contains a list of class-selector pairs for frequently used properties. It is used by the compiler to produce 994.voc.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;br /&amp;gt; 994.voc ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;For each class-selector pair in offsets.txt, the compiler writes an entry to this file containing the offset of that property in an SCI object. With this information, the interpreter can access a frequently used property without going through the message-passing mechanism. It is generated by the compiler when the -0 command line parameter is used.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;br /&amp;gt; 996.voc ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;This is the class table. It specifies the number of the script files that contain each class.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;br /&amp;gt; 997.voc ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;This file contains the names of selectors. It is only used by the debugger and in printing error messages.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;br /&amp;gt; $$$sc.lck ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;This read-only file serves as a semaphore, indicating that a compile is occurring in the current directory. This prevents two compiles from trying to do the same task concurrently (updating the same classdef, for instance). $$$sc.lck is created at the beginning of a compile and deleted at the end.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
The following two SCI commands deal with source code organization:&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;br /&amp;gt; script# ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The script# command sets the script number of the output file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;(script# 4)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
sets the output file names to 4.scr and 4.hep, regardless of the actual name of the&lt;br /&gt;
source file.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;br /&amp;gt; scriptID ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;lt;div id=&amp;quot;scriptID&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;code&amp;gt;(scriptID 86 0)&amp;lt;/code&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Unknown hand written note&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;br /&amp;gt; include ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;This includes a header file in the current source file at the current position.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;(include &amp;quot;/sc/foo.sh&amp;quot;)&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;(include /sc/foo.sh)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
includes the file /sc/foo.sh. Include files may be nested as deeply as desired.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
When compiling or including a file, the compiler first looks in the current directory. If it fails to find it there, it next looks for the file in the directories specified in the environment variable &amp;lt;div id=&amp;quot;sinclude&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;#039;&amp;#039;&amp;#039;sinclude&amp;#039;&amp;#039;&amp;#039;. This variable is just like the DOS path variable. The search directories are separated by semicolons. To set the compiler to look for include files in f:/games/scilsystem and c:/include if it doesn&amp;#039;t find them in the current directory, add the line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;lt;code&amp;gt;set sinclude=f:/games/sci/system;c:/include&amp;lt;/code&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to your autoexec.bat file.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
;Notes&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[SCI Programming Language | Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;float: left&amp;quot;&amp;gt;[[SCI Programming Language/Procedures|&amp;amp;lt; Previous: Procedures]]&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;float: right&amp;quot;&amp;gt;[[SCI Programming Language/Compiling SCI|Next: Compiling SCI &amp;amp;gt;]]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
[[Category:SCI Documentation]]&lt;br /&gt;
[[Category:SCI32]]&lt;br /&gt;
[[Category:Scripting]]&lt;/div&gt;</summary>
		<author><name>Andrew Branscom</name></author>
	</entry>
</feed>