Author Topic: Leaked Original SCI Source  (Read 10269 times)

0 Members and 1 Guest are viewing this topic.

Offline Kawa

Re: Leaked Original SCI Source
« Reply #60 on: December 02, 2015, 04:40:44 AM »
you should probably use fixed-width font for code snippets.
Consolas isn't fixed-width?

Offline OmerMor

Re: Leaked Original SCI Source
« Reply #61 on: December 02, 2015, 07:45:40 AM »
Ah... I'm on a linux box with libre office and no consolas.
So it just shows some random font instead.

Offline Kawa

Re: Leaked Original SCI Source
« Reply #62 on: December 02, 2015, 08:54:32 AM »
I thought it'd be something like that.

Offline Collector

Re: Leaked Original SCI Source
« Reply #63 on: December 02, 2015, 12:04:15 PM »
I'll try to Wikify the other dos, but it will take some time. I might try to automate this some way. I did discover an item in the index that had no entry in the document. 'base.sh' in the Files chapter. I added an empty section for it. I am not sure if we can deduce what the entry should have been or not. http://sciwiki.sierrahelp.com//index.php?title=The_Script_Programming_Language/Files#base.sh
KQII Remake Pic

Offline troflip

Re: Leaked Original SCI Source
« Reply #64 on: December 02, 2015, 01:08:18 PM »
It's probably what system.sh was called at one time, so you can probably just remove it. As with most documentation, bits and pieces get out of date as the software changes.
Check out my website: http://icefallgames.com
Groundhog Day Competition

Offline Kawa

Re: Leaked Original SCI Source
« Reply #65 on: December 02, 2015, 01:56:01 PM »
Incidentally, I've seen what you're up to on Github, Phil.

I don't fully understand it all, but I've seen it >:3

Offline troflip

Re: Leaked Original SCI Source
« Reply #66 on: December 02, 2015, 02:10:50 PM »
I suppose checkin comments like "convert all" functionality for moving a project to SCI Syntax don't leave much to the imagination, do they??
Check out my website: http://icefallgames.com
Groundhog Day Competition

Offline lance.ewing

Re: Leaked Original SCI Source
« Reply #67 on: December 02, 2015, 04:12:04 PM »
Code: [Select]
        myself:

This is obviously not SCI in its final form. SCI in its final form calls this yourself (even KQ4), even though the purpose is the same: To pass the address of the newly created object on to the outer expression (adding it to the list), rather than what the second-to-last message would otherwise return.

Interesting. Yeah, it looks like there was this original set of documentation produced, that we're seeing now, that was probably never updated. Instead they seem to have kept track of most changes via the change history document. Can't seem to find a myself: becomes yourself: change in the changes doc though.

Offline lance.ewing

Re: Leaked Original SCI Source
« Reply #68 on: December 02, 2015, 04:17:18 PM »
http://sciwiki.sierrahelp.com//index.php?title=The_Script_Programming_Language/Using_SC

So the usage message for the compiler proves that it did do optimizations by default. I guess we were already assuming that based on some of the compiled code, but this confirms it.

Offline Collector

Re: Leaked Original SCI Source
« Reply #69 on: December 02, 2015, 08:37:52 PM »
I have been working on the Wiki. I added categories to the official scripting reference to make it more accessible from related entries. I edited Omer's official documentation page to function as a main page for this documentation and left the PDF links for anyone who wants a local copy in its original format.

http://sciwiki.sierrahelp.com//index.php?title=Official_SCI_Documentation

I will do the missing ones after a break and as I find time. The Wiki conversion is a little bit maddening with a lot of tedious busy work. I also added a link to Phil's help file in the sidebar, next to the SCI Studio help file. This will add it to the Wiki without having to worry about keeping it in sync with the original if and when Phil updates it.
KQII Remake Pic

Offline OmerMor

Re: Leaked Original SCI Source
« Reply #70 on: December 03, 2015, 11:32:10 AM »
Code: [Select]
        myself:

This is obviously not SCI in its final form. SCI in its final form calls this yourself (even KQ4), even though the purpose is the same: To pass the address of the newly created object on to the outer expression (adding it to the list), rather than what the second-to-last message would otherwise return.

Interesting. Yeah, it looks like there was this original set of documentation produced, that we're seeing now, that was probably never updated. Instead they seem to have kept track of most changes via the change history document. Can't seem to find a myself: becomes yourself: change in the changes doc though.

