After a somewhat intensive emersion into the adv3Lite docs and tutorials, I have some comments about the Lite library and some questions about usage.
Comments first—kudos to Eric on a job well done. I have not been using the old library long enough to have a firmly held opinion about it per se, but I did get far enough into it before deciding to give Lite a try to appreciate both the power and the complexity of the, for lack of a better name, adv3Heavy library.
Now, having read the Lite library and tutorial manuals, and having worked through each of the three tutorial projects, I can see that Lite quite nicely achieves its goal of simplifying without sacrificing developer control. So, again, kudos.
And then the questions:
- In the Airport tutorial, the display board in the Gate area is defined as Distant. Tutorial text says this is to make all commands other than Examine respond with a “too far away” message. This results in this incongruity…
How can I override the Read command so that it would behave the same as Examine? I tried this…
…but it did not work. I tried adding it first to the gateArea room and then to the Distant display board definition, but no luck either time. Can it be done? How? Why did the override not work here?
- At the beginning of the Airport game, before entering any other command, I enter Hint and the game responds with boilerplate text…
If I were perverse enough that I wanted my text in place of “Sorry, no hints…etc.” what object would I change? (I tried to modify the Hint class, but could find no available hook to get to the text stream.)
- Similarly, my own code for an ATM machine now works in its Lite incarnation but with text I’d like to override.
I first implemented the ATM using the Heavy library (and based on the sample.t code distributed with a basic TADS installation). Without that code, multiple bills from the ATM were listed individually, as “a 20 dollar bill, a 20 dollar bill, a 20 dollar bill, a 20 dollar bill, and a 20 dollar bill.” With the aggregaton code, it became “five 20 dollar bills”.
Lite actually handles the situation nicely without the need for a custom coded aggregator, so score one for simplicity.
However, it’s not perfect…
It should be 20s, not 20’s (it’s a plural, not a possessive). Can I edit that string? What’s the hook for capturing it in code prior to display?
- And finally, an RFE.
Eric, does your authoring system for writing docs provide an easy means for generating PDFs?
I find the HTML files a bit difficult to use as learning tools. I guess I’m old school, but I like a hard copy that I can flip through manually. I printed your docs from the HTML and put them in binders, which is better than nothing, but there is no index, no page numbers, no book-search capability. PDFs would solve at least the last two of those things. (Actually, I use them both—PDF and HTML—side by side, for the best of both worlds, but if there can only be one, I’d much rather have the PDF than the HTML.)