Repository navigation
Releases
Latest demo library + cloak + 1984.
Npc commands extended to support all adverb forms (although there's no Npc version of the EXAMINE or LOOK handlers yet). But ItemActionListener and ItemAcceptsObjectHandler forms are accepted along with all grammar rules.
Friend Rooms have been re-jigged a bit too so you now see the name of the room and whatever items are marked as remotely visible. I think originally I had the full room description:
Remote viewing is possible and LOOK AT x THROUGH y or LOOK THROUGH y AT x forms are both supported.
"What next?
SOUTH
You are in the kitchen in your flat.
The telescreen is blaring brassy music loudly.
Through the window to the South you can see the four Ministries rising far above all other structures in the city.
Huge gleaming white pyramidal structures, a stark contrast to the grey London skyline.
The Party slogans, in black lettering large enough to read even at this distance, are picked out on the Ministry of Truth:
WAR IS PEACE.
FREEDOM IS SLAVERY.
IGNORANCE IS STRENGTH.
Exits are:
North to the living room of your flat.
You can see: THE PLUNGER
Far off through the window you can see: Vauxhall Bridge.
By the bridge you can see: THE RIVER
What next?
LOOK THROUGH BINOCULARS AT RIVER
The river water is a murky brown colour. You can see flecks of white scum lapping up at the banks.
On the opposite bank beyond the river you can see the dilapidated housing of Airstrip One that extends beyond the older once splendid buildings that overlook the river.
Machine gun nests surrounded by barbed wire are dotted along both banks, grey and brown overalled sentinels stand watching the river.
Looking further to the South beyond the bridge you can see the peeling facade of an old Vaudevillian theatre."
whereas a straight LOOK AT RIVER yields:
"What next?
LOOK AT RIVER
The river water looks a murky brown colour.
The dilapidated housing of Airstrip One extends beyond the older once splendid buildings that overlook the river on the opposite bank."
It still needs some work regarding the negative cases, i.e. what happens when you're not carrying an the item you're trying to use or when you try to use an inappropriate item:
"What next?
LOOK THROUGH PLUNGER AT RIVER
THE RIVER is too far away to see properly without an aid:
The river water looks a murky brown colour.
The dilapidated housing of Airstrip One extends beyond the older once splendid buildings that overlook the river on the opposite bank."
So, it's caught but it's not perfect yet.
Playable Demo + Cloak of Darkness
Cloak of Darkness updated so you can lose if you stumble around in the dark too much.
The main engine needed a fix for when a direction is also an adverb (HANG UP CLOAK).
Latest lib
This release adds default items support.
Latest Playable Demo + Cloak of Darkness
Various fixes and updates:
Fix - exit blocked was no longer being applied after the directional verb updates.
Fix - visible items should include those in an open container.
Update - RoomRenderer is re-checked after the sentence has been processed and if it has changed it is re-applied (so shutting away a torch in a cupboard causes an immediate re-render of the room if the room is ordinarily dark) - the engine knew this before but the description change wouldn't become apparent unless you did a LOOK.
Update - player has a defaultCombatItem now, a weapon to use if you type ATTACK <npc> without a noun identifying a weapon. Basically your fists or whatever.
Also in combat, Npcs define an onMissed state to go alongside the onAttack state for when an attack fails. So the retaliation can be different in each case.
Update - Internal gubbins. All getItem type methods have been consolidated and now live in their appropriate classes, e.g getItemInRoom type finders live in the Room class, inventory finders in the Inventory class, etc.
Latest Release
I came across some grammar rules bugs which I think I've fixed...
And I've generalised some find Item operations to include container items - so you can now PUT BATTERIES IN TORCH whilst the torch is in the drawer - you still pick it up to do it but it's a better answer than "You can't see the torch". You were always able to do it even if the torch was co-located in the current room, not just in your inventory.
Latest demo library + cloak + 1984.
This release supports movementModes and directional tasks.
Latest cloak of darkness release for new library
Updates the grammar rules for things like LOOK AT or LOOK THROUGH
Adds support for friend rooms - rooms where items are visible from another room and of course being able to see those items with binoculars.
Also you can examine things with a magnifying glass now using the same LOOK AT or LOOK THROUGH syntax.
Latest demo library + cloak + 1984.
Features latest incarnation of the Npc Configuration, trading config in particular is slightly simplified.
Auxiliary messages in force everywhere where needed for situations that need alternative messages depending on plurality or gender, that kind of thing.
Better validation on Npc config too - more invalid or incomplete config options are rejected at start up.
Latest Playable Demo + Cloak of Darkness.
Internationalization updates.
Introduce system.properties to allow the author to decide what word ordering in item names is relevant (adjective before noun or vice versa).
This isn't applicable to to non Latin languages...
Playable demo + Cloak of Darkness (in English)
Allows for
- adjective / noun or noun / adjective item names - meaning I think we do finally have the ability to declaratively support at least French and some other European languages.
- noun and adjective attributes are properly supported (they were there before but a bit of an afterthought) and some hardening of the interpretation there. noun overrides name. Adjective isn't considered if name is available.
- Also languageSettings added to game.xml in which you can define the adjectiv noun order and further article split definitions.
So " " (a single space) is usually expected as the character to split an article from a noun but in French at least you often have something like 'L'ARMOUR' so we need L' to be ignored.