They added a define from myself --> yourself :
Code: [Select]
;For compatability -- bringing stuff in line with SmallTalk syntax.
(define myself yourself)

Here's the complete SYSTEM.SH script:
Code: [Select]
;;;;
;;;;  SYSTEM.SH
;;;;
;;;;  (c) Sierra On-Line, Inc, 1992
;;;;
;;;;  Author: Unknown
;;;;
;;;;  This is the header file for the SCI system
;;;;
;;;;  Last Updated:
;;;;     Brian K. Hughes
;;;;     August 19, 1992


(include kernel.sh)     ;kernel external declarations


;╔════════════════╗
;║                ║
;║ Module Defines ║
;║                ║
;╚════════════════╝

(define  SYSTEM      999)
(define  ACTOR       998)
(define  MENU        997)
(define  USER        996)
(define  INVENT      995)
(define  GAME        994)
(define  FILE        993)
(define  MOTION      992)
(define  JUMP        991)
(define  SAVE        990)
(define  MUSIC       989)
(define  EGO         988)     ; was EXTRA
(define  GAUGE       987)
(define  ORBIT       986)
(define  FLAGS       985)     ; was AVOIDER
(define  REGPATH     984)     ; was SORTCOPY
(define  PATH        983)
(define  SIGHT       982)
(define  WINDOW      981)
(define  TUTORIAL    980)     ; was TEXTRA
(define  UNUSED_4    979)     ; was MOUSER
(define  GCONTROL    978)
(define  GROOPER     977)
(define  CAT         976)
(define  SCALETO     975)     ; was DEMO
(define  NAMEFIND    974)
(define  TIMER       973)
(define  CHASE       972)
(define  FOLLOW      971)
(define  WANDER      970)
(define  REVERSE     969)
(define  SMOOPER     968)
(define  DCICON      967)
(define  SORT        966)
(define  COUNT       965)
(define  DPATH       964)     ; will be merged into PATH
(define  RELDPATH    963)     ; will be merged into PATH
(define  UNUSED_7    962)     ; was QSCRIPT
(define  STOPWALK    961)
(define  UNUSED_8    960)     ; was TIMEDCUE
(define  QSOUND      959)
(define  LOADMANY    958)
(define  UNUSED_10   957)     ; was LASTLINK
(define  FORCOUNT    956)
(define  TRACK       955)
(define  DOOR        954)     ; was GOTOSAID
(define  APPROACH    953)
(define  LOGGER      952)
(define  MOVEFWD     951)
(define  FEATURE     950)
(define  BLOCK       949)
(define  WRITEFTR    948)
(define  DLGEDIT     947)     ; was DELAYEVT
(define  POLYGON     946)
(define  POLYPATH    945)
(define  FILESEL     944)
(define  POLYEDIT    943)
(define  MOVECYC     942)
(define  RANDCYC     941)
(define  UNUSED_11   940)     ; was PRINTD
(define  OSC         939)
(define  RANGEOSC    938)     ; was PCYCLE
(define  ICONBAR     937)
(define  BORDWIND    936)
(define  SCALER      935)
(define  SLIDEICON   934)
(define  PMOUSE      933)
(define  PFOLLOW     932)     ; was LANGUAGE
(define  CDACTOR     931)
(define  PCHASE      930)
(define  SYNC        929)
(define  TALKER      928)
(define  PAVOID      927)
(define  FLIPPOLY    926)
(define  CONV        925)
(define  MESSAGER    924)
(define  INSET       923)
(define  DIALOG      922)  ;Contains DIcon, DButton, DEdit, DSelector, Controls
(define  PRINT       921)  ;Front-end for dialogs

(define  INTRFACE    255)



;╔════════════════╗
;║                ║
;║ Extern Defines ║
;║                ║
;╚════════════════╝

(extern
   Prints         PRINT       0
   Printf         PRINT       1
   GetInput       PRINT       2
   FindFormatLen  PRINT       3
   StillDown      INTRFACE    0
   GetNumber      INTRFACE    1
   MousedOn       INTRFACE    2
   sign           SYSTEM      0
   umod           SYSTEM      1
   Min            SYSTEM      2
   Max            SYSTEM      3
   InRect         SYSTEM      4
   OneOf          SYSTEM      5
   WordAt         SYSTEM      6
   Eval           SYSTEM      7
   LoadMany       LOADMANY    0
   IsOffScreen    SIGHT       0
   CantBeSeen     SIGHT       1
   AngleDiff      SIGHT       2
   FlipPoly       FLIPPOLY    0
   FlipFeature    FLIPPOLY    1
)



