Skip to content

ZILF 1.9

Latest

Choose a tag to compare

@taradinoc taradinoc released this 13 Jun 16:50

Added

  • You can now replace the INV-EXTRA-DETAILS section, containing INV-PRINT-EXTRA-DETAILS and INV-SAME-EXTRA-DETAILS?, to add more details like "(worn)" to the inventory listing; or you can override the defaults by replacing INV-PRINT-DETAILS (and probably also INV-INDISTINGUISHABLE?).

  • Using GET with a second argument that looks like a property name now issues warning ZIL0513.

  • The error thrown by invalid references to P?DESC, P?LOC, and P?FLAGS now includes an info message explaining that they're pseudo-properties.

  • A definition section that is used with REPLACE-DEFINITION or DELAY-DEFINITION, but whose replacement definition is never actually inserted, now issues warning ZIL0214 (if replaced) or ZIL0215 (if delayed).

  • Added LOAD, to read and execute code from an open file channel (like FLOAD but with a channel instead of a path).

  • Added READCHR, to read a single character from an open file channel, or a control-Z character if the file is at EOF.

  • Added TYI, which is like READCHR but defaults to .INCHAN if no channel is specified.

  • Added TTYECHO, to control whether characters read from a console channel will be echoed to the console.

  • OPEN can now accept the file mode "PRINT" to open files for writing. This will only succeed if the command-line switch --allow-file-writes has been given.

  • Calling an unassigned atom will now attach info message MDL0233 if the atom matches the name of a Z-code builtin, suggesting that it was meant to be called inside a routine.

Changed

  • Updated zillib/LICENSE.txt to clarify that you may redistribute games compiled for targets other than Z-code (i.e., Glulx and Cornerstone) and that you may satisfy the redistribution requirement by printing the compiler version number (the library version number is no longer required).

  • zillib no longer has its own version number separate from the compiler. ,ZILLIB-VERSION is defined as equal to ,ZIL-VERSION, i.e., the compiler version number.

Fixed

  • Fixed a bug where SUPPRESS-WARNINGS? could only suppress one warning code at a time.

  • Fixed INSERT-HELD-WORD and REPLACE-HELD-WORD cutting off the last character in V5+.

  • Fixed GO breaking the object tree when used with an object instead of a direction.

  • Fixed PARSE producing a misleading error message when its second argument is a FIX other than 10.