;╔══════════════════╗
;║                  ║
;║ Resource Defines ║
;║                  ║
;╚══════════════════╝

;Resource types
(define  VIEW     $80)  ;  For backward compatability
(define  PICTURE  $81)
(define  SCRIPT   $82)
(define  TEXT     $83)
(define  SOUND    $84)
(define  MEMORY   $85)
(define  VOCAB    $86)
(define  FONT     $87)
(define  CURSOR   $88)  ;

(define  RES_VIEW       $80)
(define  RES_PIC        $81)
(define  RES_SCRIPT     $82)
(define  RES_TEXT       $83)
(define  RES_SOUND      $84)
(define  RES_MEMORY     $85)
(define  RES_VOCAB      $86)
(define  RES_FONT       $87)
(define  RES_CURSOR     $88)
(define  RES_PATCH      $89)
(define  RES_BITMAP     $8A)
(define  RES_PALETTE    $8B)
(define  RES_CDAUDIO    $8C)
(define  RES_AUDIO      $8D)
(define  RES_SYNC       $8E)
(define  RES_MESSAGE    $8F)
(define  RES_MAP        $90)
(define  RES_HEAP       $91)
(define  RES_AUDIO36    $92)
(define  RES_SYNC36     $93)

;Virtual bitmap ID's
(define  VMAP     1)
(define  PMAP     2)
(define  CMAP     4)

;Picture change style constants
(define  HWIPE          0)
(define  HSHUTTER       0)
(define  VSHUTTER       1)
(define  WIPELEFT       2)
(define  WIPERIGHT      3)
(define  WIPEUP         4)
(define  WIPEDOWN       5)
(define  IRISIN         6)
(define  IRISOUT        7)
(define  DISSOLVE       8)
(define  PIXELDISSOLVE  9)
(define  FADEOUT        10)      ;Defaults to PLAIN in 16 color

(define  SCROLLRIGHT    11)      ;Relative order of these four is important
(define  SCROLLLEFT     12)      ;  in order for ShowPic to work correctly
(define  SCROLLUP       13)
(define  SCROLLDOWN     14)

(define  PLAIN          100)     ;Draw quickly with no special effects

(define  DONTSHOW       $1000)   ;Draw pic, but don't show yet
(define  VMIRROR        $2000)   ;Mirror pic vertically
(define  HMIRROR        $4000)   ;Mirror pic horizontally
(define  BLACKOUT       $8000)   ;"or" with other style to blacken screen first



;╔════════════════╗
;║                ║
;║ Cursor Defines ║
;║                ║
;╚════════════════╝

(define  ARROW_CURSOR   999)
(define  SNAIL_CURSOR   998)
(define  HAND_CURSOR    997)
(define  INVIS_CURSOR   996)



;╔══════════════════════════╗
;║                          ║
;║ Numeric Constant Defines ║
;║                          ║
;╚══════════════════════════╝

(define  INFINITY    $7fff)   


(define  NULL        0)

;Bits in the -info- property.
(define  CLONED      $0001)
(define  NODISPOSE   $0002)
(define  NODISPLAY   $0004)
(define  CLASS       $8000)

;For compatability -- bringing stuff in line with SmallTalk syntax.
(define  myself      yourself)

;Screen dimensions
(define  MINTOP      0)
(define  MINLEFT     0)
(define  MAXRIGHT    320)
(define  MAXBOTTOM   200)

;Screen edges for edgeHit
(enum 1
   NORTH
   EAST
   SOUTH
   WEST
)

;Values for above
(define  northEdge   40)
(define  southEdge   189)
(define  eastEdge    319)
(define  westEdge    0)

;Screen dimensions
(define  SCRNWIDE    320)
(define  SCRNHIGH    200)

;Values returned by (GameIsRestarting)
(enum 1
   RESTARTING
   RESTORING
)

(define  PATHEND     $8000)   ;Indicates end of path array
(define  ENDPOLY     $8000)   ;Indicates end of polygon array
(define  SAMEVIEW    -1)      ;Indicates stop cels are in same view as walks
(define  END_CONV    0)       ;Indicates end of Conversation array
(define  MARGIN      4)       ;Standard intrface item/edge spacing

;System font should not be screwed with
(define  SYSFONT     0)
(define  USERFONT    1)

;Used to specify the origin of an Actor in certain methods.
(define  origin      1)


;File opening parameters
(define  fAppend     0)       ;appends to end of file
(define  fRead       1)       ;positions at start of file
(define  fTrunc      2)       ;truncates file on open

;File seek parameters (limited to offset of +/- 32767)
(enum
   fileSeekBeg    ; seek from beginning of file (positive offset)
   fileSeekCur    ; seek from current position of file (positively/negatively)
   fileSeekEnd    ; seek from end of file (negative offset)
)


;Define for features shiftClick and contClick properties
;  that say don't do proximity checks if clicked on.
(define NOCHECKMOUSE $8000)


;Enums for Extra class
(enum
   ExtraForward         ;0=default
   ExtraEndLoop         ;1
   ExtraEndAndBeginLoop ;2
)

(enum -2
   ExtraLastCel         ;-1
   ExtraRandomCel       ;-2
)

; Feature defines
(define  ftrDefault  $6789)
(define  ftrControl  $0001)
(define  ftrPolygon  $0002)

(define  FACINGME    $0001)   
(define  NEARCHECK   $0002)
(define  FARCHECK    $0004)
(define  ISNOTHIDDEN $0008)
(define  SKIPCHECK   $1000)


(define maxFileName  13)      ;MS-DOS maximum


;Enums for polygon types for the polygon based avoider
(enum
   PTotalAccess
   PNearestAccess
   PBarredAccess
   PContainedAccess
)


;(define NODIRECTION $7fff);Arbitrary value for an undefined heading
;(define goToSaid    $8000);or with longRangeDist to indicate goToSaid desired
;(define turnIfSaid  $8000);or with sightAngle to indicate turnIfSaid desired

;Defines for the system view
(define  SYSVIEW        999)
;(define STOPSIGN       SYSVIEW 0 0)
;(define QUESTIONMARK   SYSVIEW 0 1)
;(define EXCLAMATION    SYSVIEW 0 2)

;Text rendering
;(define TPLAIN   0)
;(define TDIMMED  1)

;Door defines
(enum
   doorClosed
   doorOpening
   doorOpen
   doorClosing
)

(enum
   doorWalkEgo    ; ->:    ego will walk in through the door
                  ; <-:    ego will walk out the door to new room
   doorPlaceEgo   ; ->:    ego will appear in front of the door
                  ; <-:    ego will walk out the door & door will close
   doorLeaveEgo   ; both:  the door does not affect ego
)


; Language defines

(define  ENGLISH     1)
(define  FRENCH      33)
(define  SPANISH     34)
(define  ITALIAN     39)
(define  GERMAN      49)
(define  JAPANESE    81)
(define  PORTUGUESE  351)



;╔════════════════╗
;║                ║
;║ Dialog Defines ║
;║                ║
;╚════════════════╝

;Dialog item types
(define  dButton        1)
(define  dText          2)
(define  dEdit          3)
(define  dIcon          4)
(define  dMenu          5)          ; the title portion
(define  dSelector      6)

;Dialog item states
(define  dActive        $0001)
(define  dExit          $0002)
(define  dBold          $0004)
(define  dSelected      $0008)
(define  dIconTop       $0010)

;Window manager defines
(define  stdWindow      $0000)
(define  wNoSave        $0001)
(define  wNoBorder      $0002)
(define  wTitled        $0004)
(define  wCustom        $0080)

;Text justification for DItem mode
(define teJustLeft      0)
(define teJustCenter    1)
(define teJustRight     -1)

;Message type definitions
(define  TEXT_MSG       $0001)
(define  CD_MSG         $0002)

;Defines for messages
(define  NEXT           -1)
(define  ALL            0)



;╔═══════════════╗
;║               ║
;║ Event Defines ║
;║               ║
;╚═══════════════╝

;Event types
(define  nullEvt     $0000)
(define  mouseDown   $0001)
(define  mouseUp     $0002)
(define  keyDown     $0004)
(define  keyUp       $0008)
(define  direction   $0040)
(define  speechEvent $0080)
(define  joyDown     $0100)
(define  joyUp       $0200)
(define  walkEvent   $1000)
(define  helpEvent   $2000)
(define  userEvent   $4000)

(define  allEvents   $7fff)

(define  leaveIt     $8000)

(define  speechNoun  1)
(define  speechVerb  0)

;Event modifiers (in who property)
(define  shiftRight  1)    ; right shift key pressed
(define  shiftLeft   2)    ; left shift key pressed
(define  shiftDown   3)    ; either shift key pressed
(define  ctrlDown    4)    ; control key pressed
(define  altDown     8)    ; alt key down pressed

;Pseudo selectors for SetMenu, Display, and Print (eventually)
;  must be duplicated by #define's in KERNEL.H
(define p_at:        100)
(define p_mode:      101)
(define p_color:     102)
(define p_back:      103)
(define p_style:     104)
(define p_font:      105)
(define p_width:     106)
(define p_save:      107)
(define p_restore:   108)
(define p_said:      109)
(define p_text:      110)
(define p_key:       111)
(define p_state:     112)
(define p_value:     113)
(define p_dispose:   114)
(define p_time:      115)
(define p_title:     116)
(define p_draw:      117)
(define p_edit:      118)
(define p_button:    119)
(define p_icon:      120)
(define p_noshow:    121)

;Direction event messages.
(enum
   dirStop
   dirN
   dirNE
   dirE
   dirSE
   dirS
   dirSW
   dirW
   dirNW
)

;Standard loop order for actors
(enum
   loopE
   loopW
   loopS
   loopN
   
   loopSE
   loopSW
   loopNE
   loopNW
)

(enum
   facingEast
   facingWest
   facingSouth
   facingNorth
   facingSE
   facingSW
   facingNE
   facingNW
)



;╔═════════════╗
;║             ║
;║ Key Defines ║
;║             ║
;╚═════════════╝

(define  ESC         27)
(define  SPACEBAR    32)
(define  ENTER       `^m)
(define  TAB         `^i)
(define  SHIFTTAB    $0f00)
(define  BACKSPACE   `^h)


;Numeric key code in scan code order with missing codes added
(define  HOMEKEY     $4700)
(define  UPARROW     $4800)
(define  PAGEUP      $4900)

(define  LEFTARROW   $4b00)
(define  CENTERKEY   $4c00)
(define  RIGHTARROW  $4d00)

(define  ENDKEY      $4f00)
(define  DOWNARROW   $5000)
(define  PAGEDOWN    $5100)

(define  INSERT      $5200)
(define  DELETE      $5300)



;╔════════════════════╗
;║                    ║
;║ Signal Bit Defines ║
;║                    ║
;╚════════════════════╝

(define  stopUpdOn      $0001)
(define  startUpdOn     $0002)
(define  updOn          $0003)
(define  notUpd         $0004)
(define  hideActor      $0008)
(define  fixPriOn       $0010)
(define  viewAdded      $0020)   ;view will be added to picture
(define  forceUpdOn     $0040)
(define  actorHidden    $0080)
(define  staticView     $0100)
(define  blocked        $0400)   ;tried to move, but couldn't
(define  fixedLoop      $0800)   ;loop is fixed
(define  skipCheck      $1000)   ;onMe will check skip
(define  ignrHrz        $2000)   ;can ignore horizon
(define  ignrAct        $4000)   ;can ignore other actors
(define  delObj         $8000)

(define  ADDTOPIC       (| delObj stopUpdOn viewAdded))

;scaleSignal bits
(define  scalable       $0001)   ;scale on user-defined criteria
(define  autoScale      $0002)   ;scaling as a function of y
(define  noStepScale    $0004)   ;don't try to change stepSize when scaling
(define  scaleBase      128)     ;represents 100%
(define  scaleShift     7)

(define  MATCH          -1)



;╔═══════════════════╗
;║                   ║
;║ State Bit Defines ║
;║                   ║
;╚═══════════════════╝

(define  dynamicName    $0001)   ;name of object is dynamically allocated
(define  approachObj    $0002)   ;ego will try to approach objects
(define  onMeIsControl  $0004)   ;onMeCheck is bit-mapped control colors


;╔═══════════════╗
;║               ║
;║ Sound Defines ║
;║               ║
;╚═══════════════╝

(define  SND_DONE       -1)   ;sound finished playing

;MIDI commands
(define  mNOTEOFF       $80)
(define  mNOTEON        $90)
(define  mPOLYAFTER     $a0)
(define  mCONTROLLER    $b0)
(define  mPROGRAMCHANGE $c0)
(define  mCHNLAFTER     $d0)
(define  mPITCHBEND     $e0)

;MIDI controller #'s
(define  mMODULATION    1)
(define  mVOLUME        7)
(define  mPAN           10)
(define  mMUTE          78)

;Flags bits
(define mNOPAUSE        $0001)
(define mFIXEDPRI       $0002)



;╔═══════════════╗
;║               ║
;║ Color Defines ║
;║               ║
;╚═══════════════╝

;Screen colors
(define  BLACK          0)

;CONTROL colors
(define  cBLACK         $0001)   ;  0
(define  cBLUE          $0002)   ;  1
(define  cGREEN         $0004)   ;  2
(define  cCYAN          $0008)   ;  3
(define  cRED           $0010)   ;  4
(define  cMAGENTA       $0020)   ;  5
(define  cBROWN         $0040)   ;  6
(define  cLGREY         $0080)   ;  7
(define  cGREY          $0100)   ;  8
(define  cLBLUE         $0200)   ;  9
(define  cLGREEN        $0400)   ;  10
(define  cLCYAN         $0800)   ;  11
(define  cLRED          $1000)   ;  12
(define  cLMAGENTA      $2000)   ;  13
(define  cYELLOW        $4000)   ;  14
(define  cWHITE         $8000)   ;  15

;VISUAL colors
(enum
   vBLACK      ;  0
   vBLUE       ;  1
   vGREEN      ;  2
   vCYAN       ;  3
   vRED        ;  4
   vMAGENTA    ;  5
   vBROWN      ;  6
   vLGREY      ;  7
   vGREY       ;  8
   vLBLUE      ;  9
   vLGREEN     ;  10
   vLCYAN      ;  11
   vLRED       ;  12
   vLMAGENTA   ;  13
   vYELLOW     ;  14
   vWHITE      ;  15
)

;PRIORITY colors
(enum
   pBLACK      ;  0
   pBLUE       ;  1
   pGREEN      ;  2
   pCYAN       ;  3
   pRED        ;  4
   pMAGENTA    ;  5
   pBROWN      ;  6
   pLGREY      ;  7
   pGREY       ;  8
   pLBLUE      ;  9
   pLGREEN     ;  10
   pLCYAN      ;  11
   pLRED       ;  12
   pLMAGENTA   ;  13
   pYELLOW     ;  14
   pWHITE      ;  15
)



;╔═════════════════╗
;║                 ║
;║ Iconbar Defines ║
;║                 ║
;╚═════════════════╝

(define  RELVERIFY      $0001)   ;release verify, track mouse
(define  IMMEDIATE      $0002)   ;do the job now, don't condition events
(define  DISABLED       $0004)   ;icon or bar not enabled
(define  TRANSLATOR     $0010)   ;condition event message (used internally)
(define  IB_ACTIVE      $0020)   ;iconbar is up
(define  HIDEBAR        $0040)   ;close bar after action
(define  FIXED_POSN     $0080)   ;Item has fixed position in inv window
(define  VICON          $0100)   ;up and down arrows will advance and retreat
(define  RELSEND        $0200)   ;for sliders-don't send message until mouseUp
(define  OPENIFONME     $0400)   ;close if mouse not on bar
(define  NOCLICKHELP    $0800)
(define  UPDATE_CURSOR  $1000)   ;transfer view, loop, & cel to cursor obj
(define  FORCE          $8000)



;╔══════════════════════════╗
;║                          ║
;║ System Globals (0 to 99) ║
;║                          ║
;╚══════════════════════════╝

(global
   ego               0                 ;pointer to ego
   theGame           1                 ;ID of the Game instance
   curRoom           2                 ;ID of current room
   unused_1          3
   quit              4                 ;when TRUE, quit game
   cast              5                 ;collection of actors
   regions           6                 ;set of current regions
   timers            7                 ;list of timers in the game
   sounds            8                 ;set of sounds being played
   inventory         9                 ;set of inventory items in game
   addToPics         10                ;list of views added to the picture
   curRoomNum        11                ;current room number
   prevRoomNum       12                ;previous room number
   newRoomNum        13                ;number of room to change to
   debugOn           14                ;generic debug flag -- set from debug menu
   score             15                ;the player's current score
   possibleScore     16                ;highest possible score
   textCode          17                ;code that handles interactive text
   cuees             18                ;list of who-to-cues for next cycle
   theCursor         19                ;the number of the current cursor
   normalCursor      20 = ARROW_CURSOR ;number of normal cursor form
   waitCursor        21 = HAND_CURSOR  ;cursor number of "wait" cursor
   userFont          22 = USERFONT     ;font to use for Print
   smallFont         23 = 4            ;small font for save/restore, etc.
   lastEvent         24                ;the last event (used by save/restore game)
   modelessDialog    25                ;the modeless Dialog known to User and Intrface
   bigFont           26 = USERFONT     ;large font
   version           27 = 0            ;pointer to 'incver' version string
                                       ;  WARNING!  Must be set in room 0
                                       ;  (usually to {x.yyy    } or {x.yyy.zzz})
   unused_3          28
   curSaveDir        29                ;address of current save drive/directory string
   unused_4          30
   perspective       31                ;player's viewing angle: degrees away
                                       ;  from vertical along y axis
   features          32                ;locations that may respond to events
   unused_5          33
   useSortedFeatures 34 = FALSE        ;enable cast & feature sorting?
   unused_6          35
                                       ;actors behind ego within angle
                                       ;from straight behind.
                                       ;Default zero is no blind spot
   overlays          36 = -1
   doMotionCue       37                ;a motion cue has occurred - process it
   systemWindow      38                ;ID of standard system window
   unused_7          39
   unused_8          40
   modelessPort      41
   sysLogPath        42                ;-used for system standard logfile path   
   endSysLogPath     62                ;/    (uses 40 globals)
   gameControls      63                ;pointer to instance of game controls
   ftrInitializer    64                ;pointer to code that gets called from
                                       ;  a feature's init
   doVerbCode        65                ;pointer to code that gets invoked if
                                       ;  no feature claims a user event
   approachCode      66                ;pointer to code that translates verbs
                                       ;  into bits
   useObstacles      67 = TRUE         ;will Ego use PolyPath or not?
   unused_9          68
   theIconBar        69                ;points to TheIconBar or Null
   mouseX            70                ;-last known mouse position
   mouseY            71                ;/
   keyDownHandler    72                ;-our EventHandlers, get called by game
   mouseDownHandler  73                ;/
   directionHandler  74                ;/
   speechHandler     75                ;a special handler for speech events
   lastVolume        76
   pMouse            77 = NULL         ;pointer to a Pseudo-Mouse, or NULL
   theDoits          78 = NULL         ;list of objects to get doits each cycle
   eatMice           79 = 60           ;how many ticks before we can mouse
   user              80 = NULL         ;pointer to specific applications User
   syncBias          81                ;-globals used by sync.sc
   theSync           82                ;/    (will be removed shortly)
   unused_10         83                ;
   fastCast          84                ;list of talkers on screen
   inputFont         85 = SYSFONT      ;font used for user type-in
   tickOffset        86                ;used to adjust gameTime after restore
   howFast           87                ;measurment of how fast a machine is
   gameTime          88                ;ticks since game start
   narrator          89                ;pointer to narrator (normally Narrator)
   msgType           90 = TEXT_MSG     ;type of messages used
   messager          91                ;pointer to messager (normally Messager)
   prints            92                ;list of Print's on screen
   walkHandler       93                ;list of objects to get walkEvents
   textSpeed         94 = 2            ;time text remains on screen
   altPolyList       95                ;list of alternate obstacles
   lastSysGlobal     99
)

Offline Collector

Re: Leaked Original SCI Source
« Reply #71 on: December 03, 2015, 05:17:04 PM »
I have the kernel documentation done, though I still have to finish linking the index entries.

http://sciwiki.sierrahelp.com//index.php?title=SCI_Kernel_Documentation
KQII Remake Pic

Offline troflip

Re: Leaked Original SCI Source
« Reply #72 on: December 03, 2015, 05:25:47 PM »
Gabriel Knight decompiled source in (roughly) Sierra script
Check out my website: http://icefallgames.com
Groundhog Day Competition

Offline Kawa

Re: Leaked Original SCI Source
« Reply #73 on: December 03, 2015, 05:45:37 PM »
*inhuman noise of excitement*

Offline Collector

Re: Leaked Original SCI Source
« Reply #74 on: December 03, 2015, 05:49:52 PM »
Too bad all this was not available before Brian set the Studio syntax. I understand the work it would take to do a new template game using the SCI script, but how much work would it take to get the compiler to work with it? Not that I am asking that it be done, I'm just curious.
KQII Remake Pic


SMF 2.0.14 | SMF © 2017, Simple Machines
Simple Audio Video Embedder

Page created in 0.179 seconds with 25 queries.